Subversion Repositories SmartDukaan

Rev

Rev 9761 | Rev 10050 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5944 mandeep.dh 1
#
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def addWarehouse(self, warehouse):
21
    """
22
    Parameters:
23
     - warehouse
24
    """
25
    pass
26
 
27
  def addVendor(self, vendor):
28
    """
29
    add a new vendor
30
 
31
    Parameters:
32
     - vendor
33
    """
34
    pass
35
 
36
  def updateInventoryHistory(self, warehouse_id, timestamp, availability):
37
    """
38
    Stores the incremental warehouse updates of items.
39
 
40
    Parameters:
41
     - warehouse_id
42
     - timestamp
43
     - availability
44
    """
45
    pass
46
 
47
  def updateInventory(self, warehouse_id, timestamp, availability):
48
    """
49
    Stores the final inventory stocks of items.
50
 
51
    Parameters:
52
     - warehouse_id
53
     - timestamp
54
     - availability
55
    """
56
    pass
57
 
58
  def addInventory(self, itemId, warehouseId, quantity):
59
    """
60
    Add the inventory to existing stock.
61
 
62
    Parameters:
63
     - itemId
64
     - warehouseId
65
     - quantity
66
    """
67
    pass
68
 
69
  def retireWarehouse(self, warehouse_id):
70
    """
71
    Parameters:
72
     - warehouse_id
73
    """
74
    pass
75
 
76
  def getItemInventoryByItemId(self, item_id):
77
    """
78
    Parameters:
79
     - item_id
80
    """
81
    pass
82
 
83
  def getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
84
    """
85
    Parameters:
86
     - warehouse_id
87
     - item_id
88
    """
89
    pass
90
 
5978 rajveer 91
  def getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 92
    """
93
    Determines the warehouse that should be used to fulfil an order for the given item.
94
    It first checks all the warehouses which are in the logistics location given by the
95
    warehouse_loc parameter. If none of the warehouses there have any inventory, then the
96
    preferred warehouse for the item is used.
97
 
98
    Returns an ordered list of size 4 with following elements in the given order:
99
    1. Id of the fulfillment warehouse which was finally picked up.
100
    2. Expected delay added by the category manager.
101
    3. Id of the billing warehouse which was finally picked up.
102
 
103
    Parameters:
104
     - itemId
5978 rajveer 105
     - sourceId
5944 mandeep.dh 106
    """
107
    pass
108
 
109
  def getAllWarehouses(self, isActive):
110
    """
111
    Parameters:
112
     - isActive
113
    """
114
    pass
115
 
116
  def getWarehouse(self, warehouse_id):
117
    """
118
    Returns the warehouse with the given id.
119
 
120
    Parameters:
121
     - warehouse_id
122
    """
123
    pass
124
 
125
  def getAllItemsForWarehouse(self, warehouse_id):
126
    """
127
    Parameters:
128
     - warehouse_id
129
    """
130
    pass
131
 
5966 rajveer 132
  def isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
5944 mandeep.dh 133
    """
5966 rajveer 134
    Depending on reservation in the table, verify if we can bill this order or not.
135
 
136
    Parameters:
137
     - itemId
138
     - warehouseId
139
     - sourceId
140
     - orderId
141
    """
142
    pass
143
 
144
  def reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
145
    """
5944 mandeep.dh 146
    Increases the reservation count for an item in a warehouse. Should always succeed normally.
147
 
148
    Parameters:
149
     - itemId
150
     - warehouseId
5966 rajveer 151
     - sourceId
152
     - orderId
153
     - createdTimestamp
154
     - promisedShippingTimestamp
5944 mandeep.dh 155
     - quantity
156
    """
157
    pass
158
 
7968 amar.kumar 159
  def updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
160
    """
161
    Updates the reservation for Order
162
 
163
    Parameters:
164
     - itemId
165
     - warehouseId
166
     - sourceId
167
     - orderId
168
     - createdTimestamp
169
     - promisedShippingTimestamp
170
     - quantity
171
    """
172
    pass
173
 
5966 rajveer 174
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 175
    """
176
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
177
 
178
    Parameters:
179
     - itemId
180
     - warehouseId
5966 rajveer 181
     - sourceId
182
     - orderId
5944 mandeep.dh 183
     - quantity
184
    """
185
    pass
186
 
187
  def getItemPricing(self, itemId, vendorId):
188
    """
189
    Returns the pricing information of an item associated with the vendor of the given warehouse.
190
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
191
 
192
    Parameters:
193
     - itemId
194
     - vendorId
195
    """
196
    pass
197
 
198
  def getAllItemPricing(self, itemId):
199
    """
200
    Returns the list of vendor pricing information of an item.
201
    Raises an exception if item not found corresponding to itemId
202
 
203
    Parameters:
204
     - itemId
205
    """
206
    pass
207
 
208
  def addVendorItemPricing(self, vendorItemPricing):
209
    """
210
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
211
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
212
 
213
    Parameters:
214
     - vendorItemPricing
215
    """
216
    pass
217
 
218
  def getVendor(self, vendorId):
219
    """
220
    Returns a vendor given its id
221
 
222
    Parameters:
223
     - vendorId
224
    """
225
    pass
226
 
227
  def getAllVendors(self, ):
228
    """
229
    Return list of all vendors
230
    """
231
    pass
232
 
233
  def addVendorItemMapping(self, key, vendorItemMapping):
234
    """
235
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
236
 
237
    Parameters:
238
     - key
239
     - vendorItemMapping
240
    """
241
    pass
242
 
243
  def getVendorItemMappings(self, itemId):
244
    """
245
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
246
    Raises an exception if item not found corresponding to itemId
247
 
248
    Parameters:
249
     - itemId
250
    """
251
    pass
252
 
253
  def getPendingOrdersInventory(self, vendorid):
254
    """
255
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
256
 
257
    Parameters:
258
     - vendorid
259
    """
260
    pass
261
 
262
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
263
    """
264
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
265
    getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 3, 7, 7) would return ours warehouse with GOOD type inventory for vendor 1 for billing warehouse 7 and shipping warehouse 7
266
    getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 3, 7, 7) would return ours warehouse with GOOD type inventory for vendor 3 for billing warehouse 7 and shipping warehouse 7
267
       getWarehouses(null, null, 3, 7, 7) would return all type warehouses with all type inventory for vendor 3 for billing warehouse 7 and shipping warehouse 7
268
       getWarehouses(null, null, 0, 0, 7) would return all type warehouses with all type inventory for all vendors for all billing warehouses at shipping warehouse 7
269
 
270
    Parameters:
271
     - warehouseType
272
     - inventoryType
273
     - vendorId
274
     - billingWarehouseId
275
     - shippingWarehouseId
276
    """
277
    pass
278
 
279
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
280
    """
281
    Resets availability of an item to the quantity mentioned in a warehouse.
282
 
283
    Parameters:
284
     - itemKey
285
     - vendorId
286
     - quantity
287
     - warehouseId
288
    """
289
    pass
290
 
291
  def resetAvailabilityForWarehouse(self, warehouseId):
292
    """
293
    Resets availability of a warehouse to zero.
294
 
295
    Parameters:
296
     - warehouseId
297
    """
298
    pass
299
 
300
  def getItemKeysToBeProcessed(self, warehouseId):
301
    """
302
    Returns the list of item keys which need to be processed for a given warehouse.
303
    This is currently used by Support application to send item keys whose inventory needs
304
    to be updated from PLB
305
 
306
    Parameters:
307
     - warehouseId
308
    """
309
    pass
310
 
311
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
312
    """
313
    Marks/Deletes missed inventory updates for a given key and warehouse.
314
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
315
 
316
    Parameters:
317
     - itemKey
318
     - warehouseId
319
    """
320
    pass
321
 
322
  def getIgnoredItemKeys(self, ):
323
    """
324
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
325
    and the timestamp from where alert was raised.
326
    """
327
    pass
328
 
329
  def addBadInventory(self, itemId, warehouseId, quantity):
330
    """
331
    Add the BAD type inventory to existing stock.
332
 
333
    Parameters:
334
     - itemId
335
     - warehouseId
336
     - quantity
337
    """
338
    pass
339
 
340
  def getShippingLocations(self, ):
341
    """
342
    Returns all shipping locations
343
    """
344
    pass
345
 
346
  def getAllVendorItemMappings(self, ):
347
    """
348
    Fetches all the vendor item mappings present.
349
    """
350
    pass
351
 
352
  def getInventorySnapshot(self, warehouseId):
353
    """
354
    Gets items' inventory for a warehouse
355
    If warehouse is passed as zero, items' inventory across all warehouses is sent
356
 
357
    Parameters:
358
     - warehouseId
359
    """
360
    pass
361
 
362
  def clearItemAvailabilityCache(self, ):
363
    """
364
    Clear item availability cache.
365
    """
366
    pass
367
 
368
  def updateVendorString(self, warehouseId, vendorString):
369
    """
370
    Parameters:
371
     - warehouseId
372
     - vendorString
373
    """
374
    pass
375
 
6096 amit.gupta 376
  def clearItemAvailabilityCacheForItem(self, item_id):
377
    """
378
    Parameters:
379
     - item_id
380
    """
381
    pass
5944 mandeep.dh 382
 
7718 amar.kumar 383
  def getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 384
    """
385
    Parameters:
386
     - vendorId
7718 amar.kumar 387
     - billingWarehouseId
6467 amar.kumar 388
    """
389
    pass
6096 amit.gupta 390
 
6484 amar.kumar 391
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
392
    """
393
    Parameters:
394
     - item_ids
395
    """
396
    pass
6467 amar.kumar 397
 
6531 vikram.rag 398
  def getMonitoredWarehouseForVendors(self, vendorIds):
399
    """
400
    Parameters:
401
     - vendorIds
402
    """
403
    pass
6484 amar.kumar 404
 
6531 vikram.rag 405
  def getIgnoredWarehouseidsAndItemids(self, ):
406
    pass
407
 
408
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
409
    """
410
    Parameters:
411
     - item_id
412
     - warehouse_id
413
    """
414
    pass
415
 
416
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
417
    """
418
    Parameters:
419
     - item_id
420
     - warehouse_id
421
    """
422
    pass
423
 
424
  def getAllIgnoredInventoryupdateItemsCount(self, ):
425
    pass
426
 
427
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
428
    """
429
    Parameters:
430
     - offset
431
     - limit
432
    """
433
    pass
434
 
6821 amar.kumar 435
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
436
    """
437
    Parameters:
438
     - item_id
439
     - numOfDaysStock
440
     - minStockLevel
441
    """
442
    pass
6531 vikram.rag 443
 
6821 amar.kumar 444
  def getItemStockPurchaseParams(self, itemId):
445
    """
446
    Parameters:
447
     - itemId
448
    """
449
    pass
450
 
451
  def addOosStatusForItem(self, oosStatusMap, date):
452
    """
453
    Parameters:
454
     - oosStatusMap
455
     - date
456
    """
457
    pass
458
 
9762 amar.kumar 459
  def getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 460
    """
461
    Parameters:
462
     - itemId
9762 amar.kumar 463
     - sourceId
6832 amar.kumar 464
     - days
465
    """
466
    pass
6821 amar.kumar 467
 
6857 amar.kumar 468
  def getNonZeroItemStockPurchaseParams(self, ):
469
    pass
6832 amar.kumar 470
 
7149 amar.kumar 471
  def getBillableInventoryAndPendingOrders(self, ):
472
    """
473
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
474
    """
475
    pass
6857 amar.kumar 476
 
7281 kshitij.so 477
  def getWarehouseName(self, warehouse_id):
478
    """
479
    Parameters:
480
     - warehouse_id
481
    """
482
    pass
7149 amar.kumar 483
 
7281 kshitij.so 484
  def getAmazonInventoryForItem(self, item_id):
485
    """
486
    Parameters:
487
     - item_id
488
    """
489
    pass
490
 
491
  def getAllAmazonInventory(self, ):
492
    pass
493
 
494
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot):
495
    """
496
    Parameters:
497
     - amazonInventorySnapshot
498
    """
499
    pass
500
 
7972 amar.kumar 501
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
502
    """
503
    Parameters:
504
     - itemId
505
     - numberOfDays
506
    """
507
    pass
7281 kshitij.so 508
 
8282 kshitij.so 509
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
510
    """
511
    Parameters:
512
     - amazonfbainventorysnapshot
513
    """
514
    pass
515
 
8182 amar.kumar 516
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
517
    """
518
    Parameters:
519
     - itemId
520
     - warehouseId
521
     - holdQuantity
522
     - source
523
    """
524
    pass
7972 amar.kumar 525
 
8282 kshitij.so 526
  def getAmazonFbaItemInventory(self, itemId):
527
    """
528
    Parameters:
529
     - itemId
530
    """
531
    pass
8182 amar.kumar 532
 
8363 vikram.rag 533
  def getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 534
    pass
535
 
8363 vikram.rag 536
  def getOursGoodWarehouseIdsForLocation(self, state_id):
537
    """
538
    Parameters:
539
     - state_id
540
    """
541
    pass
8282 kshitij.so 542
 
8955 vikram.rag 543
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
544
    """
545
    Parameters:
546
     - id
547
     - warehouse_id
548
     - source
549
    """
550
    pass
8363 vikram.rag 551
 
9404 vikram.rag 552
  def getSnapdealInventoryForItem(self, item_id):
553
    """
554
    Parameters:
555
     - item_id
556
    """
557
    pass
8955 vikram.rag 558
 
9404 vikram.rag 559
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
560
    """
561
    Parameters:
562
     - snapdealinventoryitem
563
    """
564
    pass
565
 
566
  def getNlcForWarehouse(self, warehouse_id, item_id):
567
    """
568
    Parameters:
569
     - warehouse_id
570
     - item_id
571
    """
572
    pass
573
 
9640 amar.kumar 574
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
575
    """
576
    Parameters:
577
     - item_id
578
     - warehouse_id
579
    """
580
    pass
581
 
9482 vikram.rag 582
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
583
    """
584
    Parameters:
585
     - allamazonfbainventorysnapshot
586
    """
587
    pass
9456 vikram.rag 588
 
9495 vikram.rag 589
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
590
    """
591
    Parameters:
592
     - allsnapdealinventorysnapshot
593
    """
594
    pass
9482 vikram.rag 595
 
9495 vikram.rag 596
  def getSnapdealInventorySnapshot(self, ):
597
    pass
598
 
9761 amar.kumar 599
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
600
    """
601
    Parameters:
602
     - itemId
603
     - warehouseId
604
     - source
605
    """
606
    pass
9495 vikram.rag 607
 
9761 amar.kumar 608
 
5944 mandeep.dh 609
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
610
  def __init__(self, iprot, oprot=None):
611
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
612
 
613
  def addWarehouse(self, warehouse):
614
    """
615
    Parameters:
616
     - warehouse
617
    """
618
    self.send_addWarehouse(warehouse)
619
    return self.recv_addWarehouse()
620
 
621
  def send_addWarehouse(self, warehouse):
622
    self._oprot.writeMessageBegin('addWarehouse', TMessageType.CALL, self._seqid)
623
    args = addWarehouse_args()
624
    args.warehouse = warehouse
625
    args.write(self._oprot)
626
    self._oprot.writeMessageEnd()
627
    self._oprot.trans.flush()
628
 
629
  def recv_addWarehouse(self, ):
630
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
631
    if mtype == TMessageType.EXCEPTION:
632
      x = TApplicationException()
633
      x.read(self._iprot)
634
      self._iprot.readMessageEnd()
635
      raise x
636
    result = addWarehouse_result()
637
    result.read(self._iprot)
638
    self._iprot.readMessageEnd()
639
    if result.success is not None:
640
      return result.success
641
    if result.cex is not None:
642
      raise result.cex
643
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
644
 
645
  def addVendor(self, vendor):
646
    """
647
    add a new vendor
648
 
649
    Parameters:
650
     - vendor
651
    """
652
    self.send_addVendor(vendor)
653
    return self.recv_addVendor()
654
 
655
  def send_addVendor(self, vendor):
656
    self._oprot.writeMessageBegin('addVendor', TMessageType.CALL, self._seqid)
657
    args = addVendor_args()
658
    args.vendor = vendor
659
    args.write(self._oprot)
660
    self._oprot.writeMessageEnd()
661
    self._oprot.trans.flush()
662
 
663
  def recv_addVendor(self, ):
664
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
665
    if mtype == TMessageType.EXCEPTION:
666
      x = TApplicationException()
667
      x.read(self._iprot)
668
      self._iprot.readMessageEnd()
669
      raise x
670
    result = addVendor_result()
671
    result.read(self._iprot)
672
    self._iprot.readMessageEnd()
673
    if result.success is not None:
674
      return result.success
675
    if result.cex is not None:
676
      raise result.cex
677
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
678
 
679
  def updateInventoryHistory(self, warehouse_id, timestamp, availability):
680
    """
681
    Stores the incremental warehouse updates of items.
682
 
683
    Parameters:
684
     - warehouse_id
685
     - timestamp
686
     - availability
687
    """
688
    self.send_updateInventoryHistory(warehouse_id, timestamp, availability)
689
    self.recv_updateInventoryHistory()
690
 
691
  def send_updateInventoryHistory(self, warehouse_id, timestamp, availability):
692
    self._oprot.writeMessageBegin('updateInventoryHistory', TMessageType.CALL, self._seqid)
693
    args = updateInventoryHistory_args()
694
    args.warehouse_id = warehouse_id
695
    args.timestamp = timestamp
696
    args.availability = availability
697
    args.write(self._oprot)
698
    self._oprot.writeMessageEnd()
699
    self._oprot.trans.flush()
700
 
701
  def recv_updateInventoryHistory(self, ):
702
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
703
    if mtype == TMessageType.EXCEPTION:
704
      x = TApplicationException()
705
      x.read(self._iprot)
706
      self._iprot.readMessageEnd()
707
      raise x
708
    result = updateInventoryHistory_result()
709
    result.read(self._iprot)
710
    self._iprot.readMessageEnd()
711
    if result.cex is not None:
712
      raise result.cex
713
    return
714
 
715
  def updateInventory(self, warehouse_id, timestamp, availability):
716
    """
717
    Stores the final inventory stocks of items.
718
 
719
    Parameters:
720
     - warehouse_id
721
     - timestamp
722
     - availability
723
    """
724
    self.send_updateInventory(warehouse_id, timestamp, availability)
725
    self.recv_updateInventory()
726
 
727
  def send_updateInventory(self, warehouse_id, timestamp, availability):
728
    self._oprot.writeMessageBegin('updateInventory', TMessageType.CALL, self._seqid)
729
    args = updateInventory_args()
730
    args.warehouse_id = warehouse_id
731
    args.timestamp = timestamp
732
    args.availability = availability
733
    args.write(self._oprot)
734
    self._oprot.writeMessageEnd()
735
    self._oprot.trans.flush()
736
 
737
  def recv_updateInventory(self, ):
738
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
739
    if mtype == TMessageType.EXCEPTION:
740
      x = TApplicationException()
741
      x.read(self._iprot)
742
      self._iprot.readMessageEnd()
743
      raise x
744
    result = updateInventory_result()
745
    result.read(self._iprot)
746
    self._iprot.readMessageEnd()
747
    if result.cex is not None:
748
      raise result.cex
749
    return
750
 
751
  def addInventory(self, itemId, warehouseId, quantity):
752
    """
753
    Add the inventory to existing stock.
754
 
755
    Parameters:
756
     - itemId
757
     - warehouseId
758
     - quantity
759
    """
760
    self.send_addInventory(itemId, warehouseId, quantity)
761
    self.recv_addInventory()
762
 
763
  def send_addInventory(self, itemId, warehouseId, quantity):
764
    self._oprot.writeMessageBegin('addInventory', TMessageType.CALL, self._seqid)
765
    args = addInventory_args()
766
    args.itemId = itemId
767
    args.warehouseId = warehouseId
768
    args.quantity = quantity
769
    args.write(self._oprot)
770
    self._oprot.writeMessageEnd()
771
    self._oprot.trans.flush()
772
 
773
  def recv_addInventory(self, ):
774
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
775
    if mtype == TMessageType.EXCEPTION:
776
      x = TApplicationException()
777
      x.read(self._iprot)
778
      self._iprot.readMessageEnd()
779
      raise x
780
    result = addInventory_result()
781
    result.read(self._iprot)
782
    self._iprot.readMessageEnd()
783
    if result.cex is not None:
784
      raise result.cex
785
    return
786
 
787
  def retireWarehouse(self, warehouse_id):
788
    """
789
    Parameters:
790
     - warehouse_id
791
    """
792
    self.send_retireWarehouse(warehouse_id)
793
    self.recv_retireWarehouse()
794
 
795
  def send_retireWarehouse(self, warehouse_id):
796
    self._oprot.writeMessageBegin('retireWarehouse', TMessageType.CALL, self._seqid)
797
    args = retireWarehouse_args()
798
    args.warehouse_id = warehouse_id
799
    args.write(self._oprot)
800
    self._oprot.writeMessageEnd()
801
    self._oprot.trans.flush()
802
 
803
  def recv_retireWarehouse(self, ):
804
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
805
    if mtype == TMessageType.EXCEPTION:
806
      x = TApplicationException()
807
      x.read(self._iprot)
808
      self._iprot.readMessageEnd()
809
      raise x
810
    result = retireWarehouse_result()
811
    result.read(self._iprot)
812
    self._iprot.readMessageEnd()
813
    if result.cex is not None:
814
      raise result.cex
815
    return
816
 
817
  def getItemInventoryByItemId(self, item_id):
818
    """
819
    Parameters:
820
     - item_id
821
    """
822
    self.send_getItemInventoryByItemId(item_id)
823
    return self.recv_getItemInventoryByItemId()
824
 
825
  def send_getItemInventoryByItemId(self, item_id):
826
    self._oprot.writeMessageBegin('getItemInventoryByItemId', TMessageType.CALL, self._seqid)
827
    args = getItemInventoryByItemId_args()
828
    args.item_id = item_id
829
    args.write(self._oprot)
830
    self._oprot.writeMessageEnd()
831
    self._oprot.trans.flush()
832
 
833
  def recv_getItemInventoryByItemId(self, ):
834
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
835
    if mtype == TMessageType.EXCEPTION:
836
      x = TApplicationException()
837
      x.read(self._iprot)
838
      self._iprot.readMessageEnd()
839
      raise x
840
    result = getItemInventoryByItemId_result()
841
    result.read(self._iprot)
842
    self._iprot.readMessageEnd()
843
    if result.success is not None:
844
      return result.success
845
    if result.cex is not None:
846
      raise result.cex
847
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
848
 
849
  def getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
850
    """
851
    Parameters:
852
     - warehouse_id
853
     - item_id
854
    """
855
    self.send_getItemAvailibilityAtWarehouse(warehouse_id, item_id)
856
    return self.recv_getItemAvailibilityAtWarehouse()
857
 
858
  def send_getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
859
    self._oprot.writeMessageBegin('getItemAvailibilityAtWarehouse', TMessageType.CALL, self._seqid)
860
    args = getItemAvailibilityAtWarehouse_args()
861
    args.warehouse_id = warehouse_id
862
    args.item_id = item_id
863
    args.write(self._oprot)
864
    self._oprot.writeMessageEnd()
865
    self._oprot.trans.flush()
866
 
867
  def recv_getItemAvailibilityAtWarehouse(self, ):
868
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
869
    if mtype == TMessageType.EXCEPTION:
870
      x = TApplicationException()
871
      x.read(self._iprot)
872
      self._iprot.readMessageEnd()
873
      raise x
874
    result = getItemAvailibilityAtWarehouse_result()
875
    result.read(self._iprot)
876
    self._iprot.readMessageEnd()
877
    if result.success is not None:
878
      return result.success
879
    if result.cex is not None:
880
      raise result.cex
881
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
882
 
5978 rajveer 883
  def getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 884
    """
885
    Determines the warehouse that should be used to fulfil an order for the given item.
886
    It first checks all the warehouses which are in the logistics location given by the
887
    warehouse_loc parameter. If none of the warehouses there have any inventory, then the
888
    preferred warehouse for the item is used.
889
 
890
    Returns an ordered list of size 4 with following elements in the given order:
891
    1. Id of the fulfillment warehouse which was finally picked up.
892
    2. Expected delay added by the category manager.
893
    3. Id of the billing warehouse which was finally picked up.
894
 
895
    Parameters:
896
     - itemId
5978 rajveer 897
     - sourceId
5944 mandeep.dh 898
    """
5978 rajveer 899
    self.send_getItemAvailabilityAtLocation(itemId, sourceId)
5944 mandeep.dh 900
    return self.recv_getItemAvailabilityAtLocation()
901
 
5978 rajveer 902
  def send_getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 903
    self._oprot.writeMessageBegin('getItemAvailabilityAtLocation', TMessageType.CALL, self._seqid)
904
    args = getItemAvailabilityAtLocation_args()
905
    args.itemId = itemId
5978 rajveer 906
    args.sourceId = sourceId
5944 mandeep.dh 907
    args.write(self._oprot)
908
    self._oprot.writeMessageEnd()
909
    self._oprot.trans.flush()
910
 
911
  def recv_getItemAvailabilityAtLocation(self, ):
912
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
913
    if mtype == TMessageType.EXCEPTION:
914
      x = TApplicationException()
915
      x.read(self._iprot)
916
      self._iprot.readMessageEnd()
917
      raise x
918
    result = getItemAvailabilityAtLocation_result()
919
    result.read(self._iprot)
920
    self._iprot.readMessageEnd()
921
    if result.success is not None:
922
      return result.success
923
    if result.isex is not None:
924
      raise result.isex
925
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
926
 
927
  def getAllWarehouses(self, isActive):
928
    """
929
    Parameters:
930
     - isActive
931
    """
932
    self.send_getAllWarehouses(isActive)
933
    return self.recv_getAllWarehouses()
934
 
935
  def send_getAllWarehouses(self, isActive):
936
    self._oprot.writeMessageBegin('getAllWarehouses', TMessageType.CALL, self._seqid)
937
    args = getAllWarehouses_args()
938
    args.isActive = isActive
939
    args.write(self._oprot)
940
    self._oprot.writeMessageEnd()
941
    self._oprot.trans.flush()
942
 
943
  def recv_getAllWarehouses(self, ):
944
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
945
    if mtype == TMessageType.EXCEPTION:
946
      x = TApplicationException()
947
      x.read(self._iprot)
948
      self._iprot.readMessageEnd()
949
      raise x
950
    result = getAllWarehouses_result()
951
    result.read(self._iprot)
952
    self._iprot.readMessageEnd()
953
    if result.success is not None:
954
      return result.success
955
    if result.cex is not None:
956
      raise result.cex
957
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
958
 
959
  def getWarehouse(self, warehouse_id):
960
    """
961
    Returns the warehouse with the given id.
962
 
963
    Parameters:
964
     - warehouse_id
965
    """
966
    self.send_getWarehouse(warehouse_id)
967
    return self.recv_getWarehouse()
968
 
969
  def send_getWarehouse(self, warehouse_id):
970
    self._oprot.writeMessageBegin('getWarehouse', TMessageType.CALL, self._seqid)
971
    args = getWarehouse_args()
972
    args.warehouse_id = warehouse_id
973
    args.write(self._oprot)
974
    self._oprot.writeMessageEnd()
975
    self._oprot.trans.flush()
976
 
977
  def recv_getWarehouse(self, ):
978
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
979
    if mtype == TMessageType.EXCEPTION:
980
      x = TApplicationException()
981
      x.read(self._iprot)
982
      self._iprot.readMessageEnd()
983
      raise x
984
    result = getWarehouse_result()
985
    result.read(self._iprot)
986
    self._iprot.readMessageEnd()
987
    if result.success is not None:
988
      return result.success
989
    if result.cex is not None:
990
      raise result.cex
991
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
992
 
993
  def getAllItemsForWarehouse(self, warehouse_id):
994
    """
995
    Parameters:
996
     - warehouse_id
997
    """
998
    self.send_getAllItemsForWarehouse(warehouse_id)
999
    return self.recv_getAllItemsForWarehouse()
1000
 
1001
  def send_getAllItemsForWarehouse(self, warehouse_id):
1002
    self._oprot.writeMessageBegin('getAllItemsForWarehouse', TMessageType.CALL, self._seqid)
1003
    args = getAllItemsForWarehouse_args()
1004
    args.warehouse_id = warehouse_id
1005
    args.write(self._oprot)
1006
    self._oprot.writeMessageEnd()
1007
    self._oprot.trans.flush()
1008
 
1009
  def recv_getAllItemsForWarehouse(self, ):
1010
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1011
    if mtype == TMessageType.EXCEPTION:
1012
      x = TApplicationException()
1013
      x.read(self._iprot)
1014
      self._iprot.readMessageEnd()
1015
      raise x
1016
    result = getAllItemsForWarehouse_result()
1017
    result.read(self._iprot)
1018
    self._iprot.readMessageEnd()
1019
    if result.success is not None:
1020
      return result.success
1021
    if result.cex is not None:
1022
      raise result.cex
1023
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
1024
 
5966 rajveer 1025
  def isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
5944 mandeep.dh 1026
    """
5978 rajveer 1027
    Depending on reservation in the table, verify if we can bill this order or not.
5966 rajveer 1028
 
1029
    Parameters:
1030
     - itemId
1031
     - warehouseId
1032
     - sourceId
1033
     - orderId
1034
    """
1035
    self.send_isOrderBillable(itemId, warehouseId, sourceId, orderId)
1036
    return self.recv_isOrderBillable()
1037
 
1038
  def send_isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
1039
    self._oprot.writeMessageBegin('isOrderBillable', TMessageType.CALL, self._seqid)
1040
    args = isOrderBillable_args()
1041
    args.itemId = itemId
1042
    args.warehouseId = warehouseId
1043
    args.sourceId = sourceId
1044
    args.orderId = orderId
1045
    args.write(self._oprot)
1046
    self._oprot.writeMessageEnd()
1047
    self._oprot.trans.flush()
1048
 
1049
  def recv_isOrderBillable(self, ):
1050
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1051
    if mtype == TMessageType.EXCEPTION:
1052
      x = TApplicationException()
1053
      x.read(self._iprot)
1054
      self._iprot.readMessageEnd()
1055
      raise x
1056
    result = isOrderBillable_result()
1057
    result.read(self._iprot)
1058
    self._iprot.readMessageEnd()
1059
    if result.success is not None:
1060
      return result.success
1061
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
1062
 
1063
  def reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1064
    """
5944 mandeep.dh 1065
    Increases the reservation count for an item in a warehouse. Should always succeed normally.
1066
 
1067
    Parameters:
1068
     - itemId
1069
     - warehouseId
5966 rajveer 1070
     - sourceId
1071
     - orderId
1072
     - createdTimestamp
1073
     - promisedShippingTimestamp
5944 mandeep.dh 1074
     - quantity
1075
    """
5966 rajveer 1076
    self.send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
5944 mandeep.dh 1077
    return self.recv_reserveItemInWarehouse()
1078
 
5966 rajveer 1079
  def send_reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
5944 mandeep.dh 1080
    self._oprot.writeMessageBegin('reserveItemInWarehouse', TMessageType.CALL, self._seqid)
1081
    args = reserveItemInWarehouse_args()
1082
    args.itemId = itemId
1083
    args.warehouseId = warehouseId
5966 rajveer 1084
    args.sourceId = sourceId
1085
    args.orderId = orderId
1086
    args.createdTimestamp = createdTimestamp
1087
    args.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 1088
    args.quantity = quantity
1089
    args.write(self._oprot)
1090
    self._oprot.writeMessageEnd()
1091
    self._oprot.trans.flush()
1092
 
1093
  def recv_reserveItemInWarehouse(self, ):
1094
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1095
    if mtype == TMessageType.EXCEPTION:
1096
      x = TApplicationException()
1097
      x.read(self._iprot)
1098
      self._iprot.readMessageEnd()
1099
      raise x
1100
    result = reserveItemInWarehouse_result()
1101
    result.read(self._iprot)
1102
    self._iprot.readMessageEnd()
1103
    if result.success is not None:
1104
      return result.success
1105
    if result.cex is not None:
1106
      raise result.cex
1107
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
1108
 
7968 amar.kumar 1109
  def updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1110
    """
1111
    Updates the reservation for Order
1112
 
1113
    Parameters:
1114
     - itemId
1115
     - warehouseId
1116
     - sourceId
1117
     - orderId
1118
     - createdTimestamp
1119
     - promisedShippingTimestamp
1120
     - quantity
1121
    """
1122
    self.send_updateReservationForOrder(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
1123
    return self.recv_updateReservationForOrder()
1124
 
1125
  def send_updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1126
    self._oprot.writeMessageBegin('updateReservationForOrder', TMessageType.CALL, self._seqid)
1127
    args = updateReservationForOrder_args()
1128
    args.itemId = itemId
1129
    args.warehouseId = warehouseId
1130
    args.sourceId = sourceId
1131
    args.orderId = orderId
1132
    args.createdTimestamp = createdTimestamp
1133
    args.promisedShippingTimestamp = promisedShippingTimestamp
1134
    args.quantity = quantity
1135
    args.write(self._oprot)
1136
    self._oprot.writeMessageEnd()
1137
    self._oprot.trans.flush()
1138
 
1139
  def recv_updateReservationForOrder(self, ):
1140
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1141
    if mtype == TMessageType.EXCEPTION:
1142
      x = TApplicationException()
1143
      x.read(self._iprot)
1144
      self._iprot.readMessageEnd()
1145
      raise x
1146
    result = updateReservationForOrder_result()
1147
    result.read(self._iprot)
1148
    self._iprot.readMessageEnd()
1149
    if result.success is not None:
1150
      return result.success
1151
    if result.cex is not None:
1152
      raise result.cex
1153
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateReservationForOrder failed: unknown result");
1154
 
5966 rajveer 1155
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1156
    """
1157
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
1158
 
1159
    Parameters:
1160
     - itemId
1161
     - warehouseId
5966 rajveer 1162
     - sourceId
1163
     - orderId
5944 mandeep.dh 1164
     - quantity
1165
    """
5966 rajveer 1166
    self.send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity)
5944 mandeep.dh 1167
    return self.recv_reduceReservationCount()
1168
 
5966 rajveer 1169
  def send_reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1170
    self._oprot.writeMessageBegin('reduceReservationCount', TMessageType.CALL, self._seqid)
1171
    args = reduceReservationCount_args()
1172
    args.itemId = itemId
1173
    args.warehouseId = warehouseId
5966 rajveer 1174
    args.sourceId = sourceId
1175
    args.orderId = orderId
5944 mandeep.dh 1176
    args.quantity = quantity
1177
    args.write(self._oprot)
1178
    self._oprot.writeMessageEnd()
1179
    self._oprot.trans.flush()
1180
 
1181
  def recv_reduceReservationCount(self, ):
1182
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1183
    if mtype == TMessageType.EXCEPTION:
1184
      x = TApplicationException()
1185
      x.read(self._iprot)
1186
      self._iprot.readMessageEnd()
1187
      raise x
1188
    result = reduceReservationCount_result()
1189
    result.read(self._iprot)
1190
    self._iprot.readMessageEnd()
1191
    if result.success is not None:
1192
      return result.success
1193
    if result.cex is not None:
1194
      raise result.cex
1195
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
1196
 
1197
  def getItemPricing(self, itemId, vendorId):
1198
    """
1199
    Returns the pricing information of an item associated with the vendor of the given warehouse.
1200
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
1201
 
1202
    Parameters:
1203
     - itemId
1204
     - vendorId
1205
    """
1206
    self.send_getItemPricing(itemId, vendorId)
1207
    return self.recv_getItemPricing()
1208
 
1209
  def send_getItemPricing(self, itemId, vendorId):
1210
    self._oprot.writeMessageBegin('getItemPricing', TMessageType.CALL, self._seqid)
1211
    args = getItemPricing_args()
1212
    args.itemId = itemId
1213
    args.vendorId = vendorId
1214
    args.write(self._oprot)
1215
    self._oprot.writeMessageEnd()
1216
    self._oprot.trans.flush()
1217
 
1218
  def recv_getItemPricing(self, ):
1219
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1220
    if mtype == TMessageType.EXCEPTION:
1221
      x = TApplicationException()
1222
      x.read(self._iprot)
1223
      self._iprot.readMessageEnd()
1224
      raise x
1225
    result = getItemPricing_result()
1226
    result.read(self._iprot)
1227
    self._iprot.readMessageEnd()
1228
    if result.success is not None:
1229
      return result.success
1230
    if result.cex is not None:
1231
      raise result.cex
1232
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
1233
 
1234
  def getAllItemPricing(self, itemId):
1235
    """
1236
    Returns the list of vendor pricing information of an item.
1237
    Raises an exception if item not found corresponding to itemId
1238
 
1239
    Parameters:
1240
     - itemId
1241
    """
1242
    self.send_getAllItemPricing(itemId)
1243
    return self.recv_getAllItemPricing()
1244
 
1245
  def send_getAllItemPricing(self, itemId):
1246
    self._oprot.writeMessageBegin('getAllItemPricing', TMessageType.CALL, self._seqid)
1247
    args = getAllItemPricing_args()
1248
    args.itemId = itemId
1249
    args.write(self._oprot)
1250
    self._oprot.writeMessageEnd()
1251
    self._oprot.trans.flush()
1252
 
1253
  def recv_getAllItemPricing(self, ):
1254
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1255
    if mtype == TMessageType.EXCEPTION:
1256
      x = TApplicationException()
1257
      x.read(self._iprot)
1258
      self._iprot.readMessageEnd()
1259
      raise x
1260
    result = getAllItemPricing_result()
1261
    result.read(self._iprot)
1262
    self._iprot.readMessageEnd()
1263
    if result.success is not None:
1264
      return result.success
1265
    if result.cex is not None:
1266
      raise result.cex
1267
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
1268
 
1269
  def addVendorItemPricing(self, vendorItemPricing):
1270
    """
1271
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
1272
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
1273
 
1274
    Parameters:
1275
     - vendorItemPricing
1276
    """
1277
    self.send_addVendorItemPricing(vendorItemPricing)
1278
    self.recv_addVendorItemPricing()
1279
 
1280
  def send_addVendorItemPricing(self, vendorItemPricing):
1281
    self._oprot.writeMessageBegin('addVendorItemPricing', TMessageType.CALL, self._seqid)
1282
    args = addVendorItemPricing_args()
1283
    args.vendorItemPricing = vendorItemPricing
1284
    args.write(self._oprot)
1285
    self._oprot.writeMessageEnd()
1286
    self._oprot.trans.flush()
1287
 
1288
  def recv_addVendorItemPricing(self, ):
1289
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1290
    if mtype == TMessageType.EXCEPTION:
1291
      x = TApplicationException()
1292
      x.read(self._iprot)
1293
      self._iprot.readMessageEnd()
1294
      raise x
1295
    result = addVendorItemPricing_result()
1296
    result.read(self._iprot)
1297
    self._iprot.readMessageEnd()
1298
    if result.cex is not None:
1299
      raise result.cex
1300
    return
1301
 
1302
  def getVendor(self, vendorId):
1303
    """
1304
    Returns a vendor given its id
1305
 
1306
    Parameters:
1307
     - vendorId
1308
    """
1309
    self.send_getVendor(vendorId)
1310
    return self.recv_getVendor()
1311
 
1312
  def send_getVendor(self, vendorId):
1313
    self._oprot.writeMessageBegin('getVendor', TMessageType.CALL, self._seqid)
1314
    args = getVendor_args()
1315
    args.vendorId = vendorId
1316
    args.write(self._oprot)
1317
    self._oprot.writeMessageEnd()
1318
    self._oprot.trans.flush()
1319
 
1320
  def recv_getVendor(self, ):
1321
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1322
    if mtype == TMessageType.EXCEPTION:
1323
      x = TApplicationException()
1324
      x.read(self._iprot)
1325
      self._iprot.readMessageEnd()
1326
      raise x
1327
    result = getVendor_result()
1328
    result.read(self._iprot)
1329
    self._iprot.readMessageEnd()
1330
    if result.success is not None:
1331
      return result.success
1332
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
1333
 
1334
  def getAllVendors(self, ):
1335
    """
1336
    Return list of all vendors
1337
    """
1338
    self.send_getAllVendors()
1339
    return self.recv_getAllVendors()
1340
 
1341
  def send_getAllVendors(self, ):
1342
    self._oprot.writeMessageBegin('getAllVendors', TMessageType.CALL, self._seqid)
1343
    args = getAllVendors_args()
1344
    args.write(self._oprot)
1345
    self._oprot.writeMessageEnd()
1346
    self._oprot.trans.flush()
1347
 
1348
  def recv_getAllVendors(self, ):
1349
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1350
    if mtype == TMessageType.EXCEPTION:
1351
      x = TApplicationException()
1352
      x.read(self._iprot)
1353
      self._iprot.readMessageEnd()
1354
      raise x
1355
    result = getAllVendors_result()
1356
    result.read(self._iprot)
1357
    self._iprot.readMessageEnd()
1358
    if result.success is not None:
1359
      return result.success
1360
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1361
 
1362
  def addVendorItemMapping(self, key, vendorItemMapping):
1363
    """
1364
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
1365
 
1366
    Parameters:
1367
     - key
1368
     - vendorItemMapping
1369
    """
1370
    self.send_addVendorItemMapping(key, vendorItemMapping)
1371
    self.recv_addVendorItemMapping()
1372
 
1373
  def send_addVendorItemMapping(self, key, vendorItemMapping):
1374
    self._oprot.writeMessageBegin('addVendorItemMapping', TMessageType.CALL, self._seqid)
1375
    args = addVendorItemMapping_args()
1376
    args.key = key
1377
    args.vendorItemMapping = vendorItemMapping
1378
    args.write(self._oprot)
1379
    self._oprot.writeMessageEnd()
1380
    self._oprot.trans.flush()
1381
 
1382
  def recv_addVendorItemMapping(self, ):
1383
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1384
    if mtype == TMessageType.EXCEPTION:
1385
      x = TApplicationException()
1386
      x.read(self._iprot)
1387
      self._iprot.readMessageEnd()
1388
      raise x
1389
    result = addVendorItemMapping_result()
1390
    result.read(self._iprot)
1391
    self._iprot.readMessageEnd()
1392
    if result.cex is not None:
1393
      raise result.cex
1394
    return
1395
 
1396
  def getVendorItemMappings(self, itemId):
1397
    """
1398
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
1399
    Raises an exception if item not found corresponding to itemId
1400
 
1401
    Parameters:
1402
     - itemId
1403
    """
1404
    self.send_getVendorItemMappings(itemId)
1405
    return self.recv_getVendorItemMappings()
1406
 
1407
  def send_getVendorItemMappings(self, itemId):
1408
    self._oprot.writeMessageBegin('getVendorItemMappings', TMessageType.CALL, self._seqid)
1409
    args = getVendorItemMappings_args()
1410
    args.itemId = itemId
1411
    args.write(self._oprot)
1412
    self._oprot.writeMessageEnd()
1413
    self._oprot.trans.flush()
1414
 
1415
  def recv_getVendorItemMappings(self, ):
1416
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1417
    if mtype == TMessageType.EXCEPTION:
1418
      x = TApplicationException()
1419
      x.read(self._iprot)
1420
      self._iprot.readMessageEnd()
1421
      raise x
1422
    result = getVendorItemMappings_result()
1423
    result.read(self._iprot)
1424
    self._iprot.readMessageEnd()
1425
    if result.success is not None:
1426
      return result.success
1427
    if result.cex is not None:
1428
      raise result.cex
1429
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
1430
 
1431
  def getPendingOrdersInventory(self, vendorid):
1432
    """
1433
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
1434
 
1435
    Parameters:
1436
     - vendorid
1437
    """
1438
    self.send_getPendingOrdersInventory(vendorid)
1439
    return self.recv_getPendingOrdersInventory()
1440
 
1441
  def send_getPendingOrdersInventory(self, vendorid):
1442
    self._oprot.writeMessageBegin('getPendingOrdersInventory', TMessageType.CALL, self._seqid)
1443
    args = getPendingOrdersInventory_args()
1444
    args.vendorid = vendorid
1445
    args.write(self._oprot)
1446
    self._oprot.writeMessageEnd()
1447
    self._oprot.trans.flush()
1448
 
1449
  def recv_getPendingOrdersInventory(self, ):
1450
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1451
    if mtype == TMessageType.EXCEPTION:
1452
      x = TApplicationException()
1453
      x.read(self._iprot)
1454
      self._iprot.readMessageEnd()
1455
      raise x
1456
    result = getPendingOrdersInventory_result()
1457
    result.read(self._iprot)
1458
    self._iprot.readMessageEnd()
1459
    if result.success is not None:
1460
      return result.success
1461
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1462
 
1463
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1464
    """
1465
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
1466
    getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 3, 7, 7) would return ours warehouse with GOOD type inventory for vendor 1 for billing warehouse 7 and shipping warehouse 7
1467
    getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 3, 7, 7) would return ours warehouse with GOOD type inventory for vendor 3 for billing warehouse 7 and shipping warehouse 7
1468
       getWarehouses(null, null, 3, 7, 7) would return all type warehouses with all type inventory for vendor 3 for billing warehouse 7 and shipping warehouse 7
1469
       getWarehouses(null, null, 0, 0, 7) would return all type warehouses with all type inventory for all vendors for all billing warehouses at shipping warehouse 7
1470
 
1471
    Parameters:
1472
     - warehouseType
1473
     - inventoryType
1474
     - vendorId
1475
     - billingWarehouseId
1476
     - shippingWarehouseId
1477
    """
1478
    self.send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId)
1479
    return self.recv_getWarehouses()
1480
 
1481
  def send_getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1482
    self._oprot.writeMessageBegin('getWarehouses', TMessageType.CALL, self._seqid)
1483
    args = getWarehouses_args()
1484
    args.warehouseType = warehouseType
1485
    args.inventoryType = inventoryType
1486
    args.vendorId = vendorId
1487
    args.billingWarehouseId = billingWarehouseId
1488
    args.shippingWarehouseId = shippingWarehouseId
1489
    args.write(self._oprot)
1490
    self._oprot.writeMessageEnd()
1491
    self._oprot.trans.flush()
1492
 
1493
  def recv_getWarehouses(self, ):
1494
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1495
    if mtype == TMessageType.EXCEPTION:
1496
      x = TApplicationException()
1497
      x.read(self._iprot)
1498
      self._iprot.readMessageEnd()
1499
      raise x
1500
    result = getWarehouses_result()
1501
    result.read(self._iprot)
1502
    self._iprot.readMessageEnd()
1503
    if result.success is not None:
1504
      return result.success
1505
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1506
 
1507
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1508
    """
1509
    Resets availability of an item to the quantity mentioned in a warehouse.
1510
 
1511
    Parameters:
1512
     - itemKey
1513
     - vendorId
1514
     - quantity
1515
     - warehouseId
1516
    """
1517
    self.send_resetAvailability(itemKey, vendorId, quantity, warehouseId)
1518
    self.recv_resetAvailability()
1519
 
1520
  def send_resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1521
    self._oprot.writeMessageBegin('resetAvailability', TMessageType.CALL, self._seqid)
1522
    args = resetAvailability_args()
1523
    args.itemKey = itemKey
1524
    args.vendorId = vendorId
1525
    args.quantity = quantity
1526
    args.warehouseId = warehouseId
1527
    args.write(self._oprot)
1528
    self._oprot.writeMessageEnd()
1529
    self._oprot.trans.flush()
1530
 
1531
  def recv_resetAvailability(self, ):
1532
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1533
    if mtype == TMessageType.EXCEPTION:
1534
      x = TApplicationException()
1535
      x.read(self._iprot)
1536
      self._iprot.readMessageEnd()
1537
      raise x
1538
    result = resetAvailability_result()
1539
    result.read(self._iprot)
1540
    self._iprot.readMessageEnd()
1541
    if result.cex is not None:
1542
      raise result.cex
1543
    return
1544
 
1545
  def resetAvailabilityForWarehouse(self, warehouseId):
1546
    """
1547
    Resets availability of a warehouse to zero.
1548
 
1549
    Parameters:
1550
     - warehouseId
1551
    """
1552
    self.send_resetAvailabilityForWarehouse(warehouseId)
1553
    self.recv_resetAvailabilityForWarehouse()
1554
 
1555
  def send_resetAvailabilityForWarehouse(self, warehouseId):
1556
    self._oprot.writeMessageBegin('resetAvailabilityForWarehouse', TMessageType.CALL, self._seqid)
1557
    args = resetAvailabilityForWarehouse_args()
1558
    args.warehouseId = warehouseId
1559
    args.write(self._oprot)
1560
    self._oprot.writeMessageEnd()
1561
    self._oprot.trans.flush()
1562
 
1563
  def recv_resetAvailabilityForWarehouse(self, ):
1564
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1565
    if mtype == TMessageType.EXCEPTION:
1566
      x = TApplicationException()
1567
      x.read(self._iprot)
1568
      self._iprot.readMessageEnd()
1569
      raise x
1570
    result = resetAvailabilityForWarehouse_result()
1571
    result.read(self._iprot)
1572
    self._iprot.readMessageEnd()
1573
    if result.cex is not None:
1574
      raise result.cex
1575
    return
1576
 
1577
  def getItemKeysToBeProcessed(self, warehouseId):
1578
    """
1579
    Returns the list of item keys which need to be processed for a given warehouse.
1580
    This is currently used by Support application to send item keys whose inventory needs
1581
    to be updated from PLB
1582
 
1583
    Parameters:
1584
     - warehouseId
1585
    """
1586
    self.send_getItemKeysToBeProcessed(warehouseId)
1587
    return self.recv_getItemKeysToBeProcessed()
1588
 
1589
  def send_getItemKeysToBeProcessed(self, warehouseId):
1590
    self._oprot.writeMessageBegin('getItemKeysToBeProcessed', TMessageType.CALL, self._seqid)
1591
    args = getItemKeysToBeProcessed_args()
1592
    args.warehouseId = warehouseId
1593
    args.write(self._oprot)
1594
    self._oprot.writeMessageEnd()
1595
    self._oprot.trans.flush()
1596
 
1597
  def recv_getItemKeysToBeProcessed(self, ):
1598
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1599
    if mtype == TMessageType.EXCEPTION:
1600
      x = TApplicationException()
1601
      x.read(self._iprot)
1602
      self._iprot.readMessageEnd()
1603
      raise x
1604
    result = getItemKeysToBeProcessed_result()
1605
    result.read(self._iprot)
1606
    self._iprot.readMessageEnd()
1607
    if result.success is not None:
1608
      return result.success
1609
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1610
 
1611
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1612
    """
1613
    Marks/Deletes missed inventory updates for a given key and warehouse.
1614
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
1615
 
1616
    Parameters:
1617
     - itemKey
1618
     - warehouseId
1619
    """
1620
    self.send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId)
1621
    self.recv_markMissedInventoryUpdatesAsProcessed()
1622
 
1623
  def send_markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1624
    self._oprot.writeMessageBegin('markMissedInventoryUpdatesAsProcessed', TMessageType.CALL, self._seqid)
1625
    args = markMissedInventoryUpdatesAsProcessed_args()
1626
    args.itemKey = itemKey
1627
    args.warehouseId = warehouseId
1628
    args.write(self._oprot)
1629
    self._oprot.writeMessageEnd()
1630
    self._oprot.trans.flush()
1631
 
1632
  def recv_markMissedInventoryUpdatesAsProcessed(self, ):
1633
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1634
    if mtype == TMessageType.EXCEPTION:
1635
      x = TApplicationException()
1636
      x.read(self._iprot)
1637
      self._iprot.readMessageEnd()
1638
      raise x
1639
    result = markMissedInventoryUpdatesAsProcessed_result()
1640
    result.read(self._iprot)
1641
    self._iprot.readMessageEnd()
1642
    return
1643
 
1644
  def getIgnoredItemKeys(self, ):
1645
    """
1646
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
1647
    and the timestamp from where alert was raised.
1648
    """
1649
    self.send_getIgnoredItemKeys()
1650
    return self.recv_getIgnoredItemKeys()
1651
 
1652
  def send_getIgnoredItemKeys(self, ):
1653
    self._oprot.writeMessageBegin('getIgnoredItemKeys', TMessageType.CALL, self._seqid)
1654
    args = getIgnoredItemKeys_args()
1655
    args.write(self._oprot)
1656
    self._oprot.writeMessageEnd()
1657
    self._oprot.trans.flush()
1658
 
1659
  def recv_getIgnoredItemKeys(self, ):
1660
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1661
    if mtype == TMessageType.EXCEPTION:
1662
      x = TApplicationException()
1663
      x.read(self._iprot)
1664
      self._iprot.readMessageEnd()
1665
      raise x
1666
    result = getIgnoredItemKeys_result()
1667
    result.read(self._iprot)
1668
    self._iprot.readMessageEnd()
1669
    if result.success is not None:
1670
      return result.success
1671
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1672
 
1673
  def addBadInventory(self, itemId, warehouseId, quantity):
1674
    """
1675
    Add the BAD type inventory to existing stock.
1676
 
1677
    Parameters:
1678
     - itemId
1679
     - warehouseId
1680
     - quantity
1681
    """
1682
    self.send_addBadInventory(itemId, warehouseId, quantity)
1683
    self.recv_addBadInventory()
1684
 
1685
  def send_addBadInventory(self, itemId, warehouseId, quantity):
1686
    self._oprot.writeMessageBegin('addBadInventory', TMessageType.CALL, self._seqid)
1687
    args = addBadInventory_args()
1688
    args.itemId = itemId
1689
    args.warehouseId = warehouseId
1690
    args.quantity = quantity
1691
    args.write(self._oprot)
1692
    self._oprot.writeMessageEnd()
1693
    self._oprot.trans.flush()
1694
 
1695
  def recv_addBadInventory(self, ):
1696
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1697
    if mtype == TMessageType.EXCEPTION:
1698
      x = TApplicationException()
1699
      x.read(self._iprot)
1700
      self._iprot.readMessageEnd()
1701
      raise x
1702
    result = addBadInventory_result()
1703
    result.read(self._iprot)
1704
    self._iprot.readMessageEnd()
1705
    if result.cex is not None:
1706
      raise result.cex
1707
    return
1708
 
1709
  def getShippingLocations(self, ):
1710
    """
1711
    Returns all shipping locations
1712
    """
1713
    self.send_getShippingLocations()
1714
    return self.recv_getShippingLocations()
1715
 
1716
  def send_getShippingLocations(self, ):
1717
    self._oprot.writeMessageBegin('getShippingLocations', TMessageType.CALL, self._seqid)
1718
    args = getShippingLocations_args()
1719
    args.write(self._oprot)
1720
    self._oprot.writeMessageEnd()
1721
    self._oprot.trans.flush()
1722
 
1723
  def recv_getShippingLocations(self, ):
1724
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1725
    if mtype == TMessageType.EXCEPTION:
1726
      x = TApplicationException()
1727
      x.read(self._iprot)
1728
      self._iprot.readMessageEnd()
1729
      raise x
1730
    result = getShippingLocations_result()
1731
    result.read(self._iprot)
1732
    self._iprot.readMessageEnd()
1733
    if result.success is not None:
1734
      return result.success
1735
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1736
 
1737
  def getAllVendorItemMappings(self, ):
1738
    """
1739
    Fetches all the vendor item mappings present.
1740
    """
1741
    self.send_getAllVendorItemMappings()
1742
    return self.recv_getAllVendorItemMappings()
1743
 
1744
  def send_getAllVendorItemMappings(self, ):
1745
    self._oprot.writeMessageBegin('getAllVendorItemMappings', TMessageType.CALL, self._seqid)
1746
    args = getAllVendorItemMappings_args()
1747
    args.write(self._oprot)
1748
    self._oprot.writeMessageEnd()
1749
    self._oprot.trans.flush()
1750
 
1751
  def recv_getAllVendorItemMappings(self, ):
1752
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1753
    if mtype == TMessageType.EXCEPTION:
1754
      x = TApplicationException()
1755
      x.read(self._iprot)
1756
      self._iprot.readMessageEnd()
1757
      raise x
1758
    result = getAllVendorItemMappings_result()
1759
    result.read(self._iprot)
1760
    self._iprot.readMessageEnd()
1761
    if result.success is not None:
1762
      return result.success
1763
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1764
 
1765
  def getInventorySnapshot(self, warehouseId):
1766
    """
1767
    Gets items' inventory for a warehouse
1768
    If warehouse is passed as zero, items' inventory across all warehouses is sent
1769
 
1770
    Parameters:
1771
     - warehouseId
1772
    """
1773
    self.send_getInventorySnapshot(warehouseId)
1774
    return self.recv_getInventorySnapshot()
1775
 
1776
  def send_getInventorySnapshot(self, warehouseId):
1777
    self._oprot.writeMessageBegin('getInventorySnapshot', TMessageType.CALL, self._seqid)
1778
    args = getInventorySnapshot_args()
1779
    args.warehouseId = warehouseId
1780
    args.write(self._oprot)
1781
    self._oprot.writeMessageEnd()
1782
    self._oprot.trans.flush()
1783
 
1784
  def recv_getInventorySnapshot(self, ):
1785
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1786
    if mtype == TMessageType.EXCEPTION:
1787
      x = TApplicationException()
1788
      x.read(self._iprot)
1789
      self._iprot.readMessageEnd()
1790
      raise x
1791
    result = getInventorySnapshot_result()
1792
    result.read(self._iprot)
1793
    self._iprot.readMessageEnd()
1794
    if result.success is not None:
1795
      return result.success
1796
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1797
 
1798
  def clearItemAvailabilityCache(self, ):
1799
    """
1800
    Clear item availability cache.
1801
    """
1802
    self.send_clearItemAvailabilityCache()
1803
    self.recv_clearItemAvailabilityCache()
1804
 
1805
  def send_clearItemAvailabilityCache(self, ):
1806
    self._oprot.writeMessageBegin('clearItemAvailabilityCache', TMessageType.CALL, self._seqid)
1807
    args = clearItemAvailabilityCache_args()
1808
    args.write(self._oprot)
1809
    self._oprot.writeMessageEnd()
1810
    self._oprot.trans.flush()
1811
 
1812
  def recv_clearItemAvailabilityCache(self, ):
1813
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1814
    if mtype == TMessageType.EXCEPTION:
1815
      x = TApplicationException()
1816
      x.read(self._iprot)
1817
      self._iprot.readMessageEnd()
1818
      raise x
1819
    result = clearItemAvailabilityCache_result()
1820
    result.read(self._iprot)
1821
    self._iprot.readMessageEnd()
1822
    return
1823
 
1824
  def updateVendorString(self, warehouseId, vendorString):
1825
    """
1826
    Parameters:
1827
     - warehouseId
1828
     - vendorString
1829
    """
1830
    self.send_updateVendorString(warehouseId, vendorString)
1831
    self.recv_updateVendorString()
1832
 
1833
  def send_updateVendorString(self, warehouseId, vendorString):
1834
    self._oprot.writeMessageBegin('updateVendorString', TMessageType.CALL, self._seqid)
1835
    args = updateVendorString_args()
1836
    args.warehouseId = warehouseId
1837
    args.vendorString = vendorString
1838
    args.write(self._oprot)
1839
    self._oprot.writeMessageEnd()
1840
    self._oprot.trans.flush()
1841
 
1842
  def recv_updateVendorString(self, ):
1843
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1844
    if mtype == TMessageType.EXCEPTION:
1845
      x = TApplicationException()
1846
      x.read(self._iprot)
1847
      self._iprot.readMessageEnd()
1848
      raise x
1849
    result = updateVendorString_result()
1850
    result.read(self._iprot)
1851
    self._iprot.readMessageEnd()
1852
    return
1853
 
6096 amit.gupta 1854
  def clearItemAvailabilityCacheForItem(self, item_id):
1855
    """
1856
    Parameters:
1857
     - item_id
1858
    """
1859
    self.send_clearItemAvailabilityCacheForItem(item_id)
1860
    self.recv_clearItemAvailabilityCacheForItem()
5944 mandeep.dh 1861
 
6096 amit.gupta 1862
  def send_clearItemAvailabilityCacheForItem(self, item_id):
1863
    self._oprot.writeMessageBegin('clearItemAvailabilityCacheForItem', TMessageType.CALL, self._seqid)
1864
    args = clearItemAvailabilityCacheForItem_args()
1865
    args.item_id = item_id
1866
    args.write(self._oprot)
1867
    self._oprot.writeMessageEnd()
1868
    self._oprot.trans.flush()
1869
 
1870
  def recv_clearItemAvailabilityCacheForItem(self, ):
1871
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1872
    if mtype == TMessageType.EXCEPTION:
1873
      x = TApplicationException()
1874
      x.read(self._iprot)
1875
      self._iprot.readMessageEnd()
1876
      raise x
1877
    result = clearItemAvailabilityCacheForItem_result()
1878
    result.read(self._iprot)
1879
    self._iprot.readMessageEnd()
1880
    return
1881
 
7718 amar.kumar 1882
  def getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1883
    """
1884
    Parameters:
1885
     - vendorId
7718 amar.kumar 1886
     - billingWarehouseId
6467 amar.kumar 1887
    """
7718 amar.kumar 1888
    self.send_getOurWarehouseIdForVendor(vendorId, billingWarehouseId)
6467 amar.kumar 1889
    return self.recv_getOurWarehouseIdForVendor()
6096 amit.gupta 1890
 
7718 amar.kumar 1891
  def send_getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1892
    self._oprot.writeMessageBegin('getOurWarehouseIdForVendor', TMessageType.CALL, self._seqid)
1893
    args = getOurWarehouseIdForVendor_args()
1894
    args.vendorId = vendorId
7718 amar.kumar 1895
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 1896
    args.write(self._oprot)
1897
    self._oprot.writeMessageEnd()
1898
    self._oprot.trans.flush()
1899
 
1900
  def recv_getOurWarehouseIdForVendor(self, ):
1901
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1902
    if mtype == TMessageType.EXCEPTION:
1903
      x = TApplicationException()
1904
      x.read(self._iprot)
1905
      self._iprot.readMessageEnd()
1906
      raise x
1907
    result = getOurWarehouseIdForVendor_result()
1908
    result.read(self._iprot)
1909
    self._iprot.readMessageEnd()
1910
    if result.success is not None:
1911
      return result.success
1912
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1913
 
6484 amar.kumar 1914
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1915
    """
1916
    Parameters:
1917
     - item_ids
1918
    """
1919
    self.send_getItemAvailabilitiesAtOurWarehouses(item_ids)
1920
    return self.recv_getItemAvailabilitiesAtOurWarehouses()
6467 amar.kumar 1921
 
6484 amar.kumar 1922
  def send_getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1923
    self._oprot.writeMessageBegin('getItemAvailabilitiesAtOurWarehouses', TMessageType.CALL, self._seqid)
1924
    args = getItemAvailabilitiesAtOurWarehouses_args()
1925
    args.item_ids = item_ids
1926
    args.write(self._oprot)
1927
    self._oprot.writeMessageEnd()
1928
    self._oprot.trans.flush()
1929
 
1930
  def recv_getItemAvailabilitiesAtOurWarehouses(self, ):
1931
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1932
    if mtype == TMessageType.EXCEPTION:
1933
      x = TApplicationException()
1934
      x.read(self._iprot)
1935
      self._iprot.readMessageEnd()
1936
      raise x
1937
    result = getItemAvailabilitiesAtOurWarehouses_result()
1938
    result.read(self._iprot)
1939
    self._iprot.readMessageEnd()
1940
    if result.success is not None:
1941
      return result.success
1942
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
1943
 
6531 vikram.rag 1944
  def getMonitoredWarehouseForVendors(self, vendorIds):
1945
    """
1946
    Parameters:
1947
     - vendorIds
1948
    """
1949
    self.send_getMonitoredWarehouseForVendors(vendorIds)
1950
    return self.recv_getMonitoredWarehouseForVendors()
6484 amar.kumar 1951
 
6531 vikram.rag 1952
  def send_getMonitoredWarehouseForVendors(self, vendorIds):
1953
    self._oprot.writeMessageBegin('getMonitoredWarehouseForVendors', TMessageType.CALL, self._seqid)
1954
    args = getMonitoredWarehouseForVendors_args()
1955
    args.vendorIds = vendorIds
1956
    args.write(self._oprot)
1957
    self._oprot.writeMessageEnd()
1958
    self._oprot.trans.flush()
1959
 
1960
  def recv_getMonitoredWarehouseForVendors(self, ):
1961
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1962
    if mtype == TMessageType.EXCEPTION:
1963
      x = TApplicationException()
1964
      x.read(self._iprot)
1965
      self._iprot.readMessageEnd()
1966
      raise x
1967
    result = getMonitoredWarehouseForVendors_result()
1968
    result.read(self._iprot)
1969
    self._iprot.readMessageEnd()
1970
    if result.success is not None:
1971
      return result.success
1972
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
1973
 
1974
  def getIgnoredWarehouseidsAndItemids(self, ):
1975
    self.send_getIgnoredWarehouseidsAndItemids()
1976
    return self.recv_getIgnoredWarehouseidsAndItemids()
1977
 
1978
  def send_getIgnoredWarehouseidsAndItemids(self, ):
1979
    self._oprot.writeMessageBegin('getIgnoredWarehouseidsAndItemids', TMessageType.CALL, self._seqid)
1980
    args = getIgnoredWarehouseidsAndItemids_args()
1981
    args.write(self._oprot)
1982
    self._oprot.writeMessageEnd()
1983
    self._oprot.trans.flush()
1984
 
1985
  def recv_getIgnoredWarehouseidsAndItemids(self, ):
1986
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1987
    if mtype == TMessageType.EXCEPTION:
1988
      x = TApplicationException()
1989
      x.read(self._iprot)
1990
      self._iprot.readMessageEnd()
1991
      raise x
1992
    result = getIgnoredWarehouseidsAndItemids_result()
1993
    result.read(self._iprot)
1994
    self._iprot.readMessageEnd()
1995
    if result.success is not None:
1996
      return result.success
1997
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
1998
 
1999
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2000
    """
2001
    Parameters:
2002
     - item_id
2003
     - warehouse_id
2004
    """
2005
    self.send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id)
2006
    return self.recv_insertItemtoIgnoreInventoryUpdatelist()
2007
 
2008
  def send_insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2009
    self._oprot.writeMessageBegin('insertItemtoIgnoreInventoryUpdatelist', TMessageType.CALL, self._seqid)
2010
    args = insertItemtoIgnoreInventoryUpdatelist_args()
2011
    args.item_id = item_id
2012
    args.warehouse_id = warehouse_id
2013
    args.write(self._oprot)
2014
    self._oprot.writeMessageEnd()
2015
    self._oprot.trans.flush()
2016
 
2017
  def recv_insertItemtoIgnoreInventoryUpdatelist(self, ):
2018
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2019
    if mtype == TMessageType.EXCEPTION:
2020
      x = TApplicationException()
2021
      x.read(self._iprot)
2022
      self._iprot.readMessageEnd()
2023
      raise x
2024
    result = insertItemtoIgnoreInventoryUpdatelist_result()
2025
    result.read(self._iprot)
2026
    self._iprot.readMessageEnd()
2027
    if result.success is not None:
2028
      return result.success
2029
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
2030
 
2031
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2032
    """
2033
    Parameters:
2034
     - item_id
2035
     - warehouse_id
2036
    """
2037
    self.send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id)
2038
    return self.recv_deleteItemFromIgnoredInventoryUpdateList()
2039
 
2040
  def send_deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2041
    self._oprot.writeMessageBegin('deleteItemFromIgnoredInventoryUpdateList', TMessageType.CALL, self._seqid)
2042
    args = deleteItemFromIgnoredInventoryUpdateList_args()
2043
    args.item_id = item_id
2044
    args.warehouse_id = warehouse_id
2045
    args.write(self._oprot)
2046
    self._oprot.writeMessageEnd()
2047
    self._oprot.trans.flush()
2048
 
2049
  def recv_deleteItemFromIgnoredInventoryUpdateList(self, ):
2050
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2051
    if mtype == TMessageType.EXCEPTION:
2052
      x = TApplicationException()
2053
      x.read(self._iprot)
2054
      self._iprot.readMessageEnd()
2055
      raise x
2056
    result = deleteItemFromIgnoredInventoryUpdateList_result()
2057
    result.read(self._iprot)
2058
    self._iprot.readMessageEnd()
2059
    if result.success is not None:
2060
      return result.success
2061
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
2062
 
2063
  def getAllIgnoredInventoryupdateItemsCount(self, ):
2064
    self.send_getAllIgnoredInventoryupdateItemsCount()
2065
    return self.recv_getAllIgnoredInventoryupdateItemsCount()
2066
 
2067
  def send_getAllIgnoredInventoryupdateItemsCount(self, ):
2068
    self._oprot.writeMessageBegin('getAllIgnoredInventoryupdateItemsCount', TMessageType.CALL, self._seqid)
2069
    args = getAllIgnoredInventoryupdateItemsCount_args()
2070
    args.write(self._oprot)
2071
    self._oprot.writeMessageEnd()
2072
    self._oprot.trans.flush()
2073
 
2074
  def recv_getAllIgnoredInventoryupdateItemsCount(self, ):
2075
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2076
    if mtype == TMessageType.EXCEPTION:
2077
      x = TApplicationException()
2078
      x.read(self._iprot)
2079
      self._iprot.readMessageEnd()
2080
      raise x
2081
    result = getAllIgnoredInventoryupdateItemsCount_result()
2082
    result.read(self._iprot)
2083
    self._iprot.readMessageEnd()
2084
    if result.success is not None:
2085
      return result.success
2086
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
2087
 
2088
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
2089
    """
2090
    Parameters:
2091
     - offset
2092
     - limit
2093
    """
2094
    self.send_getIgnoredInventoryUpdateItemids(offset, limit)
2095
    return self.recv_getIgnoredInventoryUpdateItemids()
2096
 
2097
  def send_getIgnoredInventoryUpdateItemids(self, offset, limit):
2098
    self._oprot.writeMessageBegin('getIgnoredInventoryUpdateItemids', TMessageType.CALL, self._seqid)
2099
    args = getIgnoredInventoryUpdateItemids_args()
2100
    args.offset = offset
2101
    args.limit = limit
2102
    args.write(self._oprot)
2103
    self._oprot.writeMessageEnd()
2104
    self._oprot.trans.flush()
2105
 
2106
  def recv_getIgnoredInventoryUpdateItemids(self, ):
2107
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2108
    if mtype == TMessageType.EXCEPTION:
2109
      x = TApplicationException()
2110
      x.read(self._iprot)
2111
      self._iprot.readMessageEnd()
2112
      raise x
2113
    result = getIgnoredInventoryUpdateItemids_result()
2114
    result.read(self._iprot)
2115
    self._iprot.readMessageEnd()
2116
    if result.success is not None:
2117
      return result.success
2118
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
2119
 
6821 amar.kumar 2120
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2121
    """
2122
    Parameters:
2123
     - item_id
2124
     - numOfDaysStock
2125
     - minStockLevel
2126
    """
2127
    self.send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel)
2128
    self.recv_updateItemStockPurchaseParams()
6531 vikram.rag 2129
 
6821 amar.kumar 2130
  def send_updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2131
    self._oprot.writeMessageBegin('updateItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2132
    args = updateItemStockPurchaseParams_args()
2133
    args.item_id = item_id
2134
    args.numOfDaysStock = numOfDaysStock
2135
    args.minStockLevel = minStockLevel
2136
    args.write(self._oprot)
2137
    self._oprot.writeMessageEnd()
2138
    self._oprot.trans.flush()
2139
 
2140
  def recv_updateItemStockPurchaseParams(self, ):
2141
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2142
    if mtype == TMessageType.EXCEPTION:
2143
      x = TApplicationException()
2144
      x.read(self._iprot)
2145
      self._iprot.readMessageEnd()
2146
      raise x
2147
    result = updateItemStockPurchaseParams_result()
2148
    result.read(self._iprot)
2149
    self._iprot.readMessageEnd()
2150
    return
2151
 
2152
  def getItemStockPurchaseParams(self, itemId):
2153
    """
2154
    Parameters:
2155
     - itemId
2156
    """
2157
    self.send_getItemStockPurchaseParams(itemId)
2158
    return self.recv_getItemStockPurchaseParams()
2159
 
2160
  def send_getItemStockPurchaseParams(self, itemId):
2161
    self._oprot.writeMessageBegin('getItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2162
    args = getItemStockPurchaseParams_args()
2163
    args.itemId = itemId
2164
    args.write(self._oprot)
2165
    self._oprot.writeMessageEnd()
2166
    self._oprot.trans.flush()
2167
 
2168
  def recv_getItemStockPurchaseParams(self, ):
2169
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2170
    if mtype == TMessageType.EXCEPTION:
2171
      x = TApplicationException()
2172
      x.read(self._iprot)
2173
      self._iprot.readMessageEnd()
2174
      raise x
2175
    result = getItemStockPurchaseParams_result()
2176
    result.read(self._iprot)
2177
    self._iprot.readMessageEnd()
2178
    if result.success is not None:
2179
      return result.success
2180
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
2181
 
2182
  def addOosStatusForItem(self, oosStatusMap, date):
2183
    """
2184
    Parameters:
2185
     - oosStatusMap
2186
     - date
2187
    """
2188
    self.send_addOosStatusForItem(oosStatusMap, date)
2189
    self.recv_addOosStatusForItem()
2190
 
2191
  def send_addOosStatusForItem(self, oosStatusMap, date):
2192
    self._oprot.writeMessageBegin('addOosStatusForItem', TMessageType.CALL, self._seqid)
2193
    args = addOosStatusForItem_args()
2194
    args.oosStatusMap = oosStatusMap
2195
    args.date = date
2196
    args.write(self._oprot)
2197
    self._oprot.writeMessageEnd()
2198
    self._oprot.trans.flush()
2199
 
2200
  def recv_addOosStatusForItem(self, ):
2201
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2202
    if mtype == TMessageType.EXCEPTION:
2203
      x = TApplicationException()
2204
      x.read(self._iprot)
2205
      self._iprot.readMessageEnd()
2206
      raise x
2207
    result = addOosStatusForItem_result()
2208
    result.read(self._iprot)
2209
    self._iprot.readMessageEnd()
2210
    return
2211
 
9762 amar.kumar 2212
  def getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2213
    """
2214
    Parameters:
2215
     - itemId
9762 amar.kumar 2216
     - sourceId
6832 amar.kumar 2217
     - days
2218
    """
9762 amar.kumar 2219
    self.send_getOosStatusesForXDaysForItem(itemId, sourceId, days)
6832 amar.kumar 2220
    return self.recv_getOosStatusesForXDaysForItem()
6821 amar.kumar 2221
 
9762 amar.kumar 2222
  def send_getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2223
    self._oprot.writeMessageBegin('getOosStatusesForXDaysForItem', TMessageType.CALL, self._seqid)
2224
    args = getOosStatusesForXDaysForItem_args()
2225
    args.itemId = itemId
9762 amar.kumar 2226
    args.sourceId = sourceId
6832 amar.kumar 2227
    args.days = days
2228
    args.write(self._oprot)
2229
    self._oprot.writeMessageEnd()
2230
    self._oprot.trans.flush()
2231
 
2232
  def recv_getOosStatusesForXDaysForItem(self, ):
2233
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2234
    if mtype == TMessageType.EXCEPTION:
2235
      x = TApplicationException()
2236
      x.read(self._iprot)
2237
      self._iprot.readMessageEnd()
2238
      raise x
2239
    result = getOosStatusesForXDaysForItem_result()
2240
    result.read(self._iprot)
2241
    self._iprot.readMessageEnd()
2242
    if result.success is not None:
2243
      return result.success
2244
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
2245
 
6857 amar.kumar 2246
  def getNonZeroItemStockPurchaseParams(self, ):
2247
    self.send_getNonZeroItemStockPurchaseParams()
2248
    return self.recv_getNonZeroItemStockPurchaseParams()
6832 amar.kumar 2249
 
6857 amar.kumar 2250
  def send_getNonZeroItemStockPurchaseParams(self, ):
2251
    self._oprot.writeMessageBegin('getNonZeroItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2252
    args = getNonZeroItemStockPurchaseParams_args()
2253
    args.write(self._oprot)
2254
    self._oprot.writeMessageEnd()
2255
    self._oprot.trans.flush()
2256
 
2257
  def recv_getNonZeroItemStockPurchaseParams(self, ):
2258
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2259
    if mtype == TMessageType.EXCEPTION:
2260
      x = TApplicationException()
2261
      x.read(self._iprot)
2262
      self._iprot.readMessageEnd()
2263
      raise x
2264
    result = getNonZeroItemStockPurchaseParams_result()
2265
    result.read(self._iprot)
2266
    self._iprot.readMessageEnd()
2267
    if result.success is not None:
2268
      return result.success
2269
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
2270
 
7149 amar.kumar 2271
  def getBillableInventoryAndPendingOrders(self, ):
2272
    """
2273
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
2274
    """
2275
    self.send_getBillableInventoryAndPendingOrders()
2276
    return self.recv_getBillableInventoryAndPendingOrders()
6857 amar.kumar 2277
 
7149 amar.kumar 2278
  def send_getBillableInventoryAndPendingOrders(self, ):
2279
    self._oprot.writeMessageBegin('getBillableInventoryAndPendingOrders', TMessageType.CALL, self._seqid)
2280
    args = getBillableInventoryAndPendingOrders_args()
2281
    args.write(self._oprot)
2282
    self._oprot.writeMessageEnd()
2283
    self._oprot.trans.flush()
2284
 
2285
  def recv_getBillableInventoryAndPendingOrders(self, ):
2286
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2287
    if mtype == TMessageType.EXCEPTION:
2288
      x = TApplicationException()
2289
      x.read(self._iprot)
2290
      self._iprot.readMessageEnd()
2291
      raise x
2292
    result = getBillableInventoryAndPendingOrders_result()
2293
    result.read(self._iprot)
2294
    self._iprot.readMessageEnd()
2295
    if result.success is not None:
2296
      return result.success
2297
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
2298
 
7281 kshitij.so 2299
  def getWarehouseName(self, warehouse_id):
2300
    """
2301
    Parameters:
2302
     - warehouse_id
2303
    """
2304
    self.send_getWarehouseName(warehouse_id)
2305
    return self.recv_getWarehouseName()
7149 amar.kumar 2306
 
7281 kshitij.so 2307
  def send_getWarehouseName(self, warehouse_id):
2308
    self._oprot.writeMessageBegin('getWarehouseName', TMessageType.CALL, self._seqid)
2309
    args = getWarehouseName_args()
2310
    args.warehouse_id = warehouse_id
2311
    args.write(self._oprot)
2312
    self._oprot.writeMessageEnd()
2313
    self._oprot.trans.flush()
2314
 
2315
  def recv_getWarehouseName(self, ):
2316
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2317
    if mtype == TMessageType.EXCEPTION:
2318
      x = TApplicationException()
2319
      x.read(self._iprot)
2320
      self._iprot.readMessageEnd()
2321
      raise x
2322
    result = getWarehouseName_result()
2323
    result.read(self._iprot)
2324
    self._iprot.readMessageEnd()
2325
    if result.success is not None:
2326
      return result.success
2327
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseName failed: unknown result");
2328
 
2329
  def getAmazonInventoryForItem(self, item_id):
2330
    """
2331
    Parameters:
2332
     - item_id
2333
    """
2334
    self.send_getAmazonInventoryForItem(item_id)
2335
    return self.recv_getAmazonInventoryForItem()
2336
 
2337
  def send_getAmazonInventoryForItem(self, item_id):
2338
    self._oprot.writeMessageBegin('getAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2339
    args = getAmazonInventoryForItem_args()
2340
    args.item_id = item_id
2341
    args.write(self._oprot)
2342
    self._oprot.writeMessageEnd()
2343
    self._oprot.trans.flush()
2344
 
2345
  def recv_getAmazonInventoryForItem(self, ):
2346
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2347
    if mtype == TMessageType.EXCEPTION:
2348
      x = TApplicationException()
2349
      x.read(self._iprot)
2350
      self._iprot.readMessageEnd()
2351
      raise x
2352
    result = getAmazonInventoryForItem_result()
2353
    result.read(self._iprot)
2354
    self._iprot.readMessageEnd()
2355
    if result.success is not None:
2356
      return result.success
2357
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonInventoryForItem failed: unknown result");
2358
 
2359
  def getAllAmazonInventory(self, ):
2360
    self.send_getAllAmazonInventory()
2361
    return self.recv_getAllAmazonInventory()
2362
 
2363
  def send_getAllAmazonInventory(self, ):
2364
    self._oprot.writeMessageBegin('getAllAmazonInventory', TMessageType.CALL, self._seqid)
2365
    args = getAllAmazonInventory_args()
2366
    args.write(self._oprot)
2367
    self._oprot.writeMessageEnd()
2368
    self._oprot.trans.flush()
2369
 
2370
  def recv_getAllAmazonInventory(self, ):
2371
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2372
    if mtype == TMessageType.EXCEPTION:
2373
      x = TApplicationException()
2374
      x.read(self._iprot)
2375
      self._iprot.readMessageEnd()
2376
      raise x
2377
    result = getAllAmazonInventory_result()
2378
    result.read(self._iprot)
2379
    self._iprot.readMessageEnd()
2380
    if result.success is not None:
2381
      return result.success
2382
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonInventory failed: unknown result");
2383
 
2384
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot):
2385
    """
2386
    Parameters:
2387
     - amazonInventorySnapshot
2388
    """
2389
    self.send_addOrUpdateAmazonInventoryForItem(amazonInventorySnapshot)
2390
    self.recv_addOrUpdateAmazonInventoryForItem()
2391
 
2392
  def send_addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot):
2393
    self._oprot.writeMessageBegin('addOrUpdateAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2394
    args = addOrUpdateAmazonInventoryForItem_args()
2395
    args.amazonInventorySnapshot = amazonInventorySnapshot
2396
    args.write(self._oprot)
2397
    self._oprot.writeMessageEnd()
2398
    self._oprot.trans.flush()
2399
 
2400
  def recv_addOrUpdateAmazonInventoryForItem(self, ):
2401
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2402
    if mtype == TMessageType.EXCEPTION:
2403
      x = TApplicationException()
2404
      x.read(self._iprot)
2405
      self._iprot.readMessageEnd()
2406
      raise x
2407
    result = addOrUpdateAmazonInventoryForItem_result()
2408
    result.read(self._iprot)
2409
    self._iprot.readMessageEnd()
2410
    return
2411
 
7972 amar.kumar 2412
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
2413
    """
2414
    Parameters:
2415
     - itemId
2416
     - numberOfDays
2417
    """
2418
    self.send_getLastNdaySaleForItem(itemId, numberOfDays)
2419
    return self.recv_getLastNdaySaleForItem()
7281 kshitij.so 2420
 
7972 amar.kumar 2421
  def send_getLastNdaySaleForItem(self, itemId, numberOfDays):
2422
    self._oprot.writeMessageBegin('getLastNdaySaleForItem', TMessageType.CALL, self._seqid)
2423
    args = getLastNdaySaleForItem_args()
2424
    args.itemId = itemId
2425
    args.numberOfDays = numberOfDays
2426
    args.write(self._oprot)
2427
    self._oprot.writeMessageEnd()
2428
    self._oprot.trans.flush()
2429
 
2430
  def recv_getLastNdaySaleForItem(self, ):
2431
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2432
    if mtype == TMessageType.EXCEPTION:
2433
      x = TApplicationException()
2434
      x.read(self._iprot)
2435
      self._iprot.readMessageEnd()
2436
      raise x
2437
    result = getLastNdaySaleForItem_result()
2438
    result.read(self._iprot)
2439
    self._iprot.readMessageEnd()
2440
    if result.success is not None:
2441
      return result.success
2442
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastNdaySaleForItem failed: unknown result");
2443
 
8282 kshitij.so 2444
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2445
    """
2446
    Parameters:
2447
     - amazonfbainventorysnapshot
2448
    """
2449
    self.send_addOrUpdateAmazonFbaInventory(amazonfbainventorysnapshot)
2450
    self.recv_addOrUpdateAmazonFbaInventory()
2451
 
2452
  def send_addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2453
    self._oprot.writeMessageBegin('addOrUpdateAmazonFbaInventory', TMessageType.CALL, self._seqid)
2454
    args = addOrUpdateAmazonFbaInventory_args()
2455
    args.amazonfbainventorysnapshot = amazonfbainventorysnapshot
2456
    args.write(self._oprot)
2457
    self._oprot.writeMessageEnd()
2458
    self._oprot.trans.flush()
2459
 
2460
  def recv_addOrUpdateAmazonFbaInventory(self, ):
2461
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2462
    if mtype == TMessageType.EXCEPTION:
2463
      x = TApplicationException()
2464
      x.read(self._iprot)
2465
      self._iprot.readMessageEnd()
2466
      raise x
2467
    result = addOrUpdateAmazonFbaInventory_result()
2468
    result.read(self._iprot)
2469
    self._iprot.readMessageEnd()
2470
    return
2471
 
8182 amar.kumar 2472
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2473
    """
2474
    Parameters:
2475
     - itemId
2476
     - warehouseId
2477
     - holdQuantity
2478
     - source
2479
    """
2480
    self.send_addUpdateHoldInventory(itemId, warehouseId, holdQuantity, source)
2481
    self.recv_addUpdateHoldInventory()
7972 amar.kumar 2482
 
8182 amar.kumar 2483
  def send_addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2484
    self._oprot.writeMessageBegin('addUpdateHoldInventory', TMessageType.CALL, self._seqid)
2485
    args = addUpdateHoldInventory_args()
2486
    args.itemId = itemId
2487
    args.warehouseId = warehouseId
2488
    args.holdQuantity = holdQuantity
2489
    args.source = source
2490
    args.write(self._oprot)
2491
    self._oprot.writeMessageEnd()
2492
    self._oprot.trans.flush()
2493
 
2494
  def recv_addUpdateHoldInventory(self, ):
2495
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2496
    if mtype == TMessageType.EXCEPTION:
2497
      x = TApplicationException()
2498
      x.read(self._iprot)
2499
      self._iprot.readMessageEnd()
2500
      raise x
2501
    result = addUpdateHoldInventory_result()
2502
    result.read(self._iprot)
2503
    self._iprot.readMessageEnd()
9762 amar.kumar 2504
    if result.cex is not None:
2505
      raise result.cex
8182 amar.kumar 2506
    return
2507
 
8282 kshitij.so 2508
  def getAmazonFbaItemInventory(self, itemId):
2509
    """
2510
    Parameters:
2511
     - itemId
2512
    """
2513
    self.send_getAmazonFbaItemInventory(itemId)
2514
    return self.recv_getAmazonFbaItemInventory()
8182 amar.kumar 2515
 
8282 kshitij.so 2516
  def send_getAmazonFbaItemInventory(self, itemId):
2517
    self._oprot.writeMessageBegin('getAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2518
    args = getAmazonFbaItemInventory_args()
2519
    args.itemId = itemId
2520
    args.write(self._oprot)
2521
    self._oprot.writeMessageEnd()
2522
    self._oprot.trans.flush()
2523
 
2524
  def recv_getAmazonFbaItemInventory(self, ):
2525
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2526
    if mtype == TMessageType.EXCEPTION:
2527
      x = TApplicationException()
2528
      x.read(self._iprot)
2529
      self._iprot.readMessageEnd()
2530
      raise x
2531
    result = getAmazonFbaItemInventory_result()
2532
    result.read(self._iprot)
2533
    self._iprot.readMessageEnd()
2534
    if result.success is not None:
2535
      return result.success
2536
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonFbaItemInventory failed: unknown result");
2537
 
8363 vikram.rag 2538
  def getAllAmazonFbaItemInventory(self, ):
2539
    self.send_getAllAmazonFbaItemInventory()
2540
    return self.recv_getAllAmazonFbaItemInventory()
8282 kshitij.so 2541
 
8363 vikram.rag 2542
  def send_getAllAmazonFbaItemInventory(self, ):
2543
    self._oprot.writeMessageBegin('getAllAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2544
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 2545
    args.write(self._oprot)
2546
    self._oprot.writeMessageEnd()
2547
    self._oprot.trans.flush()
2548
 
8363 vikram.rag 2549
  def recv_getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 2550
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2551
    if mtype == TMessageType.EXCEPTION:
2552
      x = TApplicationException()
2553
      x.read(self._iprot)
2554
      self._iprot.readMessageEnd()
2555
      raise x
8363 vikram.rag 2556
    result = getAllAmazonFbaItemInventory_result()
8282 kshitij.so 2557
    result.read(self._iprot)
2558
    self._iprot.readMessageEnd()
2559
    if result.success is not None:
2560
      return result.success
8363 vikram.rag 2561
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonFbaItemInventory failed: unknown result");
8282 kshitij.so 2562
 
8363 vikram.rag 2563
  def getOursGoodWarehouseIdsForLocation(self, state_id):
2564
    """
2565
    Parameters:
2566
     - state_id
2567
    """
2568
    self.send_getOursGoodWarehouseIdsForLocation(state_id)
2569
    return self.recv_getOursGoodWarehouseIdsForLocation()
8282 kshitij.so 2570
 
8363 vikram.rag 2571
  def send_getOursGoodWarehouseIdsForLocation(self, state_id):
2572
    self._oprot.writeMessageBegin('getOursGoodWarehouseIdsForLocation', TMessageType.CALL, self._seqid)
2573
    args = getOursGoodWarehouseIdsForLocation_args()
2574
    args.state_id = state_id
2575
    args.write(self._oprot)
2576
    self._oprot.writeMessageEnd()
2577
    self._oprot.trans.flush()
2578
 
2579
  def recv_getOursGoodWarehouseIdsForLocation(self, ):
2580
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2581
    if mtype == TMessageType.EXCEPTION:
2582
      x = TApplicationException()
2583
      x.read(self._iprot)
2584
      self._iprot.readMessageEnd()
2585
      raise x
2586
    result = getOursGoodWarehouseIdsForLocation_result()
2587
    result.read(self._iprot)
2588
    self._iprot.readMessageEnd()
2589
    if result.success is not None:
2590
      return result.success
2591
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOursGoodWarehouseIdsForLocation failed: unknown result");
2592
 
8955 vikram.rag 2593
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2594
    """
2595
    Parameters:
2596
     - id
2597
     - warehouse_id
2598
     - source
2599
    """
2600
    self.send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(id, warehouse_id, source)
2601
    return self.recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource()
8363 vikram.rag 2602
 
8955 vikram.rag 2603
  def send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2604
    self._oprot.writeMessageBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource', TMessageType.CALL, self._seqid)
2605
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
2606
    args.id = id
2607
    args.warehouse_id = warehouse_id
2608
    args.source = source
2609
    args.write(self._oprot)
2610
    self._oprot.writeMessageEnd()
2611
    self._oprot.trans.flush()
2612
 
2613
  def recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, ):
2614
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2615
    if mtype == TMessageType.EXCEPTION:
2616
      x = TApplicationException()
2617
      x.read(self._iprot)
2618
      self._iprot.readMessageEnd()
2619
      raise x
2620
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
2621
    result.read(self._iprot)
2622
    self._iprot.readMessageEnd()
2623
    if result.success is not None:
2624
      return result.success
2625
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetailForItemForWarehouseIdExceptSource failed: unknown result");
2626
 
9404 vikram.rag 2627
  def getSnapdealInventoryForItem(self, item_id):
2628
    """
2629
    Parameters:
2630
     - item_id
2631
    """
2632
    self.send_getSnapdealInventoryForItem(item_id)
2633
    return self.recv_getSnapdealInventoryForItem()
8955 vikram.rag 2634
 
9404 vikram.rag 2635
  def send_getSnapdealInventoryForItem(self, item_id):
2636
    self._oprot.writeMessageBegin('getSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2637
    args = getSnapdealInventoryForItem_args()
2638
    args.item_id = item_id
2639
    args.write(self._oprot)
2640
    self._oprot.writeMessageEnd()
2641
    self._oprot.trans.flush()
2642
 
2643
  def recv_getSnapdealInventoryForItem(self, ):
2644
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2645
    if mtype == TMessageType.EXCEPTION:
2646
      x = TApplicationException()
2647
      x.read(self._iprot)
2648
      self._iprot.readMessageEnd()
2649
      raise x
2650
    result = getSnapdealInventoryForItem_result()
2651
    result.read(self._iprot)
2652
    self._iprot.readMessageEnd()
2653
    if result.success is not None:
2654
      return result.success
2655
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventoryForItem failed: unknown result");
2656
 
2657
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2658
    """
2659
    Parameters:
2660
     - snapdealinventoryitem
2661
    """
2662
    self.send_addOrUpdateSnapdealInventoryForItem(snapdealinventoryitem)
2663
    self.recv_addOrUpdateSnapdealInventoryForItem()
2664
 
2665
  def send_addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2666
    self._oprot.writeMessageBegin('addOrUpdateSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2667
    args = addOrUpdateSnapdealInventoryForItem_args()
2668
    args.snapdealinventoryitem = snapdealinventoryitem
2669
    args.write(self._oprot)
2670
    self._oprot.writeMessageEnd()
2671
    self._oprot.trans.flush()
2672
 
2673
  def recv_addOrUpdateSnapdealInventoryForItem(self, ):
2674
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2675
    if mtype == TMessageType.EXCEPTION:
2676
      x = TApplicationException()
2677
      x.read(self._iprot)
2678
      self._iprot.readMessageEnd()
2679
      raise x
2680
    result = addOrUpdateSnapdealInventoryForItem_result()
2681
    result.read(self._iprot)
2682
    self._iprot.readMessageEnd()
2683
    return
2684
 
2685
  def getNlcForWarehouse(self, warehouse_id, item_id):
2686
    """
2687
    Parameters:
2688
     - warehouse_id
2689
     - item_id
2690
    """
2691
    self.send_getNlcForWarehouse(warehouse_id, item_id)
2692
    return self.recv_getNlcForWarehouse()
2693
 
2694
  def send_getNlcForWarehouse(self, warehouse_id, item_id):
2695
    self._oprot.writeMessageBegin('getNlcForWarehouse', TMessageType.CALL, self._seqid)
2696
    args = getNlcForWarehouse_args()
2697
    args.warehouse_id = warehouse_id
2698
    args.item_id = item_id
2699
    args.write(self._oprot)
2700
    self._oprot.writeMessageEnd()
2701
    self._oprot.trans.flush()
2702
 
2703
  def recv_getNlcForWarehouse(self, ):
2704
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2705
    if mtype == TMessageType.EXCEPTION:
2706
      x = TApplicationException()
2707
      x.read(self._iprot)
2708
      self._iprot.readMessageEnd()
2709
      raise x
2710
    result = getNlcForWarehouse_result()
2711
    result.read(self._iprot)
2712
    self._iprot.readMessageEnd()
2713
    if result.success is not None:
2714
      return result.success
2715
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
2716
 
9640 amar.kumar 2717
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
2718
    """
2719
    Parameters:
2720
     - item_id
2721
     - warehouse_id
2722
    """
2723
    self.send_getHeldInventoryMapForItem(item_id, warehouse_id)
2724
    return self.recv_getHeldInventoryMapForItem()
2725
 
2726
  def send_getHeldInventoryMapForItem(self, item_id, warehouse_id):
2727
    self._oprot.writeMessageBegin('getHeldInventoryMapForItem', TMessageType.CALL, self._seqid)
2728
    args = getHeldInventoryMapForItem_args()
2729
    args.item_id = item_id
2730
    args.warehouse_id = warehouse_id
2731
    args.write(self._oprot)
2732
    self._oprot.writeMessageEnd()
2733
    self._oprot.trans.flush()
2734
 
2735
  def recv_getHeldInventoryMapForItem(self, ):
2736
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2737
    if mtype == TMessageType.EXCEPTION:
2738
      x = TApplicationException()
2739
      x.read(self._iprot)
2740
      self._iprot.readMessageEnd()
2741
      raise x
2742
    result = getHeldInventoryMapForItem_result()
2743
    result.read(self._iprot)
2744
    self._iprot.readMessageEnd()
2745
    if result.success is not None:
2746
      return result.success
2747
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHeldInventoryMapForItem failed: unknown result");
2748
 
9495 vikram.rag 2749
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2750
    """
2751
    Parameters:
2752
     - allamazonfbainventorysnapshot
2753
    """
2754
    self.send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot)
2755
    self.recv_addOrUpdateAllAmazonFbaInventory()
9404 vikram.rag 2756
 
9495 vikram.rag 2757
  def send_addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2758
    self._oprot.writeMessageBegin('addOrUpdateAllAmazonFbaInventory', TMessageType.CALL, self._seqid)
2759
    args = addOrUpdateAllAmazonFbaInventory_args()
2760
    args.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 2761
    args.write(self._oprot)
2762
    self._oprot.writeMessageEnd()
2763
    self._oprot.trans.flush()
2764
 
9495 vikram.rag 2765
  def recv_addOrUpdateAllAmazonFbaInventory(self, ):
9456 vikram.rag 2766
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2767
    if mtype == TMessageType.EXCEPTION:
2768
      x = TApplicationException()
2769
      x.read(self._iprot)
2770
      self._iprot.readMessageEnd()
2771
      raise x
9495 vikram.rag 2772
    result = addOrUpdateAllAmazonFbaInventory_result()
9456 vikram.rag 2773
    result.read(self._iprot)
2774
    self._iprot.readMessageEnd()
9495 vikram.rag 2775
    return
9456 vikram.rag 2776
 
9495 vikram.rag 2777
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
9482 vikram.rag 2778
    """
2779
    Parameters:
9495 vikram.rag 2780
     - allsnapdealinventorysnapshot
9482 vikram.rag 2781
    """
9495 vikram.rag 2782
    self.send_addOrUpdateAllSnapdealInventory(allsnapdealinventorysnapshot)
2783
    self.recv_addOrUpdateAllSnapdealInventory()
9456 vikram.rag 2784
 
9495 vikram.rag 2785
  def send_addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
2786
    self._oprot.writeMessageBegin('addOrUpdateAllSnapdealInventory', TMessageType.CALL, self._seqid)
2787
    args = addOrUpdateAllSnapdealInventory_args()
2788
    args.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 2789
    args.write(self._oprot)
2790
    self._oprot.writeMessageEnd()
2791
    self._oprot.trans.flush()
2792
 
9495 vikram.rag 2793
  def recv_addOrUpdateAllSnapdealInventory(self, ):
9482 vikram.rag 2794
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2795
    if mtype == TMessageType.EXCEPTION:
2796
      x = TApplicationException()
2797
      x.read(self._iprot)
2798
      self._iprot.readMessageEnd()
2799
      raise x
9495 vikram.rag 2800
    result = addOrUpdateAllSnapdealInventory_result()
9482 vikram.rag 2801
    result.read(self._iprot)
2802
    self._iprot.readMessageEnd()
2803
    return
2804
 
9495 vikram.rag 2805
  def getSnapdealInventorySnapshot(self, ):
2806
    self.send_getSnapdealInventorySnapshot()
2807
    return self.recv_getSnapdealInventorySnapshot()
9482 vikram.rag 2808
 
9495 vikram.rag 2809
  def send_getSnapdealInventorySnapshot(self, ):
2810
    self._oprot.writeMessageBegin('getSnapdealInventorySnapshot', TMessageType.CALL, self._seqid)
2811
    args = getSnapdealInventorySnapshot_args()
2812
    args.write(self._oprot)
2813
    self._oprot.writeMessageEnd()
2814
    self._oprot.trans.flush()
2815
 
2816
  def recv_getSnapdealInventorySnapshot(self, ):
2817
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2818
    if mtype == TMessageType.EXCEPTION:
2819
      x = TApplicationException()
2820
      x.read(self._iprot)
2821
      self._iprot.readMessageEnd()
2822
      raise x
2823
    result = getSnapdealInventorySnapshot_result()
2824
    result.read(self._iprot)
2825
    self._iprot.readMessageEnd()
2826
    if result.success is not None:
2827
      return result.success
2828
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventorySnapshot failed: unknown result");
2829
 
9761 amar.kumar 2830
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
2831
    """
2832
    Parameters:
2833
     - itemId
2834
     - warehouseId
2835
     - source
2836
    """
2837
    self.send_getHoldInventoryDetails(itemId, warehouseId, source)
2838
    return self.recv_getHoldInventoryDetails()
9495 vikram.rag 2839
 
9761 amar.kumar 2840
  def send_getHoldInventoryDetails(self, itemId, warehouseId, source):
2841
    self._oprot.writeMessageBegin('getHoldInventoryDetails', TMessageType.CALL, self._seqid)
2842
    args = getHoldInventoryDetails_args()
2843
    args.itemId = itemId
2844
    args.warehouseId = warehouseId
2845
    args.source = source
2846
    args.write(self._oprot)
2847
    self._oprot.writeMessageEnd()
2848
    self._oprot.trans.flush()
2849
 
2850
  def recv_getHoldInventoryDetails(self, ):
2851
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2852
    if mtype == TMessageType.EXCEPTION:
2853
      x = TApplicationException()
2854
      x.read(self._iprot)
2855
      self._iprot.readMessageEnd()
2856
      raise x
2857
    result = getHoldInventoryDetails_result()
2858
    result.read(self._iprot)
2859
    self._iprot.readMessageEnd()
2860
    if result.success is not None:
2861
      return result.success
2862
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetails failed: unknown result");
2863
 
2864
 
5944 mandeep.dh 2865
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2866
  def __init__(self, handler):
2867
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2868
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
2869
    self._processMap["addVendor"] = Processor.process_addVendor
2870
    self._processMap["updateInventoryHistory"] = Processor.process_updateInventoryHistory
2871
    self._processMap["updateInventory"] = Processor.process_updateInventory
2872
    self._processMap["addInventory"] = Processor.process_addInventory
2873
    self._processMap["retireWarehouse"] = Processor.process_retireWarehouse
2874
    self._processMap["getItemInventoryByItemId"] = Processor.process_getItemInventoryByItemId
2875
    self._processMap["getItemAvailibilityAtWarehouse"] = Processor.process_getItemAvailibilityAtWarehouse
2876
    self._processMap["getItemAvailabilityAtLocation"] = Processor.process_getItemAvailabilityAtLocation
2877
    self._processMap["getAllWarehouses"] = Processor.process_getAllWarehouses
2878
    self._processMap["getWarehouse"] = Processor.process_getWarehouse
2879
    self._processMap["getAllItemsForWarehouse"] = Processor.process_getAllItemsForWarehouse
5966 rajveer 2880
    self._processMap["isOrderBillable"] = Processor.process_isOrderBillable
5944 mandeep.dh 2881
    self._processMap["reserveItemInWarehouse"] = Processor.process_reserveItemInWarehouse
7968 amar.kumar 2882
    self._processMap["updateReservationForOrder"] = Processor.process_updateReservationForOrder
5944 mandeep.dh 2883
    self._processMap["reduceReservationCount"] = Processor.process_reduceReservationCount
2884
    self._processMap["getItemPricing"] = Processor.process_getItemPricing
2885
    self._processMap["getAllItemPricing"] = Processor.process_getAllItemPricing
2886
    self._processMap["addVendorItemPricing"] = Processor.process_addVendorItemPricing
2887
    self._processMap["getVendor"] = Processor.process_getVendor
2888
    self._processMap["getAllVendors"] = Processor.process_getAllVendors
2889
    self._processMap["addVendorItemMapping"] = Processor.process_addVendorItemMapping
2890
    self._processMap["getVendorItemMappings"] = Processor.process_getVendorItemMappings
2891
    self._processMap["getPendingOrdersInventory"] = Processor.process_getPendingOrdersInventory
2892
    self._processMap["getWarehouses"] = Processor.process_getWarehouses
2893
    self._processMap["resetAvailability"] = Processor.process_resetAvailability
2894
    self._processMap["resetAvailabilityForWarehouse"] = Processor.process_resetAvailabilityForWarehouse
2895
    self._processMap["getItemKeysToBeProcessed"] = Processor.process_getItemKeysToBeProcessed
2896
    self._processMap["markMissedInventoryUpdatesAsProcessed"] = Processor.process_markMissedInventoryUpdatesAsProcessed
2897
    self._processMap["getIgnoredItemKeys"] = Processor.process_getIgnoredItemKeys
2898
    self._processMap["addBadInventory"] = Processor.process_addBadInventory
2899
    self._processMap["getShippingLocations"] = Processor.process_getShippingLocations
2900
    self._processMap["getAllVendorItemMappings"] = Processor.process_getAllVendorItemMappings
2901
    self._processMap["getInventorySnapshot"] = Processor.process_getInventorySnapshot
2902
    self._processMap["clearItemAvailabilityCache"] = Processor.process_clearItemAvailabilityCache
2903
    self._processMap["updateVendorString"] = Processor.process_updateVendorString
6096 amit.gupta 2904
    self._processMap["clearItemAvailabilityCacheForItem"] = Processor.process_clearItemAvailabilityCacheForItem
6467 amar.kumar 2905
    self._processMap["getOurWarehouseIdForVendor"] = Processor.process_getOurWarehouseIdForVendor
6484 amar.kumar 2906
    self._processMap["getItemAvailabilitiesAtOurWarehouses"] = Processor.process_getItemAvailabilitiesAtOurWarehouses
6531 vikram.rag 2907
    self._processMap["getMonitoredWarehouseForVendors"] = Processor.process_getMonitoredWarehouseForVendors
2908
    self._processMap["getIgnoredWarehouseidsAndItemids"] = Processor.process_getIgnoredWarehouseidsAndItemids
2909
    self._processMap["insertItemtoIgnoreInventoryUpdatelist"] = Processor.process_insertItemtoIgnoreInventoryUpdatelist
2910
    self._processMap["deleteItemFromIgnoredInventoryUpdateList"] = Processor.process_deleteItemFromIgnoredInventoryUpdateList
2911
    self._processMap["getAllIgnoredInventoryupdateItemsCount"] = Processor.process_getAllIgnoredInventoryupdateItemsCount
2912
    self._processMap["getIgnoredInventoryUpdateItemids"] = Processor.process_getIgnoredInventoryUpdateItemids
6821 amar.kumar 2913
    self._processMap["updateItemStockPurchaseParams"] = Processor.process_updateItemStockPurchaseParams
2914
    self._processMap["getItemStockPurchaseParams"] = Processor.process_getItemStockPurchaseParams
2915
    self._processMap["addOosStatusForItem"] = Processor.process_addOosStatusForItem
6832 amar.kumar 2916
    self._processMap["getOosStatusesForXDaysForItem"] = Processor.process_getOosStatusesForXDaysForItem
6857 amar.kumar 2917
    self._processMap["getNonZeroItemStockPurchaseParams"] = Processor.process_getNonZeroItemStockPurchaseParams
7149 amar.kumar 2918
    self._processMap["getBillableInventoryAndPendingOrders"] = Processor.process_getBillableInventoryAndPendingOrders
7281 kshitij.so 2919
    self._processMap["getWarehouseName"] = Processor.process_getWarehouseName
2920
    self._processMap["getAmazonInventoryForItem"] = Processor.process_getAmazonInventoryForItem
2921
    self._processMap["getAllAmazonInventory"] = Processor.process_getAllAmazonInventory
2922
    self._processMap["addOrUpdateAmazonInventoryForItem"] = Processor.process_addOrUpdateAmazonInventoryForItem
7972 amar.kumar 2923
    self._processMap["getLastNdaySaleForItem"] = Processor.process_getLastNdaySaleForItem
8282 kshitij.so 2924
    self._processMap["addOrUpdateAmazonFbaInventory"] = Processor.process_addOrUpdateAmazonFbaInventory
8182 amar.kumar 2925
    self._processMap["addUpdateHoldInventory"] = Processor.process_addUpdateHoldInventory
8282 kshitij.so 2926
    self._processMap["getAmazonFbaItemInventory"] = Processor.process_getAmazonFbaItemInventory
8363 vikram.rag 2927
    self._processMap["getAllAmazonFbaItemInventory"] = Processor.process_getAllAmazonFbaItemInventory
2928
    self._processMap["getOursGoodWarehouseIdsForLocation"] = Processor.process_getOursGoodWarehouseIdsForLocation
8955 vikram.rag 2929
    self._processMap["getHoldInventoryDetailForItemForWarehouseIdExceptSource"] = Processor.process_getHoldInventoryDetailForItemForWarehouseIdExceptSource
9404 vikram.rag 2930
    self._processMap["getSnapdealInventoryForItem"] = Processor.process_getSnapdealInventoryForItem
2931
    self._processMap["addOrUpdateSnapdealInventoryForItem"] = Processor.process_addOrUpdateSnapdealInventoryForItem
2932
    self._processMap["getNlcForWarehouse"] = Processor.process_getNlcForWarehouse
9640 amar.kumar 2933
    self._processMap["getHeldInventoryMapForItem"] = Processor.process_getHeldInventoryMapForItem
9482 vikram.rag 2934
    self._processMap["addOrUpdateAllAmazonFbaInventory"] = Processor.process_addOrUpdateAllAmazonFbaInventory
9495 vikram.rag 2935
    self._processMap["addOrUpdateAllSnapdealInventory"] = Processor.process_addOrUpdateAllSnapdealInventory
2936
    self._processMap["getSnapdealInventorySnapshot"] = Processor.process_getSnapdealInventorySnapshot
9761 amar.kumar 2937
    self._processMap["getHoldInventoryDetails"] = Processor.process_getHoldInventoryDetails
5944 mandeep.dh 2938
 
2939
  def process(self, iprot, oprot):
2940
    (name, type, seqid) = iprot.readMessageBegin()
2941
    if name not in self._processMap:
2942
      iprot.skip(TType.STRUCT)
2943
      iprot.readMessageEnd()
2944
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2945
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2946
      x.write(oprot)
2947
      oprot.writeMessageEnd()
2948
      oprot.trans.flush()
2949
      return
2950
    else:
2951
      self._processMap[name](self, seqid, iprot, oprot)
2952
    return True
2953
 
2954
  def process_addWarehouse(self, seqid, iprot, oprot):
2955
    args = addWarehouse_args()
2956
    args.read(iprot)
2957
    iprot.readMessageEnd()
2958
    result = addWarehouse_result()
2959
    try:
2960
      result.success = self._handler.addWarehouse(args.warehouse)
2961
    except InventoryServiceException, cex:
2962
      result.cex = cex
2963
    oprot.writeMessageBegin("addWarehouse", TMessageType.REPLY, seqid)
2964
    result.write(oprot)
2965
    oprot.writeMessageEnd()
2966
    oprot.trans.flush()
2967
 
2968
  def process_addVendor(self, seqid, iprot, oprot):
2969
    args = addVendor_args()
2970
    args.read(iprot)
2971
    iprot.readMessageEnd()
2972
    result = addVendor_result()
2973
    try:
2974
      result.success = self._handler.addVendor(args.vendor)
2975
    except InventoryServiceException, cex:
2976
      result.cex = cex
2977
    oprot.writeMessageBegin("addVendor", TMessageType.REPLY, seqid)
2978
    result.write(oprot)
2979
    oprot.writeMessageEnd()
2980
    oprot.trans.flush()
2981
 
2982
  def process_updateInventoryHistory(self, seqid, iprot, oprot):
2983
    args = updateInventoryHistory_args()
2984
    args.read(iprot)
2985
    iprot.readMessageEnd()
2986
    result = updateInventoryHistory_result()
2987
    try:
2988
      self._handler.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability)
2989
    except InventoryServiceException, cex:
2990
      result.cex = cex
2991
    oprot.writeMessageBegin("updateInventoryHistory", TMessageType.REPLY, seqid)
2992
    result.write(oprot)
2993
    oprot.writeMessageEnd()
2994
    oprot.trans.flush()
2995
 
2996
  def process_updateInventory(self, seqid, iprot, oprot):
2997
    args = updateInventory_args()
2998
    args.read(iprot)
2999
    iprot.readMessageEnd()
3000
    result = updateInventory_result()
3001
    try:
3002
      self._handler.updateInventory(args.warehouse_id, args.timestamp, args.availability)
3003
    except InventoryServiceException, cex:
3004
      result.cex = cex
3005
    oprot.writeMessageBegin("updateInventory", TMessageType.REPLY, seqid)
3006
    result.write(oprot)
3007
    oprot.writeMessageEnd()
3008
    oprot.trans.flush()
3009
 
3010
  def process_addInventory(self, seqid, iprot, oprot):
3011
    args = addInventory_args()
3012
    args.read(iprot)
3013
    iprot.readMessageEnd()
3014
    result = addInventory_result()
3015
    try:
3016
      self._handler.addInventory(args.itemId, args.warehouseId, args.quantity)
3017
    except InventoryServiceException, cex:
3018
      result.cex = cex
3019
    oprot.writeMessageBegin("addInventory", TMessageType.REPLY, seqid)
3020
    result.write(oprot)
3021
    oprot.writeMessageEnd()
3022
    oprot.trans.flush()
3023
 
3024
  def process_retireWarehouse(self, seqid, iprot, oprot):
3025
    args = retireWarehouse_args()
3026
    args.read(iprot)
3027
    iprot.readMessageEnd()
3028
    result = retireWarehouse_result()
3029
    try:
3030
      self._handler.retireWarehouse(args.warehouse_id)
3031
    except InventoryServiceException, cex:
3032
      result.cex = cex
3033
    oprot.writeMessageBegin("retireWarehouse", TMessageType.REPLY, seqid)
3034
    result.write(oprot)
3035
    oprot.writeMessageEnd()
3036
    oprot.trans.flush()
3037
 
3038
  def process_getItemInventoryByItemId(self, seqid, iprot, oprot):
3039
    args = getItemInventoryByItemId_args()
3040
    args.read(iprot)
3041
    iprot.readMessageEnd()
3042
    result = getItemInventoryByItemId_result()
3043
    try:
3044
      result.success = self._handler.getItemInventoryByItemId(args.item_id)
3045
    except InventoryServiceException, cex:
3046
      result.cex = cex
3047
    oprot.writeMessageBegin("getItemInventoryByItemId", TMessageType.REPLY, seqid)
3048
    result.write(oprot)
3049
    oprot.writeMessageEnd()
3050
    oprot.trans.flush()
3051
 
3052
  def process_getItemAvailibilityAtWarehouse(self, seqid, iprot, oprot):
3053
    args = getItemAvailibilityAtWarehouse_args()
3054
    args.read(iprot)
3055
    iprot.readMessageEnd()
3056
    result = getItemAvailibilityAtWarehouse_result()
3057
    try:
3058
      result.success = self._handler.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id)
3059
    except InventoryServiceException, cex:
3060
      result.cex = cex
3061
    oprot.writeMessageBegin("getItemAvailibilityAtWarehouse", TMessageType.REPLY, seqid)
3062
    result.write(oprot)
3063
    oprot.writeMessageEnd()
3064
    oprot.trans.flush()
3065
 
3066
  def process_getItemAvailabilityAtLocation(self, seqid, iprot, oprot):
3067
    args = getItemAvailabilityAtLocation_args()
3068
    args.read(iprot)
3069
    iprot.readMessageEnd()
3070
    result = getItemAvailabilityAtLocation_result()
3071
    try:
5978 rajveer 3072
      result.success = self._handler.getItemAvailabilityAtLocation(args.itemId, args.sourceId)
5944 mandeep.dh 3073
    except InventoryServiceException, isex:
3074
      result.isex = isex
3075
    oprot.writeMessageBegin("getItemAvailabilityAtLocation", TMessageType.REPLY, seqid)
3076
    result.write(oprot)
3077
    oprot.writeMessageEnd()
3078
    oprot.trans.flush()
3079
 
3080
  def process_getAllWarehouses(self, seqid, iprot, oprot):
3081
    args = getAllWarehouses_args()
3082
    args.read(iprot)
3083
    iprot.readMessageEnd()
3084
    result = getAllWarehouses_result()
3085
    try:
3086
      result.success = self._handler.getAllWarehouses(args.isActive)
3087
    except InventoryServiceException, cex:
3088
      result.cex = cex
3089
    oprot.writeMessageBegin("getAllWarehouses", TMessageType.REPLY, seqid)
3090
    result.write(oprot)
3091
    oprot.writeMessageEnd()
3092
    oprot.trans.flush()
3093
 
3094
  def process_getWarehouse(self, seqid, iprot, oprot):
3095
    args = getWarehouse_args()
3096
    args.read(iprot)
3097
    iprot.readMessageEnd()
3098
    result = getWarehouse_result()
3099
    try:
3100
      result.success = self._handler.getWarehouse(args.warehouse_id)
3101
    except InventoryServiceException, cex:
3102
      result.cex = cex
3103
    oprot.writeMessageBegin("getWarehouse", TMessageType.REPLY, seqid)
3104
    result.write(oprot)
3105
    oprot.writeMessageEnd()
3106
    oprot.trans.flush()
3107
 
3108
  def process_getAllItemsForWarehouse(self, seqid, iprot, oprot):
3109
    args = getAllItemsForWarehouse_args()
3110
    args.read(iprot)
3111
    iprot.readMessageEnd()
3112
    result = getAllItemsForWarehouse_result()
3113
    try:
3114
      result.success = self._handler.getAllItemsForWarehouse(args.warehouse_id)
3115
    except InventoryServiceException, cex:
3116
      result.cex = cex
3117
    oprot.writeMessageBegin("getAllItemsForWarehouse", TMessageType.REPLY, seqid)
3118
    result.write(oprot)
3119
    oprot.writeMessageEnd()
3120
    oprot.trans.flush()
3121
 
5966 rajveer 3122
  def process_isOrderBillable(self, seqid, iprot, oprot):
3123
    args = isOrderBillable_args()
3124
    args.read(iprot)
3125
    iprot.readMessageEnd()
3126
    result = isOrderBillable_result()
3127
    result.success = self._handler.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId)
3128
    oprot.writeMessageBegin("isOrderBillable", TMessageType.REPLY, seqid)
3129
    result.write(oprot)
3130
    oprot.writeMessageEnd()
3131
    oprot.trans.flush()
3132
 
5944 mandeep.dh 3133
  def process_reserveItemInWarehouse(self, seqid, iprot, oprot):
3134
    args = reserveItemInWarehouse_args()
3135
    args.read(iprot)
3136
    iprot.readMessageEnd()
3137
    result = reserveItemInWarehouse_result()
3138
    try:
5966 rajveer 3139
      result.success = self._handler.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
5944 mandeep.dh 3140
    except InventoryServiceException, cex:
3141
      result.cex = cex
3142
    oprot.writeMessageBegin("reserveItemInWarehouse", TMessageType.REPLY, seqid)
3143
    result.write(oprot)
3144
    oprot.writeMessageEnd()
3145
    oprot.trans.flush()
3146
 
7968 amar.kumar 3147
  def process_updateReservationForOrder(self, seqid, iprot, oprot):
3148
    args = updateReservationForOrder_args()
3149
    args.read(iprot)
3150
    iprot.readMessageEnd()
3151
    result = updateReservationForOrder_result()
3152
    try:
3153
      result.success = self._handler.updateReservationForOrder(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
3154
    except InventoryServiceException, cex:
3155
      result.cex = cex
3156
    oprot.writeMessageBegin("updateReservationForOrder", TMessageType.REPLY, seqid)
3157
    result.write(oprot)
3158
    oprot.writeMessageEnd()
3159
    oprot.trans.flush()
3160
 
5944 mandeep.dh 3161
  def process_reduceReservationCount(self, seqid, iprot, oprot):
3162
    args = reduceReservationCount_args()
3163
    args.read(iprot)
3164
    iprot.readMessageEnd()
3165
    result = reduceReservationCount_result()
3166
    try:
5966 rajveer 3167
      result.success = self._handler.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity)
5944 mandeep.dh 3168
    except InventoryServiceException, cex:
3169
      result.cex = cex
3170
    oprot.writeMessageBegin("reduceReservationCount", TMessageType.REPLY, seqid)
3171
    result.write(oprot)
3172
    oprot.writeMessageEnd()
3173
    oprot.trans.flush()
3174
 
3175
  def process_getItemPricing(self, seqid, iprot, oprot):
3176
    args = getItemPricing_args()
3177
    args.read(iprot)
3178
    iprot.readMessageEnd()
3179
    result = getItemPricing_result()
3180
    try:
3181
      result.success = self._handler.getItemPricing(args.itemId, args.vendorId)
3182
    except InventoryServiceException, cex:
3183
      result.cex = cex
3184
    oprot.writeMessageBegin("getItemPricing", TMessageType.REPLY, seqid)
3185
    result.write(oprot)
3186
    oprot.writeMessageEnd()
3187
    oprot.trans.flush()
3188
 
3189
  def process_getAllItemPricing(self, seqid, iprot, oprot):
3190
    args = getAllItemPricing_args()
3191
    args.read(iprot)
3192
    iprot.readMessageEnd()
3193
    result = getAllItemPricing_result()
3194
    try:
3195
      result.success = self._handler.getAllItemPricing(args.itemId)
3196
    except InventoryServiceException, cex:
3197
      result.cex = cex
3198
    oprot.writeMessageBegin("getAllItemPricing", TMessageType.REPLY, seqid)
3199
    result.write(oprot)
3200
    oprot.writeMessageEnd()
3201
    oprot.trans.flush()
3202
 
3203
  def process_addVendorItemPricing(self, seqid, iprot, oprot):
3204
    args = addVendorItemPricing_args()
3205
    args.read(iprot)
3206
    iprot.readMessageEnd()
3207
    result = addVendorItemPricing_result()
3208
    try:
3209
      self._handler.addVendorItemPricing(args.vendorItemPricing)
3210
    except InventoryServiceException, cex:
3211
      result.cex = cex
3212
    oprot.writeMessageBegin("addVendorItemPricing", TMessageType.REPLY, seqid)
3213
    result.write(oprot)
3214
    oprot.writeMessageEnd()
3215
    oprot.trans.flush()
3216
 
3217
  def process_getVendor(self, seqid, iprot, oprot):
3218
    args = getVendor_args()
3219
    args.read(iprot)
3220
    iprot.readMessageEnd()
3221
    result = getVendor_result()
3222
    result.success = self._handler.getVendor(args.vendorId)
3223
    oprot.writeMessageBegin("getVendor", TMessageType.REPLY, seqid)
3224
    result.write(oprot)
3225
    oprot.writeMessageEnd()
3226
    oprot.trans.flush()
3227
 
3228
  def process_getAllVendors(self, seqid, iprot, oprot):
3229
    args = getAllVendors_args()
3230
    args.read(iprot)
3231
    iprot.readMessageEnd()
3232
    result = getAllVendors_result()
3233
    result.success = self._handler.getAllVendors()
3234
    oprot.writeMessageBegin("getAllVendors", TMessageType.REPLY, seqid)
3235
    result.write(oprot)
3236
    oprot.writeMessageEnd()
3237
    oprot.trans.flush()
3238
 
3239
  def process_addVendorItemMapping(self, seqid, iprot, oprot):
3240
    args = addVendorItemMapping_args()
3241
    args.read(iprot)
3242
    iprot.readMessageEnd()
3243
    result = addVendorItemMapping_result()
3244
    try:
3245
      self._handler.addVendorItemMapping(args.key, args.vendorItemMapping)
3246
    except InventoryServiceException, cex:
3247
      result.cex = cex
3248
    oprot.writeMessageBegin("addVendorItemMapping", TMessageType.REPLY, seqid)
3249
    result.write(oprot)
3250
    oprot.writeMessageEnd()
3251
    oprot.trans.flush()
3252
 
3253
  def process_getVendorItemMappings(self, seqid, iprot, oprot):
3254
    args = getVendorItemMappings_args()
3255
    args.read(iprot)
3256
    iprot.readMessageEnd()
3257
    result = getVendorItemMappings_result()
3258
    try:
3259
      result.success = self._handler.getVendorItemMappings(args.itemId)
3260
    except InventoryServiceException, cex:
3261
      result.cex = cex
3262
    oprot.writeMessageBegin("getVendorItemMappings", TMessageType.REPLY, seqid)
3263
    result.write(oprot)
3264
    oprot.writeMessageEnd()
3265
    oprot.trans.flush()
3266
 
3267
  def process_getPendingOrdersInventory(self, seqid, iprot, oprot):
3268
    args = getPendingOrdersInventory_args()
3269
    args.read(iprot)
3270
    iprot.readMessageEnd()
3271
    result = getPendingOrdersInventory_result()
3272
    result.success = self._handler.getPendingOrdersInventory(args.vendorid)
3273
    oprot.writeMessageBegin("getPendingOrdersInventory", TMessageType.REPLY, seqid)
3274
    result.write(oprot)
3275
    oprot.writeMessageEnd()
3276
    oprot.trans.flush()
3277
 
3278
  def process_getWarehouses(self, seqid, iprot, oprot):
3279
    args = getWarehouses_args()
3280
    args.read(iprot)
3281
    iprot.readMessageEnd()
3282
    result = getWarehouses_result()
3283
    result.success = self._handler.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId)
3284
    oprot.writeMessageBegin("getWarehouses", TMessageType.REPLY, seqid)
3285
    result.write(oprot)
3286
    oprot.writeMessageEnd()
3287
    oprot.trans.flush()
3288
 
3289
  def process_resetAvailability(self, seqid, iprot, oprot):
3290
    args = resetAvailability_args()
3291
    args.read(iprot)
3292
    iprot.readMessageEnd()
3293
    result = resetAvailability_result()
3294
    try:
3295
      self._handler.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId)
3296
    except InventoryServiceException, cex:
3297
      result.cex = cex
3298
    oprot.writeMessageBegin("resetAvailability", TMessageType.REPLY, seqid)
3299
    result.write(oprot)
3300
    oprot.writeMessageEnd()
3301
    oprot.trans.flush()
3302
 
3303
  def process_resetAvailabilityForWarehouse(self, seqid, iprot, oprot):
3304
    args = resetAvailabilityForWarehouse_args()
3305
    args.read(iprot)
3306
    iprot.readMessageEnd()
3307
    result = resetAvailabilityForWarehouse_result()
3308
    try:
3309
      self._handler.resetAvailabilityForWarehouse(args.warehouseId)
3310
    except InventoryServiceException, cex:
3311
      result.cex = cex
3312
    oprot.writeMessageBegin("resetAvailabilityForWarehouse", TMessageType.REPLY, seqid)
3313
    result.write(oprot)
3314
    oprot.writeMessageEnd()
3315
    oprot.trans.flush()
3316
 
3317
  def process_getItemKeysToBeProcessed(self, seqid, iprot, oprot):
3318
    args = getItemKeysToBeProcessed_args()
3319
    args.read(iprot)
3320
    iprot.readMessageEnd()
3321
    result = getItemKeysToBeProcessed_result()
3322
    result.success = self._handler.getItemKeysToBeProcessed(args.warehouseId)
3323
    oprot.writeMessageBegin("getItemKeysToBeProcessed", TMessageType.REPLY, seqid)
3324
    result.write(oprot)
3325
    oprot.writeMessageEnd()
3326
    oprot.trans.flush()
3327
 
3328
  def process_markMissedInventoryUpdatesAsProcessed(self, seqid, iprot, oprot):
3329
    args = markMissedInventoryUpdatesAsProcessed_args()
3330
    args.read(iprot)
3331
    iprot.readMessageEnd()
3332
    result = markMissedInventoryUpdatesAsProcessed_result()
3333
    self._handler.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId)
3334
    oprot.writeMessageBegin("markMissedInventoryUpdatesAsProcessed", TMessageType.REPLY, seqid)
3335
    result.write(oprot)
3336
    oprot.writeMessageEnd()
3337
    oprot.trans.flush()
3338
 
3339
  def process_getIgnoredItemKeys(self, seqid, iprot, oprot):
3340
    args = getIgnoredItemKeys_args()
3341
    args.read(iprot)
3342
    iprot.readMessageEnd()
3343
    result = getIgnoredItemKeys_result()
3344
    result.success = self._handler.getIgnoredItemKeys()
3345
    oprot.writeMessageBegin("getIgnoredItemKeys", TMessageType.REPLY, seqid)
3346
    result.write(oprot)
3347
    oprot.writeMessageEnd()
3348
    oprot.trans.flush()
3349
 
3350
  def process_addBadInventory(self, seqid, iprot, oprot):
3351
    args = addBadInventory_args()
3352
    args.read(iprot)
3353
    iprot.readMessageEnd()
3354
    result = addBadInventory_result()
3355
    try:
3356
      self._handler.addBadInventory(args.itemId, args.warehouseId, args.quantity)
3357
    except InventoryServiceException, cex:
3358
      result.cex = cex
3359
    oprot.writeMessageBegin("addBadInventory", TMessageType.REPLY, seqid)
3360
    result.write(oprot)
3361
    oprot.writeMessageEnd()
3362
    oprot.trans.flush()
3363
 
3364
  def process_getShippingLocations(self, seqid, iprot, oprot):
3365
    args = getShippingLocations_args()
3366
    args.read(iprot)
3367
    iprot.readMessageEnd()
3368
    result = getShippingLocations_result()
3369
    result.success = self._handler.getShippingLocations()
3370
    oprot.writeMessageBegin("getShippingLocations", TMessageType.REPLY, seqid)
3371
    result.write(oprot)
3372
    oprot.writeMessageEnd()
3373
    oprot.trans.flush()
3374
 
3375
  def process_getAllVendorItemMappings(self, seqid, iprot, oprot):
3376
    args = getAllVendorItemMappings_args()
3377
    args.read(iprot)
3378
    iprot.readMessageEnd()
3379
    result = getAllVendorItemMappings_result()
3380
    result.success = self._handler.getAllVendorItemMappings()
3381
    oprot.writeMessageBegin("getAllVendorItemMappings", TMessageType.REPLY, seqid)
3382
    result.write(oprot)
3383
    oprot.writeMessageEnd()
3384
    oprot.trans.flush()
3385
 
3386
  def process_getInventorySnapshot(self, seqid, iprot, oprot):
3387
    args = getInventorySnapshot_args()
3388
    args.read(iprot)
3389
    iprot.readMessageEnd()
3390
    result = getInventorySnapshot_result()
3391
    result.success = self._handler.getInventorySnapshot(args.warehouseId)
3392
    oprot.writeMessageBegin("getInventorySnapshot", TMessageType.REPLY, seqid)
3393
    result.write(oprot)
3394
    oprot.writeMessageEnd()
3395
    oprot.trans.flush()
3396
 
3397
  def process_clearItemAvailabilityCache(self, seqid, iprot, oprot):
3398
    args = clearItemAvailabilityCache_args()
3399
    args.read(iprot)
3400
    iprot.readMessageEnd()
3401
    result = clearItemAvailabilityCache_result()
3402
    self._handler.clearItemAvailabilityCache()
3403
    oprot.writeMessageBegin("clearItemAvailabilityCache", TMessageType.REPLY, seqid)
3404
    result.write(oprot)
3405
    oprot.writeMessageEnd()
3406
    oprot.trans.flush()
3407
 
3408
  def process_updateVendorString(self, seqid, iprot, oprot):
3409
    args = updateVendorString_args()
3410
    args.read(iprot)
3411
    iprot.readMessageEnd()
3412
    result = updateVendorString_result()
3413
    self._handler.updateVendorString(args.warehouseId, args.vendorString)
3414
    oprot.writeMessageBegin("updateVendorString", TMessageType.REPLY, seqid)
3415
    result.write(oprot)
3416
    oprot.writeMessageEnd()
3417
    oprot.trans.flush()
3418
 
6096 amit.gupta 3419
  def process_clearItemAvailabilityCacheForItem(self, seqid, iprot, oprot):
3420
    args = clearItemAvailabilityCacheForItem_args()
3421
    args.read(iprot)
3422
    iprot.readMessageEnd()
3423
    result = clearItemAvailabilityCacheForItem_result()
3424
    self._handler.clearItemAvailabilityCacheForItem(args.item_id)
3425
    oprot.writeMessageBegin("clearItemAvailabilityCacheForItem", TMessageType.REPLY, seqid)
3426
    result.write(oprot)
3427
    oprot.writeMessageEnd()
3428
    oprot.trans.flush()
5944 mandeep.dh 3429
 
6467 amar.kumar 3430
  def process_getOurWarehouseIdForVendor(self, seqid, iprot, oprot):
3431
    args = getOurWarehouseIdForVendor_args()
3432
    args.read(iprot)
3433
    iprot.readMessageEnd()
3434
    result = getOurWarehouseIdForVendor_result()
7718 amar.kumar 3435
    result.success = self._handler.getOurWarehouseIdForVendor(args.vendorId, args.billingWarehouseId)
6467 amar.kumar 3436
    oprot.writeMessageBegin("getOurWarehouseIdForVendor", TMessageType.REPLY, seqid)
3437
    result.write(oprot)
3438
    oprot.writeMessageEnd()
3439
    oprot.trans.flush()
6096 amit.gupta 3440
 
6484 amar.kumar 3441
  def process_getItemAvailabilitiesAtOurWarehouses(self, seqid, iprot, oprot):
3442
    args = getItemAvailabilitiesAtOurWarehouses_args()
3443
    args.read(iprot)
3444
    iprot.readMessageEnd()
3445
    result = getItemAvailabilitiesAtOurWarehouses_result()
3446
    result.success = self._handler.getItemAvailabilitiesAtOurWarehouses(args.item_ids)
3447
    oprot.writeMessageBegin("getItemAvailabilitiesAtOurWarehouses", TMessageType.REPLY, seqid)
3448
    result.write(oprot)
3449
    oprot.writeMessageEnd()
3450
    oprot.trans.flush()
6467 amar.kumar 3451
 
6531 vikram.rag 3452
  def process_getMonitoredWarehouseForVendors(self, seqid, iprot, oprot):
3453
    args = getMonitoredWarehouseForVendors_args()
3454
    args.read(iprot)
3455
    iprot.readMessageEnd()
3456
    result = getMonitoredWarehouseForVendors_result()
3457
    result.success = self._handler.getMonitoredWarehouseForVendors(args.vendorIds)
3458
    oprot.writeMessageBegin("getMonitoredWarehouseForVendors", TMessageType.REPLY, seqid)
3459
    result.write(oprot)
3460
    oprot.writeMessageEnd()
3461
    oprot.trans.flush()
6484 amar.kumar 3462
 
6531 vikram.rag 3463
  def process_getIgnoredWarehouseidsAndItemids(self, seqid, iprot, oprot):
3464
    args = getIgnoredWarehouseidsAndItemids_args()
3465
    args.read(iprot)
3466
    iprot.readMessageEnd()
3467
    result = getIgnoredWarehouseidsAndItemids_result()
3468
    result.success = self._handler.getIgnoredWarehouseidsAndItemids()
3469
    oprot.writeMessageBegin("getIgnoredWarehouseidsAndItemids", TMessageType.REPLY, seqid)
3470
    result.write(oprot)
3471
    oprot.writeMessageEnd()
3472
    oprot.trans.flush()
3473
 
3474
  def process_insertItemtoIgnoreInventoryUpdatelist(self, seqid, iprot, oprot):
3475
    args = insertItemtoIgnoreInventoryUpdatelist_args()
3476
    args.read(iprot)
3477
    iprot.readMessageEnd()
3478
    result = insertItemtoIgnoreInventoryUpdatelist_result()
3479
    result.success = self._handler.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id)
3480
    oprot.writeMessageBegin("insertItemtoIgnoreInventoryUpdatelist", TMessageType.REPLY, seqid)
3481
    result.write(oprot)
3482
    oprot.writeMessageEnd()
3483
    oprot.trans.flush()
3484
 
3485
  def process_deleteItemFromIgnoredInventoryUpdateList(self, seqid, iprot, oprot):
3486
    args = deleteItemFromIgnoredInventoryUpdateList_args()
3487
    args.read(iprot)
3488
    iprot.readMessageEnd()
3489
    result = deleteItemFromIgnoredInventoryUpdateList_result()
3490
    result.success = self._handler.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id)
3491
    oprot.writeMessageBegin("deleteItemFromIgnoredInventoryUpdateList", TMessageType.REPLY, seqid)
3492
    result.write(oprot)
3493
    oprot.writeMessageEnd()
3494
    oprot.trans.flush()
3495
 
3496
  def process_getAllIgnoredInventoryupdateItemsCount(self, seqid, iprot, oprot):
3497
    args = getAllIgnoredInventoryupdateItemsCount_args()
3498
    args.read(iprot)
3499
    iprot.readMessageEnd()
3500
    result = getAllIgnoredInventoryupdateItemsCount_result()
3501
    result.success = self._handler.getAllIgnoredInventoryupdateItemsCount()
3502
    oprot.writeMessageBegin("getAllIgnoredInventoryupdateItemsCount", TMessageType.REPLY, seqid)
3503
    result.write(oprot)
3504
    oprot.writeMessageEnd()
3505
    oprot.trans.flush()
3506
 
3507
  def process_getIgnoredInventoryUpdateItemids(self, seqid, iprot, oprot):
3508
    args = getIgnoredInventoryUpdateItemids_args()
3509
    args.read(iprot)
3510
    iprot.readMessageEnd()
3511
    result = getIgnoredInventoryUpdateItemids_result()
3512
    result.success = self._handler.getIgnoredInventoryUpdateItemids(args.offset, args.limit)
3513
    oprot.writeMessageBegin("getIgnoredInventoryUpdateItemids", TMessageType.REPLY, seqid)
3514
    result.write(oprot)
3515
    oprot.writeMessageEnd()
3516
    oprot.trans.flush()
3517
 
6821 amar.kumar 3518
  def process_updateItemStockPurchaseParams(self, seqid, iprot, oprot):
3519
    args = updateItemStockPurchaseParams_args()
3520
    args.read(iprot)
3521
    iprot.readMessageEnd()
3522
    result = updateItemStockPurchaseParams_result()
3523
    self._handler.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel)
3524
    oprot.writeMessageBegin("updateItemStockPurchaseParams", TMessageType.REPLY, seqid)
3525
    result.write(oprot)
3526
    oprot.writeMessageEnd()
3527
    oprot.trans.flush()
6531 vikram.rag 3528
 
6821 amar.kumar 3529
  def process_getItemStockPurchaseParams(self, seqid, iprot, oprot):
3530
    args = getItemStockPurchaseParams_args()
3531
    args.read(iprot)
3532
    iprot.readMessageEnd()
3533
    result = getItemStockPurchaseParams_result()
3534
    result.success = self._handler.getItemStockPurchaseParams(args.itemId)
3535
    oprot.writeMessageBegin("getItemStockPurchaseParams", TMessageType.REPLY, seqid)
3536
    result.write(oprot)
3537
    oprot.writeMessageEnd()
3538
    oprot.trans.flush()
3539
 
3540
  def process_addOosStatusForItem(self, seqid, iprot, oprot):
3541
    args = addOosStatusForItem_args()
3542
    args.read(iprot)
3543
    iprot.readMessageEnd()
3544
    result = addOosStatusForItem_result()
3545
    self._handler.addOosStatusForItem(args.oosStatusMap, args.date)
3546
    oprot.writeMessageBegin("addOosStatusForItem", TMessageType.REPLY, seqid)
3547
    result.write(oprot)
3548
    oprot.writeMessageEnd()
3549
    oprot.trans.flush()
3550
 
6832 amar.kumar 3551
  def process_getOosStatusesForXDaysForItem(self, seqid, iprot, oprot):
3552
    args = getOosStatusesForXDaysForItem_args()
3553
    args.read(iprot)
3554
    iprot.readMessageEnd()
3555
    result = getOosStatusesForXDaysForItem_result()
9762 amar.kumar 3556
    result.success = self._handler.getOosStatusesForXDaysForItem(args.itemId, args.sourceId, args.days)
6832 amar.kumar 3557
    oprot.writeMessageBegin("getOosStatusesForXDaysForItem", TMessageType.REPLY, seqid)
3558
    result.write(oprot)
3559
    oprot.writeMessageEnd()
3560
    oprot.trans.flush()
6821 amar.kumar 3561
 
6857 amar.kumar 3562
  def process_getNonZeroItemStockPurchaseParams(self, seqid, iprot, oprot):
3563
    args = getNonZeroItemStockPurchaseParams_args()
3564
    args.read(iprot)
3565
    iprot.readMessageEnd()
3566
    result = getNonZeroItemStockPurchaseParams_result()
3567
    result.success = self._handler.getNonZeroItemStockPurchaseParams()
3568
    oprot.writeMessageBegin("getNonZeroItemStockPurchaseParams", TMessageType.REPLY, seqid)
3569
    result.write(oprot)
3570
    oprot.writeMessageEnd()
3571
    oprot.trans.flush()
6832 amar.kumar 3572
 
7149 amar.kumar 3573
  def process_getBillableInventoryAndPendingOrders(self, seqid, iprot, oprot):
3574
    args = getBillableInventoryAndPendingOrders_args()
3575
    args.read(iprot)
3576
    iprot.readMessageEnd()
3577
    result = getBillableInventoryAndPendingOrders_result()
3578
    result.success = self._handler.getBillableInventoryAndPendingOrders()
3579
    oprot.writeMessageBegin("getBillableInventoryAndPendingOrders", TMessageType.REPLY, seqid)
3580
    result.write(oprot)
3581
    oprot.writeMessageEnd()
3582
    oprot.trans.flush()
6857 amar.kumar 3583
 
7281 kshitij.so 3584
  def process_getWarehouseName(self, seqid, iprot, oprot):
3585
    args = getWarehouseName_args()
3586
    args.read(iprot)
3587
    iprot.readMessageEnd()
3588
    result = getWarehouseName_result()
3589
    result.success = self._handler.getWarehouseName(args.warehouse_id)
3590
    oprot.writeMessageBegin("getWarehouseName", TMessageType.REPLY, seqid)
3591
    result.write(oprot)
3592
    oprot.writeMessageEnd()
3593
    oprot.trans.flush()
7149 amar.kumar 3594
 
7281 kshitij.so 3595
  def process_getAmazonInventoryForItem(self, seqid, iprot, oprot):
3596
    args = getAmazonInventoryForItem_args()
3597
    args.read(iprot)
3598
    iprot.readMessageEnd()
3599
    result = getAmazonInventoryForItem_result()
3600
    result.success = self._handler.getAmazonInventoryForItem(args.item_id)
3601
    oprot.writeMessageBegin("getAmazonInventoryForItem", TMessageType.REPLY, seqid)
3602
    result.write(oprot)
3603
    oprot.writeMessageEnd()
3604
    oprot.trans.flush()
3605
 
3606
  def process_getAllAmazonInventory(self, seqid, iprot, oprot):
3607
    args = getAllAmazonInventory_args()
3608
    args.read(iprot)
3609
    iprot.readMessageEnd()
3610
    result = getAllAmazonInventory_result()
3611
    result.success = self._handler.getAllAmazonInventory()
3612
    oprot.writeMessageBegin("getAllAmazonInventory", TMessageType.REPLY, seqid)
3613
    result.write(oprot)
3614
    oprot.writeMessageEnd()
3615
    oprot.trans.flush()
3616
 
3617
  def process_addOrUpdateAmazonInventoryForItem(self, seqid, iprot, oprot):
3618
    args = addOrUpdateAmazonInventoryForItem_args()
3619
    args.read(iprot)
3620
    iprot.readMessageEnd()
3621
    result = addOrUpdateAmazonInventoryForItem_result()
3622
    self._handler.addOrUpdateAmazonInventoryForItem(args.amazonInventorySnapshot)
3623
    oprot.writeMessageBegin("addOrUpdateAmazonInventoryForItem", TMessageType.REPLY, seqid)
3624
    result.write(oprot)
3625
    oprot.writeMessageEnd()
3626
    oprot.trans.flush()
3627
 
7972 amar.kumar 3628
  def process_getLastNdaySaleForItem(self, seqid, iprot, oprot):
3629
    args = getLastNdaySaleForItem_args()
3630
    args.read(iprot)
3631
    iprot.readMessageEnd()
3632
    result = getLastNdaySaleForItem_result()
3633
    result.success = self._handler.getLastNdaySaleForItem(args.itemId, args.numberOfDays)
3634
    oprot.writeMessageBegin("getLastNdaySaleForItem", TMessageType.REPLY, seqid)
3635
    result.write(oprot)
3636
    oprot.writeMessageEnd()
3637
    oprot.trans.flush()
7281 kshitij.so 3638
 
8282 kshitij.so 3639
  def process_addOrUpdateAmazonFbaInventory(self, seqid, iprot, oprot):
3640
    args = addOrUpdateAmazonFbaInventory_args()
3641
    args.read(iprot)
3642
    iprot.readMessageEnd()
3643
    result = addOrUpdateAmazonFbaInventory_result()
3644
    self._handler.addOrUpdateAmazonFbaInventory(args.amazonfbainventorysnapshot)
3645
    oprot.writeMessageBegin("addOrUpdateAmazonFbaInventory", TMessageType.REPLY, seqid)
3646
    result.write(oprot)
3647
    oprot.writeMessageEnd()
3648
    oprot.trans.flush()
3649
 
8182 amar.kumar 3650
  def process_addUpdateHoldInventory(self, seqid, iprot, oprot):
3651
    args = addUpdateHoldInventory_args()
3652
    args.read(iprot)
3653
    iprot.readMessageEnd()
3654
    result = addUpdateHoldInventory_result()
9762 amar.kumar 3655
    try:
3656
      self._handler.addUpdateHoldInventory(args.itemId, args.warehouseId, args.holdQuantity, args.source)
3657
    except InventoryServiceException, cex:
3658
      result.cex = cex
8182 amar.kumar 3659
    oprot.writeMessageBegin("addUpdateHoldInventory", TMessageType.REPLY, seqid)
3660
    result.write(oprot)
3661
    oprot.writeMessageEnd()
3662
    oprot.trans.flush()
7972 amar.kumar 3663
 
8282 kshitij.so 3664
  def process_getAmazonFbaItemInventory(self, seqid, iprot, oprot):
3665
    args = getAmazonFbaItemInventory_args()
3666
    args.read(iprot)
3667
    iprot.readMessageEnd()
3668
    result = getAmazonFbaItemInventory_result()
3669
    result.success = self._handler.getAmazonFbaItemInventory(args.itemId)
3670
    oprot.writeMessageBegin("getAmazonFbaItemInventory", TMessageType.REPLY, seqid)
3671
    result.write(oprot)
3672
    oprot.writeMessageEnd()
3673
    oprot.trans.flush()
8182 amar.kumar 3674
 
8363 vikram.rag 3675
  def process_getAllAmazonFbaItemInventory(self, seqid, iprot, oprot):
3676
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 3677
    args.read(iprot)
3678
    iprot.readMessageEnd()
8363 vikram.rag 3679
    result = getAllAmazonFbaItemInventory_result()
3680
    result.success = self._handler.getAllAmazonFbaItemInventory()
3681
    oprot.writeMessageBegin("getAllAmazonFbaItemInventory", TMessageType.REPLY, seqid)
8282 kshitij.so 3682
    result.write(oprot)
3683
    oprot.writeMessageEnd()
3684
    oprot.trans.flush()
3685
 
8363 vikram.rag 3686
  def process_getOursGoodWarehouseIdsForLocation(self, seqid, iprot, oprot):
3687
    args = getOursGoodWarehouseIdsForLocation_args()
3688
    args.read(iprot)
3689
    iprot.readMessageEnd()
3690
    result = getOursGoodWarehouseIdsForLocation_result()
3691
    result.success = self._handler.getOursGoodWarehouseIdsForLocation(args.state_id)
3692
    oprot.writeMessageBegin("getOursGoodWarehouseIdsForLocation", TMessageType.REPLY, seqid)
3693
    result.write(oprot)
3694
    oprot.writeMessageEnd()
3695
    oprot.trans.flush()
8282 kshitij.so 3696
 
8955 vikram.rag 3697
  def process_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, seqid, iprot, oprot):
3698
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
3699
    args.read(iprot)
3700
    iprot.readMessageEnd()
3701
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
3702
    result.success = self._handler.getHoldInventoryDetailForItemForWarehouseIdExceptSource(args.id, args.warehouse_id, args.source)
3703
    oprot.writeMessageBegin("getHoldInventoryDetailForItemForWarehouseIdExceptSource", TMessageType.REPLY, seqid)
3704
    result.write(oprot)
3705
    oprot.writeMessageEnd()
3706
    oprot.trans.flush()
8363 vikram.rag 3707
 
9404 vikram.rag 3708
  def process_getSnapdealInventoryForItem(self, seqid, iprot, oprot):
3709
    args = getSnapdealInventoryForItem_args()
3710
    args.read(iprot)
3711
    iprot.readMessageEnd()
3712
    result = getSnapdealInventoryForItem_result()
3713
    result.success = self._handler.getSnapdealInventoryForItem(args.item_id)
3714
    oprot.writeMessageBegin("getSnapdealInventoryForItem", TMessageType.REPLY, seqid)
3715
    result.write(oprot)
3716
    oprot.writeMessageEnd()
3717
    oprot.trans.flush()
8955 vikram.rag 3718
 
9404 vikram.rag 3719
  def process_addOrUpdateSnapdealInventoryForItem(self, seqid, iprot, oprot):
3720
    args = addOrUpdateSnapdealInventoryForItem_args()
3721
    args.read(iprot)
3722
    iprot.readMessageEnd()
3723
    result = addOrUpdateSnapdealInventoryForItem_result()
3724
    self._handler.addOrUpdateSnapdealInventoryForItem(args.snapdealinventoryitem)
3725
    oprot.writeMessageBegin("addOrUpdateSnapdealInventoryForItem", TMessageType.REPLY, seqid)
3726
    result.write(oprot)
3727
    oprot.writeMessageEnd()
3728
    oprot.trans.flush()
3729
 
3730
  def process_getNlcForWarehouse(self, seqid, iprot, oprot):
3731
    args = getNlcForWarehouse_args()
3732
    args.read(iprot)
3733
    iprot.readMessageEnd()
3734
    result = getNlcForWarehouse_result()
3735
    result.success = self._handler.getNlcForWarehouse(args.warehouse_id, args.item_id)
3736
    oprot.writeMessageBegin("getNlcForWarehouse", TMessageType.REPLY, seqid)
3737
    result.write(oprot)
3738
    oprot.writeMessageEnd()
3739
    oprot.trans.flush()
3740
 
9640 amar.kumar 3741
  def process_getHeldInventoryMapForItem(self, seqid, iprot, oprot):
3742
    args = getHeldInventoryMapForItem_args()
3743
    args.read(iprot)
3744
    iprot.readMessageEnd()
3745
    result = getHeldInventoryMapForItem_result()
3746
    result.success = self._handler.getHeldInventoryMapForItem(args.item_id, args.warehouse_id)
3747
    oprot.writeMessageBegin("getHeldInventoryMapForItem", TMessageType.REPLY, seqid)
3748
    result.write(oprot)
3749
    oprot.writeMessageEnd()
3750
    oprot.trans.flush()
3751
 
9495 vikram.rag 3752
  def process_addOrUpdateAllAmazonFbaInventory(self, seqid, iprot, oprot):
3753
    args = addOrUpdateAllAmazonFbaInventory_args()
9456 vikram.rag 3754
    args.read(iprot)
3755
    iprot.readMessageEnd()
9495 vikram.rag 3756
    result = addOrUpdateAllAmazonFbaInventory_result()
3757
    self._handler.addOrUpdateAllAmazonFbaInventory(args.allamazonfbainventorysnapshot)
3758
    oprot.writeMessageBegin("addOrUpdateAllAmazonFbaInventory", TMessageType.REPLY, seqid)
9456 vikram.rag 3759
    result.write(oprot)
3760
    oprot.writeMessageEnd()
3761
    oprot.trans.flush()
9404 vikram.rag 3762
 
9495 vikram.rag 3763
  def process_addOrUpdateAllSnapdealInventory(self, seqid, iprot, oprot):
3764
    args = addOrUpdateAllSnapdealInventory_args()
9482 vikram.rag 3765
    args.read(iprot)
3766
    iprot.readMessageEnd()
9495 vikram.rag 3767
    result = addOrUpdateAllSnapdealInventory_result()
3768
    self._handler.addOrUpdateAllSnapdealInventory(args.allsnapdealinventorysnapshot)
3769
    oprot.writeMessageBegin("addOrUpdateAllSnapdealInventory", TMessageType.REPLY, seqid)
9482 vikram.rag 3770
    result.write(oprot)
3771
    oprot.writeMessageEnd()
3772
    oprot.trans.flush()
9456 vikram.rag 3773
 
9495 vikram.rag 3774
  def process_getSnapdealInventorySnapshot(self, seqid, iprot, oprot):
3775
    args = getSnapdealInventorySnapshot_args()
3776
    args.read(iprot)
3777
    iprot.readMessageEnd()
3778
    result = getSnapdealInventorySnapshot_result()
3779
    result.success = self._handler.getSnapdealInventorySnapshot()
3780
    oprot.writeMessageBegin("getSnapdealInventorySnapshot", TMessageType.REPLY, seqid)
3781
    result.write(oprot)
3782
    oprot.writeMessageEnd()
3783
    oprot.trans.flush()
9482 vikram.rag 3784
 
9761 amar.kumar 3785
  def process_getHoldInventoryDetails(self, seqid, iprot, oprot):
3786
    args = getHoldInventoryDetails_args()
3787
    args.read(iprot)
3788
    iprot.readMessageEnd()
3789
    result = getHoldInventoryDetails_result()
3790
    result.success = self._handler.getHoldInventoryDetails(args.itemId, args.warehouseId, args.source)
3791
    oprot.writeMessageBegin("getHoldInventoryDetails", TMessageType.REPLY, seqid)
3792
    result.write(oprot)
3793
    oprot.writeMessageEnd()
3794
    oprot.trans.flush()
9495 vikram.rag 3795
 
9761 amar.kumar 3796
 
5944 mandeep.dh 3797
# HELPER FUNCTIONS AND STRUCTURES
3798
 
3799
class addWarehouse_args:
3800
  """
3801
  Attributes:
3802
   - warehouse
3803
  """
3804
 
3805
  thrift_spec = (
3806
    None, # 0
3807
    (1, TType.STRUCT, 'warehouse', (Warehouse, Warehouse.thrift_spec), None, ), # 1
3808
  )
3809
 
3810
  def __init__(self, warehouse=None,):
3811
    self.warehouse = warehouse
3812
 
3813
  def read(self, iprot):
3814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3816
      return
3817
    iprot.readStructBegin()
3818
    while True:
3819
      (fname, ftype, fid) = iprot.readFieldBegin()
3820
      if ftype == TType.STOP:
3821
        break
3822
      if fid == 1:
3823
        if ftype == TType.STRUCT:
3824
          self.warehouse = Warehouse()
3825
          self.warehouse.read(iprot)
3826
        else:
3827
          iprot.skip(ftype)
3828
      else:
3829
        iprot.skip(ftype)
3830
      iprot.readFieldEnd()
3831
    iprot.readStructEnd()
3832
 
3833
  def write(self, oprot):
3834
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3835
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3836
      return
3837
    oprot.writeStructBegin('addWarehouse_args')
3838
    if self.warehouse is not None:
3839
      oprot.writeFieldBegin('warehouse', TType.STRUCT, 1)
3840
      self.warehouse.write(oprot)
3841
      oprot.writeFieldEnd()
3842
    oprot.writeFieldStop()
3843
    oprot.writeStructEnd()
3844
 
3845
  def validate(self):
3846
    return
3847
 
3848
 
3849
  def __repr__(self):
3850
    L = ['%s=%r' % (key, value)
3851
      for key, value in self.__dict__.iteritems()]
3852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3853
 
3854
  def __eq__(self, other):
3855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3856
 
3857
  def __ne__(self, other):
3858
    return not (self == other)
3859
 
3860
class addWarehouse_result:
3861
  """
3862
  Attributes:
3863
   - success
3864
   - cex
3865
  """
3866
 
3867
  thrift_spec = (
3868
    (0, TType.I64, 'success', None, None, ), # 0
3869
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
3870
  )
3871
 
3872
  def __init__(self, success=None, cex=None,):
3873
    self.success = success
3874
    self.cex = cex
3875
 
3876
  def read(self, iprot):
3877
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3878
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3879
      return
3880
    iprot.readStructBegin()
3881
    while True:
3882
      (fname, ftype, fid) = iprot.readFieldBegin()
3883
      if ftype == TType.STOP:
3884
        break
3885
      if fid == 0:
3886
        if ftype == TType.I64:
3887
          self.success = iprot.readI64();
3888
        else:
3889
          iprot.skip(ftype)
3890
      elif fid == 1:
3891
        if ftype == TType.STRUCT:
3892
          self.cex = InventoryServiceException()
3893
          self.cex.read(iprot)
3894
        else:
3895
          iprot.skip(ftype)
3896
      else:
3897
        iprot.skip(ftype)
3898
      iprot.readFieldEnd()
3899
    iprot.readStructEnd()
3900
 
3901
  def write(self, oprot):
3902
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3903
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3904
      return
3905
    oprot.writeStructBegin('addWarehouse_result')
3906
    if self.success is not None:
3907
      oprot.writeFieldBegin('success', TType.I64, 0)
3908
      oprot.writeI64(self.success)
3909
      oprot.writeFieldEnd()
3910
    if self.cex is not None:
3911
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
3912
      self.cex.write(oprot)
3913
      oprot.writeFieldEnd()
3914
    oprot.writeFieldStop()
3915
    oprot.writeStructEnd()
3916
 
3917
  def validate(self):
3918
    return
3919
 
3920
 
3921
  def __repr__(self):
3922
    L = ['%s=%r' % (key, value)
3923
      for key, value in self.__dict__.iteritems()]
3924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3925
 
3926
  def __eq__(self, other):
3927
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3928
 
3929
  def __ne__(self, other):
3930
    return not (self == other)
3931
 
3932
class addVendor_args:
3933
  """
3934
  Attributes:
3935
   - vendor
3936
  """
3937
 
3938
  thrift_spec = (
3939
    None, # 0
3940
    (1, TType.STRUCT, 'vendor', (Vendor, Vendor.thrift_spec), None, ), # 1
3941
  )
3942
 
3943
  def __init__(self, vendor=None,):
3944
    self.vendor = vendor
3945
 
3946
  def read(self, iprot):
3947
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3948
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3949
      return
3950
    iprot.readStructBegin()
3951
    while True:
3952
      (fname, ftype, fid) = iprot.readFieldBegin()
3953
      if ftype == TType.STOP:
3954
        break
3955
      if fid == 1:
3956
        if ftype == TType.STRUCT:
3957
          self.vendor = Vendor()
3958
          self.vendor.read(iprot)
3959
        else:
3960
          iprot.skip(ftype)
3961
      else:
3962
        iprot.skip(ftype)
3963
      iprot.readFieldEnd()
3964
    iprot.readStructEnd()
3965
 
3966
  def write(self, oprot):
3967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3969
      return
3970
    oprot.writeStructBegin('addVendor_args')
3971
    if self.vendor is not None:
3972
      oprot.writeFieldBegin('vendor', TType.STRUCT, 1)
3973
      self.vendor.write(oprot)
3974
      oprot.writeFieldEnd()
3975
    oprot.writeFieldStop()
3976
    oprot.writeStructEnd()
3977
 
3978
  def validate(self):
3979
    return
3980
 
3981
 
3982
  def __repr__(self):
3983
    L = ['%s=%r' % (key, value)
3984
      for key, value in self.__dict__.iteritems()]
3985
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3986
 
3987
  def __eq__(self, other):
3988
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3989
 
3990
  def __ne__(self, other):
3991
    return not (self == other)
3992
 
3993
class addVendor_result:
3994
  """
3995
  Attributes:
3996
   - success
3997
   - cex
3998
  """
3999
 
4000
  thrift_spec = (
4001
    (0, TType.I64, 'success', None, None, ), # 0
4002
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4003
  )
4004
 
4005
  def __init__(self, success=None, cex=None,):
4006
    self.success = success
4007
    self.cex = cex
4008
 
4009
  def read(self, iprot):
4010
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4011
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4012
      return
4013
    iprot.readStructBegin()
4014
    while True:
4015
      (fname, ftype, fid) = iprot.readFieldBegin()
4016
      if ftype == TType.STOP:
4017
        break
4018
      if fid == 0:
4019
        if ftype == TType.I64:
4020
          self.success = iprot.readI64();
4021
        else:
4022
          iprot.skip(ftype)
4023
      elif fid == 1:
4024
        if ftype == TType.STRUCT:
4025
          self.cex = InventoryServiceException()
4026
          self.cex.read(iprot)
4027
        else:
4028
          iprot.skip(ftype)
4029
      else:
4030
        iprot.skip(ftype)
4031
      iprot.readFieldEnd()
4032
    iprot.readStructEnd()
4033
 
4034
  def write(self, oprot):
4035
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4036
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4037
      return
4038
    oprot.writeStructBegin('addVendor_result')
4039
    if self.success is not None:
4040
      oprot.writeFieldBegin('success', TType.I64, 0)
4041
      oprot.writeI64(self.success)
4042
      oprot.writeFieldEnd()
4043
    if self.cex is not None:
4044
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4045
      self.cex.write(oprot)
4046
      oprot.writeFieldEnd()
4047
    oprot.writeFieldStop()
4048
    oprot.writeStructEnd()
4049
 
4050
  def validate(self):
4051
    return
4052
 
4053
 
4054
  def __repr__(self):
4055
    L = ['%s=%r' % (key, value)
4056
      for key, value in self.__dict__.iteritems()]
4057
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4058
 
4059
  def __eq__(self, other):
4060
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4061
 
4062
  def __ne__(self, other):
4063
    return not (self == other)
4064
 
4065
class updateInventoryHistory_args:
4066
  """
4067
  Attributes:
4068
   - warehouse_id
4069
   - timestamp
4070
   - availability
4071
  """
4072
 
4073
  thrift_spec = (
4074
    None, # 0
4075
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4076
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4077
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4078
  )
4079
 
4080
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4081
    self.warehouse_id = warehouse_id
4082
    self.timestamp = timestamp
4083
    self.availability = availability
4084
 
4085
  def read(self, iprot):
4086
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4087
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4088
      return
4089
    iprot.readStructBegin()
4090
    while True:
4091
      (fname, ftype, fid) = iprot.readFieldBegin()
4092
      if ftype == TType.STOP:
4093
        break
4094
      if fid == 1:
4095
        if ftype == TType.I64:
4096
          self.warehouse_id = iprot.readI64();
4097
        else:
4098
          iprot.skip(ftype)
4099
      elif fid == 2:
4100
        if ftype == TType.STRING:
4101
          self.timestamp = iprot.readString();
4102
        else:
4103
          iprot.skip(ftype)
4104
      elif fid == 3:
4105
        if ftype == TType.MAP:
4106
          self.availability = {}
8182 amar.kumar 4107
          (_ktype28, _vtype29, _size27 ) = iprot.readMapBegin() 
4108
          for _i31 in xrange(_size27):
4109
            _key32 = iprot.readString();
4110
            _val33 = iprot.readI64();
4111
            self.availability[_key32] = _val33
5944 mandeep.dh 4112
          iprot.readMapEnd()
4113
        else:
4114
          iprot.skip(ftype)
4115
      else:
4116
        iprot.skip(ftype)
4117
      iprot.readFieldEnd()
4118
    iprot.readStructEnd()
4119
 
4120
  def write(self, oprot):
4121
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4122
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4123
      return
4124
    oprot.writeStructBegin('updateInventoryHistory_args')
4125
    if self.warehouse_id is not None:
4126
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4127
      oprot.writeI64(self.warehouse_id)
4128
      oprot.writeFieldEnd()
4129
    if self.timestamp is not None:
4130
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4131
      oprot.writeString(self.timestamp)
4132
      oprot.writeFieldEnd()
4133
    if self.availability is not None:
4134
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4135
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4136
      for kiter34,viter35 in self.availability.items():
4137
        oprot.writeString(kiter34)
4138
        oprot.writeI64(viter35)
5944 mandeep.dh 4139
      oprot.writeMapEnd()
4140
      oprot.writeFieldEnd()
4141
    oprot.writeFieldStop()
4142
    oprot.writeStructEnd()
4143
 
4144
  def validate(self):
4145
    return
4146
 
4147
 
4148
  def __repr__(self):
4149
    L = ['%s=%r' % (key, value)
4150
      for key, value in self.__dict__.iteritems()]
4151
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4152
 
4153
  def __eq__(self, other):
4154
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4155
 
4156
  def __ne__(self, other):
4157
    return not (self == other)
4158
 
4159
class updateInventoryHistory_result:
4160
  """
4161
  Attributes:
4162
   - cex
4163
  """
4164
 
4165
  thrift_spec = (
4166
    None, # 0
4167
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4168
  )
4169
 
4170
  def __init__(self, cex=None,):
4171
    self.cex = cex
4172
 
4173
  def read(self, iprot):
4174
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4175
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4176
      return
4177
    iprot.readStructBegin()
4178
    while True:
4179
      (fname, ftype, fid) = iprot.readFieldBegin()
4180
      if ftype == TType.STOP:
4181
        break
4182
      if fid == 1:
4183
        if ftype == TType.STRUCT:
4184
          self.cex = InventoryServiceException()
4185
          self.cex.read(iprot)
4186
        else:
4187
          iprot.skip(ftype)
4188
      else:
4189
        iprot.skip(ftype)
4190
      iprot.readFieldEnd()
4191
    iprot.readStructEnd()
4192
 
4193
  def write(self, oprot):
4194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4196
      return
4197
    oprot.writeStructBegin('updateInventoryHistory_result')
4198
    if self.cex is not None:
4199
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4200
      self.cex.write(oprot)
4201
      oprot.writeFieldEnd()
4202
    oprot.writeFieldStop()
4203
    oprot.writeStructEnd()
4204
 
4205
  def validate(self):
4206
    return
4207
 
4208
 
4209
  def __repr__(self):
4210
    L = ['%s=%r' % (key, value)
4211
      for key, value in self.__dict__.iteritems()]
4212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4213
 
4214
  def __eq__(self, other):
4215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4216
 
4217
  def __ne__(self, other):
4218
    return not (self == other)
4219
 
4220
class updateInventory_args:
4221
  """
4222
  Attributes:
4223
   - warehouse_id
4224
   - timestamp
4225
   - availability
4226
  """
4227
 
4228
  thrift_spec = (
4229
    None, # 0
4230
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4231
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4232
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4233
  )
4234
 
4235
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4236
    self.warehouse_id = warehouse_id
4237
    self.timestamp = timestamp
4238
    self.availability = availability
4239
 
4240
  def read(self, iprot):
4241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4243
      return
4244
    iprot.readStructBegin()
4245
    while True:
4246
      (fname, ftype, fid) = iprot.readFieldBegin()
4247
      if ftype == TType.STOP:
4248
        break
4249
      if fid == 1:
4250
        if ftype == TType.I64:
4251
          self.warehouse_id = iprot.readI64();
4252
        else:
4253
          iprot.skip(ftype)
4254
      elif fid == 2:
4255
        if ftype == TType.STRING:
4256
          self.timestamp = iprot.readString();
4257
        else:
4258
          iprot.skip(ftype)
4259
      elif fid == 3:
4260
        if ftype == TType.MAP:
4261
          self.availability = {}
8182 amar.kumar 4262
          (_ktype37, _vtype38, _size36 ) = iprot.readMapBegin() 
4263
          for _i40 in xrange(_size36):
4264
            _key41 = iprot.readString();
4265
            _val42 = iprot.readI64();
4266
            self.availability[_key41] = _val42
5944 mandeep.dh 4267
          iprot.readMapEnd()
4268
        else:
4269
          iprot.skip(ftype)
4270
      else:
4271
        iprot.skip(ftype)
4272
      iprot.readFieldEnd()
4273
    iprot.readStructEnd()
4274
 
4275
  def write(self, oprot):
4276
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4277
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4278
      return
4279
    oprot.writeStructBegin('updateInventory_args')
4280
    if self.warehouse_id is not None:
4281
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4282
      oprot.writeI64(self.warehouse_id)
4283
      oprot.writeFieldEnd()
4284
    if self.timestamp is not None:
4285
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4286
      oprot.writeString(self.timestamp)
4287
      oprot.writeFieldEnd()
4288
    if self.availability is not None:
4289
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4290
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4291
      for kiter43,viter44 in self.availability.items():
4292
        oprot.writeString(kiter43)
4293
        oprot.writeI64(viter44)
5944 mandeep.dh 4294
      oprot.writeMapEnd()
4295
      oprot.writeFieldEnd()
4296
    oprot.writeFieldStop()
4297
    oprot.writeStructEnd()
4298
 
4299
  def validate(self):
4300
    return
4301
 
4302
 
4303
  def __repr__(self):
4304
    L = ['%s=%r' % (key, value)
4305
      for key, value in self.__dict__.iteritems()]
4306
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4307
 
4308
  def __eq__(self, other):
4309
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4310
 
4311
  def __ne__(self, other):
4312
    return not (self == other)
4313
 
4314
class updateInventory_result:
4315
  """
4316
  Attributes:
4317
   - cex
4318
  """
4319
 
4320
  thrift_spec = (
4321
    None, # 0
4322
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4323
  )
4324
 
4325
  def __init__(self, cex=None,):
4326
    self.cex = cex
4327
 
4328
  def read(self, iprot):
4329
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4330
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4331
      return
4332
    iprot.readStructBegin()
4333
    while True:
4334
      (fname, ftype, fid) = iprot.readFieldBegin()
4335
      if ftype == TType.STOP:
4336
        break
4337
      if fid == 1:
4338
        if ftype == TType.STRUCT:
4339
          self.cex = InventoryServiceException()
4340
          self.cex.read(iprot)
4341
        else:
4342
          iprot.skip(ftype)
4343
      else:
4344
        iprot.skip(ftype)
4345
      iprot.readFieldEnd()
4346
    iprot.readStructEnd()
4347
 
4348
  def write(self, oprot):
4349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4351
      return
4352
    oprot.writeStructBegin('updateInventory_result')
4353
    if self.cex is not None:
4354
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4355
      self.cex.write(oprot)
4356
      oprot.writeFieldEnd()
4357
    oprot.writeFieldStop()
4358
    oprot.writeStructEnd()
4359
 
4360
  def validate(self):
4361
    return
4362
 
4363
 
4364
  def __repr__(self):
4365
    L = ['%s=%r' % (key, value)
4366
      for key, value in self.__dict__.iteritems()]
4367
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4368
 
4369
  def __eq__(self, other):
4370
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4371
 
4372
  def __ne__(self, other):
4373
    return not (self == other)
4374
 
4375
class addInventory_args:
4376
  """
4377
  Attributes:
4378
   - itemId
4379
   - warehouseId
4380
   - quantity
4381
  """
4382
 
4383
  thrift_spec = (
4384
    None, # 0
4385
    (1, TType.I64, 'itemId', None, None, ), # 1
4386
    (2, TType.I64, 'warehouseId', None, None, ), # 2
4387
    (3, TType.I64, 'quantity', None, None, ), # 3
4388
  )
4389
 
4390
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
4391
    self.itemId = itemId
4392
    self.warehouseId = warehouseId
4393
    self.quantity = quantity
4394
 
4395
  def read(self, iprot):
4396
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4397
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4398
      return
4399
    iprot.readStructBegin()
4400
    while True:
4401
      (fname, ftype, fid) = iprot.readFieldBegin()
4402
      if ftype == TType.STOP:
4403
        break
4404
      if fid == 1:
4405
        if ftype == TType.I64:
4406
          self.itemId = iprot.readI64();
4407
        else:
4408
          iprot.skip(ftype)
4409
      elif fid == 2:
4410
        if ftype == TType.I64:
4411
          self.warehouseId = iprot.readI64();
4412
        else:
4413
          iprot.skip(ftype)
4414
      elif fid == 3:
4415
        if ftype == TType.I64:
4416
          self.quantity = iprot.readI64();
4417
        else:
4418
          iprot.skip(ftype)
4419
      else:
4420
        iprot.skip(ftype)
4421
      iprot.readFieldEnd()
4422
    iprot.readStructEnd()
4423
 
4424
  def write(self, oprot):
4425
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4426
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4427
      return
4428
    oprot.writeStructBegin('addInventory_args')
4429
    if self.itemId is not None:
4430
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4431
      oprot.writeI64(self.itemId)
4432
      oprot.writeFieldEnd()
4433
    if self.warehouseId is not None:
4434
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
4435
      oprot.writeI64(self.warehouseId)
4436
      oprot.writeFieldEnd()
4437
    if self.quantity is not None:
4438
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4439
      oprot.writeI64(self.quantity)
4440
      oprot.writeFieldEnd()
4441
    oprot.writeFieldStop()
4442
    oprot.writeStructEnd()
4443
 
4444
  def validate(self):
4445
    return
4446
 
4447
 
4448
  def __repr__(self):
4449
    L = ['%s=%r' % (key, value)
4450
      for key, value in self.__dict__.iteritems()]
4451
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4452
 
4453
  def __eq__(self, other):
4454
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4455
 
4456
  def __ne__(self, other):
4457
    return not (self == other)
4458
 
4459
class addInventory_result:
4460
  """
4461
  Attributes:
4462
   - cex
4463
  """
4464
 
4465
  thrift_spec = (
4466
    None, # 0
4467
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4468
  )
4469
 
4470
  def __init__(self, cex=None,):
4471
    self.cex = cex
4472
 
4473
  def read(self, iprot):
4474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4476
      return
4477
    iprot.readStructBegin()
4478
    while True:
4479
      (fname, ftype, fid) = iprot.readFieldBegin()
4480
      if ftype == TType.STOP:
4481
        break
4482
      if fid == 1:
4483
        if ftype == TType.STRUCT:
4484
          self.cex = InventoryServiceException()
4485
          self.cex.read(iprot)
4486
        else:
4487
          iprot.skip(ftype)
4488
      else:
4489
        iprot.skip(ftype)
4490
      iprot.readFieldEnd()
4491
    iprot.readStructEnd()
4492
 
4493
  def write(self, oprot):
4494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4496
      return
4497
    oprot.writeStructBegin('addInventory_result')
4498
    if self.cex is not None:
4499
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4500
      self.cex.write(oprot)
4501
      oprot.writeFieldEnd()
4502
    oprot.writeFieldStop()
4503
    oprot.writeStructEnd()
4504
 
4505
  def validate(self):
4506
    return
4507
 
4508
 
4509
  def __repr__(self):
4510
    L = ['%s=%r' % (key, value)
4511
      for key, value in self.__dict__.iteritems()]
4512
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4513
 
4514
  def __eq__(self, other):
4515
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4516
 
4517
  def __ne__(self, other):
4518
    return not (self == other)
4519
 
4520
class retireWarehouse_args:
4521
  """
4522
  Attributes:
4523
   - warehouse_id
4524
  """
4525
 
4526
  thrift_spec = (
4527
    None, # 0
4528
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4529
  )
4530
 
4531
  def __init__(self, warehouse_id=None,):
4532
    self.warehouse_id = warehouse_id
4533
 
4534
  def read(self, iprot):
4535
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4536
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4537
      return
4538
    iprot.readStructBegin()
4539
    while True:
4540
      (fname, ftype, fid) = iprot.readFieldBegin()
4541
      if ftype == TType.STOP:
4542
        break
4543
      if fid == 1:
4544
        if ftype == TType.I64:
4545
          self.warehouse_id = iprot.readI64();
4546
        else:
4547
          iprot.skip(ftype)
4548
      else:
4549
        iprot.skip(ftype)
4550
      iprot.readFieldEnd()
4551
    iprot.readStructEnd()
4552
 
4553
  def write(self, oprot):
4554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4556
      return
4557
    oprot.writeStructBegin('retireWarehouse_args')
4558
    if self.warehouse_id is not None:
4559
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4560
      oprot.writeI64(self.warehouse_id)
4561
      oprot.writeFieldEnd()
4562
    oprot.writeFieldStop()
4563
    oprot.writeStructEnd()
4564
 
4565
  def validate(self):
4566
    return
4567
 
4568
 
4569
  def __repr__(self):
4570
    L = ['%s=%r' % (key, value)
4571
      for key, value in self.__dict__.iteritems()]
4572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4573
 
4574
  def __eq__(self, other):
4575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4576
 
4577
  def __ne__(self, other):
4578
    return not (self == other)
4579
 
4580
class retireWarehouse_result:
4581
  """
4582
  Attributes:
4583
   - cex
4584
  """
4585
 
4586
  thrift_spec = (
4587
    None, # 0
4588
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4589
  )
4590
 
4591
  def __init__(self, cex=None,):
4592
    self.cex = cex
4593
 
4594
  def read(self, iprot):
4595
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4596
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4597
      return
4598
    iprot.readStructBegin()
4599
    while True:
4600
      (fname, ftype, fid) = iprot.readFieldBegin()
4601
      if ftype == TType.STOP:
4602
        break
4603
      if fid == 1:
4604
        if ftype == TType.STRUCT:
4605
          self.cex = InventoryServiceException()
4606
          self.cex.read(iprot)
4607
        else:
4608
          iprot.skip(ftype)
4609
      else:
4610
        iprot.skip(ftype)
4611
      iprot.readFieldEnd()
4612
    iprot.readStructEnd()
4613
 
4614
  def write(self, oprot):
4615
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4616
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4617
      return
4618
    oprot.writeStructBegin('retireWarehouse_result')
4619
    if self.cex is not None:
4620
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4621
      self.cex.write(oprot)
4622
      oprot.writeFieldEnd()
4623
    oprot.writeFieldStop()
4624
    oprot.writeStructEnd()
4625
 
4626
  def validate(self):
4627
    return
4628
 
4629
 
4630
  def __repr__(self):
4631
    L = ['%s=%r' % (key, value)
4632
      for key, value in self.__dict__.iteritems()]
4633
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4634
 
4635
  def __eq__(self, other):
4636
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4637
 
4638
  def __ne__(self, other):
4639
    return not (self == other)
4640
 
4641
class getItemInventoryByItemId_args:
4642
  """
4643
  Attributes:
4644
   - item_id
4645
  """
4646
 
4647
  thrift_spec = (
4648
    None, # 0
4649
    (1, TType.I64, 'item_id', None, None, ), # 1
4650
  )
4651
 
4652
  def __init__(self, item_id=None,):
4653
    self.item_id = item_id
4654
 
4655
  def read(self, iprot):
4656
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4657
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4658
      return
4659
    iprot.readStructBegin()
4660
    while True:
4661
      (fname, ftype, fid) = iprot.readFieldBegin()
4662
      if ftype == TType.STOP:
4663
        break
4664
      if fid == 1:
4665
        if ftype == TType.I64:
4666
          self.item_id = iprot.readI64();
4667
        else:
4668
          iprot.skip(ftype)
4669
      else:
4670
        iprot.skip(ftype)
4671
      iprot.readFieldEnd()
4672
    iprot.readStructEnd()
4673
 
4674
  def write(self, oprot):
4675
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4676
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4677
      return
4678
    oprot.writeStructBegin('getItemInventoryByItemId_args')
4679
    if self.item_id is not None:
4680
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4681
      oprot.writeI64(self.item_id)
4682
      oprot.writeFieldEnd()
4683
    oprot.writeFieldStop()
4684
    oprot.writeStructEnd()
4685
 
4686
  def validate(self):
4687
    return
4688
 
4689
 
4690
  def __repr__(self):
4691
    L = ['%s=%r' % (key, value)
4692
      for key, value in self.__dict__.iteritems()]
4693
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4694
 
4695
  def __eq__(self, other):
4696
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4697
 
4698
  def __ne__(self, other):
4699
    return not (self == other)
4700
 
4701
class getItemInventoryByItemId_result:
4702
  """
4703
  Attributes:
4704
   - success
4705
   - cex
4706
  """
4707
 
4708
  thrift_spec = (
4709
    (0, TType.STRUCT, 'success', (ItemInventory, ItemInventory.thrift_spec), None, ), # 0
4710
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4711
  )
4712
 
4713
  def __init__(self, success=None, cex=None,):
4714
    self.success = success
4715
    self.cex = cex
4716
 
4717
  def read(self, iprot):
4718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4720
      return
4721
    iprot.readStructBegin()
4722
    while True:
4723
      (fname, ftype, fid) = iprot.readFieldBegin()
4724
      if ftype == TType.STOP:
4725
        break
4726
      if fid == 0:
4727
        if ftype == TType.STRUCT:
4728
          self.success = ItemInventory()
4729
          self.success.read(iprot)
4730
        else:
4731
          iprot.skip(ftype)
4732
      elif fid == 1:
4733
        if ftype == TType.STRUCT:
4734
          self.cex = InventoryServiceException()
4735
          self.cex.read(iprot)
4736
        else:
4737
          iprot.skip(ftype)
4738
      else:
4739
        iprot.skip(ftype)
4740
      iprot.readFieldEnd()
4741
    iprot.readStructEnd()
4742
 
4743
  def write(self, oprot):
4744
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4745
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4746
      return
4747
    oprot.writeStructBegin('getItemInventoryByItemId_result')
4748
    if self.success is not None:
4749
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4750
      self.success.write(oprot)
4751
      oprot.writeFieldEnd()
4752
    if self.cex is not None:
4753
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4754
      self.cex.write(oprot)
4755
      oprot.writeFieldEnd()
4756
    oprot.writeFieldStop()
4757
    oprot.writeStructEnd()
4758
 
4759
  def validate(self):
4760
    return
4761
 
4762
 
4763
  def __repr__(self):
4764
    L = ['%s=%r' % (key, value)
4765
      for key, value in self.__dict__.iteritems()]
4766
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4767
 
4768
  def __eq__(self, other):
4769
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4770
 
4771
  def __ne__(self, other):
4772
    return not (self == other)
4773
 
4774
class getItemAvailibilityAtWarehouse_args:
4775
  """
4776
  Attributes:
4777
   - warehouse_id
4778
   - item_id
4779
  """
4780
 
4781
  thrift_spec = (
4782
    None, # 0
4783
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4784
    (2, TType.I64, 'item_id', None, None, ), # 2
4785
  )
4786
 
4787
  def __init__(self, warehouse_id=None, item_id=None,):
4788
    self.warehouse_id = warehouse_id
4789
    self.item_id = item_id
4790
 
4791
  def read(self, iprot):
4792
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4793
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4794
      return
4795
    iprot.readStructBegin()
4796
    while True:
4797
      (fname, ftype, fid) = iprot.readFieldBegin()
4798
      if ftype == TType.STOP:
4799
        break
4800
      if fid == 1:
4801
        if ftype == TType.I64:
4802
          self.warehouse_id = iprot.readI64();
4803
        else:
4804
          iprot.skip(ftype)
4805
      elif fid == 2:
4806
        if ftype == TType.I64:
4807
          self.item_id = iprot.readI64();
4808
        else:
4809
          iprot.skip(ftype)
4810
      else:
4811
        iprot.skip(ftype)
4812
      iprot.readFieldEnd()
4813
    iprot.readStructEnd()
4814
 
4815
  def write(self, oprot):
4816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4818
      return
4819
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_args')
4820
    if self.warehouse_id is not None:
4821
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4822
      oprot.writeI64(self.warehouse_id)
4823
      oprot.writeFieldEnd()
4824
    if self.item_id is not None:
4825
      oprot.writeFieldBegin('item_id', TType.I64, 2)
4826
      oprot.writeI64(self.item_id)
4827
      oprot.writeFieldEnd()
4828
    oprot.writeFieldStop()
4829
    oprot.writeStructEnd()
4830
 
4831
  def validate(self):
4832
    return
4833
 
4834
 
4835
  def __repr__(self):
4836
    L = ['%s=%r' % (key, value)
4837
      for key, value in self.__dict__.iteritems()]
4838
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4839
 
4840
  def __eq__(self, other):
4841
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4842
 
4843
  def __ne__(self, other):
4844
    return not (self == other)
4845
 
4846
class getItemAvailibilityAtWarehouse_result:
4847
  """
4848
  Attributes:
4849
   - success
4850
   - cex
4851
  """
4852
 
4853
  thrift_spec = (
4854
    (0, TType.I64, 'success', None, None, ), # 0
4855
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4856
  )
4857
 
4858
  def __init__(self, success=None, cex=None,):
4859
    self.success = success
4860
    self.cex = cex
4861
 
4862
  def read(self, iprot):
4863
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4864
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4865
      return
4866
    iprot.readStructBegin()
4867
    while True:
4868
      (fname, ftype, fid) = iprot.readFieldBegin()
4869
      if ftype == TType.STOP:
4870
        break
4871
      if fid == 0:
4872
        if ftype == TType.I64:
4873
          self.success = iprot.readI64();
4874
        else:
4875
          iprot.skip(ftype)
4876
      elif fid == 1:
4877
        if ftype == TType.STRUCT:
4878
          self.cex = InventoryServiceException()
4879
          self.cex.read(iprot)
4880
        else:
4881
          iprot.skip(ftype)
4882
      else:
4883
        iprot.skip(ftype)
4884
      iprot.readFieldEnd()
4885
    iprot.readStructEnd()
4886
 
4887
  def write(self, oprot):
4888
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4889
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4890
      return
4891
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_result')
4892
    if self.success is not None:
4893
      oprot.writeFieldBegin('success', TType.I64, 0)
4894
      oprot.writeI64(self.success)
4895
      oprot.writeFieldEnd()
4896
    if self.cex is not None:
4897
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4898
      self.cex.write(oprot)
4899
      oprot.writeFieldEnd()
4900
    oprot.writeFieldStop()
4901
    oprot.writeStructEnd()
4902
 
4903
  def validate(self):
4904
    return
4905
 
4906
 
4907
  def __repr__(self):
4908
    L = ['%s=%r' % (key, value)
4909
      for key, value in self.__dict__.iteritems()]
4910
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4911
 
4912
  def __eq__(self, other):
4913
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4914
 
4915
  def __ne__(self, other):
4916
    return not (self == other)
4917
 
4918
class getItemAvailabilityAtLocation_args:
4919
  """
4920
  Attributes:
4921
   - itemId
5978 rajveer 4922
   - sourceId
5944 mandeep.dh 4923
  """
4924
 
4925
  thrift_spec = (
4926
    None, # 0
4927
    (1, TType.I64, 'itemId', None, None, ), # 1
5978 rajveer 4928
    (2, TType.I64, 'sourceId', None, None, ), # 2
5944 mandeep.dh 4929
  )
4930
 
5978 rajveer 4931
  def __init__(self, itemId=None, sourceId=None,):
5944 mandeep.dh 4932
    self.itemId = itemId
5978 rajveer 4933
    self.sourceId = sourceId
5944 mandeep.dh 4934
 
4935
  def read(self, iprot):
4936
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4937
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4938
      return
4939
    iprot.readStructBegin()
4940
    while True:
4941
      (fname, ftype, fid) = iprot.readFieldBegin()
4942
      if ftype == TType.STOP:
4943
        break
4944
      if fid == 1:
4945
        if ftype == TType.I64:
4946
          self.itemId = iprot.readI64();
4947
        else:
4948
          iprot.skip(ftype)
5978 rajveer 4949
      elif fid == 2:
4950
        if ftype == TType.I64:
4951
          self.sourceId = iprot.readI64();
4952
        else:
4953
          iprot.skip(ftype)
5944 mandeep.dh 4954
      else:
4955
        iprot.skip(ftype)
4956
      iprot.readFieldEnd()
4957
    iprot.readStructEnd()
4958
 
4959
  def write(self, oprot):
4960
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4961
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4962
      return
4963
    oprot.writeStructBegin('getItemAvailabilityAtLocation_args')
4964
    if self.itemId is not None:
4965
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4966
      oprot.writeI64(self.itemId)
4967
      oprot.writeFieldEnd()
5978 rajveer 4968
    if self.sourceId is not None:
4969
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
4970
      oprot.writeI64(self.sourceId)
4971
      oprot.writeFieldEnd()
5944 mandeep.dh 4972
    oprot.writeFieldStop()
4973
    oprot.writeStructEnd()
4974
 
4975
  def validate(self):
4976
    return
4977
 
4978
 
4979
  def __repr__(self):
4980
    L = ['%s=%r' % (key, value)
4981
      for key, value in self.__dict__.iteritems()]
4982
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4983
 
4984
  def __eq__(self, other):
4985
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4986
 
4987
  def __ne__(self, other):
4988
    return not (self == other)
4989
 
4990
class getItemAvailabilityAtLocation_result:
4991
  """
4992
  Attributes:
4993
   - success
4994
   - isex
4995
  """
4996
 
4997
  thrift_spec = (
4998
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
4999
    (1, TType.STRUCT, 'isex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5000
  )
5001
 
5002
  def __init__(self, success=None, isex=None,):
5003
    self.success = success
5004
    self.isex = isex
5005
 
5006
  def read(self, iprot):
5007
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5008
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5009
      return
5010
    iprot.readStructBegin()
5011
    while True:
5012
      (fname, ftype, fid) = iprot.readFieldBegin()
5013
      if ftype == TType.STOP:
5014
        break
5015
      if fid == 0:
5016
        if ftype == TType.LIST:
5017
          self.success = []
8182 amar.kumar 5018
          (_etype48, _size45) = iprot.readListBegin()
5019
          for _i49 in xrange(_size45):
5020
            _elem50 = iprot.readI64();
5021
            self.success.append(_elem50)
5944 mandeep.dh 5022
          iprot.readListEnd()
5023
        else:
5024
          iprot.skip(ftype)
5025
      elif fid == 1:
5026
        if ftype == TType.STRUCT:
5027
          self.isex = InventoryServiceException()
5028
          self.isex.read(iprot)
5029
        else:
5030
          iprot.skip(ftype)
5031
      else:
5032
        iprot.skip(ftype)
5033
      iprot.readFieldEnd()
5034
    iprot.readStructEnd()
5035
 
5036
  def write(self, oprot):
5037
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5038
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5039
      return
5040
    oprot.writeStructBegin('getItemAvailabilityAtLocation_result')
5041
    if self.success is not None:
5042
      oprot.writeFieldBegin('success', TType.LIST, 0)
5043
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5044
      for iter51 in self.success:
5045
        oprot.writeI64(iter51)
5944 mandeep.dh 5046
      oprot.writeListEnd()
5047
      oprot.writeFieldEnd()
5048
    if self.isex is not None:
5049
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
5050
      self.isex.write(oprot)
5051
      oprot.writeFieldEnd()
5052
    oprot.writeFieldStop()
5053
    oprot.writeStructEnd()
5054
 
5055
  def validate(self):
5056
    return
5057
 
5058
 
5059
  def __repr__(self):
5060
    L = ['%s=%r' % (key, value)
5061
      for key, value in self.__dict__.iteritems()]
5062
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5063
 
5064
  def __eq__(self, other):
5065
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5066
 
5067
  def __ne__(self, other):
5068
    return not (self == other)
5069
 
5070
class getAllWarehouses_args:
5071
  """
5072
  Attributes:
5073
   - isActive
5074
  """
5075
 
5076
  thrift_spec = (
5077
    None, # 0
5078
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5079
  )
5080
 
5081
  def __init__(self, isActive=None,):
5082
    self.isActive = isActive
5083
 
5084
  def read(self, iprot):
5085
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5086
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5087
      return
5088
    iprot.readStructBegin()
5089
    while True:
5090
      (fname, ftype, fid) = iprot.readFieldBegin()
5091
      if ftype == TType.STOP:
5092
        break
5093
      if fid == 1:
5094
        if ftype == TType.BOOL:
5095
          self.isActive = iprot.readBool();
5096
        else:
5097
          iprot.skip(ftype)
5098
      else:
5099
        iprot.skip(ftype)
5100
      iprot.readFieldEnd()
5101
    iprot.readStructEnd()
5102
 
5103
  def write(self, oprot):
5104
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5105
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5106
      return
5107
    oprot.writeStructBegin('getAllWarehouses_args')
5108
    if self.isActive is not None:
5109
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5110
      oprot.writeBool(self.isActive)
5111
      oprot.writeFieldEnd()
5112
    oprot.writeFieldStop()
5113
    oprot.writeStructEnd()
5114
 
5115
  def validate(self):
5116
    return
5117
 
5118
 
5119
  def __repr__(self):
5120
    L = ['%s=%r' % (key, value)
5121
      for key, value in self.__dict__.iteritems()]
5122
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5123
 
5124
  def __eq__(self, other):
5125
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5126
 
5127
  def __ne__(self, other):
5128
    return not (self == other)
5129
 
5130
class getAllWarehouses_result:
5131
  """
5132
  Attributes:
5133
   - success
5134
   - cex
5135
  """
5136
 
5137
  thrift_spec = (
5138
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
5139
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5140
  )
5141
 
5142
  def __init__(self, success=None, cex=None,):
5143
    self.success = success
5144
    self.cex = cex
5145
 
5146
  def read(self, iprot):
5147
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5148
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5149
      return
5150
    iprot.readStructBegin()
5151
    while True:
5152
      (fname, ftype, fid) = iprot.readFieldBegin()
5153
      if ftype == TType.STOP:
5154
        break
5155
      if fid == 0:
5156
        if ftype == TType.LIST:
5157
          self.success = []
8182 amar.kumar 5158
          (_etype55, _size52) = iprot.readListBegin()
5159
          for _i56 in xrange(_size52):
5160
            _elem57 = Warehouse()
5161
            _elem57.read(iprot)
5162
            self.success.append(_elem57)
5944 mandeep.dh 5163
          iprot.readListEnd()
5164
        else:
5165
          iprot.skip(ftype)
5166
      elif fid == 1:
5167
        if ftype == TType.STRUCT:
5168
          self.cex = InventoryServiceException()
5169
          self.cex.read(iprot)
5170
        else:
5171
          iprot.skip(ftype)
5172
      else:
5173
        iprot.skip(ftype)
5174
      iprot.readFieldEnd()
5175
    iprot.readStructEnd()
5176
 
5177
  def write(self, oprot):
5178
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5179
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5180
      return
5181
    oprot.writeStructBegin('getAllWarehouses_result')
5182
    if self.success is not None:
5183
      oprot.writeFieldBegin('success', TType.LIST, 0)
5184
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 5185
      for iter58 in self.success:
5186
        iter58.write(oprot)
5944 mandeep.dh 5187
      oprot.writeListEnd()
5188
      oprot.writeFieldEnd()
5189
    if self.cex is not None:
5190
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5191
      self.cex.write(oprot)
5192
      oprot.writeFieldEnd()
5193
    oprot.writeFieldStop()
5194
    oprot.writeStructEnd()
5195
 
5196
  def validate(self):
5197
    return
5198
 
5199
 
5200
  def __repr__(self):
5201
    L = ['%s=%r' % (key, value)
5202
      for key, value in self.__dict__.iteritems()]
5203
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5204
 
5205
  def __eq__(self, other):
5206
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5207
 
5208
  def __ne__(self, other):
5209
    return not (self == other)
5210
 
5211
class getWarehouse_args:
5212
  """
5213
  Attributes:
5214
   - warehouse_id
5215
  """
5216
 
5217
  thrift_spec = (
5218
    None, # 0
5219
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5220
  )
5221
 
5222
  def __init__(self, warehouse_id=None,):
5223
    self.warehouse_id = warehouse_id
5224
 
5225
  def read(self, iprot):
5226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5228
      return
5229
    iprot.readStructBegin()
5230
    while True:
5231
      (fname, ftype, fid) = iprot.readFieldBegin()
5232
      if ftype == TType.STOP:
5233
        break
5234
      if fid == 1:
5235
        if ftype == TType.I64:
5236
          self.warehouse_id = iprot.readI64();
5237
        else:
5238
          iprot.skip(ftype)
5239
      else:
5240
        iprot.skip(ftype)
5241
      iprot.readFieldEnd()
5242
    iprot.readStructEnd()
5243
 
5244
  def write(self, oprot):
5245
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5246
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5247
      return
5248
    oprot.writeStructBegin('getWarehouse_args')
5249
    if self.warehouse_id is not None:
5250
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5251
      oprot.writeI64(self.warehouse_id)
5252
      oprot.writeFieldEnd()
5253
    oprot.writeFieldStop()
5254
    oprot.writeStructEnd()
5255
 
5256
  def validate(self):
5257
    return
5258
 
5259
 
5260
  def __repr__(self):
5261
    L = ['%s=%r' % (key, value)
5262
      for key, value in self.__dict__.iteritems()]
5263
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5264
 
5265
  def __eq__(self, other):
5266
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5267
 
5268
  def __ne__(self, other):
5269
    return not (self == other)
5270
 
5271
class getWarehouse_result:
5272
  """
5273
  Attributes:
5274
   - success
5275
   - cex
5276
  """
5277
 
5278
  thrift_spec = (
5279
    (0, TType.STRUCT, 'success', (Warehouse, Warehouse.thrift_spec), None, ), # 0
5280
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5281
  )
5282
 
5283
  def __init__(self, success=None, cex=None,):
5284
    self.success = success
5285
    self.cex = cex
5286
 
5287
  def read(self, iprot):
5288
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5289
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5290
      return
5291
    iprot.readStructBegin()
5292
    while True:
5293
      (fname, ftype, fid) = iprot.readFieldBegin()
5294
      if ftype == TType.STOP:
5295
        break
5296
      if fid == 0:
5297
        if ftype == TType.STRUCT:
5298
          self.success = Warehouse()
5299
          self.success.read(iprot)
5300
        else:
5301
          iprot.skip(ftype)
5302
      elif fid == 1:
5303
        if ftype == TType.STRUCT:
5304
          self.cex = InventoryServiceException()
5305
          self.cex.read(iprot)
5306
        else:
5307
          iprot.skip(ftype)
5308
      else:
5309
        iprot.skip(ftype)
5310
      iprot.readFieldEnd()
5311
    iprot.readStructEnd()
5312
 
5313
  def write(self, oprot):
5314
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5315
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5316
      return
5317
    oprot.writeStructBegin('getWarehouse_result')
5318
    if self.success is not None:
5319
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5320
      self.success.write(oprot)
5321
      oprot.writeFieldEnd()
5322
    if self.cex is not None:
5323
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5324
      self.cex.write(oprot)
5325
      oprot.writeFieldEnd()
5326
    oprot.writeFieldStop()
5327
    oprot.writeStructEnd()
5328
 
5329
  def validate(self):
5330
    return
5331
 
5332
 
5333
  def __repr__(self):
5334
    L = ['%s=%r' % (key, value)
5335
      for key, value in self.__dict__.iteritems()]
5336
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5337
 
5338
  def __eq__(self, other):
5339
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5340
 
5341
  def __ne__(self, other):
5342
    return not (self == other)
5343
 
5344
class getAllItemsForWarehouse_args:
5345
  """
5346
  Attributes:
5347
   - warehouse_id
5348
  """
5349
 
5350
  thrift_spec = (
5351
    None, # 0
5352
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5353
  )
5354
 
5355
  def __init__(self, warehouse_id=None,):
5356
    self.warehouse_id = warehouse_id
5357
 
5358
  def read(self, iprot):
5359
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5360
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5361
      return
5362
    iprot.readStructBegin()
5363
    while True:
5364
      (fname, ftype, fid) = iprot.readFieldBegin()
5365
      if ftype == TType.STOP:
5366
        break
5367
      if fid == 1:
5368
        if ftype == TType.I64:
5369
          self.warehouse_id = iprot.readI64();
5370
        else:
5371
          iprot.skip(ftype)
5372
      else:
5373
        iprot.skip(ftype)
5374
      iprot.readFieldEnd()
5375
    iprot.readStructEnd()
5376
 
5377
  def write(self, oprot):
5378
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5379
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5380
      return
5381
    oprot.writeStructBegin('getAllItemsForWarehouse_args')
5382
    if self.warehouse_id is not None:
5383
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5384
      oprot.writeI64(self.warehouse_id)
5385
      oprot.writeFieldEnd()
5386
    oprot.writeFieldStop()
5387
    oprot.writeStructEnd()
5388
 
5389
  def validate(self):
5390
    return
5391
 
5392
 
5393
  def __repr__(self):
5394
    L = ['%s=%r' % (key, value)
5395
      for key, value in self.__dict__.iteritems()]
5396
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5397
 
5398
  def __eq__(self, other):
5399
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5400
 
5401
  def __ne__(self, other):
5402
    return not (self == other)
5403
 
5404
class getAllItemsForWarehouse_result:
5405
  """
5406
  Attributes:
5407
   - success
5408
   - cex
5409
  """
5410
 
5411
  thrift_spec = (
5412
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5413
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5414
  )
5415
 
5416
  def __init__(self, success=None, cex=None,):
5417
    self.success = success
5418
    self.cex = cex
5419
 
5420
  def read(self, iprot):
5421
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5422
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5423
      return
5424
    iprot.readStructBegin()
5425
    while True:
5426
      (fname, ftype, fid) = iprot.readFieldBegin()
5427
      if ftype == TType.STOP:
5428
        break
5429
      if fid == 0:
5430
        if ftype == TType.LIST:
5431
          self.success = []
8182 amar.kumar 5432
          (_etype62, _size59) = iprot.readListBegin()
5433
          for _i63 in xrange(_size59):
5434
            _elem64 = iprot.readI64();
5435
            self.success.append(_elem64)
5944 mandeep.dh 5436
          iprot.readListEnd()
5437
        else:
5438
          iprot.skip(ftype)
5439
      elif fid == 1:
5440
        if ftype == TType.STRUCT:
5441
          self.cex = InventoryServiceException()
5442
          self.cex.read(iprot)
5443
        else:
5444
          iprot.skip(ftype)
5445
      else:
5446
        iprot.skip(ftype)
5447
      iprot.readFieldEnd()
5448
    iprot.readStructEnd()
5449
 
5450
  def write(self, oprot):
5451
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5452
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5453
      return
5454
    oprot.writeStructBegin('getAllItemsForWarehouse_result')
5455
    if self.success is not None:
5456
      oprot.writeFieldBegin('success', TType.LIST, 0)
5457
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5458
      for iter65 in self.success:
5459
        oprot.writeI64(iter65)
5944 mandeep.dh 5460
      oprot.writeListEnd()
5461
      oprot.writeFieldEnd()
5462
    if self.cex is not None:
5463
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5464
      self.cex.write(oprot)
5465
      oprot.writeFieldEnd()
5466
    oprot.writeFieldStop()
5467
    oprot.writeStructEnd()
5468
 
5469
  def validate(self):
5470
    return
5471
 
5472
 
5473
  def __repr__(self):
5474
    L = ['%s=%r' % (key, value)
5475
      for key, value in self.__dict__.iteritems()]
5476
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5477
 
5478
  def __eq__(self, other):
5479
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5480
 
5481
  def __ne__(self, other):
5482
    return not (self == other)
5483
 
5966 rajveer 5484
class isOrderBillable_args:
5485
  """
5486
  Attributes:
5487
   - itemId
5488
   - warehouseId
5489
   - sourceId
5490
   - orderId
5491
  """
5492
 
5493
  thrift_spec = (
5494
    None, # 0
5495
    (1, TType.I64, 'itemId', None, None, ), # 1
5496
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5497
    (3, TType.I64, 'sourceId', None, None, ), # 3
5498
    (4, TType.I64, 'orderId', None, None, ), # 4
5499
  )
5500
 
5501
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None,):
5502
    self.itemId = itemId
5503
    self.warehouseId = warehouseId
5504
    self.sourceId = sourceId
5505
    self.orderId = orderId
5506
 
5507
  def read(self, iprot):
5508
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5509
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5510
      return
5511
    iprot.readStructBegin()
5512
    while True:
5513
      (fname, ftype, fid) = iprot.readFieldBegin()
5514
      if ftype == TType.STOP:
5515
        break
5516
      if fid == 1:
5517
        if ftype == TType.I64:
5518
          self.itemId = iprot.readI64();
5519
        else:
5520
          iprot.skip(ftype)
5521
      elif fid == 2:
5522
        if ftype == TType.I64:
5523
          self.warehouseId = iprot.readI64();
5524
        else:
5525
          iprot.skip(ftype)
5526
      elif fid == 3:
5527
        if ftype == TType.I64:
5528
          self.sourceId = iprot.readI64();
5529
        else:
5530
          iprot.skip(ftype)
5531
      elif fid == 4:
5532
        if ftype == TType.I64:
5533
          self.orderId = iprot.readI64();
5534
        else:
5535
          iprot.skip(ftype)
5536
      else:
5537
        iprot.skip(ftype)
5538
      iprot.readFieldEnd()
5539
    iprot.readStructEnd()
5540
 
5541
  def write(self, oprot):
5542
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5543
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5544
      return
5545
    oprot.writeStructBegin('isOrderBillable_args')
5546
    if self.itemId is not None:
5547
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5548
      oprot.writeI64(self.itemId)
5549
      oprot.writeFieldEnd()
5550
    if self.warehouseId is not None:
5551
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5552
      oprot.writeI64(self.warehouseId)
5553
      oprot.writeFieldEnd()
5554
    if self.sourceId is not None:
5555
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
5556
      oprot.writeI64(self.sourceId)
5557
      oprot.writeFieldEnd()
5558
    if self.orderId is not None:
5559
      oprot.writeFieldBegin('orderId', TType.I64, 4)
5560
      oprot.writeI64(self.orderId)
5561
      oprot.writeFieldEnd()
5562
    oprot.writeFieldStop()
5563
    oprot.writeStructEnd()
5564
 
5565
  def validate(self):
5566
    return
5567
 
5568
 
5569
  def __repr__(self):
5570
    L = ['%s=%r' % (key, value)
5571
      for key, value in self.__dict__.iteritems()]
5572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5573
 
5574
  def __eq__(self, other):
5575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5576
 
5577
  def __ne__(self, other):
5578
    return not (self == other)
5579
 
5580
class isOrderBillable_result:
5581
  """
5582
  Attributes:
5583
   - success
5584
  """
5585
 
5586
  thrift_spec = (
5587
    (0, TType.BOOL, 'success', None, None, ), # 0
5588
  )
5589
 
5590
  def __init__(self, success=None,):
5591
    self.success = success
5592
 
5593
  def read(self, iprot):
5594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5596
      return
5597
    iprot.readStructBegin()
5598
    while True:
5599
      (fname, ftype, fid) = iprot.readFieldBegin()
5600
      if ftype == TType.STOP:
5601
        break
5602
      if fid == 0:
5603
        if ftype == TType.BOOL:
5604
          self.success = iprot.readBool();
5605
        else:
5606
          iprot.skip(ftype)
5607
      else:
5608
        iprot.skip(ftype)
5609
      iprot.readFieldEnd()
5610
    iprot.readStructEnd()
5611
 
5612
  def write(self, oprot):
5613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5615
      return
5616
    oprot.writeStructBegin('isOrderBillable_result')
5617
    if self.success is not None:
5618
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5619
      oprot.writeBool(self.success)
5620
      oprot.writeFieldEnd()
5621
    oprot.writeFieldStop()
5622
    oprot.writeStructEnd()
5623
 
5624
  def validate(self):
5625
    return
5626
 
5627
 
5628
  def __repr__(self):
5629
    L = ['%s=%r' % (key, value)
5630
      for key, value in self.__dict__.iteritems()]
5631
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5632
 
5633
  def __eq__(self, other):
5634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5635
 
5636
  def __ne__(self, other):
5637
    return not (self == other)
5638
 
5944 mandeep.dh 5639
class reserveItemInWarehouse_args:
5640
  """
5641
  Attributes:
5642
   - itemId
5643
   - warehouseId
5966 rajveer 5644
   - sourceId
5645
   - orderId
5646
   - createdTimestamp
5647
   - promisedShippingTimestamp
5944 mandeep.dh 5648
   - quantity
5649
  """
5650
 
5651
  thrift_spec = (
5652
    None, # 0
5653
    (1, TType.I64, 'itemId', None, None, ), # 1
5654
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 5655
    (3, TType.I64, 'sourceId', None, None, ), # 3
5656
    (4, TType.I64, 'orderId', None, None, ), # 4
5657
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
5658
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
5659
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
5944 mandeep.dh 5660
  )
5661
 
5966 rajveer 5662
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
5944 mandeep.dh 5663
    self.itemId = itemId
5664
    self.warehouseId = warehouseId
5966 rajveer 5665
    self.sourceId = sourceId
5666
    self.orderId = orderId
5667
    self.createdTimestamp = createdTimestamp
5668
    self.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 5669
    self.quantity = quantity
5670
 
5671
  def read(self, iprot):
5672
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5673
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5674
      return
5675
    iprot.readStructBegin()
5676
    while True:
5677
      (fname, ftype, fid) = iprot.readFieldBegin()
5678
      if ftype == TType.STOP:
5679
        break
5680
      if fid == 1:
5681
        if ftype == TType.I64:
5682
          self.itemId = iprot.readI64();
5683
        else:
5684
          iprot.skip(ftype)
5685
      elif fid == 2:
5686
        if ftype == TType.I64:
5687
          self.warehouseId = iprot.readI64();
5688
        else:
5689
          iprot.skip(ftype)
5690
      elif fid == 3:
5966 rajveer 5691
        if ftype == TType.I64:
5692
          self.sourceId = iprot.readI64();
5693
        else:
5694
          iprot.skip(ftype)
5695
      elif fid == 4:
5696
        if ftype == TType.I64:
5697
          self.orderId = iprot.readI64();
5698
        else:
5699
          iprot.skip(ftype)
5700
      elif fid == 5:
5701
        if ftype == TType.I64:
5702
          self.createdTimestamp = iprot.readI64();
5703
        else:
5704
          iprot.skip(ftype)
5705
      elif fid == 6:
5706
        if ftype == TType.I64:
5707
          self.promisedShippingTimestamp = iprot.readI64();
5708
        else:
5709
          iprot.skip(ftype)
5710
      elif fid == 7:
5944 mandeep.dh 5711
        if ftype == TType.DOUBLE:
5712
          self.quantity = iprot.readDouble();
5713
        else:
5714
          iprot.skip(ftype)
5715
      else:
5716
        iprot.skip(ftype)
5717
      iprot.readFieldEnd()
5718
    iprot.readStructEnd()
5719
 
5720
  def write(self, oprot):
5721
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5722
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5723
      return
5724
    oprot.writeStructBegin('reserveItemInWarehouse_args')
5725
    if self.itemId is not None:
5726
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5727
      oprot.writeI64(self.itemId)
5728
      oprot.writeFieldEnd()
5729
    if self.warehouseId is not None:
5730
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5731
      oprot.writeI64(self.warehouseId)
5732
      oprot.writeFieldEnd()
5966 rajveer 5733
    if self.sourceId is not None:
5734
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
5735
      oprot.writeI64(self.sourceId)
5736
      oprot.writeFieldEnd()
5737
    if self.orderId is not None:
5738
      oprot.writeFieldBegin('orderId', TType.I64, 4)
5739
      oprot.writeI64(self.orderId)
5740
      oprot.writeFieldEnd()
5741
    if self.createdTimestamp is not None:
5742
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
5743
      oprot.writeI64(self.createdTimestamp)
5744
      oprot.writeFieldEnd()
5745
    if self.promisedShippingTimestamp is not None:
5746
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
5747
      oprot.writeI64(self.promisedShippingTimestamp)
5748
      oprot.writeFieldEnd()
5944 mandeep.dh 5749
    if self.quantity is not None:
5966 rajveer 5750
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
5944 mandeep.dh 5751
      oprot.writeDouble(self.quantity)
5752
      oprot.writeFieldEnd()
5753
    oprot.writeFieldStop()
5754
    oprot.writeStructEnd()
5755
 
5756
  def validate(self):
5757
    return
5758
 
5759
 
5760
  def __repr__(self):
5761
    L = ['%s=%r' % (key, value)
5762
      for key, value in self.__dict__.iteritems()]
5763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5764
 
5765
  def __eq__(self, other):
5766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5767
 
5768
  def __ne__(self, other):
5769
    return not (self == other)
5770
 
5771
class reserveItemInWarehouse_result:
5772
  """
5773
  Attributes:
5774
   - success
5775
   - cex
5776
  """
5777
 
5778
  thrift_spec = (
5779
    (0, TType.BOOL, 'success', None, None, ), # 0
5780
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5781
  )
5782
 
5783
  def __init__(self, success=None, cex=None,):
5784
    self.success = success
5785
    self.cex = cex
5786
 
5787
  def read(self, iprot):
5788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5790
      return
5791
    iprot.readStructBegin()
5792
    while True:
5793
      (fname, ftype, fid) = iprot.readFieldBegin()
5794
      if ftype == TType.STOP:
5795
        break
5796
      if fid == 0:
5797
        if ftype == TType.BOOL:
5798
          self.success = iprot.readBool();
5799
        else:
5800
          iprot.skip(ftype)
5801
      elif fid == 1:
5802
        if ftype == TType.STRUCT:
5803
          self.cex = InventoryServiceException()
5804
          self.cex.read(iprot)
5805
        else:
5806
          iprot.skip(ftype)
5807
      else:
5808
        iprot.skip(ftype)
5809
      iprot.readFieldEnd()
5810
    iprot.readStructEnd()
5811
 
5812
  def write(self, oprot):
5813
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5814
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5815
      return
5816
    oprot.writeStructBegin('reserveItemInWarehouse_result')
5817
    if self.success is not None:
5818
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5819
      oprot.writeBool(self.success)
5820
      oprot.writeFieldEnd()
5821
    if self.cex is not None:
5822
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5823
      self.cex.write(oprot)
5824
      oprot.writeFieldEnd()
5825
    oprot.writeFieldStop()
5826
    oprot.writeStructEnd()
5827
 
5828
  def validate(self):
5829
    return
5830
 
5831
 
5832
  def __repr__(self):
5833
    L = ['%s=%r' % (key, value)
5834
      for key, value in self.__dict__.iteritems()]
5835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5836
 
5837
  def __eq__(self, other):
5838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5839
 
5840
  def __ne__(self, other):
5841
    return not (self == other)
5842
 
7968 amar.kumar 5843
class updateReservationForOrder_args:
5844
  """
5845
  Attributes:
5846
   - itemId
5847
   - warehouseId
5848
   - sourceId
5849
   - orderId
5850
   - createdTimestamp
5851
   - promisedShippingTimestamp
5852
   - quantity
5853
  """
5854
 
5855
  thrift_spec = (
5856
    None, # 0
5857
    (1, TType.I64, 'itemId', None, None, ), # 1
5858
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5859
    (3, TType.I64, 'sourceId', None, None, ), # 3
5860
    (4, TType.I64, 'orderId', None, None, ), # 4
5861
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
5862
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
5863
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
5864
  )
5865
 
5866
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
5867
    self.itemId = itemId
5868
    self.warehouseId = warehouseId
5869
    self.sourceId = sourceId
5870
    self.orderId = orderId
5871
    self.createdTimestamp = createdTimestamp
5872
    self.promisedShippingTimestamp = promisedShippingTimestamp
5873
    self.quantity = quantity
5874
 
5875
  def read(self, iprot):
5876
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5877
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5878
      return
5879
    iprot.readStructBegin()
5880
    while True:
5881
      (fname, ftype, fid) = iprot.readFieldBegin()
5882
      if ftype == TType.STOP:
5883
        break
5884
      if fid == 1:
5885
        if ftype == TType.I64:
5886
          self.itemId = iprot.readI64();
5887
        else:
5888
          iprot.skip(ftype)
5889
      elif fid == 2:
5890
        if ftype == TType.I64:
5891
          self.warehouseId = iprot.readI64();
5892
        else:
5893
          iprot.skip(ftype)
5894
      elif fid == 3:
5895
        if ftype == TType.I64:
5896
          self.sourceId = iprot.readI64();
5897
        else:
5898
          iprot.skip(ftype)
5899
      elif fid == 4:
5900
        if ftype == TType.I64:
5901
          self.orderId = iprot.readI64();
5902
        else:
5903
          iprot.skip(ftype)
5904
      elif fid == 5:
5905
        if ftype == TType.I64:
5906
          self.createdTimestamp = iprot.readI64();
5907
        else:
5908
          iprot.skip(ftype)
5909
      elif fid == 6:
5910
        if ftype == TType.I64:
5911
          self.promisedShippingTimestamp = iprot.readI64();
5912
        else:
5913
          iprot.skip(ftype)
5914
      elif fid == 7:
5915
        if ftype == TType.DOUBLE:
5916
          self.quantity = iprot.readDouble();
5917
        else:
5918
          iprot.skip(ftype)
5919
      else:
5920
        iprot.skip(ftype)
5921
      iprot.readFieldEnd()
5922
    iprot.readStructEnd()
5923
 
5924
  def write(self, oprot):
5925
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5926
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5927
      return
5928
    oprot.writeStructBegin('updateReservationForOrder_args')
5929
    if self.itemId is not None:
5930
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5931
      oprot.writeI64(self.itemId)
5932
      oprot.writeFieldEnd()
5933
    if self.warehouseId is not None:
5934
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5935
      oprot.writeI64(self.warehouseId)
5936
      oprot.writeFieldEnd()
5937
    if self.sourceId is not None:
5938
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
5939
      oprot.writeI64(self.sourceId)
5940
      oprot.writeFieldEnd()
5941
    if self.orderId is not None:
5942
      oprot.writeFieldBegin('orderId', TType.I64, 4)
5943
      oprot.writeI64(self.orderId)
5944
      oprot.writeFieldEnd()
5945
    if self.createdTimestamp is not None:
5946
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
5947
      oprot.writeI64(self.createdTimestamp)
5948
      oprot.writeFieldEnd()
5949
    if self.promisedShippingTimestamp is not None:
5950
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
5951
      oprot.writeI64(self.promisedShippingTimestamp)
5952
      oprot.writeFieldEnd()
5953
    if self.quantity is not None:
5954
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
5955
      oprot.writeDouble(self.quantity)
5956
      oprot.writeFieldEnd()
5957
    oprot.writeFieldStop()
5958
    oprot.writeStructEnd()
5959
 
5960
  def validate(self):
5961
    return
5962
 
5963
 
5964
  def __repr__(self):
5965
    L = ['%s=%r' % (key, value)
5966
      for key, value in self.__dict__.iteritems()]
5967
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5968
 
5969
  def __eq__(self, other):
5970
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5971
 
5972
  def __ne__(self, other):
5973
    return not (self == other)
5974
 
5975
class updateReservationForOrder_result:
5976
  """
5977
  Attributes:
5978
   - success
5979
   - cex
5980
  """
5981
 
5982
  thrift_spec = (
5983
    (0, TType.BOOL, 'success', None, None, ), # 0
5984
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5985
  )
5986
 
5987
  def __init__(self, success=None, cex=None,):
5988
    self.success = success
5989
    self.cex = cex
5990
 
5991
  def read(self, iprot):
5992
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5993
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5994
      return
5995
    iprot.readStructBegin()
5996
    while True:
5997
      (fname, ftype, fid) = iprot.readFieldBegin()
5998
      if ftype == TType.STOP:
5999
        break
6000
      if fid == 0:
6001
        if ftype == TType.BOOL:
6002
          self.success = iprot.readBool();
6003
        else:
6004
          iprot.skip(ftype)
6005
      elif fid == 1:
6006
        if ftype == TType.STRUCT:
6007
          self.cex = InventoryServiceException()
6008
          self.cex.read(iprot)
6009
        else:
6010
          iprot.skip(ftype)
6011
      else:
6012
        iprot.skip(ftype)
6013
      iprot.readFieldEnd()
6014
    iprot.readStructEnd()
6015
 
6016
  def write(self, oprot):
6017
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6018
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6019
      return
6020
    oprot.writeStructBegin('updateReservationForOrder_result')
6021
    if self.success is not None:
6022
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6023
      oprot.writeBool(self.success)
6024
      oprot.writeFieldEnd()
6025
    if self.cex is not None:
6026
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6027
      self.cex.write(oprot)
6028
      oprot.writeFieldEnd()
6029
    oprot.writeFieldStop()
6030
    oprot.writeStructEnd()
6031
 
6032
  def validate(self):
6033
    return
6034
 
6035
 
6036
  def __repr__(self):
6037
    L = ['%s=%r' % (key, value)
6038
      for key, value in self.__dict__.iteritems()]
6039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6040
 
6041
  def __eq__(self, other):
6042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6043
 
6044
  def __ne__(self, other):
6045
    return not (self == other)
6046
 
5944 mandeep.dh 6047
class reduceReservationCount_args:
6048
  """
6049
  Attributes:
6050
   - itemId
6051
   - warehouseId
5966 rajveer 6052
   - sourceId
6053
   - orderId
5944 mandeep.dh 6054
   - quantity
6055
  """
6056
 
6057
  thrift_spec = (
6058
    None, # 0
6059
    (1, TType.I64, 'itemId', None, None, ), # 1
6060
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 6061
    (3, TType.I64, 'sourceId', None, None, ), # 3
6062
    (4, TType.I64, 'orderId', None, None, ), # 4
6063
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
5944 mandeep.dh 6064
  )
6065
 
5966 rajveer 6066
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, quantity=None,):
5944 mandeep.dh 6067
    self.itemId = itemId
6068
    self.warehouseId = warehouseId
5966 rajveer 6069
    self.sourceId = sourceId
6070
    self.orderId = orderId
5944 mandeep.dh 6071
    self.quantity = quantity
6072
 
6073
  def read(self, iprot):
6074
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6075
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6076
      return
6077
    iprot.readStructBegin()
6078
    while True:
6079
      (fname, ftype, fid) = iprot.readFieldBegin()
6080
      if ftype == TType.STOP:
6081
        break
6082
      if fid == 1:
6083
        if ftype == TType.I64:
6084
          self.itemId = iprot.readI64();
6085
        else:
6086
          iprot.skip(ftype)
6087
      elif fid == 2:
6088
        if ftype == TType.I64:
6089
          self.warehouseId = iprot.readI64();
6090
        else:
6091
          iprot.skip(ftype)
6092
      elif fid == 3:
5966 rajveer 6093
        if ftype == TType.I64:
6094
          self.sourceId = iprot.readI64();
6095
        else:
6096
          iprot.skip(ftype)
6097
      elif fid == 4:
6098
        if ftype == TType.I64:
6099
          self.orderId = iprot.readI64();
6100
        else:
6101
          iprot.skip(ftype)
6102
      elif fid == 5:
5944 mandeep.dh 6103
        if ftype == TType.DOUBLE:
6104
          self.quantity = iprot.readDouble();
6105
        else:
6106
          iprot.skip(ftype)
6107
      else:
6108
        iprot.skip(ftype)
6109
      iprot.readFieldEnd()
6110
    iprot.readStructEnd()
6111
 
6112
  def write(self, oprot):
6113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6115
      return
6116
    oprot.writeStructBegin('reduceReservationCount_args')
6117
    if self.itemId is not None:
6118
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6119
      oprot.writeI64(self.itemId)
6120
      oprot.writeFieldEnd()
6121
    if self.warehouseId is not None:
6122
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6123
      oprot.writeI64(self.warehouseId)
6124
      oprot.writeFieldEnd()
5966 rajveer 6125
    if self.sourceId is not None:
6126
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6127
      oprot.writeI64(self.sourceId)
6128
      oprot.writeFieldEnd()
6129
    if self.orderId is not None:
6130
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6131
      oprot.writeI64(self.orderId)
6132
      oprot.writeFieldEnd()
5944 mandeep.dh 6133
    if self.quantity is not None:
5966 rajveer 6134
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
5944 mandeep.dh 6135
      oprot.writeDouble(self.quantity)
6136
      oprot.writeFieldEnd()
6137
    oprot.writeFieldStop()
6138
    oprot.writeStructEnd()
6139
 
6140
  def validate(self):
6141
    return
6142
 
6143
 
6144
  def __repr__(self):
6145
    L = ['%s=%r' % (key, value)
6146
      for key, value in self.__dict__.iteritems()]
6147
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6148
 
6149
  def __eq__(self, other):
6150
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6151
 
6152
  def __ne__(self, other):
6153
    return not (self == other)
6154
 
6155
class reduceReservationCount_result:
6156
  """
6157
  Attributes:
6158
   - success
6159
   - cex
6160
  """
6161
 
6162
  thrift_spec = (
6163
    (0, TType.BOOL, 'success', None, None, ), # 0
6164
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6165
  )
6166
 
6167
  def __init__(self, success=None, cex=None,):
6168
    self.success = success
6169
    self.cex = cex
6170
 
6171
  def read(self, iprot):
6172
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6173
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6174
      return
6175
    iprot.readStructBegin()
6176
    while True:
6177
      (fname, ftype, fid) = iprot.readFieldBegin()
6178
      if ftype == TType.STOP:
6179
        break
6180
      if fid == 0:
6181
        if ftype == TType.BOOL:
6182
          self.success = iprot.readBool();
6183
        else:
6184
          iprot.skip(ftype)
6185
      elif fid == 1:
6186
        if ftype == TType.STRUCT:
6187
          self.cex = InventoryServiceException()
6188
          self.cex.read(iprot)
6189
        else:
6190
          iprot.skip(ftype)
6191
      else:
6192
        iprot.skip(ftype)
6193
      iprot.readFieldEnd()
6194
    iprot.readStructEnd()
6195
 
6196
  def write(self, oprot):
6197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6199
      return
6200
    oprot.writeStructBegin('reduceReservationCount_result')
6201
    if self.success is not None:
6202
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6203
      oprot.writeBool(self.success)
6204
      oprot.writeFieldEnd()
6205
    if self.cex is not None:
6206
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6207
      self.cex.write(oprot)
6208
      oprot.writeFieldEnd()
6209
    oprot.writeFieldStop()
6210
    oprot.writeStructEnd()
6211
 
6212
  def validate(self):
6213
    return
6214
 
6215
 
6216
  def __repr__(self):
6217
    L = ['%s=%r' % (key, value)
6218
      for key, value in self.__dict__.iteritems()]
6219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6220
 
6221
  def __eq__(self, other):
6222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6223
 
6224
  def __ne__(self, other):
6225
    return not (self == other)
6226
 
6227
class getItemPricing_args:
6228
  """
6229
  Attributes:
6230
   - itemId
6231
   - vendorId
6232
  """
6233
 
6234
  thrift_spec = (
6235
    None, # 0
6236
    (1, TType.I64, 'itemId', None, None, ), # 1
6237
    (2, TType.I64, 'vendorId', None, None, ), # 2
6238
  )
6239
 
6240
  def __init__(self, itemId=None, vendorId=None,):
6241
    self.itemId = itemId
6242
    self.vendorId = vendorId
6243
 
6244
  def read(self, iprot):
6245
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6246
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6247
      return
6248
    iprot.readStructBegin()
6249
    while True:
6250
      (fname, ftype, fid) = iprot.readFieldBegin()
6251
      if ftype == TType.STOP:
6252
        break
6253
      if fid == 1:
6254
        if ftype == TType.I64:
6255
          self.itemId = iprot.readI64();
6256
        else:
6257
          iprot.skip(ftype)
6258
      elif fid == 2:
6259
        if ftype == TType.I64:
6260
          self.vendorId = iprot.readI64();
6261
        else:
6262
          iprot.skip(ftype)
6263
      else:
6264
        iprot.skip(ftype)
6265
      iprot.readFieldEnd()
6266
    iprot.readStructEnd()
6267
 
6268
  def write(self, oprot):
6269
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6270
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6271
      return
6272
    oprot.writeStructBegin('getItemPricing_args')
6273
    if self.itemId is not None:
6274
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6275
      oprot.writeI64(self.itemId)
6276
      oprot.writeFieldEnd()
6277
    if self.vendorId is not None:
6278
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6279
      oprot.writeI64(self.vendorId)
6280
      oprot.writeFieldEnd()
6281
    oprot.writeFieldStop()
6282
    oprot.writeStructEnd()
6283
 
6284
  def validate(self):
6285
    return
6286
 
6287
 
6288
  def __repr__(self):
6289
    L = ['%s=%r' % (key, value)
6290
      for key, value in self.__dict__.iteritems()]
6291
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6292
 
6293
  def __eq__(self, other):
6294
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6295
 
6296
  def __ne__(self, other):
6297
    return not (self == other)
6298
 
6299
class getItemPricing_result:
6300
  """
6301
  Attributes:
6302
   - success
6303
   - cex
6304
  """
6305
 
6306
  thrift_spec = (
6307
    (0, TType.STRUCT, 'success', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 0
6308
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6309
  )
6310
 
6311
  def __init__(self, success=None, cex=None,):
6312
    self.success = success
6313
    self.cex = cex
6314
 
6315
  def read(self, iprot):
6316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6318
      return
6319
    iprot.readStructBegin()
6320
    while True:
6321
      (fname, ftype, fid) = iprot.readFieldBegin()
6322
      if ftype == TType.STOP:
6323
        break
6324
      if fid == 0:
6325
        if ftype == TType.STRUCT:
6326
          self.success = VendorItemPricing()
6327
          self.success.read(iprot)
6328
        else:
6329
          iprot.skip(ftype)
6330
      elif fid == 1:
6331
        if ftype == TType.STRUCT:
6332
          self.cex = InventoryServiceException()
6333
          self.cex.read(iprot)
6334
        else:
6335
          iprot.skip(ftype)
6336
      else:
6337
        iprot.skip(ftype)
6338
      iprot.readFieldEnd()
6339
    iprot.readStructEnd()
6340
 
6341
  def write(self, oprot):
6342
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6343
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6344
      return
6345
    oprot.writeStructBegin('getItemPricing_result')
6346
    if self.success is not None:
6347
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6348
      self.success.write(oprot)
6349
      oprot.writeFieldEnd()
6350
    if self.cex is not None:
6351
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6352
      self.cex.write(oprot)
6353
      oprot.writeFieldEnd()
6354
    oprot.writeFieldStop()
6355
    oprot.writeStructEnd()
6356
 
6357
  def validate(self):
6358
    return
6359
 
6360
 
6361
  def __repr__(self):
6362
    L = ['%s=%r' % (key, value)
6363
      for key, value in self.__dict__.iteritems()]
6364
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6365
 
6366
  def __eq__(self, other):
6367
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6368
 
6369
  def __ne__(self, other):
6370
    return not (self == other)
6371
 
6372
class getAllItemPricing_args:
6373
  """
6374
  Attributes:
6375
   - itemId
6376
  """
6377
 
6378
  thrift_spec = (
6379
    None, # 0
6380
    (1, TType.I64, 'itemId', None, None, ), # 1
6381
  )
6382
 
6383
  def __init__(self, itemId=None,):
6384
    self.itemId = itemId
6385
 
6386
  def read(self, iprot):
6387
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6388
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6389
      return
6390
    iprot.readStructBegin()
6391
    while True:
6392
      (fname, ftype, fid) = iprot.readFieldBegin()
6393
      if ftype == TType.STOP:
6394
        break
6395
      if fid == 1:
6396
        if ftype == TType.I64:
6397
          self.itemId = iprot.readI64();
6398
        else:
6399
          iprot.skip(ftype)
6400
      else:
6401
        iprot.skip(ftype)
6402
      iprot.readFieldEnd()
6403
    iprot.readStructEnd()
6404
 
6405
  def write(self, oprot):
6406
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6407
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6408
      return
6409
    oprot.writeStructBegin('getAllItemPricing_args')
6410
    if self.itemId is not None:
6411
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6412
      oprot.writeI64(self.itemId)
6413
      oprot.writeFieldEnd()
6414
    oprot.writeFieldStop()
6415
    oprot.writeStructEnd()
6416
 
6417
  def validate(self):
6418
    return
6419
 
6420
 
6421
  def __repr__(self):
6422
    L = ['%s=%r' % (key, value)
6423
      for key, value in self.__dict__.iteritems()]
6424
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6425
 
6426
  def __eq__(self, other):
6427
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6428
 
6429
  def __ne__(self, other):
6430
    return not (self == other)
6431
 
6432
class getAllItemPricing_result:
6433
  """
6434
  Attributes:
6435
   - success
6436
   - cex
6437
  """
6438
 
6439
  thrift_spec = (
6440
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
6441
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6442
  )
6443
 
6444
  def __init__(self, success=None, cex=None,):
6445
    self.success = success
6446
    self.cex = cex
6447
 
6448
  def read(self, iprot):
6449
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6450
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6451
      return
6452
    iprot.readStructBegin()
6453
    while True:
6454
      (fname, ftype, fid) = iprot.readFieldBegin()
6455
      if ftype == TType.STOP:
6456
        break
6457
      if fid == 0:
6458
        if ftype == TType.LIST:
6459
          self.success = []
8182 amar.kumar 6460
          (_etype69, _size66) = iprot.readListBegin()
6461
          for _i70 in xrange(_size66):
6462
            _elem71 = VendorItemPricing()
6463
            _elem71.read(iprot)
6464
            self.success.append(_elem71)
5944 mandeep.dh 6465
          iprot.readListEnd()
6466
        else:
6467
          iprot.skip(ftype)
6468
      elif fid == 1:
6469
        if ftype == TType.STRUCT:
6470
          self.cex = InventoryServiceException()
6471
          self.cex.read(iprot)
6472
        else:
6473
          iprot.skip(ftype)
6474
      else:
6475
        iprot.skip(ftype)
6476
      iprot.readFieldEnd()
6477
    iprot.readStructEnd()
6478
 
6479
  def write(self, oprot):
6480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6482
      return
6483
    oprot.writeStructBegin('getAllItemPricing_result')
6484
    if self.success is not None:
6485
      oprot.writeFieldBegin('success', TType.LIST, 0)
6486
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 6487
      for iter72 in self.success:
6488
        iter72.write(oprot)
5944 mandeep.dh 6489
      oprot.writeListEnd()
6490
      oprot.writeFieldEnd()
6491
    if self.cex is not None:
6492
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6493
      self.cex.write(oprot)
6494
      oprot.writeFieldEnd()
6495
    oprot.writeFieldStop()
6496
    oprot.writeStructEnd()
6497
 
6498
  def validate(self):
6499
    return
6500
 
6501
 
6502
  def __repr__(self):
6503
    L = ['%s=%r' % (key, value)
6504
      for key, value in self.__dict__.iteritems()]
6505
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6506
 
6507
  def __eq__(self, other):
6508
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6509
 
6510
  def __ne__(self, other):
6511
    return not (self == other)
6512
 
6513
class addVendorItemPricing_args:
6514
  """
6515
  Attributes:
6516
   - vendorItemPricing
6517
  """
6518
 
6519
  thrift_spec = (
6520
    None, # 0
6521
    (1, TType.STRUCT, 'vendorItemPricing', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 1
6522
  )
6523
 
6524
  def __init__(self, vendorItemPricing=None,):
6525
    self.vendorItemPricing = vendorItemPricing
6526
 
6527
  def read(self, iprot):
6528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6530
      return
6531
    iprot.readStructBegin()
6532
    while True:
6533
      (fname, ftype, fid) = iprot.readFieldBegin()
6534
      if ftype == TType.STOP:
6535
        break
6536
      if fid == 1:
6537
        if ftype == TType.STRUCT:
6538
          self.vendorItemPricing = VendorItemPricing()
6539
          self.vendorItemPricing.read(iprot)
6540
        else:
6541
          iprot.skip(ftype)
6542
      else:
6543
        iprot.skip(ftype)
6544
      iprot.readFieldEnd()
6545
    iprot.readStructEnd()
6546
 
6547
  def write(self, oprot):
6548
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6549
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6550
      return
6551
    oprot.writeStructBegin('addVendorItemPricing_args')
6552
    if self.vendorItemPricing is not None:
6553
      oprot.writeFieldBegin('vendorItemPricing', TType.STRUCT, 1)
6554
      self.vendorItemPricing.write(oprot)
6555
      oprot.writeFieldEnd()
6556
    oprot.writeFieldStop()
6557
    oprot.writeStructEnd()
6558
 
6559
  def validate(self):
6560
    return
6561
 
6562
 
6563
  def __repr__(self):
6564
    L = ['%s=%r' % (key, value)
6565
      for key, value in self.__dict__.iteritems()]
6566
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6567
 
6568
  def __eq__(self, other):
6569
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6570
 
6571
  def __ne__(self, other):
6572
    return not (self == other)
6573
 
6574
class addVendorItemPricing_result:
6575
  """
6576
  Attributes:
6577
   - cex
6578
  """
6579
 
6580
  thrift_spec = (
6581
    None, # 0
6582
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6583
  )
6584
 
6585
  def __init__(self, cex=None,):
6586
    self.cex = cex
6587
 
6588
  def read(self, iprot):
6589
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6590
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6591
      return
6592
    iprot.readStructBegin()
6593
    while True:
6594
      (fname, ftype, fid) = iprot.readFieldBegin()
6595
      if ftype == TType.STOP:
6596
        break
6597
      if fid == 1:
6598
        if ftype == TType.STRUCT:
6599
          self.cex = InventoryServiceException()
6600
          self.cex.read(iprot)
6601
        else:
6602
          iprot.skip(ftype)
6603
      else:
6604
        iprot.skip(ftype)
6605
      iprot.readFieldEnd()
6606
    iprot.readStructEnd()
6607
 
6608
  def write(self, oprot):
6609
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6610
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6611
      return
6612
    oprot.writeStructBegin('addVendorItemPricing_result')
6613
    if self.cex is not None:
6614
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6615
      self.cex.write(oprot)
6616
      oprot.writeFieldEnd()
6617
    oprot.writeFieldStop()
6618
    oprot.writeStructEnd()
6619
 
6620
  def validate(self):
6621
    return
6622
 
6623
 
6624
  def __repr__(self):
6625
    L = ['%s=%r' % (key, value)
6626
      for key, value in self.__dict__.iteritems()]
6627
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6628
 
6629
  def __eq__(self, other):
6630
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6631
 
6632
  def __ne__(self, other):
6633
    return not (self == other)
6634
 
6635
class getVendor_args:
6636
  """
6637
  Attributes:
6638
   - vendorId
6639
  """
6640
 
6641
  thrift_spec = (
6642
    None, # 0
6643
    (1, TType.I64, 'vendorId', None, None, ), # 1
6644
  )
6645
 
6646
  def __init__(self, vendorId=None,):
6647
    self.vendorId = vendorId
6648
 
6649
  def read(self, iprot):
6650
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6651
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6652
      return
6653
    iprot.readStructBegin()
6654
    while True:
6655
      (fname, ftype, fid) = iprot.readFieldBegin()
6656
      if ftype == TType.STOP:
6657
        break
6658
      if fid == 1:
6659
        if ftype == TType.I64:
6660
          self.vendorId = iprot.readI64();
6661
        else:
6662
          iprot.skip(ftype)
6663
      else:
6664
        iprot.skip(ftype)
6665
      iprot.readFieldEnd()
6666
    iprot.readStructEnd()
6667
 
6668
  def write(self, oprot):
6669
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6670
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6671
      return
6672
    oprot.writeStructBegin('getVendor_args')
6673
    if self.vendorId is not None:
6674
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
6675
      oprot.writeI64(self.vendorId)
6676
      oprot.writeFieldEnd()
6677
    oprot.writeFieldStop()
6678
    oprot.writeStructEnd()
6679
 
6680
  def validate(self):
6681
    return
6682
 
6683
 
6684
  def __repr__(self):
6685
    L = ['%s=%r' % (key, value)
6686
      for key, value in self.__dict__.iteritems()]
6687
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6688
 
6689
  def __eq__(self, other):
6690
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6691
 
6692
  def __ne__(self, other):
6693
    return not (self == other)
6694
 
6695
class getVendor_result:
6696
  """
6697
  Attributes:
6698
   - success
6699
  """
6700
 
6701
  thrift_spec = (
6702
    (0, TType.STRUCT, 'success', (Vendor, Vendor.thrift_spec), None, ), # 0
6703
  )
6704
 
6705
  def __init__(self, success=None,):
6706
    self.success = success
6707
 
6708
  def read(self, iprot):
6709
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6710
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6711
      return
6712
    iprot.readStructBegin()
6713
    while True:
6714
      (fname, ftype, fid) = iprot.readFieldBegin()
6715
      if ftype == TType.STOP:
6716
        break
6717
      if fid == 0:
6718
        if ftype == TType.STRUCT:
6719
          self.success = Vendor()
6720
          self.success.read(iprot)
6721
        else:
6722
          iprot.skip(ftype)
6723
      else:
6724
        iprot.skip(ftype)
6725
      iprot.readFieldEnd()
6726
    iprot.readStructEnd()
6727
 
6728
  def write(self, oprot):
6729
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6730
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6731
      return
6732
    oprot.writeStructBegin('getVendor_result')
6733
    if self.success is not None:
6734
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6735
      self.success.write(oprot)
6736
      oprot.writeFieldEnd()
6737
    oprot.writeFieldStop()
6738
    oprot.writeStructEnd()
6739
 
6740
  def validate(self):
6741
    return
6742
 
6743
 
6744
  def __repr__(self):
6745
    L = ['%s=%r' % (key, value)
6746
      for key, value in self.__dict__.iteritems()]
6747
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6748
 
6749
  def __eq__(self, other):
6750
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6751
 
6752
  def __ne__(self, other):
6753
    return not (self == other)
6754
 
6755
class getAllVendors_args:
6756
 
6757
  thrift_spec = (
6758
  )
6759
 
6760
  def read(self, iprot):
6761
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6762
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6763
      return
6764
    iprot.readStructBegin()
6765
    while True:
6766
      (fname, ftype, fid) = iprot.readFieldBegin()
6767
      if ftype == TType.STOP:
6768
        break
6769
      else:
6770
        iprot.skip(ftype)
6771
      iprot.readFieldEnd()
6772
    iprot.readStructEnd()
6773
 
6774
  def write(self, oprot):
6775
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6776
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6777
      return
6778
    oprot.writeStructBegin('getAllVendors_args')
6779
    oprot.writeFieldStop()
6780
    oprot.writeStructEnd()
6781
 
6782
  def validate(self):
6783
    return
6784
 
6785
 
6786
  def __repr__(self):
6787
    L = ['%s=%r' % (key, value)
6788
      for key, value in self.__dict__.iteritems()]
6789
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6790
 
6791
  def __eq__(self, other):
6792
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6793
 
6794
  def __ne__(self, other):
6795
    return not (self == other)
6796
 
6797
class getAllVendors_result:
6798
  """
6799
  Attributes:
6800
   - success
6801
  """
6802
 
6803
  thrift_spec = (
6804
    (0, TType.LIST, 'success', (TType.STRUCT,(Vendor, Vendor.thrift_spec)), None, ), # 0
6805
  )
6806
 
6807
  def __init__(self, success=None,):
6808
    self.success = success
6809
 
6810
  def read(self, iprot):
6811
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6812
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6813
      return
6814
    iprot.readStructBegin()
6815
    while True:
6816
      (fname, ftype, fid) = iprot.readFieldBegin()
6817
      if ftype == TType.STOP:
6818
        break
6819
      if fid == 0:
6820
        if ftype == TType.LIST:
6821
          self.success = []
8182 amar.kumar 6822
          (_etype76, _size73) = iprot.readListBegin()
6823
          for _i77 in xrange(_size73):
6824
            _elem78 = Vendor()
6825
            _elem78.read(iprot)
6826
            self.success.append(_elem78)
5944 mandeep.dh 6827
          iprot.readListEnd()
6828
        else:
6829
          iprot.skip(ftype)
6830
      else:
6831
        iprot.skip(ftype)
6832
      iprot.readFieldEnd()
6833
    iprot.readStructEnd()
6834
 
6835
  def write(self, oprot):
6836
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6837
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6838
      return
6839
    oprot.writeStructBegin('getAllVendors_result')
6840
    if self.success is not None:
6841
      oprot.writeFieldBegin('success', TType.LIST, 0)
6842
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 6843
      for iter79 in self.success:
6844
        iter79.write(oprot)
5944 mandeep.dh 6845
      oprot.writeListEnd()
6846
      oprot.writeFieldEnd()
6847
    oprot.writeFieldStop()
6848
    oprot.writeStructEnd()
6849
 
6850
  def validate(self):
6851
    return
6852
 
6853
 
6854
  def __repr__(self):
6855
    L = ['%s=%r' % (key, value)
6856
      for key, value in self.__dict__.iteritems()]
6857
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6858
 
6859
  def __eq__(self, other):
6860
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6861
 
6862
  def __ne__(self, other):
6863
    return not (self == other)
6864
 
6865
class addVendorItemMapping_args:
6866
  """
6867
  Attributes:
6868
   - key
6869
   - vendorItemMapping
6870
  """
6871
 
6872
  thrift_spec = (
6873
    None, # 0
6874
    (1, TType.STRING, 'key', None, None, ), # 1
6875
    (2, TType.STRUCT, 'vendorItemMapping', (VendorItemMapping, VendorItemMapping.thrift_spec), None, ), # 2
6876
  )
6877
 
6878
  def __init__(self, key=None, vendorItemMapping=None,):
6879
    self.key = key
6880
    self.vendorItemMapping = vendorItemMapping
6881
 
6882
  def read(self, iprot):
6883
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6884
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6885
      return
6886
    iprot.readStructBegin()
6887
    while True:
6888
      (fname, ftype, fid) = iprot.readFieldBegin()
6889
      if ftype == TType.STOP:
6890
        break
6891
      if fid == 1:
6892
        if ftype == TType.STRING:
6893
          self.key = iprot.readString();
6894
        else:
6895
          iprot.skip(ftype)
6896
      elif fid == 2:
6897
        if ftype == TType.STRUCT:
6898
          self.vendorItemMapping = VendorItemMapping()
6899
          self.vendorItemMapping.read(iprot)
6900
        else:
6901
          iprot.skip(ftype)
6902
      else:
6903
        iprot.skip(ftype)
6904
      iprot.readFieldEnd()
6905
    iprot.readStructEnd()
6906
 
6907
  def write(self, oprot):
6908
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6909
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6910
      return
6911
    oprot.writeStructBegin('addVendorItemMapping_args')
6912
    if self.key is not None:
6913
      oprot.writeFieldBegin('key', TType.STRING, 1)
6914
      oprot.writeString(self.key)
6915
      oprot.writeFieldEnd()
6916
    if self.vendorItemMapping is not None:
6917
      oprot.writeFieldBegin('vendorItemMapping', TType.STRUCT, 2)
6918
      self.vendorItemMapping.write(oprot)
6919
      oprot.writeFieldEnd()
6920
    oprot.writeFieldStop()
6921
    oprot.writeStructEnd()
6922
 
6923
  def validate(self):
6924
    return
6925
 
6926
 
6927
  def __repr__(self):
6928
    L = ['%s=%r' % (key, value)
6929
      for key, value in self.__dict__.iteritems()]
6930
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6931
 
6932
  def __eq__(self, other):
6933
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6934
 
6935
  def __ne__(self, other):
6936
    return not (self == other)
6937
 
6938
class addVendorItemMapping_result:
6939
  """
6940
  Attributes:
6941
   - cex
6942
  """
6943
 
6944
  thrift_spec = (
6945
    None, # 0
6946
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6947
  )
6948
 
6949
  def __init__(self, cex=None,):
6950
    self.cex = cex
6951
 
6952
  def read(self, iprot):
6953
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6954
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6955
      return
6956
    iprot.readStructBegin()
6957
    while True:
6958
      (fname, ftype, fid) = iprot.readFieldBegin()
6959
      if ftype == TType.STOP:
6960
        break
6961
      if fid == 1:
6962
        if ftype == TType.STRUCT:
6963
          self.cex = InventoryServiceException()
6964
          self.cex.read(iprot)
6965
        else:
6966
          iprot.skip(ftype)
6967
      else:
6968
        iprot.skip(ftype)
6969
      iprot.readFieldEnd()
6970
    iprot.readStructEnd()
6971
 
6972
  def write(self, oprot):
6973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6975
      return
6976
    oprot.writeStructBegin('addVendorItemMapping_result')
6977
    if self.cex is not None:
6978
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6979
      self.cex.write(oprot)
6980
      oprot.writeFieldEnd()
6981
    oprot.writeFieldStop()
6982
    oprot.writeStructEnd()
6983
 
6984
  def validate(self):
6985
    return
6986
 
6987
 
6988
  def __repr__(self):
6989
    L = ['%s=%r' % (key, value)
6990
      for key, value in self.__dict__.iteritems()]
6991
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6992
 
6993
  def __eq__(self, other):
6994
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6995
 
6996
  def __ne__(self, other):
6997
    return not (self == other)
6998
 
6999
class getVendorItemMappings_args:
7000
  """
7001
  Attributes:
7002
   - itemId
7003
  """
7004
 
7005
  thrift_spec = (
7006
    None, # 0
7007
    (1, TType.I64, 'itemId', None, None, ), # 1
7008
  )
7009
 
7010
  def __init__(self, itemId=None,):
7011
    self.itemId = itemId
7012
 
7013
  def read(self, iprot):
7014
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7015
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7016
      return
7017
    iprot.readStructBegin()
7018
    while True:
7019
      (fname, ftype, fid) = iprot.readFieldBegin()
7020
      if ftype == TType.STOP:
7021
        break
7022
      if fid == 1:
7023
        if ftype == TType.I64:
7024
          self.itemId = iprot.readI64();
7025
        else:
7026
          iprot.skip(ftype)
7027
      else:
7028
        iprot.skip(ftype)
7029
      iprot.readFieldEnd()
7030
    iprot.readStructEnd()
7031
 
7032
  def write(self, oprot):
7033
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7034
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7035
      return
7036
    oprot.writeStructBegin('getVendorItemMappings_args')
7037
    if self.itemId is not None:
7038
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7039
      oprot.writeI64(self.itemId)
7040
      oprot.writeFieldEnd()
7041
    oprot.writeFieldStop()
7042
    oprot.writeStructEnd()
7043
 
7044
  def validate(self):
7045
    return
7046
 
7047
 
7048
  def __repr__(self):
7049
    L = ['%s=%r' % (key, value)
7050
      for key, value in self.__dict__.iteritems()]
7051
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7052
 
7053
  def __eq__(self, other):
7054
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7055
 
7056
  def __ne__(self, other):
7057
    return not (self == other)
7058
 
7059
class getVendorItemMappings_result:
7060
  """
7061
  Attributes:
7062
   - success
7063
   - cex
7064
  """
7065
 
7066
  thrift_spec = (
7067
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
7068
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7069
  )
7070
 
7071
  def __init__(self, success=None, cex=None,):
7072
    self.success = success
7073
    self.cex = cex
7074
 
7075
  def read(self, iprot):
7076
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7077
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7078
      return
7079
    iprot.readStructBegin()
7080
    while True:
7081
      (fname, ftype, fid) = iprot.readFieldBegin()
7082
      if ftype == TType.STOP:
7083
        break
7084
      if fid == 0:
7085
        if ftype == TType.LIST:
7086
          self.success = []
8182 amar.kumar 7087
          (_etype83, _size80) = iprot.readListBegin()
7088
          for _i84 in xrange(_size80):
7089
            _elem85 = VendorItemMapping()
7090
            _elem85.read(iprot)
7091
            self.success.append(_elem85)
5944 mandeep.dh 7092
          iprot.readListEnd()
7093
        else:
7094
          iprot.skip(ftype)
7095
      elif fid == 1:
7096
        if ftype == TType.STRUCT:
7097
          self.cex = InventoryServiceException()
7098
          self.cex.read(iprot)
7099
        else:
7100
          iprot.skip(ftype)
7101
      else:
7102
        iprot.skip(ftype)
7103
      iprot.readFieldEnd()
7104
    iprot.readStructEnd()
7105
 
7106
  def write(self, oprot):
7107
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7108
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7109
      return
7110
    oprot.writeStructBegin('getVendorItemMappings_result')
7111
    if self.success is not None:
7112
      oprot.writeFieldBegin('success', TType.LIST, 0)
7113
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7114
      for iter86 in self.success:
7115
        iter86.write(oprot)
5944 mandeep.dh 7116
      oprot.writeListEnd()
7117
      oprot.writeFieldEnd()
7118
    if self.cex is not None:
7119
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7120
      self.cex.write(oprot)
7121
      oprot.writeFieldEnd()
7122
    oprot.writeFieldStop()
7123
    oprot.writeStructEnd()
7124
 
7125
  def validate(self):
7126
    return
7127
 
7128
 
7129
  def __repr__(self):
7130
    L = ['%s=%r' % (key, value)
7131
      for key, value in self.__dict__.iteritems()]
7132
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7133
 
7134
  def __eq__(self, other):
7135
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7136
 
7137
  def __ne__(self, other):
7138
    return not (self == other)
7139
 
7140
class getPendingOrdersInventory_args:
7141
  """
7142
  Attributes:
7143
   - vendorid
7144
  """
7145
 
7146
  thrift_spec = (
7147
    None, # 0
7148
    (1, TType.I64, 'vendorid', None, None, ), # 1
7149
  )
7150
 
7151
  def __init__(self, vendorid=None,):
7152
    self.vendorid = vendorid
7153
 
7154
  def read(self, iprot):
7155
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7156
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7157
      return
7158
    iprot.readStructBegin()
7159
    while True:
7160
      (fname, ftype, fid) = iprot.readFieldBegin()
7161
      if ftype == TType.STOP:
7162
        break
7163
      if fid == 1:
7164
        if ftype == TType.I64:
7165
          self.vendorid = iprot.readI64();
7166
        else:
7167
          iprot.skip(ftype)
7168
      else:
7169
        iprot.skip(ftype)
7170
      iprot.readFieldEnd()
7171
    iprot.readStructEnd()
7172
 
7173
  def write(self, oprot):
7174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7176
      return
7177
    oprot.writeStructBegin('getPendingOrdersInventory_args')
7178
    if self.vendorid is not None:
7179
      oprot.writeFieldBegin('vendorid', TType.I64, 1)
7180
      oprot.writeI64(self.vendorid)
7181
      oprot.writeFieldEnd()
7182
    oprot.writeFieldStop()
7183
    oprot.writeStructEnd()
7184
 
7185
  def validate(self):
7186
    return
7187
 
7188
 
7189
  def __repr__(self):
7190
    L = ['%s=%r' % (key, value)
7191
      for key, value in self.__dict__.iteritems()]
7192
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7193
 
7194
  def __eq__(self, other):
7195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7196
 
7197
  def __ne__(self, other):
7198
    return not (self == other)
7199
 
7200
class getPendingOrdersInventory_result:
7201
  """
7202
  Attributes:
7203
   - success
7204
  """
7205
 
7206
  thrift_spec = (
7207
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
7208
  )
7209
 
7210
  def __init__(self, success=None,):
7211
    self.success = success
7212
 
7213
  def read(self, iprot):
7214
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7215
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7216
      return
7217
    iprot.readStructBegin()
7218
    while True:
7219
      (fname, ftype, fid) = iprot.readFieldBegin()
7220
      if ftype == TType.STOP:
7221
        break
7222
      if fid == 0:
7223
        if ftype == TType.LIST:
7224
          self.success = []
8182 amar.kumar 7225
          (_etype90, _size87) = iprot.readListBegin()
7226
          for _i91 in xrange(_size87):
7227
            _elem92 = AvailableAndReservedStock()
7228
            _elem92.read(iprot)
7229
            self.success.append(_elem92)
5944 mandeep.dh 7230
          iprot.readListEnd()
7231
        else:
7232
          iprot.skip(ftype)
7233
      else:
7234
        iprot.skip(ftype)
7235
      iprot.readFieldEnd()
7236
    iprot.readStructEnd()
7237
 
7238
  def write(self, oprot):
7239
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7240
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7241
      return
7242
    oprot.writeStructBegin('getPendingOrdersInventory_result')
7243
    if self.success is not None:
7244
      oprot.writeFieldBegin('success', TType.LIST, 0)
7245
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7246
      for iter93 in self.success:
7247
        iter93.write(oprot)
5944 mandeep.dh 7248
      oprot.writeListEnd()
7249
      oprot.writeFieldEnd()
7250
    oprot.writeFieldStop()
7251
    oprot.writeStructEnd()
7252
 
7253
  def validate(self):
7254
    return
7255
 
7256
 
7257
  def __repr__(self):
7258
    L = ['%s=%r' % (key, value)
7259
      for key, value in self.__dict__.iteritems()]
7260
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7261
 
7262
  def __eq__(self, other):
7263
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7264
 
7265
  def __ne__(self, other):
7266
    return not (self == other)
7267
 
7268
class getWarehouses_args:
7269
  """
7270
  Attributes:
7271
   - warehouseType
7272
   - inventoryType
7273
   - vendorId
7274
   - billingWarehouseId
7275
   - shippingWarehouseId
7276
  """
7277
 
7278
  thrift_spec = (
7279
    None, # 0
7280
    (1, TType.I32, 'warehouseType', None, None, ), # 1
7281
    (2, TType.I32, 'inventoryType', None, None, ), # 2
7282
    (3, TType.I64, 'vendorId', None, None, ), # 3
7283
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
7284
    (5, TType.I64, 'shippingWarehouseId', None, None, ), # 5
7285
  )
7286
 
7287
  def __init__(self, warehouseType=None, inventoryType=None, vendorId=None, billingWarehouseId=None, shippingWarehouseId=None,):
7288
    self.warehouseType = warehouseType
7289
    self.inventoryType = inventoryType
7290
    self.vendorId = vendorId
7291
    self.billingWarehouseId = billingWarehouseId
7292
    self.shippingWarehouseId = shippingWarehouseId
7293
 
7294
  def read(self, iprot):
7295
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7296
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7297
      return
7298
    iprot.readStructBegin()
7299
    while True:
7300
      (fname, ftype, fid) = iprot.readFieldBegin()
7301
      if ftype == TType.STOP:
7302
        break
7303
      if fid == 1:
7304
        if ftype == TType.I32:
7305
          self.warehouseType = iprot.readI32();
7306
        else:
7307
          iprot.skip(ftype)
7308
      elif fid == 2:
7309
        if ftype == TType.I32:
7310
          self.inventoryType = iprot.readI32();
7311
        else:
7312
          iprot.skip(ftype)
7313
      elif fid == 3:
7314
        if ftype == TType.I64:
7315
          self.vendorId = iprot.readI64();
7316
        else:
7317
          iprot.skip(ftype)
7318
      elif fid == 4:
7319
        if ftype == TType.I64:
7320
          self.billingWarehouseId = iprot.readI64();
7321
        else:
7322
          iprot.skip(ftype)
7323
      elif fid == 5:
7324
        if ftype == TType.I64:
7325
          self.shippingWarehouseId = iprot.readI64();
7326
        else:
7327
          iprot.skip(ftype)
7328
      else:
7329
        iprot.skip(ftype)
7330
      iprot.readFieldEnd()
7331
    iprot.readStructEnd()
7332
 
7333
  def write(self, oprot):
7334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7336
      return
7337
    oprot.writeStructBegin('getWarehouses_args')
7338
    if self.warehouseType is not None:
7339
      oprot.writeFieldBegin('warehouseType', TType.I32, 1)
7340
      oprot.writeI32(self.warehouseType)
7341
      oprot.writeFieldEnd()
7342
    if self.inventoryType is not None:
7343
      oprot.writeFieldBegin('inventoryType', TType.I32, 2)
7344
      oprot.writeI32(self.inventoryType)
7345
      oprot.writeFieldEnd()
7346
    if self.vendorId is not None:
7347
      oprot.writeFieldBegin('vendorId', TType.I64, 3)
7348
      oprot.writeI64(self.vendorId)
7349
      oprot.writeFieldEnd()
7350
    if self.billingWarehouseId is not None:
7351
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
7352
      oprot.writeI64(self.billingWarehouseId)
7353
      oprot.writeFieldEnd()
7354
    if self.shippingWarehouseId is not None:
7355
      oprot.writeFieldBegin('shippingWarehouseId', TType.I64, 5)
7356
      oprot.writeI64(self.shippingWarehouseId)
7357
      oprot.writeFieldEnd()
7358
    oprot.writeFieldStop()
7359
    oprot.writeStructEnd()
7360
 
7361
  def validate(self):
7362
    return
7363
 
7364
 
7365
  def __repr__(self):
7366
    L = ['%s=%r' % (key, value)
7367
      for key, value in self.__dict__.iteritems()]
7368
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7369
 
7370
  def __eq__(self, other):
7371
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7372
 
7373
  def __ne__(self, other):
7374
    return not (self == other)
7375
 
7376
class getWarehouses_result:
7377
  """
7378
  Attributes:
7379
   - success
7380
  """
7381
 
7382
  thrift_spec = (
7383
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
7384
  )
7385
 
7386
  def __init__(self, success=None,):
7387
    self.success = success
7388
 
7389
  def read(self, iprot):
7390
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7391
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7392
      return
7393
    iprot.readStructBegin()
7394
    while True:
7395
      (fname, ftype, fid) = iprot.readFieldBegin()
7396
      if ftype == TType.STOP:
7397
        break
7398
      if fid == 0:
7399
        if ftype == TType.LIST:
7400
          self.success = []
8182 amar.kumar 7401
          (_etype97, _size94) = iprot.readListBegin()
7402
          for _i98 in xrange(_size94):
7403
            _elem99 = Warehouse()
7404
            _elem99.read(iprot)
7405
            self.success.append(_elem99)
5944 mandeep.dh 7406
          iprot.readListEnd()
7407
        else:
7408
          iprot.skip(ftype)
7409
      else:
7410
        iprot.skip(ftype)
7411
      iprot.readFieldEnd()
7412
    iprot.readStructEnd()
7413
 
7414
  def write(self, oprot):
7415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7417
      return
7418
    oprot.writeStructBegin('getWarehouses_result')
7419
    if self.success is not None:
7420
      oprot.writeFieldBegin('success', TType.LIST, 0)
7421
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7422
      for iter100 in self.success:
7423
        iter100.write(oprot)
5944 mandeep.dh 7424
      oprot.writeListEnd()
7425
      oprot.writeFieldEnd()
7426
    oprot.writeFieldStop()
7427
    oprot.writeStructEnd()
7428
 
7429
  def validate(self):
7430
    return
7431
 
7432
 
7433
  def __repr__(self):
7434
    L = ['%s=%r' % (key, value)
7435
      for key, value in self.__dict__.iteritems()]
7436
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7437
 
7438
  def __eq__(self, other):
7439
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7440
 
7441
  def __ne__(self, other):
7442
    return not (self == other)
7443
 
7444
class resetAvailability_args:
7445
  """
7446
  Attributes:
7447
   - itemKey
7448
   - vendorId
7449
   - quantity
7450
   - warehouseId
7451
  """
7452
 
7453
  thrift_spec = (
7454
    None, # 0
7455
    (1, TType.STRING, 'itemKey', None, None, ), # 1
7456
    (2, TType.I64, 'vendorId', None, None, ), # 2
7457
    (3, TType.I64, 'quantity', None, None, ), # 3
7458
    (4, TType.I64, 'warehouseId', None, None, ), # 4
7459
  )
7460
 
7461
  def __init__(self, itemKey=None, vendorId=None, quantity=None, warehouseId=None,):
7462
    self.itemKey = itemKey
7463
    self.vendorId = vendorId
7464
    self.quantity = quantity
7465
    self.warehouseId = warehouseId
7466
 
7467
  def read(self, iprot):
7468
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7469
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7470
      return
7471
    iprot.readStructBegin()
7472
    while True:
7473
      (fname, ftype, fid) = iprot.readFieldBegin()
7474
      if ftype == TType.STOP:
7475
        break
7476
      if fid == 1:
7477
        if ftype == TType.STRING:
7478
          self.itemKey = iprot.readString();
7479
        else:
7480
          iprot.skip(ftype)
7481
      elif fid == 2:
7482
        if ftype == TType.I64:
7483
          self.vendorId = iprot.readI64();
7484
        else:
7485
          iprot.skip(ftype)
7486
      elif fid == 3:
7487
        if ftype == TType.I64:
7488
          self.quantity = iprot.readI64();
7489
        else:
7490
          iprot.skip(ftype)
7491
      elif fid == 4:
7492
        if ftype == TType.I64:
7493
          self.warehouseId = iprot.readI64();
7494
        else:
7495
          iprot.skip(ftype)
7496
      else:
7497
        iprot.skip(ftype)
7498
      iprot.readFieldEnd()
7499
    iprot.readStructEnd()
7500
 
7501
  def write(self, oprot):
7502
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7503
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7504
      return
7505
    oprot.writeStructBegin('resetAvailability_args')
7506
    if self.itemKey is not None:
7507
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
7508
      oprot.writeString(self.itemKey)
7509
      oprot.writeFieldEnd()
7510
    if self.vendorId is not None:
7511
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
7512
      oprot.writeI64(self.vendorId)
7513
      oprot.writeFieldEnd()
7514
    if self.quantity is not None:
7515
      oprot.writeFieldBegin('quantity', TType.I64, 3)
7516
      oprot.writeI64(self.quantity)
7517
      oprot.writeFieldEnd()
7518
    if self.warehouseId is not None:
7519
      oprot.writeFieldBegin('warehouseId', TType.I64, 4)
7520
      oprot.writeI64(self.warehouseId)
7521
      oprot.writeFieldEnd()
7522
    oprot.writeFieldStop()
7523
    oprot.writeStructEnd()
7524
 
7525
  def validate(self):
7526
    return
7527
 
7528
 
7529
  def __repr__(self):
7530
    L = ['%s=%r' % (key, value)
7531
      for key, value in self.__dict__.iteritems()]
7532
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7533
 
7534
  def __eq__(self, other):
7535
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7536
 
7537
  def __ne__(self, other):
7538
    return not (self == other)
7539
 
7540
class resetAvailability_result:
7541
  """
7542
  Attributes:
7543
   - cex
7544
  """
7545
 
7546
  thrift_spec = (
7547
    None, # 0
7548
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7549
  )
7550
 
7551
  def __init__(self, cex=None,):
7552
    self.cex = cex
7553
 
7554
  def read(self, iprot):
7555
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7556
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7557
      return
7558
    iprot.readStructBegin()
7559
    while True:
7560
      (fname, ftype, fid) = iprot.readFieldBegin()
7561
      if ftype == TType.STOP:
7562
        break
7563
      if fid == 1:
7564
        if ftype == TType.STRUCT:
7565
          self.cex = InventoryServiceException()
7566
          self.cex.read(iprot)
7567
        else:
7568
          iprot.skip(ftype)
7569
      else:
7570
        iprot.skip(ftype)
7571
      iprot.readFieldEnd()
7572
    iprot.readStructEnd()
7573
 
7574
  def write(self, oprot):
7575
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7576
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7577
      return
7578
    oprot.writeStructBegin('resetAvailability_result')
7579
    if self.cex is not None:
7580
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7581
      self.cex.write(oprot)
7582
      oprot.writeFieldEnd()
7583
    oprot.writeFieldStop()
7584
    oprot.writeStructEnd()
7585
 
7586
  def validate(self):
7587
    return
7588
 
7589
 
7590
  def __repr__(self):
7591
    L = ['%s=%r' % (key, value)
7592
      for key, value in self.__dict__.iteritems()]
7593
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7594
 
7595
  def __eq__(self, other):
7596
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7597
 
7598
  def __ne__(self, other):
7599
    return not (self == other)
7600
 
7601
class resetAvailabilityForWarehouse_args:
7602
  """
7603
  Attributes:
7604
   - warehouseId
7605
  """
7606
 
7607
  thrift_spec = (
7608
    None, # 0
7609
    (1, TType.I64, 'warehouseId', None, None, ), # 1
7610
  )
7611
 
7612
  def __init__(self, warehouseId=None,):
7613
    self.warehouseId = warehouseId
7614
 
7615
  def read(self, iprot):
7616
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7617
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7618
      return
7619
    iprot.readStructBegin()
7620
    while True:
7621
      (fname, ftype, fid) = iprot.readFieldBegin()
7622
      if ftype == TType.STOP:
7623
        break
7624
      if fid == 1:
7625
        if ftype == TType.I64:
7626
          self.warehouseId = iprot.readI64();
7627
        else:
7628
          iprot.skip(ftype)
7629
      else:
7630
        iprot.skip(ftype)
7631
      iprot.readFieldEnd()
7632
    iprot.readStructEnd()
7633
 
7634
  def write(self, oprot):
7635
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7636
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7637
      return
7638
    oprot.writeStructBegin('resetAvailabilityForWarehouse_args')
7639
    if self.warehouseId is not None:
7640
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
7641
      oprot.writeI64(self.warehouseId)
7642
      oprot.writeFieldEnd()
7643
    oprot.writeFieldStop()
7644
    oprot.writeStructEnd()
7645
 
7646
  def validate(self):
7647
    return
7648
 
7649
 
7650
  def __repr__(self):
7651
    L = ['%s=%r' % (key, value)
7652
      for key, value in self.__dict__.iteritems()]
7653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7654
 
7655
  def __eq__(self, other):
7656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7657
 
7658
  def __ne__(self, other):
7659
    return not (self == other)
7660
 
7661
class resetAvailabilityForWarehouse_result:
7662
  """
7663
  Attributes:
7664
   - cex
7665
  """
7666
 
7667
  thrift_spec = (
7668
    None, # 0
7669
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7670
  )
7671
 
7672
  def __init__(self, cex=None,):
7673
    self.cex = cex
7674
 
7675
  def read(self, iprot):
7676
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7677
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7678
      return
7679
    iprot.readStructBegin()
7680
    while True:
7681
      (fname, ftype, fid) = iprot.readFieldBegin()
7682
      if ftype == TType.STOP:
7683
        break
7684
      if fid == 1:
7685
        if ftype == TType.STRUCT:
7686
          self.cex = InventoryServiceException()
7687
          self.cex.read(iprot)
7688
        else:
7689
          iprot.skip(ftype)
7690
      else:
7691
        iprot.skip(ftype)
7692
      iprot.readFieldEnd()
7693
    iprot.readStructEnd()
7694
 
7695
  def write(self, oprot):
7696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7698
      return
7699
    oprot.writeStructBegin('resetAvailabilityForWarehouse_result')
7700
    if self.cex is not None:
7701
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7702
      self.cex.write(oprot)
7703
      oprot.writeFieldEnd()
7704
    oprot.writeFieldStop()
7705
    oprot.writeStructEnd()
7706
 
7707
  def validate(self):
7708
    return
7709
 
7710
 
7711
  def __repr__(self):
7712
    L = ['%s=%r' % (key, value)
7713
      for key, value in self.__dict__.iteritems()]
7714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7715
 
7716
  def __eq__(self, other):
7717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7718
 
7719
  def __ne__(self, other):
7720
    return not (self == other)
7721
 
7722
class getItemKeysToBeProcessed_args:
7723
  """
7724
  Attributes:
7725
   - warehouseId
7726
  """
7727
 
7728
  thrift_spec = (
7729
    None, # 0
7730
    (1, TType.I64, 'warehouseId', None, None, ), # 1
7731
  )
7732
 
7733
  def __init__(self, warehouseId=None,):
7734
    self.warehouseId = warehouseId
7735
 
7736
  def read(self, iprot):
7737
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7738
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7739
      return
7740
    iprot.readStructBegin()
7741
    while True:
7742
      (fname, ftype, fid) = iprot.readFieldBegin()
7743
      if ftype == TType.STOP:
7744
        break
7745
      if fid == 1:
7746
        if ftype == TType.I64:
7747
          self.warehouseId = iprot.readI64();
7748
        else:
7749
          iprot.skip(ftype)
7750
      else:
7751
        iprot.skip(ftype)
7752
      iprot.readFieldEnd()
7753
    iprot.readStructEnd()
7754
 
7755
  def write(self, oprot):
7756
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7757
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7758
      return
7759
    oprot.writeStructBegin('getItemKeysToBeProcessed_args')
7760
    if self.warehouseId is not None:
7761
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
7762
      oprot.writeI64(self.warehouseId)
7763
      oprot.writeFieldEnd()
7764
    oprot.writeFieldStop()
7765
    oprot.writeStructEnd()
7766
 
7767
  def validate(self):
7768
    return
7769
 
7770
 
7771
  def __repr__(self):
7772
    L = ['%s=%r' % (key, value)
7773
      for key, value in self.__dict__.iteritems()]
7774
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7775
 
7776
  def __eq__(self, other):
7777
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7778
 
7779
  def __ne__(self, other):
7780
    return not (self == other)
7781
 
7782
class getItemKeysToBeProcessed_result:
7783
  """
7784
  Attributes:
7785
   - success
7786
  """
7787
 
7788
  thrift_spec = (
7789
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
7790
  )
7791
 
7792
  def __init__(self, success=None,):
7793
    self.success = success
7794
 
7795
  def read(self, iprot):
7796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7798
      return
7799
    iprot.readStructBegin()
7800
    while True:
7801
      (fname, ftype, fid) = iprot.readFieldBegin()
7802
      if ftype == TType.STOP:
7803
        break
7804
      if fid == 0:
7805
        if ftype == TType.LIST:
7806
          self.success = []
8182 amar.kumar 7807
          (_etype104, _size101) = iprot.readListBegin()
7808
          for _i105 in xrange(_size101):
7809
            _elem106 = iprot.readString();
7810
            self.success.append(_elem106)
5944 mandeep.dh 7811
          iprot.readListEnd()
7812
        else:
7813
          iprot.skip(ftype)
7814
      else:
7815
        iprot.skip(ftype)
7816
      iprot.readFieldEnd()
7817
    iprot.readStructEnd()
7818
 
7819
  def write(self, oprot):
7820
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7821
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7822
      return
7823
    oprot.writeStructBegin('getItemKeysToBeProcessed_result')
7824
    if self.success is not None:
7825
      oprot.writeFieldBegin('success', TType.LIST, 0)
7826
      oprot.writeListBegin(TType.STRING, len(self.success))
8182 amar.kumar 7827
      for iter107 in self.success:
7828
        oprot.writeString(iter107)
5944 mandeep.dh 7829
      oprot.writeListEnd()
7830
      oprot.writeFieldEnd()
7831
    oprot.writeFieldStop()
7832
    oprot.writeStructEnd()
7833
 
7834
  def validate(self):
7835
    return
7836
 
7837
 
7838
  def __repr__(self):
7839
    L = ['%s=%r' % (key, value)
7840
      for key, value in self.__dict__.iteritems()]
7841
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7842
 
7843
  def __eq__(self, other):
7844
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7845
 
7846
  def __ne__(self, other):
7847
    return not (self == other)
7848
 
7849
class markMissedInventoryUpdatesAsProcessed_args:
7850
  """
7851
  Attributes:
7852
   - itemKey
7853
   - warehouseId
7854
  """
7855
 
7856
  thrift_spec = (
7857
    None, # 0
7858
    (1, TType.STRING, 'itemKey', None, None, ), # 1
7859
    (2, TType.I64, 'warehouseId', None, None, ), # 2
7860
  )
7861
 
7862
  def __init__(self, itemKey=None, warehouseId=None,):
7863
    self.itemKey = itemKey
7864
    self.warehouseId = warehouseId
7865
 
7866
  def read(self, iprot):
7867
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7868
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7869
      return
7870
    iprot.readStructBegin()
7871
    while True:
7872
      (fname, ftype, fid) = iprot.readFieldBegin()
7873
      if ftype == TType.STOP:
7874
        break
7875
      if fid == 1:
7876
        if ftype == TType.STRING:
7877
          self.itemKey = iprot.readString();
7878
        else:
7879
          iprot.skip(ftype)
7880
      elif fid == 2:
7881
        if ftype == TType.I64:
7882
          self.warehouseId = iprot.readI64();
7883
        else:
7884
          iprot.skip(ftype)
7885
      else:
7886
        iprot.skip(ftype)
7887
      iprot.readFieldEnd()
7888
    iprot.readStructEnd()
7889
 
7890
  def write(self, oprot):
7891
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7892
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7893
      return
7894
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_args')
7895
    if self.itemKey is not None:
7896
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
7897
      oprot.writeString(self.itemKey)
7898
      oprot.writeFieldEnd()
7899
    if self.warehouseId is not None:
7900
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
7901
      oprot.writeI64(self.warehouseId)
7902
      oprot.writeFieldEnd()
7903
    oprot.writeFieldStop()
7904
    oprot.writeStructEnd()
7905
 
7906
  def validate(self):
7907
    return
7908
 
7909
 
7910
  def __repr__(self):
7911
    L = ['%s=%r' % (key, value)
7912
      for key, value in self.__dict__.iteritems()]
7913
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7914
 
7915
  def __eq__(self, other):
7916
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7917
 
7918
  def __ne__(self, other):
7919
    return not (self == other)
7920
 
7921
class markMissedInventoryUpdatesAsProcessed_result:
7922
 
7923
  thrift_spec = (
7924
  )
7925
 
7926
  def read(self, iprot):
7927
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7928
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7929
      return
7930
    iprot.readStructBegin()
7931
    while True:
7932
      (fname, ftype, fid) = iprot.readFieldBegin()
7933
      if ftype == TType.STOP:
7934
        break
7935
      else:
7936
        iprot.skip(ftype)
7937
      iprot.readFieldEnd()
7938
    iprot.readStructEnd()
7939
 
7940
  def write(self, oprot):
7941
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7942
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7943
      return
7944
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_result')
7945
    oprot.writeFieldStop()
7946
    oprot.writeStructEnd()
7947
 
7948
  def validate(self):
7949
    return
7950
 
7951
 
7952
  def __repr__(self):
7953
    L = ['%s=%r' % (key, value)
7954
      for key, value in self.__dict__.iteritems()]
7955
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7956
 
7957
  def __eq__(self, other):
7958
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7959
 
7960
  def __ne__(self, other):
7961
    return not (self == other)
7962
 
7963
class getIgnoredItemKeys_args:
7964
 
7965
  thrift_spec = (
7966
  )
7967
 
7968
  def read(self, iprot):
7969
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7970
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7971
      return
7972
    iprot.readStructBegin()
7973
    while True:
7974
      (fname, ftype, fid) = iprot.readFieldBegin()
7975
      if ftype == TType.STOP:
7976
        break
7977
      else:
7978
        iprot.skip(ftype)
7979
      iprot.readFieldEnd()
7980
    iprot.readStructEnd()
7981
 
7982
  def write(self, oprot):
7983
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7984
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7985
      return
7986
    oprot.writeStructBegin('getIgnoredItemKeys_args')
7987
    oprot.writeFieldStop()
7988
    oprot.writeStructEnd()
7989
 
7990
  def validate(self):
7991
    return
7992
 
7993
 
7994
  def __repr__(self):
7995
    L = ['%s=%r' % (key, value)
7996
      for key, value in self.__dict__.iteritems()]
7997
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7998
 
7999
  def __eq__(self, other):
8000
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8001
 
8002
  def __ne__(self, other):
8003
    return not (self == other)
8004
 
8005
class getIgnoredItemKeys_result:
8006
  """
8007
  Attributes:
8008
   - success
8009
  """
8010
 
8011
  thrift_spec = (
8012
    (0, TType.MAP, 'success', (TType.STRING,None,TType.MAP,(TType.I64,None,TType.I64,None)), None, ), # 0
8013
  )
8014
 
8015
  def __init__(self, success=None,):
8016
    self.success = success
8017
 
8018
  def read(self, iprot):
8019
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8020
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8021
      return
8022
    iprot.readStructBegin()
8023
    while True:
8024
      (fname, ftype, fid) = iprot.readFieldBegin()
8025
      if ftype == TType.STOP:
8026
        break
8027
      if fid == 0:
8028
        if ftype == TType.MAP:
8029
          self.success = {}
8182 amar.kumar 8030
          (_ktype109, _vtype110, _size108 ) = iprot.readMapBegin() 
8031
          for _i112 in xrange(_size108):
8032
            _key113 = iprot.readString();
8033
            _val114 = {}
8034
            (_ktype116, _vtype117, _size115 ) = iprot.readMapBegin() 
8035
            for _i119 in xrange(_size115):
8036
              _key120 = iprot.readI64();
8037
              _val121 = iprot.readI64();
8038
              _val114[_key120] = _val121
5944 mandeep.dh 8039
            iprot.readMapEnd()
8182 amar.kumar 8040
            self.success[_key113] = _val114
5944 mandeep.dh 8041
          iprot.readMapEnd()
8042
        else:
8043
          iprot.skip(ftype)
8044
      else:
8045
        iprot.skip(ftype)
8046
      iprot.readFieldEnd()
8047
    iprot.readStructEnd()
8048
 
8049
  def write(self, oprot):
8050
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8051
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8052
      return
8053
    oprot.writeStructBegin('getIgnoredItemKeys_result')
8054
    if self.success is not None:
8055
      oprot.writeFieldBegin('success', TType.MAP, 0)
8056
      oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.success))
8182 amar.kumar 8057
      for kiter122,viter123 in self.success.items():
8058
        oprot.writeString(kiter122)
8059
        oprot.writeMapBegin(TType.I64, TType.I64, len(viter123))
8060
        for kiter124,viter125 in viter123.items():
8061
          oprot.writeI64(kiter124)
8062
          oprot.writeI64(viter125)
5944 mandeep.dh 8063
        oprot.writeMapEnd()
8064
      oprot.writeMapEnd()
8065
      oprot.writeFieldEnd()
8066
    oprot.writeFieldStop()
8067
    oprot.writeStructEnd()
8068
 
8069
  def validate(self):
8070
    return
8071
 
8072
 
8073
  def __repr__(self):
8074
    L = ['%s=%r' % (key, value)
8075
      for key, value in self.__dict__.iteritems()]
8076
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8077
 
8078
  def __eq__(self, other):
8079
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8080
 
8081
  def __ne__(self, other):
8082
    return not (self == other)
8083
 
8084
class addBadInventory_args:
8085
  """
8086
  Attributes:
8087
   - itemId
8088
   - warehouseId
8089
   - quantity
8090
  """
8091
 
8092
  thrift_spec = (
8093
    None, # 0
8094
    (1, TType.I64, 'itemId', None, None, ), # 1
8095
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8096
    (3, TType.I64, 'quantity', None, None, ), # 3
8097
  )
8098
 
8099
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
8100
    self.itemId = itemId
8101
    self.warehouseId = warehouseId
8102
    self.quantity = quantity
8103
 
8104
  def read(self, iprot):
8105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8107
      return
8108
    iprot.readStructBegin()
8109
    while True:
8110
      (fname, ftype, fid) = iprot.readFieldBegin()
8111
      if ftype == TType.STOP:
8112
        break
8113
      if fid == 1:
8114
        if ftype == TType.I64:
8115
          self.itemId = iprot.readI64();
8116
        else:
8117
          iprot.skip(ftype)
8118
      elif fid == 2:
8119
        if ftype == TType.I64:
8120
          self.warehouseId = iprot.readI64();
8121
        else:
8122
          iprot.skip(ftype)
8123
      elif fid == 3:
8124
        if ftype == TType.I64:
8125
          self.quantity = iprot.readI64();
8126
        else:
8127
          iprot.skip(ftype)
8128
      else:
8129
        iprot.skip(ftype)
8130
      iprot.readFieldEnd()
8131
    iprot.readStructEnd()
8132
 
8133
  def write(self, oprot):
8134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8136
      return
8137
    oprot.writeStructBegin('addBadInventory_args')
8138
    if self.itemId is not None:
8139
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8140
      oprot.writeI64(self.itemId)
8141
      oprot.writeFieldEnd()
8142
    if self.warehouseId is not None:
8143
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8144
      oprot.writeI64(self.warehouseId)
8145
      oprot.writeFieldEnd()
8146
    if self.quantity is not None:
8147
      oprot.writeFieldBegin('quantity', TType.I64, 3)
8148
      oprot.writeI64(self.quantity)
8149
      oprot.writeFieldEnd()
8150
    oprot.writeFieldStop()
8151
    oprot.writeStructEnd()
8152
 
8153
  def validate(self):
8154
    return
8155
 
8156
 
8157
  def __repr__(self):
8158
    L = ['%s=%r' % (key, value)
8159
      for key, value in self.__dict__.iteritems()]
8160
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8161
 
8162
  def __eq__(self, other):
8163
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8164
 
8165
  def __ne__(self, other):
8166
    return not (self == other)
8167
 
8168
class addBadInventory_result:
8169
  """
8170
  Attributes:
8171
   - cex
8172
  """
8173
 
8174
  thrift_spec = (
8175
    None, # 0
8176
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8177
  )
8178
 
8179
  def __init__(self, cex=None,):
8180
    self.cex = cex
8181
 
8182
  def read(self, iprot):
8183
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8184
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8185
      return
8186
    iprot.readStructBegin()
8187
    while True:
8188
      (fname, ftype, fid) = iprot.readFieldBegin()
8189
      if ftype == TType.STOP:
8190
        break
8191
      if fid == 1:
8192
        if ftype == TType.STRUCT:
8193
          self.cex = InventoryServiceException()
8194
          self.cex.read(iprot)
8195
        else:
8196
          iprot.skip(ftype)
8197
      else:
8198
        iprot.skip(ftype)
8199
      iprot.readFieldEnd()
8200
    iprot.readStructEnd()
8201
 
8202
  def write(self, oprot):
8203
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8204
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8205
      return
8206
    oprot.writeStructBegin('addBadInventory_result')
8207
    if self.cex is not None:
8208
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8209
      self.cex.write(oprot)
8210
      oprot.writeFieldEnd()
8211
    oprot.writeFieldStop()
8212
    oprot.writeStructEnd()
8213
 
8214
  def validate(self):
8215
    return
8216
 
8217
 
8218
  def __repr__(self):
8219
    L = ['%s=%r' % (key, value)
8220
      for key, value in self.__dict__.iteritems()]
8221
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8222
 
8223
  def __eq__(self, other):
8224
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8225
 
8226
  def __ne__(self, other):
8227
    return not (self == other)
8228
 
8229
class getShippingLocations_args:
8230
 
8231
  thrift_spec = (
8232
  )
8233
 
8234
  def read(self, iprot):
8235
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8236
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8237
      return
8238
    iprot.readStructBegin()
8239
    while True:
8240
      (fname, ftype, fid) = iprot.readFieldBegin()
8241
      if ftype == TType.STOP:
8242
        break
8243
      else:
8244
        iprot.skip(ftype)
8245
      iprot.readFieldEnd()
8246
    iprot.readStructEnd()
8247
 
8248
  def write(self, oprot):
8249
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8250
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8251
      return
8252
    oprot.writeStructBegin('getShippingLocations_args')
8253
    oprot.writeFieldStop()
8254
    oprot.writeStructEnd()
8255
 
8256
  def validate(self):
8257
    return
8258
 
8259
 
8260
  def __repr__(self):
8261
    L = ['%s=%r' % (key, value)
8262
      for key, value in self.__dict__.iteritems()]
8263
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8264
 
8265
  def __eq__(self, other):
8266
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8267
 
8268
  def __ne__(self, other):
8269
    return not (self == other)
8270
 
8271
class getShippingLocations_result:
8272
  """
8273
  Attributes:
8274
   - success
8275
  """
8276
 
8277
  thrift_spec = (
8278
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
8279
  )
8280
 
8281
  def __init__(self, success=None,):
8282
    self.success = success
8283
 
8284
  def read(self, iprot):
8285
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8286
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8287
      return
8288
    iprot.readStructBegin()
8289
    while True:
8290
      (fname, ftype, fid) = iprot.readFieldBegin()
8291
      if ftype == TType.STOP:
8292
        break
8293
      if fid == 0:
8294
        if ftype == TType.LIST:
8295
          self.success = []
8182 amar.kumar 8296
          (_etype129, _size126) = iprot.readListBegin()
8297
          for _i130 in xrange(_size126):
8298
            _elem131 = Warehouse()
8299
            _elem131.read(iprot)
8300
            self.success.append(_elem131)
5944 mandeep.dh 8301
          iprot.readListEnd()
8302
        else:
8303
          iprot.skip(ftype)
8304
      else:
8305
        iprot.skip(ftype)
8306
      iprot.readFieldEnd()
8307
    iprot.readStructEnd()
8308
 
8309
  def write(self, oprot):
8310
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8311
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8312
      return
8313
    oprot.writeStructBegin('getShippingLocations_result')
8314
    if self.success is not None:
8315
      oprot.writeFieldBegin('success', TType.LIST, 0)
8316
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8317
      for iter132 in self.success:
8318
        iter132.write(oprot)
5944 mandeep.dh 8319
      oprot.writeListEnd()
8320
      oprot.writeFieldEnd()
8321
    oprot.writeFieldStop()
8322
    oprot.writeStructEnd()
8323
 
8324
  def validate(self):
8325
    return
8326
 
8327
 
8328
  def __repr__(self):
8329
    L = ['%s=%r' % (key, value)
8330
      for key, value in self.__dict__.iteritems()]
8331
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8332
 
8333
  def __eq__(self, other):
8334
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8335
 
8336
  def __ne__(self, other):
8337
    return not (self == other)
8338
 
8339
class getAllVendorItemMappings_args:
8340
 
8341
  thrift_spec = (
8342
  )
8343
 
8344
  def read(self, iprot):
8345
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8346
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8347
      return
8348
    iprot.readStructBegin()
8349
    while True:
8350
      (fname, ftype, fid) = iprot.readFieldBegin()
8351
      if ftype == TType.STOP:
8352
        break
8353
      else:
8354
        iprot.skip(ftype)
8355
      iprot.readFieldEnd()
8356
    iprot.readStructEnd()
8357
 
8358
  def write(self, oprot):
8359
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8360
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8361
      return
8362
    oprot.writeStructBegin('getAllVendorItemMappings_args')
8363
    oprot.writeFieldStop()
8364
    oprot.writeStructEnd()
8365
 
8366
  def validate(self):
8367
    return
8368
 
8369
 
8370
  def __repr__(self):
8371
    L = ['%s=%r' % (key, value)
8372
      for key, value in self.__dict__.iteritems()]
8373
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8374
 
8375
  def __eq__(self, other):
8376
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8377
 
8378
  def __ne__(self, other):
8379
    return not (self == other)
8380
 
8381
class getAllVendorItemMappings_result:
8382
  """
8383
  Attributes:
8384
   - success
8385
  """
8386
 
8387
  thrift_spec = (
8388
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
8389
  )
8390
 
8391
  def __init__(self, success=None,):
8392
    self.success = success
8393
 
8394
  def read(self, iprot):
8395
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8396
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8397
      return
8398
    iprot.readStructBegin()
8399
    while True:
8400
      (fname, ftype, fid) = iprot.readFieldBegin()
8401
      if ftype == TType.STOP:
8402
        break
8403
      if fid == 0:
8404
        if ftype == TType.LIST:
8405
          self.success = []
8182 amar.kumar 8406
          (_etype136, _size133) = iprot.readListBegin()
8407
          for _i137 in xrange(_size133):
8408
            _elem138 = VendorItemMapping()
8409
            _elem138.read(iprot)
8410
            self.success.append(_elem138)
5944 mandeep.dh 8411
          iprot.readListEnd()
8412
        else:
8413
          iprot.skip(ftype)
8414
      else:
8415
        iprot.skip(ftype)
8416
      iprot.readFieldEnd()
8417
    iprot.readStructEnd()
8418
 
8419
  def write(self, oprot):
8420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8422
      return
8423
    oprot.writeStructBegin('getAllVendorItemMappings_result')
8424
    if self.success is not None:
8425
      oprot.writeFieldBegin('success', TType.LIST, 0)
8426
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8427
      for iter139 in self.success:
8428
        iter139.write(oprot)
5944 mandeep.dh 8429
      oprot.writeListEnd()
8430
      oprot.writeFieldEnd()
8431
    oprot.writeFieldStop()
8432
    oprot.writeStructEnd()
8433
 
8434
  def validate(self):
8435
    return
8436
 
8437
 
8438
  def __repr__(self):
8439
    L = ['%s=%r' % (key, value)
8440
      for key, value in self.__dict__.iteritems()]
8441
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8442
 
8443
  def __eq__(self, other):
8444
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8445
 
8446
  def __ne__(self, other):
8447
    return not (self == other)
8448
 
8449
class getInventorySnapshot_args:
8450
  """
8451
  Attributes:
8452
   - warehouseId
8453
  """
8454
 
8455
  thrift_spec = (
8456
    None, # 0
8457
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8458
  )
8459
 
8460
  def __init__(self, warehouseId=None,):
8461
    self.warehouseId = warehouseId
8462
 
8463
  def read(self, iprot):
8464
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8465
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8466
      return
8467
    iprot.readStructBegin()
8468
    while True:
8469
      (fname, ftype, fid) = iprot.readFieldBegin()
8470
      if ftype == TType.STOP:
8471
        break
8472
      if fid == 1:
8473
        if ftype == TType.I64:
8474
          self.warehouseId = iprot.readI64();
8475
        else:
8476
          iprot.skip(ftype)
8477
      else:
8478
        iprot.skip(ftype)
8479
      iprot.readFieldEnd()
8480
    iprot.readStructEnd()
8481
 
8482
  def write(self, oprot):
8483
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8484
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8485
      return
8486
    oprot.writeStructBegin('getInventorySnapshot_args')
8487
    if self.warehouseId is not None:
8488
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8489
      oprot.writeI64(self.warehouseId)
8490
      oprot.writeFieldEnd()
8491
    oprot.writeFieldStop()
8492
    oprot.writeStructEnd()
8493
 
8494
  def validate(self):
8495
    return
8496
 
8497
 
8498
  def __repr__(self):
8499
    L = ['%s=%r' % (key, value)
8500
      for key, value in self.__dict__.iteritems()]
8501
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8502
 
8503
  def __eq__(self, other):
8504
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8505
 
8506
  def __ne__(self, other):
8507
    return not (self == other)
8508
 
8509
class getInventorySnapshot_result:
8510
  """
8511
  Attributes:
8512
   - success
8513
  """
8514
 
8515
  thrift_spec = (
8516
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ItemInventory, ItemInventory.thrift_spec)), None, ), # 0
8517
  )
8518
 
8519
  def __init__(self, success=None,):
8520
    self.success = success
8521
 
8522
  def read(self, iprot):
8523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8525
      return
8526
    iprot.readStructBegin()
8527
    while True:
8528
      (fname, ftype, fid) = iprot.readFieldBegin()
8529
      if ftype == TType.STOP:
8530
        break
8531
      if fid == 0:
8532
        if ftype == TType.MAP:
8533
          self.success = {}
8182 amar.kumar 8534
          (_ktype141, _vtype142, _size140 ) = iprot.readMapBegin() 
8535
          for _i144 in xrange(_size140):
8536
            _key145 = iprot.readI64();
8537
            _val146 = ItemInventory()
8538
            _val146.read(iprot)
8539
            self.success[_key145] = _val146
5944 mandeep.dh 8540
          iprot.readMapEnd()
8541
        else:
8542
          iprot.skip(ftype)
8543
      else:
8544
        iprot.skip(ftype)
8545
      iprot.readFieldEnd()
8546
    iprot.readStructEnd()
8547
 
8548
  def write(self, oprot):
8549
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8550
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8551
      return
8552
    oprot.writeStructBegin('getInventorySnapshot_result')
8553
    if self.success is not None:
8554
      oprot.writeFieldBegin('success', TType.MAP, 0)
8555
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
8182 amar.kumar 8556
      for kiter147,viter148 in self.success.items():
8557
        oprot.writeI64(kiter147)
8558
        viter148.write(oprot)
5944 mandeep.dh 8559
      oprot.writeMapEnd()
8560
      oprot.writeFieldEnd()
8561
    oprot.writeFieldStop()
8562
    oprot.writeStructEnd()
8563
 
8564
  def validate(self):
8565
    return
8566
 
8567
 
8568
  def __repr__(self):
8569
    L = ['%s=%r' % (key, value)
8570
      for key, value in self.__dict__.iteritems()]
8571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8572
 
8573
  def __eq__(self, other):
8574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8575
 
8576
  def __ne__(self, other):
8577
    return not (self == other)
8578
 
8579
class clearItemAvailabilityCache_args:
8580
 
8581
  thrift_spec = (
8582
  )
8583
 
8584
  def read(self, iprot):
8585
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8586
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8587
      return
8588
    iprot.readStructBegin()
8589
    while True:
8590
      (fname, ftype, fid) = iprot.readFieldBegin()
8591
      if ftype == TType.STOP:
8592
        break
8593
      else:
8594
        iprot.skip(ftype)
8595
      iprot.readFieldEnd()
8596
    iprot.readStructEnd()
8597
 
8598
  def write(self, oprot):
8599
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8600
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8601
      return
8602
    oprot.writeStructBegin('clearItemAvailabilityCache_args')
8603
    oprot.writeFieldStop()
8604
    oprot.writeStructEnd()
8605
 
8606
  def validate(self):
8607
    return
8608
 
8609
 
8610
  def __repr__(self):
8611
    L = ['%s=%r' % (key, value)
8612
      for key, value in self.__dict__.iteritems()]
8613
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8614
 
8615
  def __eq__(self, other):
8616
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8617
 
8618
  def __ne__(self, other):
8619
    return not (self == other)
8620
 
8621
class clearItemAvailabilityCache_result:
8622
 
8623
  thrift_spec = (
8624
  )
8625
 
8626
  def read(self, iprot):
8627
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8628
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8629
      return
8630
    iprot.readStructBegin()
8631
    while True:
8632
      (fname, ftype, fid) = iprot.readFieldBegin()
8633
      if ftype == TType.STOP:
8634
        break
8635
      else:
8636
        iprot.skip(ftype)
8637
      iprot.readFieldEnd()
8638
    iprot.readStructEnd()
8639
 
8640
  def write(self, oprot):
8641
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8642
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8643
      return
8644
    oprot.writeStructBegin('clearItemAvailabilityCache_result')
8645
    oprot.writeFieldStop()
8646
    oprot.writeStructEnd()
8647
 
8648
  def validate(self):
8649
    return
8650
 
8651
 
8652
  def __repr__(self):
8653
    L = ['%s=%r' % (key, value)
8654
      for key, value in self.__dict__.iteritems()]
8655
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8656
 
8657
  def __eq__(self, other):
8658
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8659
 
8660
  def __ne__(self, other):
8661
    return not (self == other)
8662
 
8663
class updateVendorString_args:
8664
  """
8665
  Attributes:
8666
   - warehouseId
8667
   - vendorString
8668
  """
8669
 
8670
  thrift_spec = (
8671
    None, # 0
8672
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8673
    (2, TType.STRING, 'vendorString', None, None, ), # 2
8674
  )
8675
 
8676
  def __init__(self, warehouseId=None, vendorString=None,):
8677
    self.warehouseId = warehouseId
8678
    self.vendorString = vendorString
8679
 
8680
  def read(self, iprot):
8681
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8682
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8683
      return
8684
    iprot.readStructBegin()
8685
    while True:
8686
      (fname, ftype, fid) = iprot.readFieldBegin()
8687
      if ftype == TType.STOP:
8688
        break
8689
      if fid == 1:
8690
        if ftype == TType.I64:
8691
          self.warehouseId = iprot.readI64();
8692
        else:
8693
          iprot.skip(ftype)
8694
      elif fid == 2:
8695
        if ftype == TType.STRING:
8696
          self.vendorString = iprot.readString();
8697
        else:
8698
          iprot.skip(ftype)
8699
      else:
8700
        iprot.skip(ftype)
8701
      iprot.readFieldEnd()
8702
    iprot.readStructEnd()
8703
 
8704
  def write(self, oprot):
8705
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8706
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8707
      return
8708
    oprot.writeStructBegin('updateVendorString_args')
8709
    if self.warehouseId is not None:
8710
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8711
      oprot.writeI64(self.warehouseId)
8712
      oprot.writeFieldEnd()
8713
    if self.vendorString is not None:
8714
      oprot.writeFieldBegin('vendorString', TType.STRING, 2)
8715
      oprot.writeString(self.vendorString)
8716
      oprot.writeFieldEnd()
8717
    oprot.writeFieldStop()
8718
    oprot.writeStructEnd()
8719
 
8720
  def validate(self):
8721
    return
8722
 
8723
 
8724
  def __repr__(self):
8725
    L = ['%s=%r' % (key, value)
8726
      for key, value in self.__dict__.iteritems()]
8727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8728
 
8729
  def __eq__(self, other):
8730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8731
 
8732
  def __ne__(self, other):
8733
    return not (self == other)
8734
 
8735
class updateVendorString_result:
8736
 
8737
  thrift_spec = (
8738
  )
8739
 
8740
  def read(self, iprot):
8741
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8742
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8743
      return
8744
    iprot.readStructBegin()
8745
    while True:
8746
      (fname, ftype, fid) = iprot.readFieldBegin()
8747
      if ftype == TType.STOP:
8748
        break
8749
      else:
8750
        iprot.skip(ftype)
8751
      iprot.readFieldEnd()
8752
    iprot.readStructEnd()
8753
 
8754
  def write(self, oprot):
8755
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8756
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8757
      return
8758
    oprot.writeStructBegin('updateVendorString_result')
8759
    oprot.writeFieldStop()
8760
    oprot.writeStructEnd()
8761
 
8762
  def validate(self):
8763
    return
8764
 
8765
 
8766
  def __repr__(self):
8767
    L = ['%s=%r' % (key, value)
8768
      for key, value in self.__dict__.iteritems()]
8769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8770
 
8771
  def __eq__(self, other):
8772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8773
 
8774
  def __ne__(self, other):
8775
    return not (self == other)
6096 amit.gupta 8776
 
8777
class clearItemAvailabilityCacheForItem_args:
8778
  """
8779
  Attributes:
8780
   - item_id
8781
  """
8782
 
8783
  thrift_spec = (
8784
    None, # 0
8785
    (1, TType.I64, 'item_id', None, None, ), # 1
8786
  )
8787
 
8788
  def __init__(self, item_id=None,):
8789
    self.item_id = item_id
8790
 
8791
  def read(self, iprot):
8792
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8793
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8794
      return
8795
    iprot.readStructBegin()
8796
    while True:
8797
      (fname, ftype, fid) = iprot.readFieldBegin()
8798
      if ftype == TType.STOP:
8799
        break
8800
      if fid == 1:
8801
        if ftype == TType.I64:
8802
          self.item_id = iprot.readI64();
8803
        else:
8804
          iprot.skip(ftype)
8805
      else:
8806
        iprot.skip(ftype)
8807
      iprot.readFieldEnd()
8808
    iprot.readStructEnd()
8809
 
8810
  def write(self, oprot):
8811
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8812
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8813
      return
8814
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_args')
8815
    if self.item_id is not None:
8816
      oprot.writeFieldBegin('item_id', TType.I64, 1)
8817
      oprot.writeI64(self.item_id)
8818
      oprot.writeFieldEnd()
8819
    oprot.writeFieldStop()
8820
    oprot.writeStructEnd()
8821
 
8822
  def validate(self):
8823
    return
8824
 
8825
 
8826
  def __repr__(self):
8827
    L = ['%s=%r' % (key, value)
8828
      for key, value in self.__dict__.iteritems()]
8829
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8830
 
8831
  def __eq__(self, other):
8832
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8833
 
8834
  def __ne__(self, other):
8835
    return not (self == other)
8836
 
8837
class clearItemAvailabilityCacheForItem_result:
8838
 
8839
  thrift_spec = (
8840
  )
8841
 
8842
  def read(self, iprot):
8843
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8844
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8845
      return
8846
    iprot.readStructBegin()
8847
    while True:
8848
      (fname, ftype, fid) = iprot.readFieldBegin()
8849
      if ftype == TType.STOP:
8850
        break
8851
      else:
8852
        iprot.skip(ftype)
8853
      iprot.readFieldEnd()
8854
    iprot.readStructEnd()
8855
 
8856
  def write(self, oprot):
8857
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8858
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8859
      return
8860
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_result')
8861
    oprot.writeFieldStop()
8862
    oprot.writeStructEnd()
8863
 
8864
  def validate(self):
8865
    return
8866
 
8867
 
8868
  def __repr__(self):
8869
    L = ['%s=%r' % (key, value)
8870
      for key, value in self.__dict__.iteritems()]
8871
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8872
 
8873
  def __eq__(self, other):
8874
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8875
 
8876
  def __ne__(self, other):
8877
    return not (self == other)
6467 amar.kumar 8878
 
8879
class getOurWarehouseIdForVendor_args:
8880
  """
8881
  Attributes:
8882
   - vendorId
7718 amar.kumar 8883
   - billingWarehouseId
6467 amar.kumar 8884
  """
8885
 
8886
  thrift_spec = (
8887
    None, # 0
8888
    (1, TType.I64, 'vendorId', None, None, ), # 1
7718 amar.kumar 8889
    (2, TType.I64, 'billingWarehouseId', None, None, ), # 2
6467 amar.kumar 8890
  )
8891
 
7718 amar.kumar 8892
  def __init__(self, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 8893
    self.vendorId = vendorId
7718 amar.kumar 8894
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 8895
 
8896
  def read(self, iprot):
8897
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8898
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8899
      return
8900
    iprot.readStructBegin()
8901
    while True:
8902
      (fname, ftype, fid) = iprot.readFieldBegin()
8903
      if ftype == TType.STOP:
8904
        break
8905
      if fid == 1:
8906
        if ftype == TType.I64:
8907
          self.vendorId = iprot.readI64();
8908
        else:
8909
          iprot.skip(ftype)
7718 amar.kumar 8910
      elif fid == 2:
8911
        if ftype == TType.I64:
8912
          self.billingWarehouseId = iprot.readI64();
8913
        else:
8914
          iprot.skip(ftype)
6467 amar.kumar 8915
      else:
8916
        iprot.skip(ftype)
8917
      iprot.readFieldEnd()
8918
    iprot.readStructEnd()
8919
 
8920
  def write(self, oprot):
8921
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8922
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8923
      return
8924
    oprot.writeStructBegin('getOurWarehouseIdForVendor_args')
8925
    if self.vendorId is not None:
8926
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
8927
      oprot.writeI64(self.vendorId)
8928
      oprot.writeFieldEnd()
7718 amar.kumar 8929
    if self.billingWarehouseId is not None:
8930
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 2)
8931
      oprot.writeI64(self.billingWarehouseId)
8932
      oprot.writeFieldEnd()
6467 amar.kumar 8933
    oprot.writeFieldStop()
8934
    oprot.writeStructEnd()
8935
 
8936
  def validate(self):
8937
    return
8938
 
8939
 
8940
  def __repr__(self):
8941
    L = ['%s=%r' % (key, value)
8942
      for key, value in self.__dict__.iteritems()]
8943
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8944
 
8945
  def __eq__(self, other):
8946
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8947
 
8948
  def __ne__(self, other):
8949
    return not (self == other)
8950
 
8951
class getOurWarehouseIdForVendor_result:
8952
  """
8953
  Attributes:
8954
   - success
8955
  """
8956
 
8957
  thrift_spec = (
8958
    (0, TType.I64, 'success', None, None, ), # 0
8959
  )
8960
 
8961
  def __init__(self, success=None,):
8962
    self.success = success
8963
 
8964
  def read(self, iprot):
8965
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8966
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8967
      return
8968
    iprot.readStructBegin()
8969
    while True:
8970
      (fname, ftype, fid) = iprot.readFieldBegin()
8971
      if ftype == TType.STOP:
8972
        break
8973
      if fid == 0:
8974
        if ftype == TType.I64:
8975
          self.success = iprot.readI64();
8976
        else:
8977
          iprot.skip(ftype)
8978
      else:
8979
        iprot.skip(ftype)
8980
      iprot.readFieldEnd()
8981
    iprot.readStructEnd()
8982
 
8983
  def write(self, oprot):
8984
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8985
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8986
      return
8987
    oprot.writeStructBegin('getOurWarehouseIdForVendor_result')
8988
    if self.success is not None:
8989
      oprot.writeFieldBegin('success', TType.I64, 0)
8990
      oprot.writeI64(self.success)
8991
      oprot.writeFieldEnd()
8992
    oprot.writeFieldStop()
8993
    oprot.writeStructEnd()
8994
 
8995
  def validate(self):
8996
    return
8997
 
8998
 
8999
  def __repr__(self):
9000
    L = ['%s=%r' % (key, value)
9001
      for key, value in self.__dict__.iteritems()]
9002
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9003
 
9004
  def __eq__(self, other):
9005
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9006
 
9007
  def __ne__(self, other):
9008
    return not (self == other)
6484 amar.kumar 9009
 
9010
class getItemAvailabilitiesAtOurWarehouses_args:
9011
  """
9012
  Attributes:
9013
   - item_ids
9014
  """
9015
 
9016
  thrift_spec = (
9017
    None, # 0
9018
    (1, TType.LIST, 'item_ids', (TType.I64,None), None, ), # 1
9019
  )
9020
 
9021
  def __init__(self, item_ids=None,):
9022
    self.item_ids = item_ids
9023
 
9024
  def read(self, iprot):
9025
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9026
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9027
      return
9028
    iprot.readStructBegin()
9029
    while True:
9030
      (fname, ftype, fid) = iprot.readFieldBegin()
9031
      if ftype == TType.STOP:
9032
        break
9033
      if fid == 1:
9034
        if ftype == TType.LIST:
9035
          self.item_ids = []
8182 amar.kumar 9036
          (_etype152, _size149) = iprot.readListBegin()
9037
          for _i153 in xrange(_size149):
9038
            _elem154 = iprot.readI64();
9039
            self.item_ids.append(_elem154)
6484 amar.kumar 9040
          iprot.readListEnd()
9041
        else:
9042
          iprot.skip(ftype)
9043
      else:
9044
        iprot.skip(ftype)
9045
      iprot.readFieldEnd()
9046
    iprot.readStructEnd()
9047
 
9048
  def write(self, oprot):
9049
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9050
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9051
      return
9052
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_args')
9053
    if self.item_ids is not None:
9054
      oprot.writeFieldBegin('item_ids', TType.LIST, 1)
9055
      oprot.writeListBegin(TType.I64, len(self.item_ids))
8182 amar.kumar 9056
      for iter155 in self.item_ids:
9057
        oprot.writeI64(iter155)
6484 amar.kumar 9058
      oprot.writeListEnd()
9059
      oprot.writeFieldEnd()
9060
    oprot.writeFieldStop()
9061
    oprot.writeStructEnd()
9062
 
9063
  def validate(self):
9064
    return
9065
 
9066
 
9067
  def __repr__(self):
9068
    L = ['%s=%r' % (key, value)
9069
      for key, value in self.__dict__.iteritems()]
9070
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9071
 
9072
  def __eq__(self, other):
9073
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9074
 
9075
  def __ne__(self, other):
9076
    return not (self == other)
9077
 
9078
class getItemAvailabilitiesAtOurWarehouses_result:
9079
  """
9080
  Attributes:
9081
   - success
9082
  """
9083
 
9084
  thrift_spec = (
9085
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
9086
  )
9087
 
9088
  def __init__(self, success=None,):
9089
    self.success = success
9090
 
9091
  def read(self, iprot):
9092
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9093
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9094
      return
9095
    iprot.readStructBegin()
9096
    while True:
9097
      (fname, ftype, fid) = iprot.readFieldBegin()
9098
      if ftype == TType.STOP:
9099
        break
9100
      if fid == 0:
9101
        if ftype == TType.MAP:
9102
          self.success = {}
8182 amar.kumar 9103
          (_ktype157, _vtype158, _size156 ) = iprot.readMapBegin() 
9104
          for _i160 in xrange(_size156):
9105
            _key161 = iprot.readI64();
9106
            _val162 = iprot.readI64();
9107
            self.success[_key161] = _val162
6484 amar.kumar 9108
          iprot.readMapEnd()
9109
        else:
9110
          iprot.skip(ftype)
9111
      else:
9112
        iprot.skip(ftype)
9113
      iprot.readFieldEnd()
9114
    iprot.readStructEnd()
9115
 
9116
  def write(self, oprot):
9117
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9118
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9119
      return
9120
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_result')
9121
    if self.success is not None:
9122
      oprot.writeFieldBegin('success', TType.MAP, 0)
9123
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
8182 amar.kumar 9124
      for kiter163,viter164 in self.success.items():
9125
        oprot.writeI64(kiter163)
9126
        oprot.writeI64(viter164)
6484 amar.kumar 9127
      oprot.writeMapEnd()
9128
      oprot.writeFieldEnd()
9129
    oprot.writeFieldStop()
9130
    oprot.writeStructEnd()
9131
 
9132
  def validate(self):
9133
    return
9134
 
9135
 
9136
  def __repr__(self):
9137
    L = ['%s=%r' % (key, value)
9138
      for key, value in self.__dict__.iteritems()]
9139
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9140
 
9141
  def __eq__(self, other):
9142
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9143
 
9144
  def __ne__(self, other):
9145
    return not (self == other)
6531 vikram.rag 9146
 
9147
class getMonitoredWarehouseForVendors_args:
9148
  """
9149
  Attributes:
9150
   - vendorIds
9151
  """
9152
 
9153
  thrift_spec = (
9154
    None, # 0
9155
    (1, TType.LIST, 'vendorIds', (TType.I64,None), None, ), # 1
9156
  )
9157
 
9158
  def __init__(self, vendorIds=None,):
9159
    self.vendorIds = vendorIds
9160
 
9161
  def read(self, iprot):
9162
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9163
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9164
      return
9165
    iprot.readStructBegin()
9166
    while True:
9167
      (fname, ftype, fid) = iprot.readFieldBegin()
9168
      if ftype == TType.STOP:
9169
        break
9170
      if fid == 1:
9171
        if ftype == TType.LIST:
9172
          self.vendorIds = []
8182 amar.kumar 9173
          (_etype168, _size165) = iprot.readListBegin()
9174
          for _i169 in xrange(_size165):
9175
            _elem170 = iprot.readI64();
9176
            self.vendorIds.append(_elem170)
6531 vikram.rag 9177
          iprot.readListEnd()
9178
        else:
9179
          iprot.skip(ftype)
9180
      else:
9181
        iprot.skip(ftype)
9182
      iprot.readFieldEnd()
9183
    iprot.readStructEnd()
9184
 
9185
  def write(self, oprot):
9186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9188
      return
9189
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_args')
9190
    if self.vendorIds is not None:
9191
      oprot.writeFieldBegin('vendorIds', TType.LIST, 1)
9192
      oprot.writeListBegin(TType.I64, len(self.vendorIds))
8182 amar.kumar 9193
      for iter171 in self.vendorIds:
9194
        oprot.writeI64(iter171)
6531 vikram.rag 9195
      oprot.writeListEnd()
9196
      oprot.writeFieldEnd()
9197
    oprot.writeFieldStop()
9198
    oprot.writeStructEnd()
9199
 
9200
  def validate(self):
9201
    return
9202
 
9203
 
9204
  def __repr__(self):
9205
    L = ['%s=%r' % (key, value)
9206
      for key, value in self.__dict__.iteritems()]
9207
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9208
 
9209
  def __eq__(self, other):
9210
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9211
 
9212
  def __ne__(self, other):
9213
    return not (self == other)
9214
 
9215
class getMonitoredWarehouseForVendors_result:
9216
  """
9217
  Attributes:
9218
   - success
9219
  """
9220
 
9221
  thrift_spec = (
9222
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9223
  )
9224
 
9225
  def __init__(self, success=None,):
9226
    self.success = success
9227
 
9228
  def read(self, iprot):
9229
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9230
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9231
      return
9232
    iprot.readStructBegin()
9233
    while True:
9234
      (fname, ftype, fid) = iprot.readFieldBegin()
9235
      if ftype == TType.STOP:
9236
        break
9237
      if fid == 0:
9238
        if ftype == TType.LIST:
9239
          self.success = []
8182 amar.kumar 9240
          (_etype175, _size172) = iprot.readListBegin()
9241
          for _i176 in xrange(_size172):
9242
            _elem177 = iprot.readI64();
9243
            self.success.append(_elem177)
6531 vikram.rag 9244
          iprot.readListEnd()
9245
        else:
9246
          iprot.skip(ftype)
9247
      else:
9248
        iprot.skip(ftype)
9249
      iprot.readFieldEnd()
9250
    iprot.readStructEnd()
9251
 
9252
  def write(self, oprot):
9253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9255
      return
9256
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_result')
9257
    if self.success is not None:
9258
      oprot.writeFieldBegin('success', TType.LIST, 0)
9259
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 9260
      for iter178 in self.success:
9261
        oprot.writeI64(iter178)
6531 vikram.rag 9262
      oprot.writeListEnd()
9263
      oprot.writeFieldEnd()
9264
    oprot.writeFieldStop()
9265
    oprot.writeStructEnd()
9266
 
9267
  def validate(self):
9268
    return
9269
 
9270
 
9271
  def __repr__(self):
9272
    L = ['%s=%r' % (key, value)
9273
      for key, value in self.__dict__.iteritems()]
9274
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9275
 
9276
  def __eq__(self, other):
9277
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9278
 
9279
  def __ne__(self, other):
9280
    return not (self == other)
9281
 
9282
class getIgnoredWarehouseidsAndItemids_args:
9283
 
9284
  thrift_spec = (
9285
  )
9286
 
9287
  def read(self, iprot):
9288
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9289
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9290
      return
9291
    iprot.readStructBegin()
9292
    while True:
9293
      (fname, ftype, fid) = iprot.readFieldBegin()
9294
      if ftype == TType.STOP:
9295
        break
9296
      else:
9297
        iprot.skip(ftype)
9298
      iprot.readFieldEnd()
9299
    iprot.readStructEnd()
9300
 
9301
  def write(self, oprot):
9302
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9303
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9304
      return
9305
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_args')
9306
    oprot.writeFieldStop()
9307
    oprot.writeStructEnd()
9308
 
9309
  def validate(self):
9310
    return
9311
 
9312
 
9313
  def __repr__(self):
9314
    L = ['%s=%r' % (key, value)
9315
      for key, value in self.__dict__.iteritems()]
9316
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9317
 
9318
  def __eq__(self, other):
9319
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9320
 
9321
  def __ne__(self, other):
9322
    return not (self == other)
9323
 
9324
class getIgnoredWarehouseidsAndItemids_result:
9325
  """
9326
  Attributes:
9327
   - success
9328
  """
9329
 
9330
  thrift_spec = (
9331
    (0, TType.LIST, 'success', (TType.STRUCT,(IgnoredInventoryUpdateItems, IgnoredInventoryUpdateItems.thrift_spec)), None, ), # 0
9332
  )
9333
 
9334
  def __init__(self, success=None,):
9335
    self.success = success
9336
 
9337
  def read(self, iprot):
9338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9340
      return
9341
    iprot.readStructBegin()
9342
    while True:
9343
      (fname, ftype, fid) = iprot.readFieldBegin()
9344
      if ftype == TType.STOP:
9345
        break
9346
      if fid == 0:
9347
        if ftype == TType.LIST:
9348
          self.success = []
8182 amar.kumar 9349
          (_etype182, _size179) = iprot.readListBegin()
9350
          for _i183 in xrange(_size179):
9351
            _elem184 = IgnoredInventoryUpdateItems()
9352
            _elem184.read(iprot)
9353
            self.success.append(_elem184)
6531 vikram.rag 9354
          iprot.readListEnd()
9355
        else:
9356
          iprot.skip(ftype)
9357
      else:
9358
        iprot.skip(ftype)
9359
      iprot.readFieldEnd()
9360
    iprot.readStructEnd()
9361
 
9362
  def write(self, oprot):
9363
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9364
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9365
      return
9366
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_result')
9367
    if self.success is not None:
9368
      oprot.writeFieldBegin('success', TType.LIST, 0)
9369
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 9370
      for iter185 in self.success:
9371
        iter185.write(oprot)
6531 vikram.rag 9372
      oprot.writeListEnd()
9373
      oprot.writeFieldEnd()
9374
    oprot.writeFieldStop()
9375
    oprot.writeStructEnd()
9376
 
9377
  def validate(self):
9378
    return
9379
 
9380
 
9381
  def __repr__(self):
9382
    L = ['%s=%r' % (key, value)
9383
      for key, value in self.__dict__.iteritems()]
9384
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9385
 
9386
  def __eq__(self, other):
9387
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9388
 
9389
  def __ne__(self, other):
9390
    return not (self == other)
9391
 
9392
class insertItemtoIgnoreInventoryUpdatelist_args:
9393
  """
9394
  Attributes:
9395
   - item_id
9396
   - warehouse_id
9397
  """
9398
 
9399
  thrift_spec = (
9400
    None, # 0
9401
    (1, TType.I64, 'item_id', None, None, ), # 1
9402
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
9403
  )
9404
 
9405
  def __init__(self, item_id=None, warehouse_id=None,):
9406
    self.item_id = item_id
9407
    self.warehouse_id = warehouse_id
9408
 
9409
  def read(self, iprot):
9410
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9411
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9412
      return
9413
    iprot.readStructBegin()
9414
    while True:
9415
      (fname, ftype, fid) = iprot.readFieldBegin()
9416
      if ftype == TType.STOP:
9417
        break
9418
      if fid == 1:
9419
        if ftype == TType.I64:
9420
          self.item_id = iprot.readI64();
9421
        else:
9422
          iprot.skip(ftype)
9423
      elif fid == 2:
9424
        if ftype == TType.I64:
9425
          self.warehouse_id = iprot.readI64();
9426
        else:
9427
          iprot.skip(ftype)
9428
      else:
9429
        iprot.skip(ftype)
9430
      iprot.readFieldEnd()
9431
    iprot.readStructEnd()
9432
 
9433
  def write(self, oprot):
9434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9436
      return
9437
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_args')
9438
    if self.item_id is not None:
9439
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9440
      oprot.writeI64(self.item_id)
9441
      oprot.writeFieldEnd()
9442
    if self.warehouse_id is not None:
9443
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
9444
      oprot.writeI64(self.warehouse_id)
9445
      oprot.writeFieldEnd()
9446
    oprot.writeFieldStop()
9447
    oprot.writeStructEnd()
9448
 
9449
  def validate(self):
9450
    return
9451
 
9452
 
9453
  def __repr__(self):
9454
    L = ['%s=%r' % (key, value)
9455
      for key, value in self.__dict__.iteritems()]
9456
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9457
 
9458
  def __eq__(self, other):
9459
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9460
 
9461
  def __ne__(self, other):
9462
    return not (self == other)
9463
 
9464
class insertItemtoIgnoreInventoryUpdatelist_result:
9465
  """
9466
  Attributes:
9467
   - success
9468
  """
9469
 
9470
  thrift_spec = (
9471
    (0, TType.BOOL, 'success', None, None, ), # 0
9472
  )
9473
 
9474
  def __init__(self, success=None,):
9475
    self.success = success
9476
 
9477
  def read(self, iprot):
9478
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9479
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9480
      return
9481
    iprot.readStructBegin()
9482
    while True:
9483
      (fname, ftype, fid) = iprot.readFieldBegin()
9484
      if ftype == TType.STOP:
9485
        break
9486
      if fid == 0:
9487
        if ftype == TType.BOOL:
9488
          self.success = iprot.readBool();
9489
        else:
9490
          iprot.skip(ftype)
9491
      else:
9492
        iprot.skip(ftype)
9493
      iprot.readFieldEnd()
9494
    iprot.readStructEnd()
9495
 
9496
  def write(self, oprot):
9497
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9498
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9499
      return
9500
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_result')
9501
    if self.success is not None:
9502
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9503
      oprot.writeBool(self.success)
9504
      oprot.writeFieldEnd()
9505
    oprot.writeFieldStop()
9506
    oprot.writeStructEnd()
9507
 
9508
  def validate(self):
9509
    return
9510
 
9511
 
9512
  def __repr__(self):
9513
    L = ['%s=%r' % (key, value)
9514
      for key, value in self.__dict__.iteritems()]
9515
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9516
 
9517
  def __eq__(self, other):
9518
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9519
 
9520
  def __ne__(self, other):
9521
    return not (self == other)
9522
 
9523
class deleteItemFromIgnoredInventoryUpdateList_args:
9524
  """
9525
  Attributes:
9526
   - item_id
9527
   - warehouse_id
9528
  """
9529
 
9530
  thrift_spec = (
9531
    None, # 0
9532
    (1, TType.I64, 'item_id', None, None, ), # 1
9533
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
9534
  )
9535
 
9536
  def __init__(self, item_id=None, warehouse_id=None,):
9537
    self.item_id = item_id
9538
    self.warehouse_id = warehouse_id
9539
 
9540
  def read(self, iprot):
9541
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9542
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9543
      return
9544
    iprot.readStructBegin()
9545
    while True:
9546
      (fname, ftype, fid) = iprot.readFieldBegin()
9547
      if ftype == TType.STOP:
9548
        break
9549
      if fid == 1:
9550
        if ftype == TType.I64:
9551
          self.item_id = iprot.readI64();
9552
        else:
9553
          iprot.skip(ftype)
9554
      elif fid == 2:
9555
        if ftype == TType.I64:
9556
          self.warehouse_id = iprot.readI64();
9557
        else:
9558
          iprot.skip(ftype)
9559
      else:
9560
        iprot.skip(ftype)
9561
      iprot.readFieldEnd()
9562
    iprot.readStructEnd()
9563
 
9564
  def write(self, oprot):
9565
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9566
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9567
      return
9568
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_args')
9569
    if self.item_id is not None:
9570
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9571
      oprot.writeI64(self.item_id)
9572
      oprot.writeFieldEnd()
9573
    if self.warehouse_id is not None:
9574
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
9575
      oprot.writeI64(self.warehouse_id)
9576
      oprot.writeFieldEnd()
9577
    oprot.writeFieldStop()
9578
    oprot.writeStructEnd()
9579
 
9580
  def validate(self):
9581
    return
9582
 
9583
 
9584
  def __repr__(self):
9585
    L = ['%s=%r' % (key, value)
9586
      for key, value in self.__dict__.iteritems()]
9587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9588
 
9589
  def __eq__(self, other):
9590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9591
 
9592
  def __ne__(self, other):
9593
    return not (self == other)
9594
 
9595
class deleteItemFromIgnoredInventoryUpdateList_result:
9596
  """
9597
  Attributes:
9598
   - success
9599
  """
9600
 
9601
  thrift_spec = (
9602
    (0, TType.BOOL, 'success', None, None, ), # 0
9603
  )
9604
 
9605
  def __init__(self, success=None,):
9606
    self.success = success
9607
 
9608
  def read(self, iprot):
9609
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9610
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9611
      return
9612
    iprot.readStructBegin()
9613
    while True:
9614
      (fname, ftype, fid) = iprot.readFieldBegin()
9615
      if ftype == TType.STOP:
9616
        break
9617
      if fid == 0:
9618
        if ftype == TType.BOOL:
9619
          self.success = iprot.readBool();
9620
        else:
9621
          iprot.skip(ftype)
9622
      else:
9623
        iprot.skip(ftype)
9624
      iprot.readFieldEnd()
9625
    iprot.readStructEnd()
9626
 
9627
  def write(self, oprot):
9628
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9629
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9630
      return
9631
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_result')
9632
    if self.success is not None:
9633
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9634
      oprot.writeBool(self.success)
9635
      oprot.writeFieldEnd()
9636
    oprot.writeFieldStop()
9637
    oprot.writeStructEnd()
9638
 
9639
  def validate(self):
9640
    return
9641
 
9642
 
9643
  def __repr__(self):
9644
    L = ['%s=%r' % (key, value)
9645
      for key, value in self.__dict__.iteritems()]
9646
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9647
 
9648
  def __eq__(self, other):
9649
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9650
 
9651
  def __ne__(self, other):
9652
    return not (self == other)
9653
 
9654
class getAllIgnoredInventoryupdateItemsCount_args:
9655
 
9656
  thrift_spec = (
9657
  )
9658
 
9659
  def read(self, iprot):
9660
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9661
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9662
      return
9663
    iprot.readStructBegin()
9664
    while True:
9665
      (fname, ftype, fid) = iprot.readFieldBegin()
9666
      if ftype == TType.STOP:
9667
        break
9668
      else:
9669
        iprot.skip(ftype)
9670
      iprot.readFieldEnd()
9671
    iprot.readStructEnd()
9672
 
9673
  def write(self, oprot):
9674
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9675
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9676
      return
9677
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_args')
9678
    oprot.writeFieldStop()
9679
    oprot.writeStructEnd()
9680
 
9681
  def validate(self):
9682
    return
9683
 
9684
 
9685
  def __repr__(self):
9686
    L = ['%s=%r' % (key, value)
9687
      for key, value in self.__dict__.iteritems()]
9688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9689
 
9690
  def __eq__(self, other):
9691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9692
 
9693
  def __ne__(self, other):
9694
    return not (self == other)
9695
 
9696
class getAllIgnoredInventoryupdateItemsCount_result:
9697
  """
9698
  Attributes:
9699
   - success
9700
  """
9701
 
9702
  thrift_spec = (
9703
    (0, TType.I32, 'success', None, None, ), # 0
9704
  )
9705
 
9706
  def __init__(self, success=None,):
9707
    self.success = success
9708
 
9709
  def read(self, iprot):
9710
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9711
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9712
      return
9713
    iprot.readStructBegin()
9714
    while True:
9715
      (fname, ftype, fid) = iprot.readFieldBegin()
9716
      if ftype == TType.STOP:
9717
        break
9718
      if fid == 0:
9719
        if ftype == TType.I32:
9720
          self.success = iprot.readI32();
9721
        else:
9722
          iprot.skip(ftype)
9723
      else:
9724
        iprot.skip(ftype)
9725
      iprot.readFieldEnd()
9726
    iprot.readStructEnd()
9727
 
9728
  def write(self, oprot):
9729
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9730
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9731
      return
9732
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_result')
9733
    if self.success is not None:
9734
      oprot.writeFieldBegin('success', TType.I32, 0)
9735
      oprot.writeI32(self.success)
9736
      oprot.writeFieldEnd()
9737
    oprot.writeFieldStop()
9738
    oprot.writeStructEnd()
9739
 
9740
  def validate(self):
9741
    return
9742
 
9743
 
9744
  def __repr__(self):
9745
    L = ['%s=%r' % (key, value)
9746
      for key, value in self.__dict__.iteritems()]
9747
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9748
 
9749
  def __eq__(self, other):
9750
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9751
 
9752
  def __ne__(self, other):
9753
    return not (self == other)
9754
 
9755
class getIgnoredInventoryUpdateItemids_args:
9756
  """
9757
  Attributes:
9758
   - offset
9759
   - limit
9760
  """
9761
 
9762
  thrift_spec = (
9763
    None, # 0
9764
    (1, TType.I32, 'offset', None, None, ), # 1
9765
    (2, TType.I32, 'limit', None, None, ), # 2
9766
  )
9767
 
9768
  def __init__(self, offset=None, limit=None,):
9769
    self.offset = offset
9770
    self.limit = limit
9771
 
9772
  def read(self, iprot):
9773
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9774
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9775
      return
9776
    iprot.readStructBegin()
9777
    while True:
9778
      (fname, ftype, fid) = iprot.readFieldBegin()
9779
      if ftype == TType.STOP:
9780
        break
9781
      if fid == 1:
9782
        if ftype == TType.I32:
9783
          self.offset = iprot.readI32();
9784
        else:
9785
          iprot.skip(ftype)
9786
      elif fid == 2:
9787
        if ftype == TType.I32:
9788
          self.limit = iprot.readI32();
9789
        else:
9790
          iprot.skip(ftype)
9791
      else:
9792
        iprot.skip(ftype)
9793
      iprot.readFieldEnd()
9794
    iprot.readStructEnd()
9795
 
9796
  def write(self, oprot):
9797
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9798
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9799
      return
9800
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_args')
9801
    if self.offset is not None:
9802
      oprot.writeFieldBegin('offset', TType.I32, 1)
9803
      oprot.writeI32(self.offset)
9804
      oprot.writeFieldEnd()
9805
    if self.limit is not None:
9806
      oprot.writeFieldBegin('limit', TType.I32, 2)
9807
      oprot.writeI32(self.limit)
9808
      oprot.writeFieldEnd()
9809
    oprot.writeFieldStop()
9810
    oprot.writeStructEnd()
9811
 
9812
  def validate(self):
9813
    return
9814
 
9815
 
9816
  def __repr__(self):
9817
    L = ['%s=%r' % (key, value)
9818
      for key, value in self.__dict__.iteritems()]
9819
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9820
 
9821
  def __eq__(self, other):
9822
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9823
 
9824
  def __ne__(self, other):
9825
    return not (self == other)
9826
 
9827
class getIgnoredInventoryUpdateItemids_result:
9828
  """
9829
  Attributes:
9830
   - success
9831
  """
9832
 
9833
  thrift_spec = (
9834
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9835
  )
9836
 
9837
  def __init__(self, success=None,):
9838
    self.success = success
9839
 
9840
  def read(self, iprot):
9841
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9842
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9843
      return
9844
    iprot.readStructBegin()
9845
    while True:
9846
      (fname, ftype, fid) = iprot.readFieldBegin()
9847
      if ftype == TType.STOP:
9848
        break
9849
      if fid == 0:
9850
        if ftype == TType.LIST:
9851
          self.success = []
8182 amar.kumar 9852
          (_etype189, _size186) = iprot.readListBegin()
9853
          for _i190 in xrange(_size186):
9854
            _elem191 = iprot.readI64();
9855
            self.success.append(_elem191)
6531 vikram.rag 9856
          iprot.readListEnd()
9857
        else:
9858
          iprot.skip(ftype)
9859
      else:
9860
        iprot.skip(ftype)
9861
      iprot.readFieldEnd()
9862
    iprot.readStructEnd()
9863
 
9864
  def write(self, oprot):
9865
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9866
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9867
      return
9868
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_result')
9869
    if self.success is not None:
9870
      oprot.writeFieldBegin('success', TType.LIST, 0)
9871
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 9872
      for iter192 in self.success:
9873
        oprot.writeI64(iter192)
6531 vikram.rag 9874
      oprot.writeListEnd()
9875
      oprot.writeFieldEnd()
9876
    oprot.writeFieldStop()
9877
    oprot.writeStructEnd()
9878
 
9879
  def validate(self):
9880
    return
9881
 
9882
 
9883
  def __repr__(self):
9884
    L = ['%s=%r' % (key, value)
9885
      for key, value in self.__dict__.iteritems()]
9886
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9887
 
9888
  def __eq__(self, other):
9889
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9890
 
9891
  def __ne__(self, other):
9892
    return not (self == other)
6821 amar.kumar 9893
 
9894
class updateItemStockPurchaseParams_args:
9895
  """
9896
  Attributes:
9897
   - item_id
9898
   - numOfDaysStock
9899
   - minStockLevel
9900
  """
9901
 
9902
  thrift_spec = (
9903
    None, # 0
9904
    (1, TType.I64, 'item_id', None, None, ), # 1
9905
    (2, TType.I32, 'numOfDaysStock', None, None, ), # 2
9906
    (3, TType.I64, 'minStockLevel', None, None, ), # 3
9907
  )
9908
 
9909
  def __init__(self, item_id=None, numOfDaysStock=None, minStockLevel=None,):
9910
    self.item_id = item_id
9911
    self.numOfDaysStock = numOfDaysStock
9912
    self.minStockLevel = minStockLevel
9913
 
9914
  def read(self, iprot):
9915
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9916
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9917
      return
9918
    iprot.readStructBegin()
9919
    while True:
9920
      (fname, ftype, fid) = iprot.readFieldBegin()
9921
      if ftype == TType.STOP:
9922
        break
9923
      if fid == 1:
9924
        if ftype == TType.I64:
9925
          self.item_id = iprot.readI64();
9926
        else:
9927
          iprot.skip(ftype)
9928
      elif fid == 2:
9929
        if ftype == TType.I32:
9930
          self.numOfDaysStock = iprot.readI32();
9931
        else:
9932
          iprot.skip(ftype)
9933
      elif fid == 3:
9934
        if ftype == TType.I64:
9935
          self.minStockLevel = iprot.readI64();
9936
        else:
9937
          iprot.skip(ftype)
9938
      else:
9939
        iprot.skip(ftype)
9940
      iprot.readFieldEnd()
9941
    iprot.readStructEnd()
9942
 
9943
  def write(self, oprot):
9944
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9945
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9946
      return
9947
    oprot.writeStructBegin('updateItemStockPurchaseParams_args')
9948
    if self.item_id is not None:
9949
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9950
      oprot.writeI64(self.item_id)
9951
      oprot.writeFieldEnd()
9952
    if self.numOfDaysStock is not None:
9953
      oprot.writeFieldBegin('numOfDaysStock', TType.I32, 2)
9954
      oprot.writeI32(self.numOfDaysStock)
9955
      oprot.writeFieldEnd()
9956
    if self.minStockLevel is not None:
9957
      oprot.writeFieldBegin('minStockLevel', TType.I64, 3)
9958
      oprot.writeI64(self.minStockLevel)
9959
      oprot.writeFieldEnd()
9960
    oprot.writeFieldStop()
9961
    oprot.writeStructEnd()
9962
 
9963
  def validate(self):
9964
    return
9965
 
9966
 
9967
  def __repr__(self):
9968
    L = ['%s=%r' % (key, value)
9969
      for key, value in self.__dict__.iteritems()]
9970
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9971
 
9972
  def __eq__(self, other):
9973
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9974
 
9975
  def __ne__(self, other):
9976
    return not (self == other)
9977
 
9978
class updateItemStockPurchaseParams_result:
9979
 
9980
  thrift_spec = (
9981
  )
9982
 
9983
  def read(self, iprot):
9984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9986
      return
9987
    iprot.readStructBegin()
9988
    while True:
9989
      (fname, ftype, fid) = iprot.readFieldBegin()
9990
      if ftype == TType.STOP:
9991
        break
9992
      else:
9993
        iprot.skip(ftype)
9994
      iprot.readFieldEnd()
9995
    iprot.readStructEnd()
9996
 
9997
  def write(self, oprot):
9998
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9999
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10000
      return
10001
    oprot.writeStructBegin('updateItemStockPurchaseParams_result')
10002
    oprot.writeFieldStop()
10003
    oprot.writeStructEnd()
10004
 
10005
  def validate(self):
10006
    return
10007
 
10008
 
10009
  def __repr__(self):
10010
    L = ['%s=%r' % (key, value)
10011
      for key, value in self.__dict__.iteritems()]
10012
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10013
 
10014
  def __eq__(self, other):
10015
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10016
 
10017
  def __ne__(self, other):
10018
    return not (self == other)
10019
 
10020
class getItemStockPurchaseParams_args:
10021
  """
10022
  Attributes:
10023
   - itemId
10024
  """
10025
 
10026
  thrift_spec = (
10027
    None, # 0
10028
    (1, TType.I64, 'itemId', None, None, ), # 1
10029
  )
10030
 
10031
  def __init__(self, itemId=None,):
10032
    self.itemId = itemId
10033
 
10034
  def read(self, iprot):
10035
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10036
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10037
      return
10038
    iprot.readStructBegin()
10039
    while True:
10040
      (fname, ftype, fid) = iprot.readFieldBegin()
10041
      if ftype == TType.STOP:
10042
        break
10043
      if fid == 1:
10044
        if ftype == TType.I64:
10045
          self.itemId = iprot.readI64();
10046
        else:
10047
          iprot.skip(ftype)
10048
      else:
10049
        iprot.skip(ftype)
10050
      iprot.readFieldEnd()
10051
    iprot.readStructEnd()
10052
 
10053
  def write(self, oprot):
10054
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10055
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10056
      return
10057
    oprot.writeStructBegin('getItemStockPurchaseParams_args')
10058
    if self.itemId is not None:
10059
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10060
      oprot.writeI64(self.itemId)
10061
      oprot.writeFieldEnd()
10062
    oprot.writeFieldStop()
10063
    oprot.writeStructEnd()
10064
 
10065
  def validate(self):
10066
    return
10067
 
10068
 
10069
  def __repr__(self):
10070
    L = ['%s=%r' % (key, value)
10071
      for key, value in self.__dict__.iteritems()]
10072
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10073
 
10074
  def __eq__(self, other):
10075
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10076
 
10077
  def __ne__(self, other):
10078
    return not (self == other)
10079
 
10080
class getItemStockPurchaseParams_result:
10081
  """
10082
  Attributes:
10083
   - success
10084
  """
10085
 
10086
  thrift_spec = (
10087
    (0, TType.STRUCT, 'success', (ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec), None, ), # 0
10088
  )
10089
 
10090
  def __init__(self, success=None,):
10091
    self.success = success
10092
 
10093
  def read(self, iprot):
10094
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10095
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10096
      return
10097
    iprot.readStructBegin()
10098
    while True:
10099
      (fname, ftype, fid) = iprot.readFieldBegin()
10100
      if ftype == TType.STOP:
10101
        break
10102
      if fid == 0:
10103
        if ftype == TType.STRUCT:
10104
          self.success = ItemStockPurchaseParams()
10105
          self.success.read(iprot)
10106
        else:
10107
          iprot.skip(ftype)
10108
      else:
10109
        iprot.skip(ftype)
10110
      iprot.readFieldEnd()
10111
    iprot.readStructEnd()
10112
 
10113
  def write(self, oprot):
10114
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10115
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10116
      return
10117
    oprot.writeStructBegin('getItemStockPurchaseParams_result')
10118
    if self.success is not None:
10119
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10120
      self.success.write(oprot)
10121
      oprot.writeFieldEnd()
10122
    oprot.writeFieldStop()
10123
    oprot.writeStructEnd()
10124
 
10125
  def validate(self):
10126
    return
10127
 
10128
 
10129
  def __repr__(self):
10130
    L = ['%s=%r' % (key, value)
10131
      for key, value in self.__dict__.iteritems()]
10132
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10133
 
10134
  def __eq__(self, other):
10135
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10136
 
10137
  def __ne__(self, other):
10138
    return not (self == other)
10139
 
10140
class addOosStatusForItem_args:
10141
  """
10142
  Attributes:
10143
   - oosStatusMap
10144
   - date
10145
  """
10146
 
10147
  thrift_spec = (
10148
    None, # 0
10149
    (1, TType.MAP, 'oosStatusMap', (TType.I64,None,TType.BOOL,None), None, ), # 1
10150
    (2, TType.I64, 'date', None, None, ), # 2
10151
  )
10152
 
10153
  def __init__(self, oosStatusMap=None, date=None,):
10154
    self.oosStatusMap = oosStatusMap
10155
    self.date = date
10156
 
10157
  def read(self, iprot):
10158
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10159
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10160
      return
10161
    iprot.readStructBegin()
10162
    while True:
10163
      (fname, ftype, fid) = iprot.readFieldBegin()
10164
      if ftype == TType.STOP:
10165
        break
10166
      if fid == 1:
10167
        if ftype == TType.MAP:
10168
          self.oosStatusMap = {}
8182 amar.kumar 10169
          (_ktype194, _vtype195, _size193 ) = iprot.readMapBegin() 
10170
          for _i197 in xrange(_size193):
10171
            _key198 = iprot.readI64();
10172
            _val199 = iprot.readBool();
10173
            self.oosStatusMap[_key198] = _val199
6821 amar.kumar 10174
          iprot.readMapEnd()
10175
        else:
10176
          iprot.skip(ftype)
10177
      elif fid == 2:
10178
        if ftype == TType.I64:
10179
          self.date = iprot.readI64();
10180
        else:
10181
          iprot.skip(ftype)
10182
      else:
10183
        iprot.skip(ftype)
10184
      iprot.readFieldEnd()
10185
    iprot.readStructEnd()
10186
 
10187
  def write(self, oprot):
10188
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10189
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10190
      return
10191
    oprot.writeStructBegin('addOosStatusForItem_args')
10192
    if self.oosStatusMap is not None:
10193
      oprot.writeFieldBegin('oosStatusMap', TType.MAP, 1)
10194
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.oosStatusMap))
8182 amar.kumar 10195
      for kiter200,viter201 in self.oosStatusMap.items():
10196
        oprot.writeI64(kiter200)
10197
        oprot.writeBool(viter201)
6821 amar.kumar 10198
      oprot.writeMapEnd()
10199
      oprot.writeFieldEnd()
10200
    if self.date is not None:
10201
      oprot.writeFieldBegin('date', TType.I64, 2)
10202
      oprot.writeI64(self.date)
10203
      oprot.writeFieldEnd()
10204
    oprot.writeFieldStop()
10205
    oprot.writeStructEnd()
10206
 
10207
  def validate(self):
10208
    return
10209
 
10210
 
10211
  def __repr__(self):
10212
    L = ['%s=%r' % (key, value)
10213
      for key, value in self.__dict__.iteritems()]
10214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10215
 
10216
  def __eq__(self, other):
10217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10218
 
10219
  def __ne__(self, other):
10220
    return not (self == other)
10221
 
10222
class addOosStatusForItem_result:
10223
 
10224
  thrift_spec = (
10225
  )
10226
 
10227
  def read(self, iprot):
10228
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10229
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10230
      return
10231
    iprot.readStructBegin()
10232
    while True:
10233
      (fname, ftype, fid) = iprot.readFieldBegin()
10234
      if ftype == TType.STOP:
10235
        break
10236
      else:
10237
        iprot.skip(ftype)
10238
      iprot.readFieldEnd()
10239
    iprot.readStructEnd()
10240
 
10241
  def write(self, oprot):
10242
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10243
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10244
      return
10245
    oprot.writeStructBegin('addOosStatusForItem_result')
10246
    oprot.writeFieldStop()
10247
    oprot.writeStructEnd()
10248
 
10249
  def validate(self):
10250
    return
10251
 
10252
 
10253
  def __repr__(self):
10254
    L = ['%s=%r' % (key, value)
10255
      for key, value in self.__dict__.iteritems()]
10256
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10257
 
10258
  def __eq__(self, other):
10259
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10260
 
10261
  def __ne__(self, other):
10262
    return not (self == other)
6832 amar.kumar 10263
 
10264
class getOosStatusesForXDaysForItem_args:
10265
  """
10266
  Attributes:
10267
   - itemId
9762 amar.kumar 10268
   - sourceId
6832 amar.kumar 10269
   - days
10270
  """
10271
 
10272
  thrift_spec = (
10273
    None, # 0
10274
    (1, TType.I64, 'itemId', None, None, ), # 1
9762 amar.kumar 10275
    (2, TType.I32, 'sourceId', None, None, ), # 2
10276
    (3, TType.I32, 'days', None, None, ), # 3
6832 amar.kumar 10277
  )
10278
 
9762 amar.kumar 10279
  def __init__(self, itemId=None, sourceId=None, days=None,):
6832 amar.kumar 10280
    self.itemId = itemId
9762 amar.kumar 10281
    self.sourceId = sourceId
6832 amar.kumar 10282
    self.days = days
10283
 
10284
  def read(self, iprot):
10285
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10286
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10287
      return
10288
    iprot.readStructBegin()
10289
    while True:
10290
      (fname, ftype, fid) = iprot.readFieldBegin()
10291
      if ftype == TType.STOP:
10292
        break
10293
      if fid == 1:
10294
        if ftype == TType.I64:
10295
          self.itemId = iprot.readI64();
10296
        else:
10297
          iprot.skip(ftype)
10298
      elif fid == 2:
10299
        if ftype == TType.I32:
9762 amar.kumar 10300
          self.sourceId = iprot.readI32();
10301
        else:
10302
          iprot.skip(ftype)
10303
      elif fid == 3:
10304
        if ftype == TType.I32:
6832 amar.kumar 10305
          self.days = iprot.readI32();
10306
        else:
10307
          iprot.skip(ftype)
10308
      else:
10309
        iprot.skip(ftype)
10310
      iprot.readFieldEnd()
10311
    iprot.readStructEnd()
10312
 
10313
  def write(self, oprot):
10314
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10315
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10316
      return
10317
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_args')
10318
    if self.itemId is not None:
10319
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10320
      oprot.writeI64(self.itemId)
10321
      oprot.writeFieldEnd()
9762 amar.kumar 10322
    if self.sourceId is not None:
10323
      oprot.writeFieldBegin('sourceId', TType.I32, 2)
10324
      oprot.writeI32(self.sourceId)
10325
      oprot.writeFieldEnd()
6832 amar.kumar 10326
    if self.days is not None:
9762 amar.kumar 10327
      oprot.writeFieldBegin('days', TType.I32, 3)
6832 amar.kumar 10328
      oprot.writeI32(self.days)
10329
      oprot.writeFieldEnd()
10330
    oprot.writeFieldStop()
10331
    oprot.writeStructEnd()
10332
 
10333
  def validate(self):
10334
    return
10335
 
10336
 
10337
  def __repr__(self):
10338
    L = ['%s=%r' % (key, value)
10339
      for key, value in self.__dict__.iteritems()]
10340
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10341
 
10342
  def __eq__(self, other):
10343
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10344
 
10345
  def __ne__(self, other):
10346
    return not (self == other)
10347
 
10348
class getOosStatusesForXDaysForItem_result:
10349
  """
10350
  Attributes:
10351
   - success
10352
  """
10353
 
10354
  thrift_spec = (
10355
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.thrift_spec)), None, ), # 0
10356
  )
10357
 
10358
  def __init__(self, success=None,):
10359
    self.success = success
10360
 
10361
  def read(self, iprot):
10362
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10363
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10364
      return
10365
    iprot.readStructBegin()
10366
    while True:
10367
      (fname, ftype, fid) = iprot.readFieldBegin()
10368
      if ftype == TType.STOP:
10369
        break
10370
      if fid == 0:
10371
        if ftype == TType.LIST:
10372
          self.success = []
8182 amar.kumar 10373
          (_etype205, _size202) = iprot.readListBegin()
10374
          for _i206 in xrange(_size202):
10375
            _elem207 = OOSStatus()
10376
            _elem207.read(iprot)
10377
            self.success.append(_elem207)
6832 amar.kumar 10378
          iprot.readListEnd()
10379
        else:
10380
          iprot.skip(ftype)
10381
      else:
10382
        iprot.skip(ftype)
10383
      iprot.readFieldEnd()
10384
    iprot.readStructEnd()
10385
 
10386
  def write(self, oprot):
10387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10389
      return
10390
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_result')
10391
    if self.success is not None:
10392
      oprot.writeFieldBegin('success', TType.LIST, 0)
10393
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10394
      for iter208 in self.success:
10395
        iter208.write(oprot)
6832 amar.kumar 10396
      oprot.writeListEnd()
10397
      oprot.writeFieldEnd()
10398
    oprot.writeFieldStop()
10399
    oprot.writeStructEnd()
10400
 
10401
  def validate(self):
10402
    return
10403
 
10404
 
10405
  def __repr__(self):
10406
    L = ['%s=%r' % (key, value)
10407
      for key, value in self.__dict__.iteritems()]
10408
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10409
 
10410
  def __eq__(self, other):
10411
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10412
 
10413
  def __ne__(self, other):
10414
    return not (self == other)
6857 amar.kumar 10415
 
10416
class getNonZeroItemStockPurchaseParams_args:
10417
 
10418
  thrift_spec = (
10419
  )
10420
 
10421
  def read(self, iprot):
10422
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10423
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10424
      return
10425
    iprot.readStructBegin()
10426
    while True:
10427
      (fname, ftype, fid) = iprot.readFieldBegin()
10428
      if ftype == TType.STOP:
10429
        break
10430
      else:
10431
        iprot.skip(ftype)
10432
      iprot.readFieldEnd()
10433
    iprot.readStructEnd()
10434
 
10435
  def write(self, oprot):
10436
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10437
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10438
      return
10439
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_args')
10440
    oprot.writeFieldStop()
10441
    oprot.writeStructEnd()
10442
 
10443
  def validate(self):
10444
    return
10445
 
10446
 
10447
  def __repr__(self):
10448
    L = ['%s=%r' % (key, value)
10449
      for key, value in self.__dict__.iteritems()]
10450
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10451
 
10452
  def __eq__(self, other):
10453
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10454
 
10455
  def __ne__(self, other):
10456
    return not (self == other)
10457
 
10458
class getNonZeroItemStockPurchaseParams_result:
10459
  """
10460
  Attributes:
10461
   - success
10462
  """
10463
 
10464
  thrift_spec = (
10465
    (0, TType.LIST, 'success', (TType.STRUCT,(ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec)), None, ), # 0
10466
  )
10467
 
10468
  def __init__(self, success=None,):
10469
    self.success = success
10470
 
10471
  def read(self, iprot):
10472
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10473
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10474
      return
10475
    iprot.readStructBegin()
10476
    while True:
10477
      (fname, ftype, fid) = iprot.readFieldBegin()
10478
      if ftype == TType.STOP:
10479
        break
10480
      if fid == 0:
10481
        if ftype == TType.LIST:
10482
          self.success = []
8182 amar.kumar 10483
          (_etype212, _size209) = iprot.readListBegin()
10484
          for _i213 in xrange(_size209):
10485
            _elem214 = ItemStockPurchaseParams()
10486
            _elem214.read(iprot)
10487
            self.success.append(_elem214)
6857 amar.kumar 10488
          iprot.readListEnd()
10489
        else:
10490
          iprot.skip(ftype)
10491
      else:
10492
        iprot.skip(ftype)
10493
      iprot.readFieldEnd()
10494
    iprot.readStructEnd()
10495
 
10496
  def write(self, oprot):
10497
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10498
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10499
      return
10500
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_result')
10501
    if self.success is not None:
10502
      oprot.writeFieldBegin('success', TType.LIST, 0)
10503
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10504
      for iter215 in self.success:
10505
        iter215.write(oprot)
6857 amar.kumar 10506
      oprot.writeListEnd()
10507
      oprot.writeFieldEnd()
10508
    oprot.writeFieldStop()
10509
    oprot.writeStructEnd()
10510
 
10511
  def validate(self):
10512
    return
10513
 
10514
 
10515
  def __repr__(self):
10516
    L = ['%s=%r' % (key, value)
10517
      for key, value in self.__dict__.iteritems()]
10518
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10519
 
10520
  def __eq__(self, other):
10521
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10522
 
10523
  def __ne__(self, other):
10524
    return not (self == other)
7149 amar.kumar 10525
 
10526
class getBillableInventoryAndPendingOrders_args:
10527
 
10528
  thrift_spec = (
10529
  )
10530
 
10531
  def read(self, iprot):
10532
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10533
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10534
      return
10535
    iprot.readStructBegin()
10536
    while True:
10537
      (fname, ftype, fid) = iprot.readFieldBegin()
10538
      if ftype == TType.STOP:
10539
        break
10540
      else:
10541
        iprot.skip(ftype)
10542
      iprot.readFieldEnd()
10543
    iprot.readStructEnd()
10544
 
10545
  def write(self, oprot):
10546
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10547
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10548
      return
10549
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_args')
10550
    oprot.writeFieldStop()
10551
    oprot.writeStructEnd()
10552
 
10553
  def validate(self):
10554
    return
10555
 
10556
 
10557
  def __repr__(self):
10558
    L = ['%s=%r' % (key, value)
10559
      for key, value in self.__dict__.iteritems()]
10560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10561
 
10562
  def __eq__(self, other):
10563
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10564
 
10565
  def __ne__(self, other):
10566
    return not (self == other)
10567
 
10568
class getBillableInventoryAndPendingOrders_result:
10569
  """
10570
  Attributes:
10571
   - success
10572
  """
10573
 
10574
  thrift_spec = (
10575
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
10576
  )
10577
 
10578
  def __init__(self, success=None,):
10579
    self.success = success
10580
 
10581
  def read(self, iprot):
10582
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10583
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10584
      return
10585
    iprot.readStructBegin()
10586
    while True:
10587
      (fname, ftype, fid) = iprot.readFieldBegin()
10588
      if ftype == TType.STOP:
10589
        break
10590
      if fid == 0:
10591
        if ftype == TType.LIST:
10592
          self.success = []
8182 amar.kumar 10593
          (_etype219, _size216) = iprot.readListBegin()
10594
          for _i220 in xrange(_size216):
10595
            _elem221 = AvailableAndReservedStock()
10596
            _elem221.read(iprot)
10597
            self.success.append(_elem221)
7149 amar.kumar 10598
          iprot.readListEnd()
10599
        else:
10600
          iprot.skip(ftype)
10601
      else:
10602
        iprot.skip(ftype)
10603
      iprot.readFieldEnd()
10604
    iprot.readStructEnd()
10605
 
10606
  def write(self, oprot):
10607
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10608
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10609
      return
10610
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_result')
10611
    if self.success is not None:
10612
      oprot.writeFieldBegin('success', TType.LIST, 0)
10613
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10614
      for iter222 in self.success:
10615
        iter222.write(oprot)
7149 amar.kumar 10616
      oprot.writeListEnd()
10617
      oprot.writeFieldEnd()
10618
    oprot.writeFieldStop()
10619
    oprot.writeStructEnd()
10620
 
10621
  def validate(self):
10622
    return
10623
 
10624
 
10625
  def __repr__(self):
10626
    L = ['%s=%r' % (key, value)
10627
      for key, value in self.__dict__.iteritems()]
10628
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10629
 
10630
  def __eq__(self, other):
10631
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10632
 
10633
  def __ne__(self, other):
10634
    return not (self == other)
7281 kshitij.so 10635
 
10636
class getWarehouseName_args:
10637
  """
10638
  Attributes:
10639
   - warehouse_id
10640
  """
10641
 
10642
  thrift_spec = (
10643
    None, # 0
10644
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
10645
  )
10646
 
10647
  def __init__(self, warehouse_id=None,):
10648
    self.warehouse_id = warehouse_id
10649
 
10650
  def read(self, iprot):
10651
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10652
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10653
      return
10654
    iprot.readStructBegin()
10655
    while True:
10656
      (fname, ftype, fid) = iprot.readFieldBegin()
10657
      if ftype == TType.STOP:
10658
        break
10659
      if fid == 1:
10660
        if ftype == TType.I64:
10661
          self.warehouse_id = iprot.readI64();
10662
        else:
10663
          iprot.skip(ftype)
10664
      else:
10665
        iprot.skip(ftype)
10666
      iprot.readFieldEnd()
10667
    iprot.readStructEnd()
10668
 
10669
  def write(self, oprot):
10670
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10671
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10672
      return
10673
    oprot.writeStructBegin('getWarehouseName_args')
10674
    if self.warehouse_id is not None:
10675
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
10676
      oprot.writeI64(self.warehouse_id)
10677
      oprot.writeFieldEnd()
10678
    oprot.writeFieldStop()
10679
    oprot.writeStructEnd()
10680
 
10681
  def validate(self):
10682
    return
10683
 
10684
 
10685
  def __repr__(self):
10686
    L = ['%s=%r' % (key, value)
10687
      for key, value in self.__dict__.iteritems()]
10688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10689
 
10690
  def __eq__(self, other):
10691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10692
 
10693
  def __ne__(self, other):
10694
    return not (self == other)
10695
 
10696
class getWarehouseName_result:
10697
  """
10698
  Attributes:
10699
   - success
10700
  """
10701
 
10702
  thrift_spec = (
10703
    (0, TType.STRING, 'success', None, None, ), # 0
10704
  )
10705
 
10706
  def __init__(self, success=None,):
10707
    self.success = success
10708
 
10709
  def read(self, iprot):
10710
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10711
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10712
      return
10713
    iprot.readStructBegin()
10714
    while True:
10715
      (fname, ftype, fid) = iprot.readFieldBegin()
10716
      if ftype == TType.STOP:
10717
        break
10718
      if fid == 0:
10719
        if ftype == TType.STRING:
10720
          self.success = iprot.readString();
10721
        else:
10722
          iprot.skip(ftype)
10723
      else:
10724
        iprot.skip(ftype)
10725
      iprot.readFieldEnd()
10726
    iprot.readStructEnd()
10727
 
10728
  def write(self, oprot):
10729
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10730
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10731
      return
10732
    oprot.writeStructBegin('getWarehouseName_result')
10733
    if self.success is not None:
10734
      oprot.writeFieldBegin('success', TType.STRING, 0)
10735
      oprot.writeString(self.success)
10736
      oprot.writeFieldEnd()
10737
    oprot.writeFieldStop()
10738
    oprot.writeStructEnd()
10739
 
10740
  def validate(self):
10741
    return
10742
 
10743
 
10744
  def __repr__(self):
10745
    L = ['%s=%r' % (key, value)
10746
      for key, value in self.__dict__.iteritems()]
10747
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10748
 
10749
  def __eq__(self, other):
10750
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10751
 
10752
  def __ne__(self, other):
10753
    return not (self == other)
10754
 
10755
class getAmazonInventoryForItem_args:
10756
  """
10757
  Attributes:
10758
   - item_id
10759
  """
10760
 
10761
  thrift_spec = (
10762
    None, # 0
10763
    (1, TType.I64, 'item_id', None, None, ), # 1
10764
  )
10765
 
10766
  def __init__(self, item_id=None,):
10767
    self.item_id = item_id
10768
 
10769
  def read(self, iprot):
10770
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10771
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10772
      return
10773
    iprot.readStructBegin()
10774
    while True:
10775
      (fname, ftype, fid) = iprot.readFieldBegin()
10776
      if ftype == TType.STOP:
10777
        break
10778
      if fid == 1:
10779
        if ftype == TType.I64:
10780
          self.item_id = iprot.readI64();
10781
        else:
10782
          iprot.skip(ftype)
10783
      else:
10784
        iprot.skip(ftype)
10785
      iprot.readFieldEnd()
10786
    iprot.readStructEnd()
10787
 
10788
  def write(self, oprot):
10789
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10790
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10791
      return
10792
    oprot.writeStructBegin('getAmazonInventoryForItem_args')
10793
    if self.item_id is not None:
10794
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10795
      oprot.writeI64(self.item_id)
10796
      oprot.writeFieldEnd()
10797
    oprot.writeFieldStop()
10798
    oprot.writeStructEnd()
10799
 
10800
  def validate(self):
10801
    return
10802
 
10803
 
10804
  def __repr__(self):
10805
    L = ['%s=%r' % (key, value)
10806
      for key, value in self.__dict__.iteritems()]
10807
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10808
 
10809
  def __eq__(self, other):
10810
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10811
 
10812
  def __ne__(self, other):
10813
    return not (self == other)
10814
 
10815
class getAmazonInventoryForItem_result:
10816
  """
10817
  Attributes:
10818
   - success
10819
  """
10820
 
10821
  thrift_spec = (
10822
    (0, TType.STRUCT, 'success', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 0
10823
  )
10824
 
10825
  def __init__(self, success=None,):
10826
    self.success = success
10827
 
10828
  def read(self, iprot):
10829
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10830
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10831
      return
10832
    iprot.readStructBegin()
10833
    while True:
10834
      (fname, ftype, fid) = iprot.readFieldBegin()
10835
      if ftype == TType.STOP:
10836
        break
10837
      if fid == 0:
10838
        if ftype == TType.STRUCT:
10839
          self.success = AmazonInventorySnapshot()
10840
          self.success.read(iprot)
10841
        else:
10842
          iprot.skip(ftype)
10843
      else:
10844
        iprot.skip(ftype)
10845
      iprot.readFieldEnd()
10846
    iprot.readStructEnd()
10847
 
10848
  def write(self, oprot):
10849
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10850
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10851
      return
10852
    oprot.writeStructBegin('getAmazonInventoryForItem_result')
10853
    if self.success is not None:
10854
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10855
      self.success.write(oprot)
10856
      oprot.writeFieldEnd()
10857
    oprot.writeFieldStop()
10858
    oprot.writeStructEnd()
10859
 
10860
  def validate(self):
10861
    return
10862
 
10863
 
10864
  def __repr__(self):
10865
    L = ['%s=%r' % (key, value)
10866
      for key, value in self.__dict__.iteritems()]
10867
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10868
 
10869
  def __eq__(self, other):
10870
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10871
 
10872
  def __ne__(self, other):
10873
    return not (self == other)
10874
 
10875
class getAllAmazonInventory_args:
10876
 
10877
  thrift_spec = (
10878
  )
10879
 
10880
  def read(self, iprot):
10881
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10882
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10883
      return
10884
    iprot.readStructBegin()
10885
    while True:
10886
      (fname, ftype, fid) = iprot.readFieldBegin()
10887
      if ftype == TType.STOP:
10888
        break
10889
      else:
10890
        iprot.skip(ftype)
10891
      iprot.readFieldEnd()
10892
    iprot.readStructEnd()
10893
 
10894
  def write(self, oprot):
10895
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10896
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10897
      return
10898
    oprot.writeStructBegin('getAllAmazonInventory_args')
10899
    oprot.writeFieldStop()
10900
    oprot.writeStructEnd()
10901
 
10902
  def validate(self):
10903
    return
10904
 
10905
 
10906
  def __repr__(self):
10907
    L = ['%s=%r' % (key, value)
10908
      for key, value in self.__dict__.iteritems()]
10909
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10910
 
10911
  def __eq__(self, other):
10912
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10913
 
10914
  def __ne__(self, other):
10915
    return not (self == other)
10916
 
10917
class getAllAmazonInventory_result:
10918
  """
10919
  Attributes:
10920
   - success
10921
  """
10922
 
10923
  thrift_spec = (
10924
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec)), None, ), # 0
10925
  )
10926
 
10927
  def __init__(self, success=None,):
10928
    self.success = success
10929
 
10930
  def read(self, iprot):
10931
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10932
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10933
      return
10934
    iprot.readStructBegin()
10935
    while True:
10936
      (fname, ftype, fid) = iprot.readFieldBegin()
10937
      if ftype == TType.STOP:
10938
        break
10939
      if fid == 0:
10940
        if ftype == TType.LIST:
10941
          self.success = []
8182 amar.kumar 10942
          (_etype226, _size223) = iprot.readListBegin()
10943
          for _i227 in xrange(_size223):
10944
            _elem228 = AmazonInventorySnapshot()
10945
            _elem228.read(iprot)
10946
            self.success.append(_elem228)
7281 kshitij.so 10947
          iprot.readListEnd()
10948
        else:
10949
          iprot.skip(ftype)
10950
      else:
10951
        iprot.skip(ftype)
10952
      iprot.readFieldEnd()
10953
    iprot.readStructEnd()
10954
 
10955
  def write(self, oprot):
10956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10958
      return
10959
    oprot.writeStructBegin('getAllAmazonInventory_result')
10960
    if self.success is not None:
10961
      oprot.writeFieldBegin('success', TType.LIST, 0)
10962
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10963
      for iter229 in self.success:
10964
        iter229.write(oprot)
7281 kshitij.so 10965
      oprot.writeListEnd()
10966
      oprot.writeFieldEnd()
10967
    oprot.writeFieldStop()
10968
    oprot.writeStructEnd()
10969
 
10970
  def validate(self):
10971
    return
10972
 
10973
 
10974
  def __repr__(self):
10975
    L = ['%s=%r' % (key, value)
10976
      for key, value in self.__dict__.iteritems()]
10977
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10978
 
10979
  def __eq__(self, other):
10980
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10981
 
10982
  def __ne__(self, other):
10983
    return not (self == other)
10984
 
10985
class addOrUpdateAmazonInventoryForItem_args:
10986
  """
10987
  Attributes:
10988
   - amazonInventorySnapshot
10989
  """
10990
 
10991
  thrift_spec = (
10992
    None, # 0
10993
    (1, TType.STRUCT, 'amazonInventorySnapshot', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 1
10994
  )
10995
 
10996
  def __init__(self, amazonInventorySnapshot=None,):
10997
    self.amazonInventorySnapshot = amazonInventorySnapshot
10998
 
10999
  def read(self, iprot):
11000
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11001
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11002
      return
11003
    iprot.readStructBegin()
11004
    while True:
11005
      (fname, ftype, fid) = iprot.readFieldBegin()
11006
      if ftype == TType.STOP:
11007
        break
11008
      if fid == 1:
11009
        if ftype == TType.STRUCT:
11010
          self.amazonInventorySnapshot = AmazonInventorySnapshot()
11011
          self.amazonInventorySnapshot.read(iprot)
11012
        else:
11013
          iprot.skip(ftype)
11014
      else:
11015
        iprot.skip(ftype)
11016
      iprot.readFieldEnd()
11017
    iprot.readStructEnd()
11018
 
11019
  def write(self, oprot):
11020
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11021
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11022
      return
11023
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_args')
11024
    if self.amazonInventorySnapshot is not None:
11025
      oprot.writeFieldBegin('amazonInventorySnapshot', TType.STRUCT, 1)
11026
      self.amazonInventorySnapshot.write(oprot)
11027
      oprot.writeFieldEnd()
11028
    oprot.writeFieldStop()
11029
    oprot.writeStructEnd()
11030
 
11031
  def validate(self):
11032
    return
11033
 
11034
 
11035
  def __repr__(self):
11036
    L = ['%s=%r' % (key, value)
11037
      for key, value in self.__dict__.iteritems()]
11038
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11039
 
11040
  def __eq__(self, other):
11041
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11042
 
11043
  def __ne__(self, other):
11044
    return not (self == other)
11045
 
11046
class addOrUpdateAmazonInventoryForItem_result:
11047
 
11048
  thrift_spec = (
11049
  )
11050
 
11051
  def read(self, iprot):
11052
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11053
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11054
      return
11055
    iprot.readStructBegin()
11056
    while True:
11057
      (fname, ftype, fid) = iprot.readFieldBegin()
11058
      if ftype == TType.STOP:
11059
        break
11060
      else:
11061
        iprot.skip(ftype)
11062
      iprot.readFieldEnd()
11063
    iprot.readStructEnd()
11064
 
11065
  def write(self, oprot):
11066
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11067
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11068
      return
11069
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_result')
11070
    oprot.writeFieldStop()
11071
    oprot.writeStructEnd()
11072
 
11073
  def validate(self):
11074
    return
11075
 
11076
 
11077
  def __repr__(self):
11078
    L = ['%s=%r' % (key, value)
11079
      for key, value in self.__dict__.iteritems()]
11080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11081
 
11082
  def __eq__(self, other):
11083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11084
 
11085
  def __ne__(self, other):
11086
    return not (self == other)
7972 amar.kumar 11087
 
11088
class getLastNdaySaleForItem_args:
11089
  """
11090
  Attributes:
11091
   - itemId
11092
   - numberOfDays
11093
  """
11094
 
11095
  thrift_spec = (
11096
    None, # 0
11097
    (1, TType.I64, 'itemId', None, None, ), # 1
11098
    (2, TType.I64, 'numberOfDays', None, None, ), # 2
11099
  )
11100
 
11101
  def __init__(self, itemId=None, numberOfDays=None,):
11102
    self.itemId = itemId
11103
    self.numberOfDays = numberOfDays
11104
 
11105
  def read(self, iprot):
11106
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11107
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11108
      return
11109
    iprot.readStructBegin()
11110
    while True:
11111
      (fname, ftype, fid) = iprot.readFieldBegin()
11112
      if ftype == TType.STOP:
11113
        break
11114
      if fid == 1:
11115
        if ftype == TType.I64:
11116
          self.itemId = iprot.readI64();
11117
        else:
11118
          iprot.skip(ftype)
11119
      elif fid == 2:
11120
        if ftype == TType.I64:
11121
          self.numberOfDays = iprot.readI64();
11122
        else:
11123
          iprot.skip(ftype)
11124
      else:
11125
        iprot.skip(ftype)
11126
      iprot.readFieldEnd()
11127
    iprot.readStructEnd()
11128
 
11129
  def write(self, oprot):
11130
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11131
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11132
      return
11133
    oprot.writeStructBegin('getLastNdaySaleForItem_args')
11134
    if self.itemId is not None:
11135
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11136
      oprot.writeI64(self.itemId)
11137
      oprot.writeFieldEnd()
11138
    if self.numberOfDays is not None:
11139
      oprot.writeFieldBegin('numberOfDays', TType.I64, 2)
11140
      oprot.writeI64(self.numberOfDays)
11141
      oprot.writeFieldEnd()
11142
    oprot.writeFieldStop()
11143
    oprot.writeStructEnd()
11144
 
11145
  def validate(self):
11146
    return
11147
 
11148
 
11149
  def __repr__(self):
11150
    L = ['%s=%r' % (key, value)
11151
      for key, value in self.__dict__.iteritems()]
11152
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11153
 
11154
  def __eq__(self, other):
11155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11156
 
11157
  def __ne__(self, other):
11158
    return not (self == other)
11159
 
11160
class getLastNdaySaleForItem_result:
11161
  """
11162
  Attributes:
11163
   - success
11164
  """
11165
 
11166
  thrift_spec = (
11167
    (0, TType.STRING, 'success', None, None, ), # 0
11168
  )
11169
 
11170
  def __init__(self, success=None,):
11171
    self.success = success
11172
 
11173
  def read(self, iprot):
11174
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11175
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11176
      return
11177
    iprot.readStructBegin()
11178
    while True:
11179
      (fname, ftype, fid) = iprot.readFieldBegin()
11180
      if ftype == TType.STOP:
11181
        break
11182
      if fid == 0:
11183
        if ftype == TType.STRING:
11184
          self.success = iprot.readString();
11185
        else:
11186
          iprot.skip(ftype)
11187
      else:
11188
        iprot.skip(ftype)
11189
      iprot.readFieldEnd()
11190
    iprot.readStructEnd()
11191
 
11192
  def write(self, oprot):
11193
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11194
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11195
      return
11196
    oprot.writeStructBegin('getLastNdaySaleForItem_result')
11197
    if self.success is not None:
11198
      oprot.writeFieldBegin('success', TType.STRING, 0)
11199
      oprot.writeString(self.success)
11200
      oprot.writeFieldEnd()
11201
    oprot.writeFieldStop()
11202
    oprot.writeStructEnd()
11203
 
11204
  def validate(self):
11205
    return
11206
 
11207
 
11208
  def __repr__(self):
11209
    L = ['%s=%r' % (key, value)
11210
      for key, value in self.__dict__.iteritems()]
11211
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11212
 
11213
  def __eq__(self, other):
11214
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11215
 
11216
  def __ne__(self, other):
11217
    return not (self == other)
8182 amar.kumar 11218
 
8282 kshitij.so 11219
class addOrUpdateAmazonFbaInventory_args:
11220
  """
11221
  Attributes:
11222
   - amazonfbainventorysnapshot
11223
  """
11224
 
11225
  thrift_spec = (
11226
    None, # 0
11227
    (1, TType.STRUCT, 'amazonfbainventorysnapshot', (AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec), None, ), # 1
11228
  )
11229
 
11230
  def __init__(self, amazonfbainventorysnapshot=None,):
11231
    self.amazonfbainventorysnapshot = amazonfbainventorysnapshot
11232
 
11233
  def read(self, iprot):
11234
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11235
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11236
      return
11237
    iprot.readStructBegin()
11238
    while True:
11239
      (fname, ftype, fid) = iprot.readFieldBegin()
11240
      if ftype == TType.STOP:
11241
        break
11242
      if fid == 1:
11243
        if ftype == TType.STRUCT:
11244
          self.amazonfbainventorysnapshot = AmazonFbaInventorySnapshot()
11245
          self.amazonfbainventorysnapshot.read(iprot)
11246
        else:
11247
          iprot.skip(ftype)
11248
      else:
11249
        iprot.skip(ftype)
11250
      iprot.readFieldEnd()
11251
    iprot.readStructEnd()
11252
 
11253
  def write(self, oprot):
11254
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11255
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11256
      return
11257
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_args')
11258
    if self.amazonfbainventorysnapshot is not None:
11259
      oprot.writeFieldBegin('amazonfbainventorysnapshot', TType.STRUCT, 1)
11260
      self.amazonfbainventorysnapshot.write(oprot)
11261
      oprot.writeFieldEnd()
11262
    oprot.writeFieldStop()
11263
    oprot.writeStructEnd()
11264
 
11265
  def validate(self):
11266
    return
11267
 
11268
 
11269
  def __repr__(self):
11270
    L = ['%s=%r' % (key, value)
11271
      for key, value in self.__dict__.iteritems()]
11272
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11273
 
11274
  def __eq__(self, other):
11275
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11276
 
11277
  def __ne__(self, other):
11278
    return not (self == other)
11279
 
11280
class addOrUpdateAmazonFbaInventory_result:
11281
 
11282
  thrift_spec = (
11283
  )
11284
 
11285
  def read(self, iprot):
11286
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11287
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11288
      return
11289
    iprot.readStructBegin()
11290
    while True:
11291
      (fname, ftype, fid) = iprot.readFieldBegin()
11292
      if ftype == TType.STOP:
11293
        break
11294
      else:
11295
        iprot.skip(ftype)
11296
      iprot.readFieldEnd()
11297
    iprot.readStructEnd()
11298
 
11299
  def write(self, oprot):
11300
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11301
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11302
      return
11303
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_result')
11304
    oprot.writeFieldStop()
11305
    oprot.writeStructEnd()
11306
 
11307
  def validate(self):
11308
    return
11309
 
11310
 
11311
  def __repr__(self):
11312
    L = ['%s=%r' % (key, value)
11313
      for key, value in self.__dict__.iteritems()]
11314
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11315
 
11316
  def __eq__(self, other):
11317
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11318
 
11319
  def __ne__(self, other):
11320
    return not (self == other)
11321
 
8182 amar.kumar 11322
class addUpdateHoldInventory_args:
11323
  """
11324
  Attributes:
11325
   - itemId
11326
   - warehouseId
11327
   - holdQuantity
11328
   - source
11329
  """
11330
 
11331
  thrift_spec = (
11332
    None, # 0
11333
    (1, TType.I64, 'itemId', None, None, ), # 1
11334
    (2, TType.I64, 'warehouseId', None, None, ), # 2
11335
    (3, TType.I64, 'holdQuantity', None, None, ), # 3
11336
    (4, TType.I64, 'source', None, None, ), # 4
11337
  )
11338
 
11339
  def __init__(self, itemId=None, warehouseId=None, holdQuantity=None, source=None,):
11340
    self.itemId = itemId
11341
    self.warehouseId = warehouseId
11342
    self.holdQuantity = holdQuantity
11343
    self.source = source
11344
 
11345
  def read(self, iprot):
11346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11348
      return
11349
    iprot.readStructBegin()
11350
    while True:
11351
      (fname, ftype, fid) = iprot.readFieldBegin()
11352
      if ftype == TType.STOP:
11353
        break
11354
      if fid == 1:
11355
        if ftype == TType.I64:
11356
          self.itemId = iprot.readI64();
11357
        else:
11358
          iprot.skip(ftype)
11359
      elif fid == 2:
11360
        if ftype == TType.I64:
11361
          self.warehouseId = iprot.readI64();
11362
        else:
11363
          iprot.skip(ftype)
11364
      elif fid == 3:
11365
        if ftype == TType.I64:
11366
          self.holdQuantity = iprot.readI64();
11367
        else:
11368
          iprot.skip(ftype)
11369
      elif fid == 4:
11370
        if ftype == TType.I64:
11371
          self.source = iprot.readI64();
11372
        else:
11373
          iprot.skip(ftype)
11374
      else:
11375
        iprot.skip(ftype)
11376
      iprot.readFieldEnd()
11377
    iprot.readStructEnd()
11378
 
11379
  def write(self, oprot):
11380
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11381
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11382
      return
11383
    oprot.writeStructBegin('addUpdateHoldInventory_args')
11384
    if self.itemId is not None:
11385
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11386
      oprot.writeI64(self.itemId)
11387
      oprot.writeFieldEnd()
11388
    if self.warehouseId is not None:
11389
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
11390
      oprot.writeI64(self.warehouseId)
11391
      oprot.writeFieldEnd()
11392
    if self.holdQuantity is not None:
11393
      oprot.writeFieldBegin('holdQuantity', TType.I64, 3)
11394
      oprot.writeI64(self.holdQuantity)
11395
      oprot.writeFieldEnd()
11396
    if self.source is not None:
11397
      oprot.writeFieldBegin('source', TType.I64, 4)
11398
      oprot.writeI64(self.source)
11399
      oprot.writeFieldEnd()
11400
    oprot.writeFieldStop()
11401
    oprot.writeStructEnd()
11402
 
11403
  def validate(self):
11404
    return
11405
 
11406
 
11407
  def __repr__(self):
11408
    L = ['%s=%r' % (key, value)
11409
      for key, value in self.__dict__.iteritems()]
11410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11411
 
11412
  def __eq__(self, other):
11413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11414
 
11415
  def __ne__(self, other):
11416
    return not (self == other)
11417
 
11418
class addUpdateHoldInventory_result:
9762 amar.kumar 11419
  """
11420
  Attributes:
11421
   - cex
11422
  """
8182 amar.kumar 11423
 
11424
  thrift_spec = (
9762 amar.kumar 11425
    None, # 0
11426
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8182 amar.kumar 11427
  )
11428
 
9762 amar.kumar 11429
  def __init__(self, cex=None,):
11430
    self.cex = cex
11431
 
8182 amar.kumar 11432
  def read(self, iprot):
11433
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11434
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11435
      return
11436
    iprot.readStructBegin()
11437
    while True:
11438
      (fname, ftype, fid) = iprot.readFieldBegin()
11439
      if ftype == TType.STOP:
11440
        break
9762 amar.kumar 11441
      if fid == 1:
11442
        if ftype == TType.STRUCT:
11443
          self.cex = InventoryServiceException()
11444
          self.cex.read(iprot)
11445
        else:
11446
          iprot.skip(ftype)
8182 amar.kumar 11447
      else:
11448
        iprot.skip(ftype)
11449
      iprot.readFieldEnd()
11450
    iprot.readStructEnd()
11451
 
11452
  def write(self, oprot):
11453
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11454
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11455
      return
11456
    oprot.writeStructBegin('addUpdateHoldInventory_result')
9762 amar.kumar 11457
    if self.cex is not None:
11458
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11459
      self.cex.write(oprot)
11460
      oprot.writeFieldEnd()
8182 amar.kumar 11461
    oprot.writeFieldStop()
11462
    oprot.writeStructEnd()
11463
 
11464
  def validate(self):
11465
    return
11466
 
11467
 
11468
  def __repr__(self):
11469
    L = ['%s=%r' % (key, value)
11470
      for key, value in self.__dict__.iteritems()]
11471
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11472
 
11473
  def __eq__(self, other):
11474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11475
 
11476
  def __ne__(self, other):
11477
    return not (self == other)
8282 kshitij.so 11478
 
11479
class getAmazonFbaItemInventory_args:
11480
  """
11481
  Attributes:
11482
   - itemId
11483
  """
11484
 
11485
  thrift_spec = (
11486
    None, # 0
11487
    (1, TType.I64, 'itemId', None, None, ), # 1
11488
  )
11489
 
11490
  def __init__(self, itemId=None,):
11491
    self.itemId = itemId
11492
 
11493
  def read(self, iprot):
11494
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11495
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11496
      return
11497
    iprot.readStructBegin()
11498
    while True:
11499
      (fname, ftype, fid) = iprot.readFieldBegin()
11500
      if ftype == TType.STOP:
11501
        break
11502
      if fid == 1:
11503
        if ftype == TType.I64:
11504
          self.itemId = iprot.readI64();
11505
        else:
11506
          iprot.skip(ftype)
11507
      else:
11508
        iprot.skip(ftype)
11509
      iprot.readFieldEnd()
11510
    iprot.readStructEnd()
11511
 
11512
  def write(self, oprot):
11513
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11514
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11515
      return
11516
    oprot.writeStructBegin('getAmazonFbaItemInventory_args')
11517
    if self.itemId is not None:
11518
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11519
      oprot.writeI64(self.itemId)
11520
      oprot.writeFieldEnd()
11521
    oprot.writeFieldStop()
11522
    oprot.writeStructEnd()
11523
 
11524
  def validate(self):
11525
    return
11526
 
11527
 
11528
  def __repr__(self):
11529
    L = ['%s=%r' % (key, value)
11530
      for key, value in self.__dict__.iteritems()]
11531
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11532
 
11533
  def __eq__(self, other):
11534
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11535
 
11536
  def __ne__(self, other):
11537
    return not (self == other)
11538
 
11539
class getAmazonFbaItemInventory_result:
11540
  """
11541
  Attributes:
11542
   - success
11543
  """
11544
 
11545
  thrift_spec = (
11546
    (0, TType.I64, 'success', None, None, ), # 0
11547
  )
11548
 
11549
  def __init__(self, success=None,):
11550
    self.success = success
11551
 
11552
  def read(self, iprot):
11553
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11554
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11555
      return
11556
    iprot.readStructBegin()
11557
    while True:
11558
      (fname, ftype, fid) = iprot.readFieldBegin()
11559
      if ftype == TType.STOP:
11560
        break
11561
      if fid == 0:
11562
        if ftype == TType.I64:
11563
          self.success = iprot.readI64();
11564
        else:
11565
          iprot.skip(ftype)
11566
      else:
11567
        iprot.skip(ftype)
11568
      iprot.readFieldEnd()
11569
    iprot.readStructEnd()
11570
 
11571
  def write(self, oprot):
11572
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11573
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11574
      return
11575
    oprot.writeStructBegin('getAmazonFbaItemInventory_result')
11576
    if self.success is not None:
11577
      oprot.writeFieldBegin('success', TType.I64, 0)
11578
      oprot.writeI64(self.success)
11579
      oprot.writeFieldEnd()
11580
    oprot.writeFieldStop()
11581
    oprot.writeStructEnd()
11582
 
11583
  def validate(self):
11584
    return
11585
 
11586
 
11587
  def __repr__(self):
11588
    L = ['%s=%r' % (key, value)
11589
      for key, value in self.__dict__.iteritems()]
11590
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11591
 
11592
  def __eq__(self, other):
11593
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11594
 
11595
  def __ne__(self, other):
11596
    return not (self == other)
11597
 
8363 vikram.rag 11598
class getAllAmazonFbaItemInventory_args:
8282 kshitij.so 11599
 
11600
  thrift_spec = (
11601
  )
11602
 
11603
  def read(self, iprot):
11604
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11605
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11606
      return
11607
    iprot.readStructBegin()
11608
    while True:
11609
      (fname, ftype, fid) = iprot.readFieldBegin()
11610
      if ftype == TType.STOP:
11611
        break
11612
      else:
11613
        iprot.skip(ftype)
11614
      iprot.readFieldEnd()
11615
    iprot.readStructEnd()
11616
 
11617
  def write(self, oprot):
11618
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11619
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11620
      return
8363 vikram.rag 11621
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_args')
8282 kshitij.so 11622
    oprot.writeFieldStop()
11623
    oprot.writeStructEnd()
11624
 
11625
  def validate(self):
11626
    return
11627
 
11628
 
11629
  def __repr__(self):
11630
    L = ['%s=%r' % (key, value)
11631
      for key, value in self.__dict__.iteritems()]
11632
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11633
 
11634
  def __eq__(self, other):
11635
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11636
 
11637
  def __ne__(self, other):
11638
    return not (self == other)
11639
 
8363 vikram.rag 11640
class getAllAmazonFbaItemInventory_result:
8282 kshitij.so 11641
  """
11642
  Attributes:
11643
   - success
11644
  """
11645
 
11646
  thrift_spec = (
11647
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
11648
  )
11649
 
11650
  def __init__(self, success=None,):
11651
    self.success = success
11652
 
11653
  def read(self, iprot):
11654
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11655
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11656
      return
11657
    iprot.readStructBegin()
11658
    while True:
11659
      (fname, ftype, fid) = iprot.readFieldBegin()
11660
      if ftype == TType.STOP:
11661
        break
11662
      if fid == 0:
11663
        if ftype == TType.LIST:
11664
          self.success = []
11665
          (_etype233, _size230) = iprot.readListBegin()
11666
          for _i234 in xrange(_size230):
11667
            _elem235 = AmazonFbaInventorySnapshot()
11668
            _elem235.read(iprot)
11669
            self.success.append(_elem235)
11670
          iprot.readListEnd()
11671
        else:
11672
          iprot.skip(ftype)
11673
      else:
11674
        iprot.skip(ftype)
11675
      iprot.readFieldEnd()
11676
    iprot.readStructEnd()
11677
 
11678
  def write(self, oprot):
11679
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11680
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11681
      return
8363 vikram.rag 11682
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_result')
8282 kshitij.so 11683
    if self.success is not None:
11684
      oprot.writeFieldBegin('success', TType.LIST, 0)
11685
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11686
      for iter236 in self.success:
11687
        iter236.write(oprot)
11688
      oprot.writeListEnd()
11689
      oprot.writeFieldEnd()
11690
    oprot.writeFieldStop()
11691
    oprot.writeStructEnd()
11692
 
11693
  def validate(self):
11694
    return
11695
 
11696
 
11697
  def __repr__(self):
11698
    L = ['%s=%r' % (key, value)
11699
      for key, value in self.__dict__.iteritems()]
11700
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11701
 
11702
  def __eq__(self, other):
11703
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11704
 
11705
  def __ne__(self, other):
11706
    return not (self == other)
8363 vikram.rag 11707
 
11708
class getOursGoodWarehouseIdsForLocation_args:
11709
  """
11710
  Attributes:
11711
   - state_id
11712
  """
11713
 
11714
  thrift_spec = (
11715
    None, # 0
11716
    (1, TType.I64, 'state_id', None, None, ), # 1
11717
  )
11718
 
11719
  def __init__(self, state_id=None,):
11720
    self.state_id = state_id
11721
 
11722
  def read(self, iprot):
11723
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11724
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11725
      return
11726
    iprot.readStructBegin()
11727
    while True:
11728
      (fname, ftype, fid) = iprot.readFieldBegin()
11729
      if ftype == TType.STOP:
11730
        break
11731
      if fid == 1:
11732
        if ftype == TType.I64:
11733
          self.state_id = iprot.readI64();
11734
        else:
11735
          iprot.skip(ftype)
11736
      else:
11737
        iprot.skip(ftype)
11738
      iprot.readFieldEnd()
11739
    iprot.readStructEnd()
11740
 
11741
  def write(self, oprot):
11742
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11743
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11744
      return
11745
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_args')
11746
    if self.state_id is not None:
11747
      oprot.writeFieldBegin('state_id', TType.I64, 1)
11748
      oprot.writeI64(self.state_id)
11749
      oprot.writeFieldEnd()
11750
    oprot.writeFieldStop()
11751
    oprot.writeStructEnd()
11752
 
11753
  def validate(self):
11754
    return
11755
 
11756
 
11757
  def __repr__(self):
11758
    L = ['%s=%r' % (key, value)
11759
      for key, value in self.__dict__.iteritems()]
11760
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11761
 
11762
  def __eq__(self, other):
11763
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11764
 
11765
  def __ne__(self, other):
11766
    return not (self == other)
11767
 
11768
class getOursGoodWarehouseIdsForLocation_result:
11769
  """
11770
  Attributes:
11771
   - success
11772
  """
11773
 
11774
  thrift_spec = (
11775
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11776
  )
11777
 
11778
  def __init__(self, success=None,):
11779
    self.success = success
11780
 
11781
  def read(self, iprot):
11782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11784
      return
11785
    iprot.readStructBegin()
11786
    while True:
11787
      (fname, ftype, fid) = iprot.readFieldBegin()
11788
      if ftype == TType.STOP:
11789
        break
11790
      if fid == 0:
11791
        if ftype == TType.LIST:
11792
          self.success = []
11793
          (_etype240, _size237) = iprot.readListBegin()
11794
          for _i241 in xrange(_size237):
11795
            _elem242 = iprot.readI64();
11796
            self.success.append(_elem242)
11797
          iprot.readListEnd()
11798
        else:
11799
          iprot.skip(ftype)
11800
      else:
11801
        iprot.skip(ftype)
11802
      iprot.readFieldEnd()
11803
    iprot.readStructEnd()
11804
 
11805
  def write(self, oprot):
11806
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11807
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11808
      return
11809
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_result')
11810
    if self.success is not None:
11811
      oprot.writeFieldBegin('success', TType.LIST, 0)
11812
      oprot.writeListBegin(TType.I64, len(self.success))
11813
      for iter243 in self.success:
11814
        oprot.writeI64(iter243)
11815
      oprot.writeListEnd()
11816
      oprot.writeFieldEnd()
11817
    oprot.writeFieldStop()
11818
    oprot.writeStructEnd()
11819
 
11820
  def validate(self):
11821
    return
11822
 
11823
 
11824
  def __repr__(self):
11825
    L = ['%s=%r' % (key, value)
11826
      for key, value in self.__dict__.iteritems()]
11827
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11828
 
11829
  def __eq__(self, other):
11830
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11831
 
11832
  def __ne__(self, other):
11833
    return not (self == other)
8955 vikram.rag 11834
 
11835
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_args:
11836
  """
11837
  Attributes:
11838
   - id
11839
   - warehouse_id
11840
   - source
11841
  """
11842
 
11843
  thrift_spec = (
11844
    None, # 0
11845
    (1, TType.I64, 'id', None, None, ), # 1
11846
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
11847
    (3, TType.I64, 'source', None, None, ), # 3
11848
  )
11849
 
11850
  def __init__(self, id=None, warehouse_id=None, source=None,):
11851
    self.id = id
11852
    self.warehouse_id = warehouse_id
11853
    self.source = source
11854
 
11855
  def read(self, iprot):
11856
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11857
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11858
      return
11859
    iprot.readStructBegin()
11860
    while True:
11861
      (fname, ftype, fid) = iprot.readFieldBegin()
11862
      if ftype == TType.STOP:
11863
        break
11864
      if fid == 1:
11865
        if ftype == TType.I64:
11866
          self.id = iprot.readI64();
11867
        else:
11868
          iprot.skip(ftype)
11869
      elif fid == 2:
11870
        if ftype == TType.I64:
11871
          self.warehouse_id = iprot.readI64();
11872
        else:
11873
          iprot.skip(ftype)
11874
      elif fid == 3:
11875
        if ftype == TType.I64:
11876
          self.source = iprot.readI64();
11877
        else:
11878
          iprot.skip(ftype)
11879
      else:
11880
        iprot.skip(ftype)
11881
      iprot.readFieldEnd()
11882
    iprot.readStructEnd()
11883
 
11884
  def write(self, oprot):
11885
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11886
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11887
      return
11888
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_args')
11889
    if self.id is not None:
11890
      oprot.writeFieldBegin('id', TType.I64, 1)
11891
      oprot.writeI64(self.id)
11892
      oprot.writeFieldEnd()
11893
    if self.warehouse_id is not None:
11894
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
11895
      oprot.writeI64(self.warehouse_id)
11896
      oprot.writeFieldEnd()
11897
    if self.source is not None:
11898
      oprot.writeFieldBegin('source', TType.I64, 3)
11899
      oprot.writeI64(self.source)
11900
      oprot.writeFieldEnd()
11901
    oprot.writeFieldStop()
11902
    oprot.writeStructEnd()
11903
 
11904
  def validate(self):
11905
    return
11906
 
11907
 
11908
  def __repr__(self):
11909
    L = ['%s=%r' % (key, value)
11910
      for key, value in self.__dict__.iteritems()]
11911
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11912
 
11913
  def __eq__(self, other):
11914
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11915
 
11916
  def __ne__(self, other):
11917
    return not (self == other)
11918
 
11919
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_result:
11920
  """
11921
  Attributes:
11922
   - success
11923
  """
11924
 
11925
  thrift_spec = (
11926
    (0, TType.I64, 'success', None, None, ), # 0
11927
  )
11928
 
11929
  def __init__(self, success=None,):
11930
    self.success = success
11931
 
11932
  def read(self, iprot):
11933
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11934
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11935
      return
11936
    iprot.readStructBegin()
11937
    while True:
11938
      (fname, ftype, fid) = iprot.readFieldBegin()
11939
      if ftype == TType.STOP:
11940
        break
11941
      if fid == 0:
11942
        if ftype == TType.I64:
11943
          self.success = iprot.readI64();
11944
        else:
11945
          iprot.skip(ftype)
11946
      else:
11947
        iprot.skip(ftype)
11948
      iprot.readFieldEnd()
11949
    iprot.readStructEnd()
11950
 
11951
  def write(self, oprot):
11952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11954
      return
11955
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_result')
11956
    if self.success is not None:
11957
      oprot.writeFieldBegin('success', TType.I64, 0)
11958
      oprot.writeI64(self.success)
11959
      oprot.writeFieldEnd()
11960
    oprot.writeFieldStop()
11961
    oprot.writeStructEnd()
11962
 
11963
  def validate(self):
11964
    return
11965
 
11966
 
11967
  def __repr__(self):
11968
    L = ['%s=%r' % (key, value)
11969
      for key, value in self.__dict__.iteritems()]
11970
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11971
 
11972
  def __eq__(self, other):
11973
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11974
 
11975
  def __ne__(self, other):
11976
    return not (self == other)
9404 vikram.rag 11977
 
11978
class getSnapdealInventoryForItem_args:
11979
  """
11980
  Attributes:
11981
   - item_id
11982
  """
11983
 
11984
  thrift_spec = (
11985
    None, # 0
11986
    (1, TType.I64, 'item_id', None, None, ), # 1
11987
  )
11988
 
11989
  def __init__(self, item_id=None,):
11990
    self.item_id = item_id
11991
 
11992
  def read(self, iprot):
11993
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11994
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11995
      return
11996
    iprot.readStructBegin()
11997
    while True:
11998
      (fname, ftype, fid) = iprot.readFieldBegin()
11999
      if ftype == TType.STOP:
12000
        break
12001
      if fid == 1:
12002
        if ftype == TType.I64:
12003
          self.item_id = iprot.readI64();
12004
        else:
12005
          iprot.skip(ftype)
12006
      else:
12007
        iprot.skip(ftype)
12008
      iprot.readFieldEnd()
12009
    iprot.readStructEnd()
12010
 
12011
  def write(self, oprot):
12012
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12013
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12014
      return
12015
    oprot.writeStructBegin('getSnapdealInventoryForItem_args')
12016
    if self.item_id is not None:
12017
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12018
      oprot.writeI64(self.item_id)
12019
      oprot.writeFieldEnd()
12020
    oprot.writeFieldStop()
12021
    oprot.writeStructEnd()
12022
 
12023
  def validate(self):
12024
    return
12025
 
12026
 
12027
  def __repr__(self):
12028
    L = ['%s=%r' % (key, value)
12029
      for key, value in self.__dict__.iteritems()]
12030
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12031
 
12032
  def __eq__(self, other):
12033
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12034
 
12035
  def __ne__(self, other):
12036
    return not (self == other)
12037
 
12038
class getSnapdealInventoryForItem_result:
12039
  """
12040
  Attributes:
12041
   - success
12042
  """
12043
 
12044
  thrift_spec = (
12045
    (0, TType.STRUCT, 'success', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 0
12046
  )
12047
 
12048
  def __init__(self, success=None,):
12049
    self.success = success
12050
 
12051
  def read(self, iprot):
12052
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12053
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12054
      return
12055
    iprot.readStructBegin()
12056
    while True:
12057
      (fname, ftype, fid) = iprot.readFieldBegin()
12058
      if ftype == TType.STOP:
12059
        break
12060
      if fid == 0:
12061
        if ftype == TType.STRUCT:
12062
          self.success = SnapdealInventoryItem()
12063
          self.success.read(iprot)
12064
        else:
12065
          iprot.skip(ftype)
12066
      else:
12067
        iprot.skip(ftype)
12068
      iprot.readFieldEnd()
12069
    iprot.readStructEnd()
12070
 
12071
  def write(self, oprot):
12072
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12073
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12074
      return
12075
    oprot.writeStructBegin('getSnapdealInventoryForItem_result')
12076
    if self.success is not None:
12077
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12078
      self.success.write(oprot)
12079
      oprot.writeFieldEnd()
12080
    oprot.writeFieldStop()
12081
    oprot.writeStructEnd()
12082
 
12083
  def validate(self):
12084
    return
12085
 
12086
 
12087
  def __repr__(self):
12088
    L = ['%s=%r' % (key, value)
12089
      for key, value in self.__dict__.iteritems()]
12090
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12091
 
12092
  def __eq__(self, other):
12093
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12094
 
12095
  def __ne__(self, other):
12096
    return not (self == other)
12097
 
12098
class addOrUpdateSnapdealInventoryForItem_args:
12099
  """
12100
  Attributes:
12101
   - snapdealinventoryitem
12102
  """
12103
 
12104
  thrift_spec = (
12105
    None, # 0
12106
    (1, TType.STRUCT, 'snapdealinventoryitem', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 1
12107
  )
12108
 
12109
  def __init__(self, snapdealinventoryitem=None,):
12110
    self.snapdealinventoryitem = snapdealinventoryitem
12111
 
12112
  def read(self, iprot):
12113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12115
      return
12116
    iprot.readStructBegin()
12117
    while True:
12118
      (fname, ftype, fid) = iprot.readFieldBegin()
12119
      if ftype == TType.STOP:
12120
        break
12121
      if fid == 1:
12122
        if ftype == TType.STRUCT:
12123
          self.snapdealinventoryitem = SnapdealInventoryItem()
12124
          self.snapdealinventoryitem.read(iprot)
12125
        else:
12126
          iprot.skip(ftype)
12127
      else:
12128
        iprot.skip(ftype)
12129
      iprot.readFieldEnd()
12130
    iprot.readStructEnd()
12131
 
12132
  def write(self, oprot):
12133
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12134
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12135
      return
12136
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_args')
12137
    if self.snapdealinventoryitem is not None:
12138
      oprot.writeFieldBegin('snapdealinventoryitem', TType.STRUCT, 1)
12139
      self.snapdealinventoryitem.write(oprot)
12140
      oprot.writeFieldEnd()
12141
    oprot.writeFieldStop()
12142
    oprot.writeStructEnd()
12143
 
12144
  def validate(self):
12145
    return
12146
 
12147
 
12148
  def __repr__(self):
12149
    L = ['%s=%r' % (key, value)
12150
      for key, value in self.__dict__.iteritems()]
12151
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12152
 
12153
  def __eq__(self, other):
12154
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12155
 
12156
  def __ne__(self, other):
12157
    return not (self == other)
12158
 
12159
class addOrUpdateSnapdealInventoryForItem_result:
12160
 
12161
  thrift_spec = (
12162
  )
12163
 
12164
  def read(self, iprot):
12165
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12166
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12167
      return
12168
    iprot.readStructBegin()
12169
    while True:
12170
      (fname, ftype, fid) = iprot.readFieldBegin()
12171
      if ftype == TType.STOP:
12172
        break
12173
      else:
12174
        iprot.skip(ftype)
12175
      iprot.readFieldEnd()
12176
    iprot.readStructEnd()
12177
 
12178
  def write(self, oprot):
12179
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12180
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12181
      return
12182
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_result')
12183
    oprot.writeFieldStop()
12184
    oprot.writeStructEnd()
12185
 
12186
  def validate(self):
12187
    return
12188
 
12189
 
12190
  def __repr__(self):
12191
    L = ['%s=%r' % (key, value)
12192
      for key, value in self.__dict__.iteritems()]
12193
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12194
 
12195
  def __eq__(self, other):
12196
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12197
 
12198
  def __ne__(self, other):
12199
    return not (self == other)
12200
 
12201
class getNlcForWarehouse_args:
12202
  """
12203
  Attributes:
12204
   - warehouse_id
12205
   - item_id
12206
  """
12207
 
12208
  thrift_spec = (
12209
    None, # 0
12210
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
12211
    (2, TType.I64, 'item_id', None, None, ), # 2
12212
  )
12213
 
12214
  def __init__(self, warehouse_id=None, item_id=None,):
12215
    self.warehouse_id = warehouse_id
12216
    self.item_id = item_id
12217
 
12218
  def read(self, iprot):
12219
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12220
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12221
      return
12222
    iprot.readStructBegin()
12223
    while True:
12224
      (fname, ftype, fid) = iprot.readFieldBegin()
12225
      if ftype == TType.STOP:
12226
        break
12227
      if fid == 1:
12228
        if ftype == TType.I64:
12229
          self.warehouse_id = iprot.readI64();
12230
        else:
12231
          iprot.skip(ftype)
12232
      elif fid == 2:
12233
        if ftype == TType.I64:
12234
          self.item_id = iprot.readI64();
12235
        else:
12236
          iprot.skip(ftype)
12237
      else:
12238
        iprot.skip(ftype)
12239
      iprot.readFieldEnd()
12240
    iprot.readStructEnd()
12241
 
12242
  def write(self, oprot):
12243
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12244
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12245
      return
12246
    oprot.writeStructBegin('getNlcForWarehouse_args')
12247
    if self.warehouse_id is not None:
12248
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
12249
      oprot.writeI64(self.warehouse_id)
12250
      oprot.writeFieldEnd()
12251
    if self.item_id is not None:
12252
      oprot.writeFieldBegin('item_id', TType.I64, 2)
12253
      oprot.writeI64(self.item_id)
12254
      oprot.writeFieldEnd()
12255
    oprot.writeFieldStop()
12256
    oprot.writeStructEnd()
12257
 
12258
  def validate(self):
12259
    return
12260
 
12261
 
12262
  def __repr__(self):
12263
    L = ['%s=%r' % (key, value)
12264
      for key, value in self.__dict__.iteritems()]
12265
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12266
 
12267
  def __eq__(self, other):
12268
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12269
 
12270
  def __ne__(self, other):
12271
    return not (self == other)
12272
 
12273
class getNlcForWarehouse_result:
12274
  """
12275
  Attributes:
12276
   - success
12277
  """
12278
 
12279
  thrift_spec = (
12280
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12281
  )
12282
 
12283
  def __init__(self, success=None,):
12284
    self.success = success
12285
 
12286
  def read(self, iprot):
12287
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12288
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12289
      return
12290
    iprot.readStructBegin()
12291
    while True:
12292
      (fname, ftype, fid) = iprot.readFieldBegin()
12293
      if ftype == TType.STOP:
12294
        break
12295
      if fid == 0:
12296
        if ftype == TType.DOUBLE:
12297
          self.success = iprot.readDouble();
12298
        else:
12299
          iprot.skip(ftype)
12300
      else:
12301
        iprot.skip(ftype)
12302
      iprot.readFieldEnd()
12303
    iprot.readStructEnd()
12304
 
12305
  def write(self, oprot):
12306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12308
      return
12309
    oprot.writeStructBegin('getNlcForWarehouse_result')
12310
    if self.success is not None:
12311
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12312
      oprot.writeDouble(self.success)
12313
      oprot.writeFieldEnd()
12314
    oprot.writeFieldStop()
12315
    oprot.writeStructEnd()
12316
 
12317
  def validate(self):
12318
    return
12319
 
12320
 
12321
  def __repr__(self):
12322
    L = ['%s=%r' % (key, value)
12323
      for key, value in self.__dict__.iteritems()]
12324
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12325
 
12326
  def __eq__(self, other):
12327
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12328
 
12329
  def __ne__(self, other):
12330
    return not (self == other)
9456 vikram.rag 12331
 
9640 amar.kumar 12332
class getHeldInventoryMapForItem_args:
12333
  """
12334
  Attributes:
12335
   - item_id
12336
   - warehouse_id
12337
  """
12338
 
12339
  thrift_spec = (
12340
    None, # 0
12341
    (1, TType.I64, 'item_id', None, None, ), # 1
12342
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
12343
  )
12344
 
12345
  def __init__(self, item_id=None, warehouse_id=None,):
12346
    self.item_id = item_id
12347
    self.warehouse_id = warehouse_id
12348
 
12349
  def read(self, iprot):
12350
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12351
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12352
      return
12353
    iprot.readStructBegin()
12354
    while True:
12355
      (fname, ftype, fid) = iprot.readFieldBegin()
12356
      if ftype == TType.STOP:
12357
        break
12358
      if fid == 1:
12359
        if ftype == TType.I64:
12360
          self.item_id = iprot.readI64();
12361
        else:
12362
          iprot.skip(ftype)
12363
      elif fid == 2:
12364
        if ftype == TType.I64:
12365
          self.warehouse_id = iprot.readI64();
12366
        else:
12367
          iprot.skip(ftype)
12368
      else:
12369
        iprot.skip(ftype)
12370
      iprot.readFieldEnd()
12371
    iprot.readStructEnd()
12372
 
12373
  def write(self, oprot):
12374
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12375
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12376
      return
12377
    oprot.writeStructBegin('getHeldInventoryMapForItem_args')
12378
    if self.item_id is not None:
12379
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12380
      oprot.writeI64(self.item_id)
12381
      oprot.writeFieldEnd()
12382
    if self.warehouse_id is not None:
12383
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
12384
      oprot.writeI64(self.warehouse_id)
12385
      oprot.writeFieldEnd()
12386
    oprot.writeFieldStop()
12387
    oprot.writeStructEnd()
12388
 
12389
  def validate(self):
12390
    return
12391
 
12392
 
12393
  def __repr__(self):
12394
    L = ['%s=%r' % (key, value)
12395
      for key, value in self.__dict__.iteritems()]
12396
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12397
 
12398
  def __eq__(self, other):
12399
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12400
 
12401
  def __ne__(self, other):
12402
    return not (self == other)
12403
 
12404
class getHeldInventoryMapForItem_result:
12405
  """
12406
  Attributes:
12407
   - success
12408
  """
12409
 
12410
  thrift_spec = (
12411
    (0, TType.MAP, 'success', (TType.I32,None,TType.I64,None), None, ), # 0
12412
  )
12413
 
12414
  def __init__(self, success=None,):
12415
    self.success = success
12416
 
12417
  def read(self, iprot):
12418
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12419
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12420
      return
12421
    iprot.readStructBegin()
12422
    while True:
12423
      (fname, ftype, fid) = iprot.readFieldBegin()
12424
      if ftype == TType.STOP:
12425
        break
12426
      if fid == 0:
12427
        if ftype == TType.MAP:
12428
          self.success = {}
12429
          (_ktype245, _vtype246, _size244 ) = iprot.readMapBegin() 
12430
          for _i248 in xrange(_size244):
12431
            _key249 = iprot.readI32();
12432
            _val250 = iprot.readI64();
12433
            self.success[_key249] = _val250
12434
          iprot.readMapEnd()
12435
        else:
12436
          iprot.skip(ftype)
12437
      else:
12438
        iprot.skip(ftype)
12439
      iprot.readFieldEnd()
12440
    iprot.readStructEnd()
12441
 
12442
  def write(self, oprot):
12443
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12444
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12445
      return
12446
    oprot.writeStructBegin('getHeldInventoryMapForItem_result')
12447
    if self.success is not None:
12448
      oprot.writeFieldBegin('success', TType.MAP, 0)
12449
      oprot.writeMapBegin(TType.I32, TType.I64, len(self.success))
12450
      for kiter251,viter252 in self.success.items():
12451
        oprot.writeI32(kiter251)
12452
        oprot.writeI64(viter252)
12453
      oprot.writeMapEnd()
12454
      oprot.writeFieldEnd()
12455
    oprot.writeFieldStop()
12456
    oprot.writeStructEnd()
12457
 
12458
  def validate(self):
12459
    return
12460
 
12461
 
12462
  def __repr__(self):
12463
    L = ['%s=%r' % (key, value)
12464
      for key, value in self.__dict__.iteritems()]
12465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12466
 
12467
  def __eq__(self, other):
12468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12469
 
12470
  def __ne__(self, other):
12471
    return not (self == other)
12472
 
9495 vikram.rag 12473
class addOrUpdateAllAmazonFbaInventory_args:
12474
  """
12475
  Attributes:
12476
   - allamazonfbainventorysnapshot
12477
  """
9456 vikram.rag 12478
 
9495 vikram.rag 12479
  thrift_spec = None
12480
  def __init__(self, allamazonfbainventorysnapshot=None,):
12481
    self.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 12482
 
12483
  def read(self, iprot):
12484
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12485
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12486
      return
12487
    iprot.readStructBegin()
12488
    while True:
12489
      (fname, ftype, fid) = iprot.readFieldBegin()
12490
      if ftype == TType.STOP:
12491
        break
9495 vikram.rag 12492
      if fid == -1:
12493
        if ftype == TType.LIST:
12494
          self.allamazonfbainventorysnapshot = []
9640 amar.kumar 12495
          (_etype256, _size253) = iprot.readListBegin()
12496
          for _i257 in xrange(_size253):
12497
            _elem258 = AmazonFbaInventorySnapshot()
12498
            _elem258.read(iprot)
12499
            self.allamazonfbainventorysnapshot.append(_elem258)
9495 vikram.rag 12500
          iprot.readListEnd()
12501
        else:
12502
          iprot.skip(ftype)
9456 vikram.rag 12503
      else:
12504
        iprot.skip(ftype)
12505
      iprot.readFieldEnd()
12506
    iprot.readStructEnd()
12507
 
12508
  def write(self, oprot):
12509
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12510
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12511
      return
9495 vikram.rag 12512
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_args')
12513
    if self.allamazonfbainventorysnapshot is not None:
12514
      oprot.writeFieldBegin('allamazonfbainventorysnapshot', TType.LIST, -1)
12515
      oprot.writeListBegin(TType.STRUCT, len(self.allamazonfbainventorysnapshot))
9640 amar.kumar 12516
      for iter259 in self.allamazonfbainventorysnapshot:
12517
        iter259.write(oprot)
9495 vikram.rag 12518
      oprot.writeListEnd()
12519
      oprot.writeFieldEnd()
9456 vikram.rag 12520
    oprot.writeFieldStop()
12521
    oprot.writeStructEnd()
12522
 
12523
  def validate(self):
12524
    return
12525
 
12526
 
12527
  def __repr__(self):
12528
    L = ['%s=%r' % (key, value)
12529
      for key, value in self.__dict__.iteritems()]
12530
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12531
 
12532
  def __eq__(self, other):
12533
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12534
 
12535
  def __ne__(self, other):
12536
    return not (self == other)
12537
 
9495 vikram.rag 12538
class addOrUpdateAllAmazonFbaInventory_result:
9456 vikram.rag 12539
 
12540
  thrift_spec = (
12541
  )
12542
 
12543
  def read(self, iprot):
12544
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12545
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12546
      return
12547
    iprot.readStructBegin()
12548
    while True:
12549
      (fname, ftype, fid) = iprot.readFieldBegin()
12550
      if ftype == TType.STOP:
12551
        break
12552
      else:
12553
        iprot.skip(ftype)
12554
      iprot.readFieldEnd()
12555
    iprot.readStructEnd()
12556
 
12557
  def write(self, oprot):
12558
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12559
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12560
      return
9495 vikram.rag 12561
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_result')
9456 vikram.rag 12562
    oprot.writeFieldStop()
12563
    oprot.writeStructEnd()
12564
 
12565
  def validate(self):
12566
    return
12567
 
12568
 
12569
  def __repr__(self):
12570
    L = ['%s=%r' % (key, value)
12571
      for key, value in self.__dict__.iteritems()]
12572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12573
 
12574
  def __eq__(self, other):
12575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12576
 
12577
  def __ne__(self, other):
12578
    return not (self == other)
9482 vikram.rag 12579
 
9495 vikram.rag 12580
class addOrUpdateAllSnapdealInventory_args:
9482 vikram.rag 12581
  """
12582
  Attributes:
9495 vikram.rag 12583
   - allsnapdealinventorysnapshot
9482 vikram.rag 12584
  """
12585
 
12586
  thrift_spec = None
9495 vikram.rag 12587
  def __init__(self, allsnapdealinventorysnapshot=None,):
12588
    self.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 12589
 
12590
  def read(self, iprot):
12591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12593
      return
12594
    iprot.readStructBegin()
12595
    while True:
12596
      (fname, ftype, fid) = iprot.readFieldBegin()
12597
      if ftype == TType.STOP:
12598
        break
12599
      if fid == -1:
12600
        if ftype == TType.LIST:
9495 vikram.rag 12601
          self.allsnapdealinventorysnapshot = []
9640 amar.kumar 12602
          (_etype263, _size260) = iprot.readListBegin()
12603
          for _i264 in xrange(_size260):
12604
            _elem265 = SnapdealInventoryItem()
12605
            _elem265.read(iprot)
12606
            self.allsnapdealinventorysnapshot.append(_elem265)
9482 vikram.rag 12607
          iprot.readListEnd()
12608
        else:
12609
          iprot.skip(ftype)
12610
      else:
12611
        iprot.skip(ftype)
12612
      iprot.readFieldEnd()
12613
    iprot.readStructEnd()
12614
 
12615
  def write(self, oprot):
12616
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12617
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12618
      return
9495 vikram.rag 12619
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_args')
12620
    if self.allsnapdealinventorysnapshot is not None:
12621
      oprot.writeFieldBegin('allsnapdealinventorysnapshot', TType.LIST, -1)
12622
      oprot.writeListBegin(TType.STRUCT, len(self.allsnapdealinventorysnapshot))
9640 amar.kumar 12623
      for iter266 in self.allsnapdealinventorysnapshot:
12624
        iter266.write(oprot)
9482 vikram.rag 12625
      oprot.writeListEnd()
12626
      oprot.writeFieldEnd()
12627
    oprot.writeFieldStop()
12628
    oprot.writeStructEnd()
12629
 
12630
  def validate(self):
12631
    return
12632
 
12633
 
12634
  def __repr__(self):
12635
    L = ['%s=%r' % (key, value)
12636
      for key, value in self.__dict__.iteritems()]
12637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12638
 
12639
  def __eq__(self, other):
12640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12641
 
12642
  def __ne__(self, other):
12643
    return not (self == other)
12644
 
9495 vikram.rag 12645
class addOrUpdateAllSnapdealInventory_result:
9482 vikram.rag 12646
 
12647
  thrift_spec = (
12648
  )
12649
 
12650
  def read(self, iprot):
12651
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12652
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12653
      return
12654
    iprot.readStructBegin()
12655
    while True:
12656
      (fname, ftype, fid) = iprot.readFieldBegin()
12657
      if ftype == TType.STOP:
12658
        break
12659
      else:
12660
        iprot.skip(ftype)
12661
      iprot.readFieldEnd()
12662
    iprot.readStructEnd()
12663
 
12664
  def write(self, oprot):
12665
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12666
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12667
      return
9495 vikram.rag 12668
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_result')
9482 vikram.rag 12669
    oprot.writeFieldStop()
12670
    oprot.writeStructEnd()
12671
 
12672
  def validate(self):
12673
    return
12674
 
12675
 
12676
  def __repr__(self):
12677
    L = ['%s=%r' % (key, value)
12678
      for key, value in self.__dict__.iteritems()]
12679
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12680
 
12681
  def __eq__(self, other):
12682
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12683
 
12684
  def __ne__(self, other):
12685
    return not (self == other)
9495 vikram.rag 12686
 
12687
class getSnapdealInventorySnapshot_args:
12688
 
12689
  thrift_spec = (
12690
  )
12691
 
12692
  def read(self, iprot):
12693
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12694
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12695
      return
12696
    iprot.readStructBegin()
12697
    while True:
12698
      (fname, ftype, fid) = iprot.readFieldBegin()
12699
      if ftype == TType.STOP:
12700
        break
12701
      else:
12702
        iprot.skip(ftype)
12703
      iprot.readFieldEnd()
12704
    iprot.readStructEnd()
12705
 
12706
  def write(self, oprot):
12707
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12708
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12709
      return
12710
    oprot.writeStructBegin('getSnapdealInventorySnapshot_args')
12711
    oprot.writeFieldStop()
12712
    oprot.writeStructEnd()
12713
 
12714
  def validate(self):
12715
    return
12716
 
12717
 
12718
  def __repr__(self):
12719
    L = ['%s=%r' % (key, value)
12720
      for key, value in self.__dict__.iteritems()]
12721
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12722
 
12723
  def __eq__(self, other):
12724
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12725
 
12726
  def __ne__(self, other):
12727
    return not (self == other)
12728
 
12729
class getSnapdealInventorySnapshot_result:
12730
  """
12731
  Attributes:
12732
   - success
12733
  """
12734
 
12735
  thrift_spec = (
12736
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec)), None, ), # 0
12737
  )
12738
 
12739
  def __init__(self, success=None,):
12740
    self.success = success
12741
 
12742
  def read(self, iprot):
12743
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12744
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12745
      return
12746
    iprot.readStructBegin()
12747
    while True:
12748
      (fname, ftype, fid) = iprot.readFieldBegin()
12749
      if ftype == TType.STOP:
12750
        break
12751
      if fid == 0:
12752
        if ftype == TType.LIST:
12753
          self.success = []
9640 amar.kumar 12754
          (_etype270, _size267) = iprot.readListBegin()
12755
          for _i271 in xrange(_size267):
12756
            _elem272 = SnapdealInventoryItem()
12757
            _elem272.read(iprot)
12758
            self.success.append(_elem272)
9495 vikram.rag 12759
          iprot.readListEnd()
12760
        else:
12761
          iprot.skip(ftype)
12762
      else:
12763
        iprot.skip(ftype)
12764
      iprot.readFieldEnd()
12765
    iprot.readStructEnd()
12766
 
12767
  def write(self, oprot):
12768
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12769
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12770
      return
12771
    oprot.writeStructBegin('getSnapdealInventorySnapshot_result')
12772
    if self.success is not None:
12773
      oprot.writeFieldBegin('success', TType.LIST, 0)
12774
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9640 amar.kumar 12775
      for iter273 in self.success:
12776
        iter273.write(oprot)
9495 vikram.rag 12777
      oprot.writeListEnd()
12778
      oprot.writeFieldEnd()
12779
    oprot.writeFieldStop()
12780
    oprot.writeStructEnd()
12781
 
12782
  def validate(self):
12783
    return
12784
 
12785
 
12786
  def __repr__(self):
12787
    L = ['%s=%r' % (key, value)
12788
      for key, value in self.__dict__.iteritems()]
12789
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12790
 
12791
  def __eq__(self, other):
12792
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12793
 
12794
  def __ne__(self, other):
12795
    return not (self == other)
9761 amar.kumar 12796
 
12797
class getHoldInventoryDetails_args:
12798
  """
12799
  Attributes:
12800
   - itemId
12801
   - warehouseId
12802
   - source
12803
  """
12804
 
12805
  thrift_spec = (
12806
    None, # 0
12807
    (1, TType.I64, 'itemId', None, None, ), # 1
12808
    (2, TType.I64, 'warehouseId', None, None, ), # 2
12809
    (3, TType.I64, 'source', None, None, ), # 3
12810
  )
12811
 
12812
  def __init__(self, itemId=None, warehouseId=None, source=None,):
12813
    self.itemId = itemId
12814
    self.warehouseId = warehouseId
12815
    self.source = source
12816
 
12817
  def read(self, iprot):
12818
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12819
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12820
      return
12821
    iprot.readStructBegin()
12822
    while True:
12823
      (fname, ftype, fid) = iprot.readFieldBegin()
12824
      if ftype == TType.STOP:
12825
        break
12826
      if fid == 1:
12827
        if ftype == TType.I64:
12828
          self.itemId = iprot.readI64();
12829
        else:
12830
          iprot.skip(ftype)
12831
      elif fid == 2:
12832
        if ftype == TType.I64:
12833
          self.warehouseId = iprot.readI64();
12834
        else:
12835
          iprot.skip(ftype)
12836
      elif fid == 3:
12837
        if ftype == TType.I64:
12838
          self.source = iprot.readI64();
12839
        else:
12840
          iprot.skip(ftype)
12841
      else:
12842
        iprot.skip(ftype)
12843
      iprot.readFieldEnd()
12844
    iprot.readStructEnd()
12845
 
12846
  def write(self, oprot):
12847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12849
      return
12850
    oprot.writeStructBegin('getHoldInventoryDetails_args')
12851
    if self.itemId is not None:
12852
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12853
      oprot.writeI64(self.itemId)
12854
      oprot.writeFieldEnd()
12855
    if self.warehouseId is not None:
12856
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
12857
      oprot.writeI64(self.warehouseId)
12858
      oprot.writeFieldEnd()
12859
    if self.source is not None:
12860
      oprot.writeFieldBegin('source', TType.I64, 3)
12861
      oprot.writeI64(self.source)
12862
      oprot.writeFieldEnd()
12863
    oprot.writeFieldStop()
12864
    oprot.writeStructEnd()
12865
 
12866
  def validate(self):
12867
    return
12868
 
12869
 
12870
  def __repr__(self):
12871
    L = ['%s=%r' % (key, value)
12872
      for key, value in self.__dict__.iteritems()]
12873
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12874
 
12875
  def __eq__(self, other):
12876
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12877
 
12878
  def __ne__(self, other):
12879
    return not (self == other)
12880
 
12881
class getHoldInventoryDetails_result:
12882
  """
12883
  Attributes:
12884
   - success
12885
  """
12886
 
12887
  thrift_spec = (
12888
    (0, TType.LIST, 'success', (TType.STRUCT,(HoldInventoryDetail, HoldInventoryDetail.thrift_spec)), None, ), # 0
12889
  )
12890
 
12891
  def __init__(self, success=None,):
12892
    self.success = success
12893
 
12894
  def read(self, iprot):
12895
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12896
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12897
      return
12898
    iprot.readStructBegin()
12899
    while True:
12900
      (fname, ftype, fid) = iprot.readFieldBegin()
12901
      if ftype == TType.STOP:
12902
        break
12903
      if fid == 0:
12904
        if ftype == TType.LIST:
12905
          self.success = []
12906
          (_etype277, _size274) = iprot.readListBegin()
12907
          for _i278 in xrange(_size274):
12908
            _elem279 = HoldInventoryDetail()
12909
            _elem279.read(iprot)
12910
            self.success.append(_elem279)
12911
          iprot.readListEnd()
12912
        else:
12913
          iprot.skip(ftype)
12914
      else:
12915
        iprot.skip(ftype)
12916
      iprot.readFieldEnd()
12917
    iprot.readStructEnd()
12918
 
12919
  def write(self, oprot):
12920
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12921
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12922
      return
12923
    oprot.writeStructBegin('getHoldInventoryDetails_result')
12924
    if self.success is not None:
12925
      oprot.writeFieldBegin('success', TType.LIST, 0)
12926
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12927
      for iter280 in self.success:
12928
        iter280.write(oprot)
12929
      oprot.writeListEnd()
12930
      oprot.writeFieldEnd()
12931
    oprot.writeFieldStop()
12932
    oprot.writeStructEnd()
12933
 
12934
  def validate(self):
12935
    return
12936
 
12937
 
12938
  def __repr__(self):
12939
    L = ['%s=%r' % (key, value)
12940
      for key, value in self.__dict__.iteritems()]
12941
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12942
 
12943
  def __eq__(self, other):
12944
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12945
 
12946
  def __ne__(self, other):
12947
    return not (self == other)