Subversion Repositories SmartDukaan

Rev

Rev 22717 | 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
 
10126 amar.kumar 468
  def getOosStatusesForXDays(self, sourceId, days):
469
    """
470
    Parameters:
471
     - sourceId
472
     - days
473
    """
474
    pass
475
 
476
  def getAllVendorItemPricing(self, itemId, vendorId):
477
    """
478
    Parameters:
479
     - itemId
480
     - vendorId
481
    """
482
    pass
483
 
6857 amar.kumar 484
  def getNonZeroItemStockPurchaseParams(self, ):
485
    pass
6832 amar.kumar 486
 
7149 amar.kumar 487
  def getBillableInventoryAndPendingOrders(self, ):
488
    """
489
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
490
    """
491
    pass
6857 amar.kumar 492
 
7281 kshitij.so 493
  def getWarehouseName(self, warehouse_id):
494
    """
495
    Parameters:
496
     - warehouse_id
497
    """
498
    pass
7149 amar.kumar 499
 
7281 kshitij.so 500
  def getAmazonInventoryForItem(self, item_id):
501
    """
502
    Parameters:
503
     - item_id
504
    """
505
    pass
506
 
507
  def getAllAmazonInventory(self, ):
508
    pass
509
 
10450 vikram.rag 510
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot, time):
7281 kshitij.so 511
    """
512
    Parameters:
513
     - amazonInventorySnapshot
10450 vikram.rag 514
     - time
7281 kshitij.so 515
    """
516
    pass
517
 
7972 amar.kumar 518
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
519
    """
520
    Parameters:
521
     - itemId
522
     - numberOfDays
523
    """
524
    pass
7281 kshitij.so 525
 
8282 kshitij.so 526
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
527
    """
528
    Parameters:
529
     - amazonfbainventorysnapshot
530
    """
531
    pass
532
 
8182 amar.kumar 533
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
534
    """
535
    Parameters:
536
     - itemId
537
     - warehouseId
538
     - holdQuantity
539
     - source
540
    """
541
    pass
7972 amar.kumar 542
 
8282 kshitij.so 543
  def getAmazonFbaItemInventory(self, itemId):
544
    """
545
    Parameters:
546
     - itemId
547
    """
548
    pass
8182 amar.kumar 549
 
8363 vikram.rag 550
  def getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 551
    pass
552
 
8363 vikram.rag 553
  def getOursGoodWarehouseIdsForLocation(self, state_id):
554
    """
555
    Parameters:
556
     - state_id
557
    """
558
    pass
8282 kshitij.so 559
 
8955 vikram.rag 560
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
561
    """
562
    Parameters:
563
     - id
564
     - warehouse_id
565
     - source
566
    """
567
    pass
8363 vikram.rag 568
 
9404 vikram.rag 569
  def getSnapdealInventoryForItem(self, item_id):
570
    """
571
    Parameters:
572
     - item_id
573
    """
574
    pass
8955 vikram.rag 575
 
9404 vikram.rag 576
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
577
    """
578
    Parameters:
579
     - snapdealinventoryitem
580
    """
581
    pass
582
 
583
  def getNlcForWarehouse(self, warehouse_id, item_id):
584
    """
585
    Parameters:
586
     - warehouse_id
587
     - item_id
588
    """
589
    pass
590
 
9640 amar.kumar 591
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
592
    """
593
    Parameters:
594
     - item_id
595
     - warehouse_id
596
    """
597
    pass
598
 
9482 vikram.rag 599
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
600
    """
601
    Parameters:
602
     - allamazonfbainventorysnapshot
603
    """
604
    pass
9456 vikram.rag 605
 
9495 vikram.rag 606
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
607
    """
608
    Parameters:
609
     - allsnapdealinventorysnapshot
610
    """
611
    pass
9482 vikram.rag 612
 
9495 vikram.rag 613
  def getSnapdealInventorySnapshot(self, ):
614
    pass
615
 
9761 amar.kumar 616
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
617
    """
618
    Parameters:
619
     - itemId
620
     - warehouseId
621
     - source
622
    """
623
    pass
9495 vikram.rag 624
 
10450 vikram.rag 625
  def addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot, time):
10050 vikram.rag 626
    """
627
    Parameters:
628
     - flipkartInventorySnapshot
10450 vikram.rag 629
     - time
10050 vikram.rag 630
    """
631
    pass
9761 amar.kumar 632
 
10050 vikram.rag 633
  def getFlipkartInventorySnapshot(self, ):
634
    pass
635
 
10097 kshitij.so 636
  def getFlipkartlInventoryForItem(self, item_id):
637
    """
638
    Parameters:
639
     - item_id
640
    """
641
    pass
10050 vikram.rag 642
 
10485 vikram.rag 643
  def getStateMaster(self, ):
644
    pass
10097 kshitij.so 645
 
10544 vikram.rag 646
  def updateSnapdealStockAtEOD(self, allsnapdealstock):
647
    """
648
    Parameters:
649
     - allsnapdealstock
650
    """
651
    pass
10485 vikram.rag 652
 
10544 vikram.rag 653
  def updateFlipkartStockAtEOD(self, allflipkartstock):
654
    """
655
    Parameters:
656
     - allflipkartstock
657
    """
658
    pass
659
 
12363 kshitij.so 660
  def getWanNlcForSource(self, item_id, source):
661
    """
662
    Parameters:
663
     - item_id
664
     - source
665
    """
666
    pass
10544 vikram.rag 667
 
12363 kshitij.so 668
  def getAllAvailableAmazonFbaItemInventory(self, ):
669
    pass
670
 
17990 kshitij.so 671
  def updateItemAvailabilityForItemIds(self, itemIds):
672
    """
673
    Parameters:
674
     - itemIds
675
    """
676
    pass
12363 kshitij.so 677
 
19247 kshitij.so 678
  def addVendorItemPricingInBulk(self, vendorItemPricingList):
679
    """
680
    Parameters:
681
     - vendorItemPricingList
682
    """
683
    pass
17990 kshitij.so 684
 
19247 kshitij.so 685
  def addInventoryInBulk(self, bulkInventoryList):
686
    """
687
    Parameters:
688
     - bulkInventoryList
689
    """
690
    pass
691
 
22717 amit.gupta 692
  def getFofoAvailability(self, itemIds):
693
    """
694
    Parameters:
695
     - itemIds
696
    """
697
    pass
698
 
22721 amit.gupta 699
  def getFofoFulFillmentWarehouseMap(self, itemIds):
700
    """
701
    Parameters:
702
     - itemIds
703
    """
704
    pass
705
 
19413 amit.gupta 706
  def getItemLocationAvailabilityCache(self, itemLocations):
707
    """
708
    Parameters:
709
     - itemLocations
710
    """
711
    pass
19247 kshitij.so 712
 
19413 amit.gupta 713
  def getItemLocationAvailabilityCacheByItemId(self, itemIds):
714
    """
715
    Parameters:
716
     - itemIds
717
    """
718
    pass
719
 
19416 amit.gupta 720
  def getItemPincodeAvailability(self, itempricing, pincode):
19413 amit.gupta 721
    """
722
    Parameters:
19416 amit.gupta 723
     - itempricing
19413 amit.gupta 724
     - pincode
725
    """
726
    pass
727
 
728
 
5944 mandeep.dh 729
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
730
  def __init__(self, iprot, oprot=None):
731
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
732
 
733
  def addWarehouse(self, warehouse):
734
    """
735
    Parameters:
736
     - warehouse
737
    """
738
    self.send_addWarehouse(warehouse)
739
    return self.recv_addWarehouse()
740
 
741
  def send_addWarehouse(self, warehouse):
742
    self._oprot.writeMessageBegin('addWarehouse', TMessageType.CALL, self._seqid)
743
    args = addWarehouse_args()
744
    args.warehouse = warehouse
745
    args.write(self._oprot)
746
    self._oprot.writeMessageEnd()
747
    self._oprot.trans.flush()
748
 
749
  def recv_addWarehouse(self, ):
750
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
751
    if mtype == TMessageType.EXCEPTION:
752
      x = TApplicationException()
753
      x.read(self._iprot)
754
      self._iprot.readMessageEnd()
755
      raise x
756
    result = addWarehouse_result()
757
    result.read(self._iprot)
758
    self._iprot.readMessageEnd()
759
    if result.success is not None:
760
      return result.success
761
    if result.cex is not None:
762
      raise result.cex
763
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
764
 
765
  def addVendor(self, vendor):
766
    """
767
    add a new vendor
768
 
769
    Parameters:
770
     - vendor
771
    """
772
    self.send_addVendor(vendor)
773
    return self.recv_addVendor()
774
 
775
  def send_addVendor(self, vendor):
776
    self._oprot.writeMessageBegin('addVendor', TMessageType.CALL, self._seqid)
777
    args = addVendor_args()
778
    args.vendor = vendor
779
    args.write(self._oprot)
780
    self._oprot.writeMessageEnd()
781
    self._oprot.trans.flush()
782
 
783
  def recv_addVendor(self, ):
784
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
785
    if mtype == TMessageType.EXCEPTION:
786
      x = TApplicationException()
787
      x.read(self._iprot)
788
      self._iprot.readMessageEnd()
789
      raise x
790
    result = addVendor_result()
791
    result.read(self._iprot)
792
    self._iprot.readMessageEnd()
793
    if result.success is not None:
794
      return result.success
795
    if result.cex is not None:
796
      raise result.cex
797
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
798
 
799
  def updateInventoryHistory(self, warehouse_id, timestamp, availability):
800
    """
801
    Stores the incremental warehouse updates of items.
802
 
803
    Parameters:
804
     - warehouse_id
805
     - timestamp
806
     - availability
807
    """
808
    self.send_updateInventoryHistory(warehouse_id, timestamp, availability)
809
    self.recv_updateInventoryHistory()
810
 
811
  def send_updateInventoryHistory(self, warehouse_id, timestamp, availability):
812
    self._oprot.writeMessageBegin('updateInventoryHistory', TMessageType.CALL, self._seqid)
813
    args = updateInventoryHistory_args()
814
    args.warehouse_id = warehouse_id
815
    args.timestamp = timestamp
816
    args.availability = availability
817
    args.write(self._oprot)
818
    self._oprot.writeMessageEnd()
819
    self._oprot.trans.flush()
820
 
821
  def recv_updateInventoryHistory(self, ):
822
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
823
    if mtype == TMessageType.EXCEPTION:
824
      x = TApplicationException()
825
      x.read(self._iprot)
826
      self._iprot.readMessageEnd()
827
      raise x
828
    result = updateInventoryHistory_result()
829
    result.read(self._iprot)
830
    self._iprot.readMessageEnd()
831
    if result.cex is not None:
832
      raise result.cex
833
    return
834
 
835
  def updateInventory(self, warehouse_id, timestamp, availability):
836
    """
837
    Stores the final inventory stocks of items.
838
 
839
    Parameters:
840
     - warehouse_id
841
     - timestamp
842
     - availability
843
    """
844
    self.send_updateInventory(warehouse_id, timestamp, availability)
845
    self.recv_updateInventory()
846
 
847
  def send_updateInventory(self, warehouse_id, timestamp, availability):
848
    self._oprot.writeMessageBegin('updateInventory', TMessageType.CALL, self._seqid)
849
    args = updateInventory_args()
850
    args.warehouse_id = warehouse_id
851
    args.timestamp = timestamp
852
    args.availability = availability
853
    args.write(self._oprot)
854
    self._oprot.writeMessageEnd()
855
    self._oprot.trans.flush()
856
 
857
  def recv_updateInventory(self, ):
858
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
859
    if mtype == TMessageType.EXCEPTION:
860
      x = TApplicationException()
861
      x.read(self._iprot)
862
      self._iprot.readMessageEnd()
863
      raise x
864
    result = updateInventory_result()
865
    result.read(self._iprot)
866
    self._iprot.readMessageEnd()
867
    if result.cex is not None:
868
      raise result.cex
869
    return
870
 
871
  def addInventory(self, itemId, warehouseId, quantity):
872
    """
873
    Add the inventory to existing stock.
874
 
875
    Parameters:
876
     - itemId
877
     - warehouseId
878
     - quantity
879
    """
880
    self.send_addInventory(itemId, warehouseId, quantity)
881
    self.recv_addInventory()
882
 
883
  def send_addInventory(self, itemId, warehouseId, quantity):
884
    self._oprot.writeMessageBegin('addInventory', TMessageType.CALL, self._seqid)
885
    args = addInventory_args()
886
    args.itemId = itemId
887
    args.warehouseId = warehouseId
888
    args.quantity = quantity
889
    args.write(self._oprot)
890
    self._oprot.writeMessageEnd()
891
    self._oprot.trans.flush()
892
 
893
  def recv_addInventory(self, ):
894
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
895
    if mtype == TMessageType.EXCEPTION:
896
      x = TApplicationException()
897
      x.read(self._iprot)
898
      self._iprot.readMessageEnd()
899
      raise x
900
    result = addInventory_result()
901
    result.read(self._iprot)
902
    self._iprot.readMessageEnd()
903
    if result.cex is not None:
904
      raise result.cex
905
    return
906
 
907
  def retireWarehouse(self, warehouse_id):
908
    """
909
    Parameters:
910
     - warehouse_id
911
    """
912
    self.send_retireWarehouse(warehouse_id)
913
    self.recv_retireWarehouse()
914
 
915
  def send_retireWarehouse(self, warehouse_id):
916
    self._oprot.writeMessageBegin('retireWarehouse', TMessageType.CALL, self._seqid)
917
    args = retireWarehouse_args()
918
    args.warehouse_id = warehouse_id
919
    args.write(self._oprot)
920
    self._oprot.writeMessageEnd()
921
    self._oprot.trans.flush()
922
 
923
  def recv_retireWarehouse(self, ):
924
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
925
    if mtype == TMessageType.EXCEPTION:
926
      x = TApplicationException()
927
      x.read(self._iprot)
928
      self._iprot.readMessageEnd()
929
      raise x
930
    result = retireWarehouse_result()
931
    result.read(self._iprot)
932
    self._iprot.readMessageEnd()
933
    if result.cex is not None:
934
      raise result.cex
935
    return
936
 
937
  def getItemInventoryByItemId(self, item_id):
938
    """
939
    Parameters:
940
     - item_id
941
    """
942
    self.send_getItemInventoryByItemId(item_id)
943
    return self.recv_getItemInventoryByItemId()
944
 
945
  def send_getItemInventoryByItemId(self, item_id):
946
    self._oprot.writeMessageBegin('getItemInventoryByItemId', TMessageType.CALL, self._seqid)
947
    args = getItemInventoryByItemId_args()
948
    args.item_id = item_id
949
    args.write(self._oprot)
950
    self._oprot.writeMessageEnd()
951
    self._oprot.trans.flush()
952
 
953
  def recv_getItemInventoryByItemId(self, ):
954
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
955
    if mtype == TMessageType.EXCEPTION:
956
      x = TApplicationException()
957
      x.read(self._iprot)
958
      self._iprot.readMessageEnd()
959
      raise x
960
    result = getItemInventoryByItemId_result()
961
    result.read(self._iprot)
962
    self._iprot.readMessageEnd()
963
    if result.success is not None:
964
      return result.success
965
    if result.cex is not None:
966
      raise result.cex
967
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
968
 
969
  def getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
970
    """
971
    Parameters:
972
     - warehouse_id
973
     - item_id
974
    """
975
    self.send_getItemAvailibilityAtWarehouse(warehouse_id, item_id)
976
    return self.recv_getItemAvailibilityAtWarehouse()
977
 
978
  def send_getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
979
    self._oprot.writeMessageBegin('getItemAvailibilityAtWarehouse', TMessageType.CALL, self._seqid)
980
    args = getItemAvailibilityAtWarehouse_args()
981
    args.warehouse_id = warehouse_id
982
    args.item_id = item_id
983
    args.write(self._oprot)
984
    self._oprot.writeMessageEnd()
985
    self._oprot.trans.flush()
986
 
987
  def recv_getItemAvailibilityAtWarehouse(self, ):
988
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
989
    if mtype == TMessageType.EXCEPTION:
990
      x = TApplicationException()
991
      x.read(self._iprot)
992
      self._iprot.readMessageEnd()
993
      raise x
994
    result = getItemAvailibilityAtWarehouse_result()
995
    result.read(self._iprot)
996
    self._iprot.readMessageEnd()
997
    if result.success is not None:
998
      return result.success
999
    if result.cex is not None:
1000
      raise result.cex
1001
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
1002
 
5978 rajveer 1003
  def getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 1004
    """
1005
    Determines the warehouse that should be used to fulfil an order for the given item.
1006
    It first checks all the warehouses which are in the logistics location given by the
1007
    warehouse_loc parameter. If none of the warehouses there have any inventory, then the
1008
    preferred warehouse for the item is used.
1009
 
1010
    Returns an ordered list of size 4 with following elements in the given order:
1011
    1. Id of the fulfillment warehouse which was finally picked up.
1012
    2. Expected delay added by the category manager.
1013
    3. Id of the billing warehouse which was finally picked up.
1014
 
1015
    Parameters:
1016
     - itemId
5978 rajveer 1017
     - sourceId
5944 mandeep.dh 1018
    """
5978 rajveer 1019
    self.send_getItemAvailabilityAtLocation(itemId, sourceId)
5944 mandeep.dh 1020
    return self.recv_getItemAvailabilityAtLocation()
1021
 
5978 rajveer 1022
  def send_getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 1023
    self._oprot.writeMessageBegin('getItemAvailabilityAtLocation', TMessageType.CALL, self._seqid)
1024
    args = getItemAvailabilityAtLocation_args()
1025
    args.itemId = itemId
5978 rajveer 1026
    args.sourceId = sourceId
5944 mandeep.dh 1027
    args.write(self._oprot)
1028
    self._oprot.writeMessageEnd()
1029
    self._oprot.trans.flush()
1030
 
1031
  def recv_getItemAvailabilityAtLocation(self, ):
1032
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1033
    if mtype == TMessageType.EXCEPTION:
1034
      x = TApplicationException()
1035
      x.read(self._iprot)
1036
      self._iprot.readMessageEnd()
1037
      raise x
1038
    result = getItemAvailabilityAtLocation_result()
1039
    result.read(self._iprot)
1040
    self._iprot.readMessageEnd()
1041
    if result.success is not None:
1042
      return result.success
1043
    if result.isex is not None:
1044
      raise result.isex
1045
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
1046
 
1047
  def getAllWarehouses(self, isActive):
1048
    """
1049
    Parameters:
1050
     - isActive
1051
    """
1052
    self.send_getAllWarehouses(isActive)
1053
    return self.recv_getAllWarehouses()
1054
 
1055
  def send_getAllWarehouses(self, isActive):
1056
    self._oprot.writeMessageBegin('getAllWarehouses', TMessageType.CALL, self._seqid)
1057
    args = getAllWarehouses_args()
1058
    args.isActive = isActive
1059
    args.write(self._oprot)
1060
    self._oprot.writeMessageEnd()
1061
    self._oprot.trans.flush()
1062
 
1063
  def recv_getAllWarehouses(self, ):
1064
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1065
    if mtype == TMessageType.EXCEPTION:
1066
      x = TApplicationException()
1067
      x.read(self._iprot)
1068
      self._iprot.readMessageEnd()
1069
      raise x
1070
    result = getAllWarehouses_result()
1071
    result.read(self._iprot)
1072
    self._iprot.readMessageEnd()
1073
    if result.success is not None:
1074
      return result.success
1075
    if result.cex is not None:
1076
      raise result.cex
1077
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
1078
 
1079
  def getWarehouse(self, warehouse_id):
1080
    """
1081
    Returns the warehouse with the given id.
1082
 
1083
    Parameters:
1084
     - warehouse_id
1085
    """
1086
    self.send_getWarehouse(warehouse_id)
1087
    return self.recv_getWarehouse()
1088
 
1089
  def send_getWarehouse(self, warehouse_id):
1090
    self._oprot.writeMessageBegin('getWarehouse', TMessageType.CALL, self._seqid)
1091
    args = getWarehouse_args()
1092
    args.warehouse_id = warehouse_id
1093
    args.write(self._oprot)
1094
    self._oprot.writeMessageEnd()
1095
    self._oprot.trans.flush()
1096
 
1097
  def recv_getWarehouse(self, ):
1098
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1099
    if mtype == TMessageType.EXCEPTION:
1100
      x = TApplicationException()
1101
      x.read(self._iprot)
1102
      self._iprot.readMessageEnd()
1103
      raise x
1104
    result = getWarehouse_result()
1105
    result.read(self._iprot)
1106
    self._iprot.readMessageEnd()
1107
    if result.success is not None:
1108
      return result.success
1109
    if result.cex is not None:
1110
      raise result.cex
1111
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
1112
 
1113
  def getAllItemsForWarehouse(self, warehouse_id):
1114
    """
1115
    Parameters:
1116
     - warehouse_id
1117
    """
1118
    self.send_getAllItemsForWarehouse(warehouse_id)
1119
    return self.recv_getAllItemsForWarehouse()
1120
 
1121
  def send_getAllItemsForWarehouse(self, warehouse_id):
1122
    self._oprot.writeMessageBegin('getAllItemsForWarehouse', TMessageType.CALL, self._seqid)
1123
    args = getAllItemsForWarehouse_args()
1124
    args.warehouse_id = warehouse_id
1125
    args.write(self._oprot)
1126
    self._oprot.writeMessageEnd()
1127
    self._oprot.trans.flush()
1128
 
1129
  def recv_getAllItemsForWarehouse(self, ):
1130
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1131
    if mtype == TMessageType.EXCEPTION:
1132
      x = TApplicationException()
1133
      x.read(self._iprot)
1134
      self._iprot.readMessageEnd()
1135
      raise x
1136
    result = getAllItemsForWarehouse_result()
1137
    result.read(self._iprot)
1138
    self._iprot.readMessageEnd()
1139
    if result.success is not None:
1140
      return result.success
1141
    if result.cex is not None:
1142
      raise result.cex
1143
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
1144
 
5966 rajveer 1145
  def isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
5944 mandeep.dh 1146
    """
5978 rajveer 1147
    Depending on reservation in the table, verify if we can bill this order or not.
5966 rajveer 1148
 
1149
    Parameters:
1150
     - itemId
1151
     - warehouseId
1152
     - sourceId
1153
     - orderId
1154
    """
1155
    self.send_isOrderBillable(itemId, warehouseId, sourceId, orderId)
1156
    return self.recv_isOrderBillable()
1157
 
1158
  def send_isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
1159
    self._oprot.writeMessageBegin('isOrderBillable', TMessageType.CALL, self._seqid)
1160
    args = isOrderBillable_args()
1161
    args.itemId = itemId
1162
    args.warehouseId = warehouseId
1163
    args.sourceId = sourceId
1164
    args.orderId = orderId
1165
    args.write(self._oprot)
1166
    self._oprot.writeMessageEnd()
1167
    self._oprot.trans.flush()
1168
 
1169
  def recv_isOrderBillable(self, ):
1170
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1171
    if mtype == TMessageType.EXCEPTION:
1172
      x = TApplicationException()
1173
      x.read(self._iprot)
1174
      self._iprot.readMessageEnd()
1175
      raise x
1176
    result = isOrderBillable_result()
1177
    result.read(self._iprot)
1178
    self._iprot.readMessageEnd()
1179
    if result.success is not None:
1180
      return result.success
1181
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
1182
 
1183
  def reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1184
    """
5944 mandeep.dh 1185
    Increases the reservation count for an item in a warehouse. Should always succeed normally.
1186
 
1187
    Parameters:
1188
     - itemId
1189
     - warehouseId
5966 rajveer 1190
     - sourceId
1191
     - orderId
1192
     - createdTimestamp
1193
     - promisedShippingTimestamp
5944 mandeep.dh 1194
     - quantity
1195
    """
5966 rajveer 1196
    self.send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
5944 mandeep.dh 1197
    return self.recv_reserveItemInWarehouse()
1198
 
5966 rajveer 1199
  def send_reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
5944 mandeep.dh 1200
    self._oprot.writeMessageBegin('reserveItemInWarehouse', TMessageType.CALL, self._seqid)
1201
    args = reserveItemInWarehouse_args()
1202
    args.itemId = itemId
1203
    args.warehouseId = warehouseId
5966 rajveer 1204
    args.sourceId = sourceId
1205
    args.orderId = orderId
1206
    args.createdTimestamp = createdTimestamp
1207
    args.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 1208
    args.quantity = quantity
1209
    args.write(self._oprot)
1210
    self._oprot.writeMessageEnd()
1211
    self._oprot.trans.flush()
1212
 
1213
  def recv_reserveItemInWarehouse(self, ):
1214
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1215
    if mtype == TMessageType.EXCEPTION:
1216
      x = TApplicationException()
1217
      x.read(self._iprot)
1218
      self._iprot.readMessageEnd()
1219
      raise x
1220
    result = reserveItemInWarehouse_result()
1221
    result.read(self._iprot)
1222
    self._iprot.readMessageEnd()
1223
    if result.success is not None:
1224
      return result.success
1225
    if result.cex is not None:
1226
      raise result.cex
1227
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
1228
 
7968 amar.kumar 1229
  def updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1230
    """
1231
    Updates the reservation for Order
1232
 
1233
    Parameters:
1234
     - itemId
1235
     - warehouseId
1236
     - sourceId
1237
     - orderId
1238
     - createdTimestamp
1239
     - promisedShippingTimestamp
1240
     - quantity
1241
    """
1242
    self.send_updateReservationForOrder(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
1243
    return self.recv_updateReservationForOrder()
1244
 
1245
  def send_updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1246
    self._oprot.writeMessageBegin('updateReservationForOrder', TMessageType.CALL, self._seqid)
1247
    args = updateReservationForOrder_args()
1248
    args.itemId = itemId
1249
    args.warehouseId = warehouseId
1250
    args.sourceId = sourceId
1251
    args.orderId = orderId
1252
    args.createdTimestamp = createdTimestamp
1253
    args.promisedShippingTimestamp = promisedShippingTimestamp
1254
    args.quantity = quantity
1255
    args.write(self._oprot)
1256
    self._oprot.writeMessageEnd()
1257
    self._oprot.trans.flush()
1258
 
1259
  def recv_updateReservationForOrder(self, ):
1260
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1261
    if mtype == TMessageType.EXCEPTION:
1262
      x = TApplicationException()
1263
      x.read(self._iprot)
1264
      self._iprot.readMessageEnd()
1265
      raise x
1266
    result = updateReservationForOrder_result()
1267
    result.read(self._iprot)
1268
    self._iprot.readMessageEnd()
1269
    if result.success is not None:
1270
      return result.success
1271
    if result.cex is not None:
1272
      raise result.cex
1273
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateReservationForOrder failed: unknown result");
1274
 
5966 rajveer 1275
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1276
    """
1277
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
1278
 
1279
    Parameters:
1280
     - itemId
1281
     - warehouseId
5966 rajveer 1282
     - sourceId
1283
     - orderId
5944 mandeep.dh 1284
     - quantity
1285
    """
5966 rajveer 1286
    self.send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity)
5944 mandeep.dh 1287
    return self.recv_reduceReservationCount()
1288
 
5966 rajveer 1289
  def send_reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1290
    self._oprot.writeMessageBegin('reduceReservationCount', TMessageType.CALL, self._seqid)
1291
    args = reduceReservationCount_args()
1292
    args.itemId = itemId
1293
    args.warehouseId = warehouseId
5966 rajveer 1294
    args.sourceId = sourceId
1295
    args.orderId = orderId
5944 mandeep.dh 1296
    args.quantity = quantity
1297
    args.write(self._oprot)
1298
    self._oprot.writeMessageEnd()
1299
    self._oprot.trans.flush()
1300
 
1301
  def recv_reduceReservationCount(self, ):
1302
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1303
    if mtype == TMessageType.EXCEPTION:
1304
      x = TApplicationException()
1305
      x.read(self._iprot)
1306
      self._iprot.readMessageEnd()
1307
      raise x
1308
    result = reduceReservationCount_result()
1309
    result.read(self._iprot)
1310
    self._iprot.readMessageEnd()
1311
    if result.success is not None:
1312
      return result.success
1313
    if result.cex is not None:
1314
      raise result.cex
1315
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
1316
 
1317
  def getItemPricing(self, itemId, vendorId):
1318
    """
1319
    Returns the pricing information of an item associated with the vendor of the given warehouse.
1320
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
1321
 
1322
    Parameters:
1323
     - itemId
1324
     - vendorId
1325
    """
1326
    self.send_getItemPricing(itemId, vendorId)
1327
    return self.recv_getItemPricing()
1328
 
1329
  def send_getItemPricing(self, itemId, vendorId):
1330
    self._oprot.writeMessageBegin('getItemPricing', TMessageType.CALL, self._seqid)
1331
    args = getItemPricing_args()
1332
    args.itemId = itemId
1333
    args.vendorId = vendorId
1334
    args.write(self._oprot)
1335
    self._oprot.writeMessageEnd()
1336
    self._oprot.trans.flush()
1337
 
1338
  def recv_getItemPricing(self, ):
1339
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1340
    if mtype == TMessageType.EXCEPTION:
1341
      x = TApplicationException()
1342
      x.read(self._iprot)
1343
      self._iprot.readMessageEnd()
1344
      raise x
1345
    result = getItemPricing_result()
1346
    result.read(self._iprot)
1347
    self._iprot.readMessageEnd()
1348
    if result.success is not None:
1349
      return result.success
1350
    if result.cex is not None:
1351
      raise result.cex
1352
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
1353
 
1354
  def getAllItemPricing(self, itemId):
1355
    """
1356
    Returns the list of vendor pricing information of an item.
1357
    Raises an exception if item not found corresponding to itemId
1358
 
1359
    Parameters:
1360
     - itemId
1361
    """
1362
    self.send_getAllItemPricing(itemId)
1363
    return self.recv_getAllItemPricing()
1364
 
1365
  def send_getAllItemPricing(self, itemId):
1366
    self._oprot.writeMessageBegin('getAllItemPricing', TMessageType.CALL, self._seqid)
1367
    args = getAllItemPricing_args()
1368
    args.itemId = itemId
1369
    args.write(self._oprot)
1370
    self._oprot.writeMessageEnd()
1371
    self._oprot.trans.flush()
1372
 
1373
  def recv_getAllItemPricing(self, ):
1374
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1375
    if mtype == TMessageType.EXCEPTION:
1376
      x = TApplicationException()
1377
      x.read(self._iprot)
1378
      self._iprot.readMessageEnd()
1379
      raise x
1380
    result = getAllItemPricing_result()
1381
    result.read(self._iprot)
1382
    self._iprot.readMessageEnd()
1383
    if result.success is not None:
1384
      return result.success
1385
    if result.cex is not None:
1386
      raise result.cex
1387
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
1388
 
1389
  def addVendorItemPricing(self, vendorItemPricing):
1390
    """
1391
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
1392
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
1393
 
1394
    Parameters:
1395
     - vendorItemPricing
1396
    """
1397
    self.send_addVendorItemPricing(vendorItemPricing)
1398
    self.recv_addVendorItemPricing()
1399
 
1400
  def send_addVendorItemPricing(self, vendorItemPricing):
1401
    self._oprot.writeMessageBegin('addVendorItemPricing', TMessageType.CALL, self._seqid)
1402
    args = addVendorItemPricing_args()
1403
    args.vendorItemPricing = vendorItemPricing
1404
    args.write(self._oprot)
1405
    self._oprot.writeMessageEnd()
1406
    self._oprot.trans.flush()
1407
 
1408
  def recv_addVendorItemPricing(self, ):
1409
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1410
    if mtype == TMessageType.EXCEPTION:
1411
      x = TApplicationException()
1412
      x.read(self._iprot)
1413
      self._iprot.readMessageEnd()
1414
      raise x
1415
    result = addVendorItemPricing_result()
1416
    result.read(self._iprot)
1417
    self._iprot.readMessageEnd()
1418
    if result.cex is not None:
1419
      raise result.cex
1420
    return
1421
 
1422
  def getVendor(self, vendorId):
1423
    """
1424
    Returns a vendor given its id
1425
 
1426
    Parameters:
1427
     - vendorId
1428
    """
1429
    self.send_getVendor(vendorId)
1430
    return self.recv_getVendor()
1431
 
1432
  def send_getVendor(self, vendorId):
1433
    self._oprot.writeMessageBegin('getVendor', TMessageType.CALL, self._seqid)
1434
    args = getVendor_args()
1435
    args.vendorId = vendorId
1436
    args.write(self._oprot)
1437
    self._oprot.writeMessageEnd()
1438
    self._oprot.trans.flush()
1439
 
1440
  def recv_getVendor(self, ):
1441
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1442
    if mtype == TMessageType.EXCEPTION:
1443
      x = TApplicationException()
1444
      x.read(self._iprot)
1445
      self._iprot.readMessageEnd()
1446
      raise x
1447
    result = getVendor_result()
1448
    result.read(self._iprot)
1449
    self._iprot.readMessageEnd()
1450
    if result.success is not None:
1451
      return result.success
1452
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
1453
 
1454
  def getAllVendors(self, ):
1455
    """
1456
    Return list of all vendors
1457
    """
1458
    self.send_getAllVendors()
1459
    return self.recv_getAllVendors()
1460
 
1461
  def send_getAllVendors(self, ):
1462
    self._oprot.writeMessageBegin('getAllVendors', TMessageType.CALL, self._seqid)
1463
    args = getAllVendors_args()
1464
    args.write(self._oprot)
1465
    self._oprot.writeMessageEnd()
1466
    self._oprot.trans.flush()
1467
 
1468
  def recv_getAllVendors(self, ):
1469
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1470
    if mtype == TMessageType.EXCEPTION:
1471
      x = TApplicationException()
1472
      x.read(self._iprot)
1473
      self._iprot.readMessageEnd()
1474
      raise x
1475
    result = getAllVendors_result()
1476
    result.read(self._iprot)
1477
    self._iprot.readMessageEnd()
1478
    if result.success is not None:
1479
      return result.success
1480
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1481
 
1482
  def addVendorItemMapping(self, key, vendorItemMapping):
1483
    """
1484
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
1485
 
1486
    Parameters:
1487
     - key
1488
     - vendorItemMapping
1489
    """
1490
    self.send_addVendorItemMapping(key, vendorItemMapping)
1491
    self.recv_addVendorItemMapping()
1492
 
1493
  def send_addVendorItemMapping(self, key, vendorItemMapping):
1494
    self._oprot.writeMessageBegin('addVendorItemMapping', TMessageType.CALL, self._seqid)
1495
    args = addVendorItemMapping_args()
1496
    args.key = key
1497
    args.vendorItemMapping = vendorItemMapping
1498
    args.write(self._oprot)
1499
    self._oprot.writeMessageEnd()
1500
    self._oprot.trans.flush()
1501
 
1502
  def recv_addVendorItemMapping(self, ):
1503
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1504
    if mtype == TMessageType.EXCEPTION:
1505
      x = TApplicationException()
1506
      x.read(self._iprot)
1507
      self._iprot.readMessageEnd()
1508
      raise x
1509
    result = addVendorItemMapping_result()
1510
    result.read(self._iprot)
1511
    self._iprot.readMessageEnd()
1512
    if result.cex is not None:
1513
      raise result.cex
1514
    return
1515
 
1516
  def getVendorItemMappings(self, itemId):
1517
    """
1518
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
1519
    Raises an exception if item not found corresponding to itemId
1520
 
1521
    Parameters:
1522
     - itemId
1523
    """
1524
    self.send_getVendorItemMappings(itemId)
1525
    return self.recv_getVendorItemMappings()
1526
 
1527
  def send_getVendorItemMappings(self, itemId):
1528
    self._oprot.writeMessageBegin('getVendorItemMappings', TMessageType.CALL, self._seqid)
1529
    args = getVendorItemMappings_args()
1530
    args.itemId = itemId
1531
    args.write(self._oprot)
1532
    self._oprot.writeMessageEnd()
1533
    self._oprot.trans.flush()
1534
 
1535
  def recv_getVendorItemMappings(self, ):
1536
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1537
    if mtype == TMessageType.EXCEPTION:
1538
      x = TApplicationException()
1539
      x.read(self._iprot)
1540
      self._iprot.readMessageEnd()
1541
      raise x
1542
    result = getVendorItemMappings_result()
1543
    result.read(self._iprot)
1544
    self._iprot.readMessageEnd()
1545
    if result.success is not None:
1546
      return result.success
1547
    if result.cex is not None:
1548
      raise result.cex
1549
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
1550
 
1551
  def getPendingOrdersInventory(self, vendorid):
1552
    """
1553
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
1554
 
1555
    Parameters:
1556
     - vendorid
1557
    """
1558
    self.send_getPendingOrdersInventory(vendorid)
1559
    return self.recv_getPendingOrdersInventory()
1560
 
1561
  def send_getPendingOrdersInventory(self, vendorid):
1562
    self._oprot.writeMessageBegin('getPendingOrdersInventory', TMessageType.CALL, self._seqid)
1563
    args = getPendingOrdersInventory_args()
1564
    args.vendorid = vendorid
1565
    args.write(self._oprot)
1566
    self._oprot.writeMessageEnd()
1567
    self._oprot.trans.flush()
1568
 
1569
  def recv_getPendingOrdersInventory(self, ):
1570
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1571
    if mtype == TMessageType.EXCEPTION:
1572
      x = TApplicationException()
1573
      x.read(self._iprot)
1574
      self._iprot.readMessageEnd()
1575
      raise x
1576
    result = getPendingOrdersInventory_result()
1577
    result.read(self._iprot)
1578
    self._iprot.readMessageEnd()
1579
    if result.success is not None:
1580
      return result.success
1581
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1582
 
1583
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1584
    """
1585
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
1586
    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
1587
    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
1588
       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
1589
       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
1590
 
1591
    Parameters:
1592
     - warehouseType
1593
     - inventoryType
1594
     - vendorId
1595
     - billingWarehouseId
1596
     - shippingWarehouseId
1597
    """
1598
    self.send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId)
1599
    return self.recv_getWarehouses()
1600
 
1601
  def send_getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1602
    self._oprot.writeMessageBegin('getWarehouses', TMessageType.CALL, self._seqid)
1603
    args = getWarehouses_args()
1604
    args.warehouseType = warehouseType
1605
    args.inventoryType = inventoryType
1606
    args.vendorId = vendorId
1607
    args.billingWarehouseId = billingWarehouseId
1608
    args.shippingWarehouseId = shippingWarehouseId
1609
    args.write(self._oprot)
1610
    self._oprot.writeMessageEnd()
1611
    self._oprot.trans.flush()
1612
 
1613
  def recv_getWarehouses(self, ):
1614
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1615
    if mtype == TMessageType.EXCEPTION:
1616
      x = TApplicationException()
1617
      x.read(self._iprot)
1618
      self._iprot.readMessageEnd()
1619
      raise x
1620
    result = getWarehouses_result()
1621
    result.read(self._iprot)
1622
    self._iprot.readMessageEnd()
1623
    if result.success is not None:
1624
      return result.success
1625
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1626
 
1627
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1628
    """
1629
    Resets availability of an item to the quantity mentioned in a warehouse.
1630
 
1631
    Parameters:
1632
     - itemKey
1633
     - vendorId
1634
     - quantity
1635
     - warehouseId
1636
    """
1637
    self.send_resetAvailability(itemKey, vendorId, quantity, warehouseId)
1638
    self.recv_resetAvailability()
1639
 
1640
  def send_resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1641
    self._oprot.writeMessageBegin('resetAvailability', TMessageType.CALL, self._seqid)
1642
    args = resetAvailability_args()
1643
    args.itemKey = itemKey
1644
    args.vendorId = vendorId
1645
    args.quantity = quantity
1646
    args.warehouseId = warehouseId
1647
    args.write(self._oprot)
1648
    self._oprot.writeMessageEnd()
1649
    self._oprot.trans.flush()
1650
 
1651
  def recv_resetAvailability(self, ):
1652
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1653
    if mtype == TMessageType.EXCEPTION:
1654
      x = TApplicationException()
1655
      x.read(self._iprot)
1656
      self._iprot.readMessageEnd()
1657
      raise x
1658
    result = resetAvailability_result()
1659
    result.read(self._iprot)
1660
    self._iprot.readMessageEnd()
1661
    if result.cex is not None:
1662
      raise result.cex
1663
    return
1664
 
1665
  def resetAvailabilityForWarehouse(self, warehouseId):
1666
    """
1667
    Resets availability of a warehouse to zero.
1668
 
1669
    Parameters:
1670
     - warehouseId
1671
    """
1672
    self.send_resetAvailabilityForWarehouse(warehouseId)
1673
    self.recv_resetAvailabilityForWarehouse()
1674
 
1675
  def send_resetAvailabilityForWarehouse(self, warehouseId):
1676
    self._oprot.writeMessageBegin('resetAvailabilityForWarehouse', TMessageType.CALL, self._seqid)
1677
    args = resetAvailabilityForWarehouse_args()
1678
    args.warehouseId = warehouseId
1679
    args.write(self._oprot)
1680
    self._oprot.writeMessageEnd()
1681
    self._oprot.trans.flush()
1682
 
1683
  def recv_resetAvailabilityForWarehouse(self, ):
1684
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1685
    if mtype == TMessageType.EXCEPTION:
1686
      x = TApplicationException()
1687
      x.read(self._iprot)
1688
      self._iprot.readMessageEnd()
1689
      raise x
1690
    result = resetAvailabilityForWarehouse_result()
1691
    result.read(self._iprot)
1692
    self._iprot.readMessageEnd()
1693
    if result.cex is not None:
1694
      raise result.cex
1695
    return
1696
 
1697
  def getItemKeysToBeProcessed(self, warehouseId):
1698
    """
1699
    Returns the list of item keys which need to be processed for a given warehouse.
1700
    This is currently used by Support application to send item keys whose inventory needs
1701
    to be updated from PLB
1702
 
1703
    Parameters:
1704
     - warehouseId
1705
    """
1706
    self.send_getItemKeysToBeProcessed(warehouseId)
1707
    return self.recv_getItemKeysToBeProcessed()
1708
 
1709
  def send_getItemKeysToBeProcessed(self, warehouseId):
1710
    self._oprot.writeMessageBegin('getItemKeysToBeProcessed', TMessageType.CALL, self._seqid)
1711
    args = getItemKeysToBeProcessed_args()
1712
    args.warehouseId = warehouseId
1713
    args.write(self._oprot)
1714
    self._oprot.writeMessageEnd()
1715
    self._oprot.trans.flush()
1716
 
1717
  def recv_getItemKeysToBeProcessed(self, ):
1718
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1719
    if mtype == TMessageType.EXCEPTION:
1720
      x = TApplicationException()
1721
      x.read(self._iprot)
1722
      self._iprot.readMessageEnd()
1723
      raise x
1724
    result = getItemKeysToBeProcessed_result()
1725
    result.read(self._iprot)
1726
    self._iprot.readMessageEnd()
1727
    if result.success is not None:
1728
      return result.success
1729
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1730
 
1731
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1732
    """
1733
    Marks/Deletes missed inventory updates for a given key and warehouse.
1734
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
1735
 
1736
    Parameters:
1737
     - itemKey
1738
     - warehouseId
1739
    """
1740
    self.send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId)
1741
    self.recv_markMissedInventoryUpdatesAsProcessed()
1742
 
1743
  def send_markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1744
    self._oprot.writeMessageBegin('markMissedInventoryUpdatesAsProcessed', TMessageType.CALL, self._seqid)
1745
    args = markMissedInventoryUpdatesAsProcessed_args()
1746
    args.itemKey = itemKey
1747
    args.warehouseId = warehouseId
1748
    args.write(self._oprot)
1749
    self._oprot.writeMessageEnd()
1750
    self._oprot.trans.flush()
1751
 
1752
  def recv_markMissedInventoryUpdatesAsProcessed(self, ):
1753
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1754
    if mtype == TMessageType.EXCEPTION:
1755
      x = TApplicationException()
1756
      x.read(self._iprot)
1757
      self._iprot.readMessageEnd()
1758
      raise x
1759
    result = markMissedInventoryUpdatesAsProcessed_result()
1760
    result.read(self._iprot)
1761
    self._iprot.readMessageEnd()
1762
    return
1763
 
1764
  def getIgnoredItemKeys(self, ):
1765
    """
1766
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
1767
    and the timestamp from where alert was raised.
1768
    """
1769
    self.send_getIgnoredItemKeys()
1770
    return self.recv_getIgnoredItemKeys()
1771
 
1772
  def send_getIgnoredItemKeys(self, ):
1773
    self._oprot.writeMessageBegin('getIgnoredItemKeys', TMessageType.CALL, self._seqid)
1774
    args = getIgnoredItemKeys_args()
1775
    args.write(self._oprot)
1776
    self._oprot.writeMessageEnd()
1777
    self._oprot.trans.flush()
1778
 
1779
  def recv_getIgnoredItemKeys(self, ):
1780
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1781
    if mtype == TMessageType.EXCEPTION:
1782
      x = TApplicationException()
1783
      x.read(self._iprot)
1784
      self._iprot.readMessageEnd()
1785
      raise x
1786
    result = getIgnoredItemKeys_result()
1787
    result.read(self._iprot)
1788
    self._iprot.readMessageEnd()
1789
    if result.success is not None:
1790
      return result.success
1791
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1792
 
1793
  def addBadInventory(self, itemId, warehouseId, quantity):
1794
    """
1795
    Add the BAD type inventory to existing stock.
1796
 
1797
    Parameters:
1798
     - itemId
1799
     - warehouseId
1800
     - quantity
1801
    """
1802
    self.send_addBadInventory(itemId, warehouseId, quantity)
1803
    self.recv_addBadInventory()
1804
 
1805
  def send_addBadInventory(self, itemId, warehouseId, quantity):
1806
    self._oprot.writeMessageBegin('addBadInventory', TMessageType.CALL, self._seqid)
1807
    args = addBadInventory_args()
1808
    args.itemId = itemId
1809
    args.warehouseId = warehouseId
1810
    args.quantity = quantity
1811
    args.write(self._oprot)
1812
    self._oprot.writeMessageEnd()
1813
    self._oprot.trans.flush()
1814
 
1815
  def recv_addBadInventory(self, ):
1816
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1817
    if mtype == TMessageType.EXCEPTION:
1818
      x = TApplicationException()
1819
      x.read(self._iprot)
1820
      self._iprot.readMessageEnd()
1821
      raise x
1822
    result = addBadInventory_result()
1823
    result.read(self._iprot)
1824
    self._iprot.readMessageEnd()
1825
    if result.cex is not None:
1826
      raise result.cex
1827
    return
1828
 
1829
  def getShippingLocations(self, ):
1830
    """
1831
    Returns all shipping locations
1832
    """
1833
    self.send_getShippingLocations()
1834
    return self.recv_getShippingLocations()
1835
 
1836
  def send_getShippingLocations(self, ):
1837
    self._oprot.writeMessageBegin('getShippingLocations', TMessageType.CALL, self._seqid)
1838
    args = getShippingLocations_args()
1839
    args.write(self._oprot)
1840
    self._oprot.writeMessageEnd()
1841
    self._oprot.trans.flush()
1842
 
1843
  def recv_getShippingLocations(self, ):
1844
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1845
    if mtype == TMessageType.EXCEPTION:
1846
      x = TApplicationException()
1847
      x.read(self._iprot)
1848
      self._iprot.readMessageEnd()
1849
      raise x
1850
    result = getShippingLocations_result()
1851
    result.read(self._iprot)
1852
    self._iprot.readMessageEnd()
1853
    if result.success is not None:
1854
      return result.success
1855
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1856
 
1857
  def getAllVendorItemMappings(self, ):
1858
    """
1859
    Fetches all the vendor item mappings present.
1860
    """
1861
    self.send_getAllVendorItemMappings()
1862
    return self.recv_getAllVendorItemMappings()
1863
 
1864
  def send_getAllVendorItemMappings(self, ):
1865
    self._oprot.writeMessageBegin('getAllVendorItemMappings', TMessageType.CALL, self._seqid)
1866
    args = getAllVendorItemMappings_args()
1867
    args.write(self._oprot)
1868
    self._oprot.writeMessageEnd()
1869
    self._oprot.trans.flush()
1870
 
1871
  def recv_getAllVendorItemMappings(self, ):
1872
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1873
    if mtype == TMessageType.EXCEPTION:
1874
      x = TApplicationException()
1875
      x.read(self._iprot)
1876
      self._iprot.readMessageEnd()
1877
      raise x
1878
    result = getAllVendorItemMappings_result()
1879
    result.read(self._iprot)
1880
    self._iprot.readMessageEnd()
1881
    if result.success is not None:
1882
      return result.success
1883
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1884
 
1885
  def getInventorySnapshot(self, warehouseId):
1886
    """
1887
    Gets items' inventory for a warehouse
1888
    If warehouse is passed as zero, items' inventory across all warehouses is sent
1889
 
1890
    Parameters:
1891
     - warehouseId
1892
    """
1893
    self.send_getInventorySnapshot(warehouseId)
1894
    return self.recv_getInventorySnapshot()
1895
 
1896
  def send_getInventorySnapshot(self, warehouseId):
1897
    self._oprot.writeMessageBegin('getInventorySnapshot', TMessageType.CALL, self._seqid)
1898
    args = getInventorySnapshot_args()
1899
    args.warehouseId = warehouseId
1900
    args.write(self._oprot)
1901
    self._oprot.writeMessageEnd()
1902
    self._oprot.trans.flush()
1903
 
1904
  def recv_getInventorySnapshot(self, ):
1905
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1906
    if mtype == TMessageType.EXCEPTION:
1907
      x = TApplicationException()
1908
      x.read(self._iprot)
1909
      self._iprot.readMessageEnd()
1910
      raise x
1911
    result = getInventorySnapshot_result()
1912
    result.read(self._iprot)
1913
    self._iprot.readMessageEnd()
1914
    if result.success is not None:
1915
      return result.success
1916
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1917
 
1918
  def clearItemAvailabilityCache(self, ):
1919
    """
1920
    Clear item availability cache.
1921
    """
1922
    self.send_clearItemAvailabilityCache()
1923
    self.recv_clearItemAvailabilityCache()
1924
 
1925
  def send_clearItemAvailabilityCache(self, ):
1926
    self._oprot.writeMessageBegin('clearItemAvailabilityCache', TMessageType.CALL, self._seqid)
1927
    args = clearItemAvailabilityCache_args()
1928
    args.write(self._oprot)
1929
    self._oprot.writeMessageEnd()
1930
    self._oprot.trans.flush()
1931
 
1932
  def recv_clearItemAvailabilityCache(self, ):
1933
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1934
    if mtype == TMessageType.EXCEPTION:
1935
      x = TApplicationException()
1936
      x.read(self._iprot)
1937
      self._iprot.readMessageEnd()
1938
      raise x
1939
    result = clearItemAvailabilityCache_result()
1940
    result.read(self._iprot)
1941
    self._iprot.readMessageEnd()
1942
    return
1943
 
1944
  def updateVendorString(self, warehouseId, vendorString):
1945
    """
1946
    Parameters:
1947
     - warehouseId
1948
     - vendorString
1949
    """
1950
    self.send_updateVendorString(warehouseId, vendorString)
1951
    self.recv_updateVendorString()
1952
 
1953
  def send_updateVendorString(self, warehouseId, vendorString):
1954
    self._oprot.writeMessageBegin('updateVendorString', TMessageType.CALL, self._seqid)
1955
    args = updateVendorString_args()
1956
    args.warehouseId = warehouseId
1957
    args.vendorString = vendorString
1958
    args.write(self._oprot)
1959
    self._oprot.writeMessageEnd()
1960
    self._oprot.trans.flush()
1961
 
1962
  def recv_updateVendorString(self, ):
1963
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1964
    if mtype == TMessageType.EXCEPTION:
1965
      x = TApplicationException()
1966
      x.read(self._iprot)
1967
      self._iprot.readMessageEnd()
1968
      raise x
1969
    result = updateVendorString_result()
1970
    result.read(self._iprot)
1971
    self._iprot.readMessageEnd()
1972
    return
1973
 
6096 amit.gupta 1974
  def clearItemAvailabilityCacheForItem(self, item_id):
1975
    """
1976
    Parameters:
1977
     - item_id
1978
    """
1979
    self.send_clearItemAvailabilityCacheForItem(item_id)
1980
    self.recv_clearItemAvailabilityCacheForItem()
5944 mandeep.dh 1981
 
6096 amit.gupta 1982
  def send_clearItemAvailabilityCacheForItem(self, item_id):
1983
    self._oprot.writeMessageBegin('clearItemAvailabilityCacheForItem', TMessageType.CALL, self._seqid)
1984
    args = clearItemAvailabilityCacheForItem_args()
1985
    args.item_id = item_id
1986
    args.write(self._oprot)
1987
    self._oprot.writeMessageEnd()
1988
    self._oprot.trans.flush()
1989
 
1990
  def recv_clearItemAvailabilityCacheForItem(self, ):
1991
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1992
    if mtype == TMessageType.EXCEPTION:
1993
      x = TApplicationException()
1994
      x.read(self._iprot)
1995
      self._iprot.readMessageEnd()
1996
      raise x
1997
    result = clearItemAvailabilityCacheForItem_result()
1998
    result.read(self._iprot)
1999
    self._iprot.readMessageEnd()
2000
    return
2001
 
7718 amar.kumar 2002
  def getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 2003
    """
2004
    Parameters:
2005
     - vendorId
7718 amar.kumar 2006
     - billingWarehouseId
6467 amar.kumar 2007
    """
7718 amar.kumar 2008
    self.send_getOurWarehouseIdForVendor(vendorId, billingWarehouseId)
6467 amar.kumar 2009
    return self.recv_getOurWarehouseIdForVendor()
6096 amit.gupta 2010
 
7718 amar.kumar 2011
  def send_getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 2012
    self._oprot.writeMessageBegin('getOurWarehouseIdForVendor', TMessageType.CALL, self._seqid)
2013
    args = getOurWarehouseIdForVendor_args()
2014
    args.vendorId = vendorId
7718 amar.kumar 2015
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 2016
    args.write(self._oprot)
2017
    self._oprot.writeMessageEnd()
2018
    self._oprot.trans.flush()
2019
 
2020
  def recv_getOurWarehouseIdForVendor(self, ):
2021
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2022
    if mtype == TMessageType.EXCEPTION:
2023
      x = TApplicationException()
2024
      x.read(self._iprot)
2025
      self._iprot.readMessageEnd()
2026
      raise x
2027
    result = getOurWarehouseIdForVendor_result()
2028
    result.read(self._iprot)
2029
    self._iprot.readMessageEnd()
2030
    if result.success is not None:
2031
      return result.success
2032
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
2033
 
6484 amar.kumar 2034
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
2035
    """
2036
    Parameters:
2037
     - item_ids
2038
    """
2039
    self.send_getItemAvailabilitiesAtOurWarehouses(item_ids)
2040
    return self.recv_getItemAvailabilitiesAtOurWarehouses()
6467 amar.kumar 2041
 
6484 amar.kumar 2042
  def send_getItemAvailabilitiesAtOurWarehouses(self, item_ids):
2043
    self._oprot.writeMessageBegin('getItemAvailabilitiesAtOurWarehouses', TMessageType.CALL, self._seqid)
2044
    args = getItemAvailabilitiesAtOurWarehouses_args()
2045
    args.item_ids = item_ids
2046
    args.write(self._oprot)
2047
    self._oprot.writeMessageEnd()
2048
    self._oprot.trans.flush()
2049
 
2050
  def recv_getItemAvailabilitiesAtOurWarehouses(self, ):
2051
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2052
    if mtype == TMessageType.EXCEPTION:
2053
      x = TApplicationException()
2054
      x.read(self._iprot)
2055
      self._iprot.readMessageEnd()
2056
      raise x
2057
    result = getItemAvailabilitiesAtOurWarehouses_result()
2058
    result.read(self._iprot)
2059
    self._iprot.readMessageEnd()
2060
    if result.success is not None:
2061
      return result.success
2062
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
2063
 
6531 vikram.rag 2064
  def getMonitoredWarehouseForVendors(self, vendorIds):
2065
    """
2066
    Parameters:
2067
     - vendorIds
2068
    """
2069
    self.send_getMonitoredWarehouseForVendors(vendorIds)
2070
    return self.recv_getMonitoredWarehouseForVendors()
6484 amar.kumar 2071
 
6531 vikram.rag 2072
  def send_getMonitoredWarehouseForVendors(self, vendorIds):
2073
    self._oprot.writeMessageBegin('getMonitoredWarehouseForVendors', TMessageType.CALL, self._seqid)
2074
    args = getMonitoredWarehouseForVendors_args()
2075
    args.vendorIds = vendorIds
2076
    args.write(self._oprot)
2077
    self._oprot.writeMessageEnd()
2078
    self._oprot.trans.flush()
2079
 
2080
  def recv_getMonitoredWarehouseForVendors(self, ):
2081
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2082
    if mtype == TMessageType.EXCEPTION:
2083
      x = TApplicationException()
2084
      x.read(self._iprot)
2085
      self._iprot.readMessageEnd()
2086
      raise x
2087
    result = getMonitoredWarehouseForVendors_result()
2088
    result.read(self._iprot)
2089
    self._iprot.readMessageEnd()
2090
    if result.success is not None:
2091
      return result.success
2092
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
2093
 
2094
  def getIgnoredWarehouseidsAndItemids(self, ):
2095
    self.send_getIgnoredWarehouseidsAndItemids()
2096
    return self.recv_getIgnoredWarehouseidsAndItemids()
2097
 
2098
  def send_getIgnoredWarehouseidsAndItemids(self, ):
2099
    self._oprot.writeMessageBegin('getIgnoredWarehouseidsAndItemids', TMessageType.CALL, self._seqid)
2100
    args = getIgnoredWarehouseidsAndItemids_args()
2101
    args.write(self._oprot)
2102
    self._oprot.writeMessageEnd()
2103
    self._oprot.trans.flush()
2104
 
2105
  def recv_getIgnoredWarehouseidsAndItemids(self, ):
2106
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2107
    if mtype == TMessageType.EXCEPTION:
2108
      x = TApplicationException()
2109
      x.read(self._iprot)
2110
      self._iprot.readMessageEnd()
2111
      raise x
2112
    result = getIgnoredWarehouseidsAndItemids_result()
2113
    result.read(self._iprot)
2114
    self._iprot.readMessageEnd()
2115
    if result.success is not None:
2116
      return result.success
2117
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
2118
 
2119
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2120
    """
2121
    Parameters:
2122
     - item_id
2123
     - warehouse_id
2124
    """
2125
    self.send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id)
2126
    return self.recv_insertItemtoIgnoreInventoryUpdatelist()
2127
 
2128
  def send_insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2129
    self._oprot.writeMessageBegin('insertItemtoIgnoreInventoryUpdatelist', TMessageType.CALL, self._seqid)
2130
    args = insertItemtoIgnoreInventoryUpdatelist_args()
2131
    args.item_id = item_id
2132
    args.warehouse_id = warehouse_id
2133
    args.write(self._oprot)
2134
    self._oprot.writeMessageEnd()
2135
    self._oprot.trans.flush()
2136
 
2137
  def recv_insertItemtoIgnoreInventoryUpdatelist(self, ):
2138
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2139
    if mtype == TMessageType.EXCEPTION:
2140
      x = TApplicationException()
2141
      x.read(self._iprot)
2142
      self._iprot.readMessageEnd()
2143
      raise x
2144
    result = insertItemtoIgnoreInventoryUpdatelist_result()
2145
    result.read(self._iprot)
2146
    self._iprot.readMessageEnd()
2147
    if result.success is not None:
2148
      return result.success
2149
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
2150
 
2151
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2152
    """
2153
    Parameters:
2154
     - item_id
2155
     - warehouse_id
2156
    """
2157
    self.send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id)
2158
    return self.recv_deleteItemFromIgnoredInventoryUpdateList()
2159
 
2160
  def send_deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2161
    self._oprot.writeMessageBegin('deleteItemFromIgnoredInventoryUpdateList', TMessageType.CALL, self._seqid)
2162
    args = deleteItemFromIgnoredInventoryUpdateList_args()
2163
    args.item_id = item_id
2164
    args.warehouse_id = warehouse_id
2165
    args.write(self._oprot)
2166
    self._oprot.writeMessageEnd()
2167
    self._oprot.trans.flush()
2168
 
2169
  def recv_deleteItemFromIgnoredInventoryUpdateList(self, ):
2170
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2171
    if mtype == TMessageType.EXCEPTION:
2172
      x = TApplicationException()
2173
      x.read(self._iprot)
2174
      self._iprot.readMessageEnd()
2175
      raise x
2176
    result = deleteItemFromIgnoredInventoryUpdateList_result()
2177
    result.read(self._iprot)
2178
    self._iprot.readMessageEnd()
2179
    if result.success is not None:
2180
      return result.success
2181
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
2182
 
2183
  def getAllIgnoredInventoryupdateItemsCount(self, ):
2184
    self.send_getAllIgnoredInventoryupdateItemsCount()
2185
    return self.recv_getAllIgnoredInventoryupdateItemsCount()
2186
 
2187
  def send_getAllIgnoredInventoryupdateItemsCount(self, ):
2188
    self._oprot.writeMessageBegin('getAllIgnoredInventoryupdateItemsCount', TMessageType.CALL, self._seqid)
2189
    args = getAllIgnoredInventoryupdateItemsCount_args()
2190
    args.write(self._oprot)
2191
    self._oprot.writeMessageEnd()
2192
    self._oprot.trans.flush()
2193
 
2194
  def recv_getAllIgnoredInventoryupdateItemsCount(self, ):
2195
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2196
    if mtype == TMessageType.EXCEPTION:
2197
      x = TApplicationException()
2198
      x.read(self._iprot)
2199
      self._iprot.readMessageEnd()
2200
      raise x
2201
    result = getAllIgnoredInventoryupdateItemsCount_result()
2202
    result.read(self._iprot)
2203
    self._iprot.readMessageEnd()
2204
    if result.success is not None:
2205
      return result.success
2206
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
2207
 
2208
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
2209
    """
2210
    Parameters:
2211
     - offset
2212
     - limit
2213
    """
2214
    self.send_getIgnoredInventoryUpdateItemids(offset, limit)
2215
    return self.recv_getIgnoredInventoryUpdateItemids()
2216
 
2217
  def send_getIgnoredInventoryUpdateItemids(self, offset, limit):
2218
    self._oprot.writeMessageBegin('getIgnoredInventoryUpdateItemids', TMessageType.CALL, self._seqid)
2219
    args = getIgnoredInventoryUpdateItemids_args()
2220
    args.offset = offset
2221
    args.limit = limit
2222
    args.write(self._oprot)
2223
    self._oprot.writeMessageEnd()
2224
    self._oprot.trans.flush()
2225
 
2226
  def recv_getIgnoredInventoryUpdateItemids(self, ):
2227
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2228
    if mtype == TMessageType.EXCEPTION:
2229
      x = TApplicationException()
2230
      x.read(self._iprot)
2231
      self._iprot.readMessageEnd()
2232
      raise x
2233
    result = getIgnoredInventoryUpdateItemids_result()
2234
    result.read(self._iprot)
2235
    self._iprot.readMessageEnd()
2236
    if result.success is not None:
2237
      return result.success
2238
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
2239
 
6821 amar.kumar 2240
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2241
    """
2242
    Parameters:
2243
     - item_id
2244
     - numOfDaysStock
2245
     - minStockLevel
2246
    """
2247
    self.send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel)
2248
    self.recv_updateItemStockPurchaseParams()
6531 vikram.rag 2249
 
6821 amar.kumar 2250
  def send_updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2251
    self._oprot.writeMessageBegin('updateItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2252
    args = updateItemStockPurchaseParams_args()
2253
    args.item_id = item_id
2254
    args.numOfDaysStock = numOfDaysStock
2255
    args.minStockLevel = minStockLevel
2256
    args.write(self._oprot)
2257
    self._oprot.writeMessageEnd()
2258
    self._oprot.trans.flush()
2259
 
2260
  def recv_updateItemStockPurchaseParams(self, ):
2261
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2262
    if mtype == TMessageType.EXCEPTION:
2263
      x = TApplicationException()
2264
      x.read(self._iprot)
2265
      self._iprot.readMessageEnd()
2266
      raise x
2267
    result = updateItemStockPurchaseParams_result()
2268
    result.read(self._iprot)
2269
    self._iprot.readMessageEnd()
2270
    return
2271
 
2272
  def getItemStockPurchaseParams(self, itemId):
2273
    """
2274
    Parameters:
2275
     - itemId
2276
    """
2277
    self.send_getItemStockPurchaseParams(itemId)
2278
    return self.recv_getItemStockPurchaseParams()
2279
 
2280
  def send_getItemStockPurchaseParams(self, itemId):
2281
    self._oprot.writeMessageBegin('getItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2282
    args = getItemStockPurchaseParams_args()
2283
    args.itemId = itemId
2284
    args.write(self._oprot)
2285
    self._oprot.writeMessageEnd()
2286
    self._oprot.trans.flush()
2287
 
2288
  def recv_getItemStockPurchaseParams(self, ):
2289
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2290
    if mtype == TMessageType.EXCEPTION:
2291
      x = TApplicationException()
2292
      x.read(self._iprot)
2293
      self._iprot.readMessageEnd()
2294
      raise x
2295
    result = getItemStockPurchaseParams_result()
2296
    result.read(self._iprot)
2297
    self._iprot.readMessageEnd()
2298
    if result.success is not None:
2299
      return result.success
2300
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
2301
 
2302
  def addOosStatusForItem(self, oosStatusMap, date):
2303
    """
2304
    Parameters:
2305
     - oosStatusMap
2306
     - date
2307
    """
2308
    self.send_addOosStatusForItem(oosStatusMap, date)
2309
    self.recv_addOosStatusForItem()
2310
 
2311
  def send_addOosStatusForItem(self, oosStatusMap, date):
2312
    self._oprot.writeMessageBegin('addOosStatusForItem', TMessageType.CALL, self._seqid)
2313
    args = addOosStatusForItem_args()
2314
    args.oosStatusMap = oosStatusMap
2315
    args.date = date
2316
    args.write(self._oprot)
2317
    self._oprot.writeMessageEnd()
2318
    self._oprot.trans.flush()
2319
 
2320
  def recv_addOosStatusForItem(self, ):
2321
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2322
    if mtype == TMessageType.EXCEPTION:
2323
      x = TApplicationException()
2324
      x.read(self._iprot)
2325
      self._iprot.readMessageEnd()
2326
      raise x
2327
    result = addOosStatusForItem_result()
2328
    result.read(self._iprot)
2329
    self._iprot.readMessageEnd()
2330
    return
2331
 
9762 amar.kumar 2332
  def getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2333
    """
2334
    Parameters:
2335
     - itemId
9762 amar.kumar 2336
     - sourceId
6832 amar.kumar 2337
     - days
2338
    """
9762 amar.kumar 2339
    self.send_getOosStatusesForXDaysForItem(itemId, sourceId, days)
6832 amar.kumar 2340
    return self.recv_getOosStatusesForXDaysForItem()
6821 amar.kumar 2341
 
9762 amar.kumar 2342
  def send_getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2343
    self._oprot.writeMessageBegin('getOosStatusesForXDaysForItem', TMessageType.CALL, self._seqid)
2344
    args = getOosStatusesForXDaysForItem_args()
2345
    args.itemId = itemId
9762 amar.kumar 2346
    args.sourceId = sourceId
6832 amar.kumar 2347
    args.days = days
2348
    args.write(self._oprot)
2349
    self._oprot.writeMessageEnd()
2350
    self._oprot.trans.flush()
2351
 
2352
  def recv_getOosStatusesForXDaysForItem(self, ):
2353
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2354
    if mtype == TMessageType.EXCEPTION:
2355
      x = TApplicationException()
2356
      x.read(self._iprot)
2357
      self._iprot.readMessageEnd()
2358
      raise x
2359
    result = getOosStatusesForXDaysForItem_result()
2360
    result.read(self._iprot)
2361
    self._iprot.readMessageEnd()
2362
    if result.success is not None:
2363
      return result.success
2364
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
2365
 
10126 amar.kumar 2366
  def getOosStatusesForXDays(self, sourceId, days):
2367
    """
2368
    Parameters:
2369
     - sourceId
2370
     - days
2371
    """
2372
    self.send_getOosStatusesForXDays(sourceId, days)
2373
    return self.recv_getOosStatusesForXDays()
2374
 
2375
  def send_getOosStatusesForXDays(self, sourceId, days):
2376
    self._oprot.writeMessageBegin('getOosStatusesForXDays', TMessageType.CALL, self._seqid)
2377
    args = getOosStatusesForXDays_args()
2378
    args.sourceId = sourceId
2379
    args.days = days
2380
    args.write(self._oprot)
2381
    self._oprot.writeMessageEnd()
2382
    self._oprot.trans.flush()
2383
 
2384
  def recv_getOosStatusesForXDays(self, ):
2385
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2386
    if mtype == TMessageType.EXCEPTION:
2387
      x = TApplicationException()
2388
      x.read(self._iprot)
2389
      self._iprot.readMessageEnd()
2390
      raise x
2391
    result = getOosStatusesForXDays_result()
2392
    result.read(self._iprot)
2393
    self._iprot.readMessageEnd()
2394
    if result.success is not None:
2395
      return result.success
2396
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDays failed: unknown result");
2397
 
2398
  def getAllVendorItemPricing(self, itemId, vendorId):
2399
    """
2400
    Parameters:
2401
     - itemId
2402
     - vendorId
2403
    """
2404
    self.send_getAllVendorItemPricing(itemId, vendorId)
2405
    return self.recv_getAllVendorItemPricing()
2406
 
2407
  def send_getAllVendorItemPricing(self, itemId, vendorId):
2408
    self._oprot.writeMessageBegin('getAllVendorItemPricing', TMessageType.CALL, self._seqid)
2409
    args = getAllVendorItemPricing_args()
2410
    args.itemId = itemId
2411
    args.vendorId = vendorId
2412
    args.write(self._oprot)
2413
    self._oprot.writeMessageEnd()
2414
    self._oprot.trans.flush()
2415
 
2416
  def recv_getAllVendorItemPricing(self, ):
2417
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2418
    if mtype == TMessageType.EXCEPTION:
2419
      x = TApplicationException()
2420
      x.read(self._iprot)
2421
      self._iprot.readMessageEnd()
2422
      raise x
2423
    result = getAllVendorItemPricing_result()
2424
    result.read(self._iprot)
2425
    self._iprot.readMessageEnd()
2426
    if result.success is not None:
2427
      return result.success
2428
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemPricing failed: unknown result");
2429
 
6857 amar.kumar 2430
  def getNonZeroItemStockPurchaseParams(self, ):
2431
    self.send_getNonZeroItemStockPurchaseParams()
2432
    return self.recv_getNonZeroItemStockPurchaseParams()
6832 amar.kumar 2433
 
6857 amar.kumar 2434
  def send_getNonZeroItemStockPurchaseParams(self, ):
2435
    self._oprot.writeMessageBegin('getNonZeroItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2436
    args = getNonZeroItemStockPurchaseParams_args()
2437
    args.write(self._oprot)
2438
    self._oprot.writeMessageEnd()
2439
    self._oprot.trans.flush()
2440
 
2441
  def recv_getNonZeroItemStockPurchaseParams(self, ):
2442
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2443
    if mtype == TMessageType.EXCEPTION:
2444
      x = TApplicationException()
2445
      x.read(self._iprot)
2446
      self._iprot.readMessageEnd()
2447
      raise x
2448
    result = getNonZeroItemStockPurchaseParams_result()
2449
    result.read(self._iprot)
2450
    self._iprot.readMessageEnd()
2451
    if result.success is not None:
2452
      return result.success
2453
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
2454
 
7149 amar.kumar 2455
  def getBillableInventoryAndPendingOrders(self, ):
2456
    """
2457
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
2458
    """
2459
    self.send_getBillableInventoryAndPendingOrders()
2460
    return self.recv_getBillableInventoryAndPendingOrders()
6857 amar.kumar 2461
 
7149 amar.kumar 2462
  def send_getBillableInventoryAndPendingOrders(self, ):
2463
    self._oprot.writeMessageBegin('getBillableInventoryAndPendingOrders', TMessageType.CALL, self._seqid)
2464
    args = getBillableInventoryAndPendingOrders_args()
2465
    args.write(self._oprot)
2466
    self._oprot.writeMessageEnd()
2467
    self._oprot.trans.flush()
2468
 
2469
  def recv_getBillableInventoryAndPendingOrders(self, ):
2470
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2471
    if mtype == TMessageType.EXCEPTION:
2472
      x = TApplicationException()
2473
      x.read(self._iprot)
2474
      self._iprot.readMessageEnd()
2475
      raise x
2476
    result = getBillableInventoryAndPendingOrders_result()
2477
    result.read(self._iprot)
2478
    self._iprot.readMessageEnd()
2479
    if result.success is not None:
2480
      return result.success
2481
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
2482
 
7281 kshitij.so 2483
  def getWarehouseName(self, warehouse_id):
2484
    """
2485
    Parameters:
2486
     - warehouse_id
2487
    """
2488
    self.send_getWarehouseName(warehouse_id)
2489
    return self.recv_getWarehouseName()
7149 amar.kumar 2490
 
7281 kshitij.so 2491
  def send_getWarehouseName(self, warehouse_id):
2492
    self._oprot.writeMessageBegin('getWarehouseName', TMessageType.CALL, self._seqid)
2493
    args = getWarehouseName_args()
2494
    args.warehouse_id = warehouse_id
2495
    args.write(self._oprot)
2496
    self._oprot.writeMessageEnd()
2497
    self._oprot.trans.flush()
2498
 
2499
  def recv_getWarehouseName(self, ):
2500
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2501
    if mtype == TMessageType.EXCEPTION:
2502
      x = TApplicationException()
2503
      x.read(self._iprot)
2504
      self._iprot.readMessageEnd()
2505
      raise x
2506
    result = getWarehouseName_result()
2507
    result.read(self._iprot)
2508
    self._iprot.readMessageEnd()
2509
    if result.success is not None:
2510
      return result.success
2511
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseName failed: unknown result");
2512
 
2513
  def getAmazonInventoryForItem(self, item_id):
2514
    """
2515
    Parameters:
2516
     - item_id
2517
    """
2518
    self.send_getAmazonInventoryForItem(item_id)
2519
    return self.recv_getAmazonInventoryForItem()
2520
 
2521
  def send_getAmazonInventoryForItem(self, item_id):
2522
    self._oprot.writeMessageBegin('getAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2523
    args = getAmazonInventoryForItem_args()
2524
    args.item_id = item_id
2525
    args.write(self._oprot)
2526
    self._oprot.writeMessageEnd()
2527
    self._oprot.trans.flush()
2528
 
2529
  def recv_getAmazonInventoryForItem(self, ):
2530
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2531
    if mtype == TMessageType.EXCEPTION:
2532
      x = TApplicationException()
2533
      x.read(self._iprot)
2534
      self._iprot.readMessageEnd()
2535
      raise x
2536
    result = getAmazonInventoryForItem_result()
2537
    result.read(self._iprot)
2538
    self._iprot.readMessageEnd()
2539
    if result.success is not None:
2540
      return result.success
2541
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonInventoryForItem failed: unknown result");
2542
 
2543
  def getAllAmazonInventory(self, ):
2544
    self.send_getAllAmazonInventory()
2545
    return self.recv_getAllAmazonInventory()
2546
 
2547
  def send_getAllAmazonInventory(self, ):
2548
    self._oprot.writeMessageBegin('getAllAmazonInventory', TMessageType.CALL, self._seqid)
2549
    args = getAllAmazonInventory_args()
2550
    args.write(self._oprot)
2551
    self._oprot.writeMessageEnd()
2552
    self._oprot.trans.flush()
2553
 
2554
  def recv_getAllAmazonInventory(self, ):
2555
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2556
    if mtype == TMessageType.EXCEPTION:
2557
      x = TApplicationException()
2558
      x.read(self._iprot)
2559
      self._iprot.readMessageEnd()
2560
      raise x
2561
    result = getAllAmazonInventory_result()
2562
    result.read(self._iprot)
2563
    self._iprot.readMessageEnd()
2564
    if result.success is not None:
2565
      return result.success
2566
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonInventory failed: unknown result");
2567
 
10450 vikram.rag 2568
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot, time):
7281 kshitij.so 2569
    """
2570
    Parameters:
2571
     - amazonInventorySnapshot
10450 vikram.rag 2572
     - time
7281 kshitij.so 2573
    """
10450 vikram.rag 2574
    self.send_addOrUpdateAmazonInventoryForItem(amazonInventorySnapshot, time)
7281 kshitij.so 2575
    self.recv_addOrUpdateAmazonInventoryForItem()
2576
 
10450 vikram.rag 2577
  def send_addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot, time):
7281 kshitij.so 2578
    self._oprot.writeMessageBegin('addOrUpdateAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2579
    args = addOrUpdateAmazonInventoryForItem_args()
2580
    args.amazonInventorySnapshot = amazonInventorySnapshot
10450 vikram.rag 2581
    args.time = time
7281 kshitij.so 2582
    args.write(self._oprot)
2583
    self._oprot.writeMessageEnd()
2584
    self._oprot.trans.flush()
2585
 
2586
  def recv_addOrUpdateAmazonInventoryForItem(self, ):
2587
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2588
    if mtype == TMessageType.EXCEPTION:
2589
      x = TApplicationException()
2590
      x.read(self._iprot)
2591
      self._iprot.readMessageEnd()
2592
      raise x
2593
    result = addOrUpdateAmazonInventoryForItem_result()
2594
    result.read(self._iprot)
2595
    self._iprot.readMessageEnd()
2596
    return
2597
 
7972 amar.kumar 2598
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
2599
    """
2600
    Parameters:
2601
     - itemId
2602
     - numberOfDays
2603
    """
2604
    self.send_getLastNdaySaleForItem(itemId, numberOfDays)
2605
    return self.recv_getLastNdaySaleForItem()
7281 kshitij.so 2606
 
7972 amar.kumar 2607
  def send_getLastNdaySaleForItem(self, itemId, numberOfDays):
2608
    self._oprot.writeMessageBegin('getLastNdaySaleForItem', TMessageType.CALL, self._seqid)
2609
    args = getLastNdaySaleForItem_args()
2610
    args.itemId = itemId
2611
    args.numberOfDays = numberOfDays
2612
    args.write(self._oprot)
2613
    self._oprot.writeMessageEnd()
2614
    self._oprot.trans.flush()
2615
 
2616
  def recv_getLastNdaySaleForItem(self, ):
2617
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2618
    if mtype == TMessageType.EXCEPTION:
2619
      x = TApplicationException()
2620
      x.read(self._iprot)
2621
      self._iprot.readMessageEnd()
2622
      raise x
2623
    result = getLastNdaySaleForItem_result()
2624
    result.read(self._iprot)
2625
    self._iprot.readMessageEnd()
2626
    if result.success is not None:
2627
      return result.success
2628
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastNdaySaleForItem failed: unknown result");
2629
 
8282 kshitij.so 2630
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2631
    """
2632
    Parameters:
2633
     - amazonfbainventorysnapshot
2634
    """
2635
    self.send_addOrUpdateAmazonFbaInventory(amazonfbainventorysnapshot)
2636
    self.recv_addOrUpdateAmazonFbaInventory()
2637
 
2638
  def send_addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2639
    self._oprot.writeMessageBegin('addOrUpdateAmazonFbaInventory', TMessageType.CALL, self._seqid)
2640
    args = addOrUpdateAmazonFbaInventory_args()
2641
    args.amazonfbainventorysnapshot = amazonfbainventorysnapshot
2642
    args.write(self._oprot)
2643
    self._oprot.writeMessageEnd()
2644
    self._oprot.trans.flush()
2645
 
2646
  def recv_addOrUpdateAmazonFbaInventory(self, ):
2647
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2648
    if mtype == TMessageType.EXCEPTION:
2649
      x = TApplicationException()
2650
      x.read(self._iprot)
2651
      self._iprot.readMessageEnd()
2652
      raise x
2653
    result = addOrUpdateAmazonFbaInventory_result()
2654
    result.read(self._iprot)
2655
    self._iprot.readMessageEnd()
2656
    return
2657
 
8182 amar.kumar 2658
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2659
    """
2660
    Parameters:
2661
     - itemId
2662
     - warehouseId
2663
     - holdQuantity
2664
     - source
2665
    """
2666
    self.send_addUpdateHoldInventory(itemId, warehouseId, holdQuantity, source)
2667
    self.recv_addUpdateHoldInventory()
7972 amar.kumar 2668
 
8182 amar.kumar 2669
  def send_addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2670
    self._oprot.writeMessageBegin('addUpdateHoldInventory', TMessageType.CALL, self._seqid)
2671
    args = addUpdateHoldInventory_args()
2672
    args.itemId = itemId
2673
    args.warehouseId = warehouseId
2674
    args.holdQuantity = holdQuantity
2675
    args.source = source
2676
    args.write(self._oprot)
2677
    self._oprot.writeMessageEnd()
2678
    self._oprot.trans.flush()
2679
 
2680
  def recv_addUpdateHoldInventory(self, ):
2681
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2682
    if mtype == TMessageType.EXCEPTION:
2683
      x = TApplicationException()
2684
      x.read(self._iprot)
2685
      self._iprot.readMessageEnd()
2686
      raise x
2687
    result = addUpdateHoldInventory_result()
2688
    result.read(self._iprot)
2689
    self._iprot.readMessageEnd()
9762 amar.kumar 2690
    if result.cex is not None:
2691
      raise result.cex
8182 amar.kumar 2692
    return
2693
 
8282 kshitij.so 2694
  def getAmazonFbaItemInventory(self, itemId):
2695
    """
2696
    Parameters:
2697
     - itemId
2698
    """
2699
    self.send_getAmazonFbaItemInventory(itemId)
2700
    return self.recv_getAmazonFbaItemInventory()
8182 amar.kumar 2701
 
8282 kshitij.so 2702
  def send_getAmazonFbaItemInventory(self, itemId):
2703
    self._oprot.writeMessageBegin('getAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2704
    args = getAmazonFbaItemInventory_args()
2705
    args.itemId = itemId
2706
    args.write(self._oprot)
2707
    self._oprot.writeMessageEnd()
2708
    self._oprot.trans.flush()
2709
 
2710
  def recv_getAmazonFbaItemInventory(self, ):
2711
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2712
    if mtype == TMessageType.EXCEPTION:
2713
      x = TApplicationException()
2714
      x.read(self._iprot)
2715
      self._iprot.readMessageEnd()
2716
      raise x
2717
    result = getAmazonFbaItemInventory_result()
2718
    result.read(self._iprot)
2719
    self._iprot.readMessageEnd()
2720
    if result.success is not None:
2721
      return result.success
2722
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonFbaItemInventory failed: unknown result");
2723
 
8363 vikram.rag 2724
  def getAllAmazonFbaItemInventory(self, ):
2725
    self.send_getAllAmazonFbaItemInventory()
2726
    return self.recv_getAllAmazonFbaItemInventory()
8282 kshitij.so 2727
 
8363 vikram.rag 2728
  def send_getAllAmazonFbaItemInventory(self, ):
2729
    self._oprot.writeMessageBegin('getAllAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2730
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 2731
    args.write(self._oprot)
2732
    self._oprot.writeMessageEnd()
2733
    self._oprot.trans.flush()
2734
 
8363 vikram.rag 2735
  def recv_getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 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
8363 vikram.rag 2742
    result = getAllAmazonFbaItemInventory_result()
8282 kshitij.so 2743
    result.read(self._iprot)
2744
    self._iprot.readMessageEnd()
2745
    if result.success is not None:
2746
      return result.success
8363 vikram.rag 2747
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonFbaItemInventory failed: unknown result");
8282 kshitij.so 2748
 
8363 vikram.rag 2749
  def getOursGoodWarehouseIdsForLocation(self, state_id):
2750
    """
2751
    Parameters:
2752
     - state_id
2753
    """
2754
    self.send_getOursGoodWarehouseIdsForLocation(state_id)
2755
    return self.recv_getOursGoodWarehouseIdsForLocation()
8282 kshitij.so 2756
 
8363 vikram.rag 2757
  def send_getOursGoodWarehouseIdsForLocation(self, state_id):
2758
    self._oprot.writeMessageBegin('getOursGoodWarehouseIdsForLocation', TMessageType.CALL, self._seqid)
2759
    args = getOursGoodWarehouseIdsForLocation_args()
2760
    args.state_id = state_id
2761
    args.write(self._oprot)
2762
    self._oprot.writeMessageEnd()
2763
    self._oprot.trans.flush()
2764
 
2765
  def recv_getOursGoodWarehouseIdsForLocation(self, ):
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
2772
    result = getOursGoodWarehouseIdsForLocation_result()
2773
    result.read(self._iprot)
2774
    self._iprot.readMessageEnd()
2775
    if result.success is not None:
2776
      return result.success
2777
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOursGoodWarehouseIdsForLocation failed: unknown result");
2778
 
8955 vikram.rag 2779
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2780
    """
2781
    Parameters:
2782
     - id
2783
     - warehouse_id
2784
     - source
2785
    """
2786
    self.send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(id, warehouse_id, source)
2787
    return self.recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource()
8363 vikram.rag 2788
 
8955 vikram.rag 2789
  def send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2790
    self._oprot.writeMessageBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource', TMessageType.CALL, self._seqid)
2791
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
2792
    args.id = id
2793
    args.warehouse_id = warehouse_id
2794
    args.source = source
2795
    args.write(self._oprot)
2796
    self._oprot.writeMessageEnd()
2797
    self._oprot.trans.flush()
2798
 
2799
  def recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, ):
2800
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2801
    if mtype == TMessageType.EXCEPTION:
2802
      x = TApplicationException()
2803
      x.read(self._iprot)
2804
      self._iprot.readMessageEnd()
2805
      raise x
2806
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
2807
    result.read(self._iprot)
2808
    self._iprot.readMessageEnd()
2809
    if result.success is not None:
2810
      return result.success
2811
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetailForItemForWarehouseIdExceptSource failed: unknown result");
2812
 
9404 vikram.rag 2813
  def getSnapdealInventoryForItem(self, item_id):
2814
    """
2815
    Parameters:
2816
     - item_id
2817
    """
2818
    self.send_getSnapdealInventoryForItem(item_id)
2819
    return self.recv_getSnapdealInventoryForItem()
8955 vikram.rag 2820
 
9404 vikram.rag 2821
  def send_getSnapdealInventoryForItem(self, item_id):
2822
    self._oprot.writeMessageBegin('getSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2823
    args = getSnapdealInventoryForItem_args()
2824
    args.item_id = item_id
2825
    args.write(self._oprot)
2826
    self._oprot.writeMessageEnd()
2827
    self._oprot.trans.flush()
2828
 
2829
  def recv_getSnapdealInventoryForItem(self, ):
2830
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2831
    if mtype == TMessageType.EXCEPTION:
2832
      x = TApplicationException()
2833
      x.read(self._iprot)
2834
      self._iprot.readMessageEnd()
2835
      raise x
2836
    result = getSnapdealInventoryForItem_result()
2837
    result.read(self._iprot)
2838
    self._iprot.readMessageEnd()
2839
    if result.success is not None:
2840
      return result.success
2841
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventoryForItem failed: unknown result");
2842
 
2843
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2844
    """
2845
    Parameters:
2846
     - snapdealinventoryitem
2847
    """
2848
    self.send_addOrUpdateSnapdealInventoryForItem(snapdealinventoryitem)
2849
    self.recv_addOrUpdateSnapdealInventoryForItem()
2850
 
2851
  def send_addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2852
    self._oprot.writeMessageBegin('addOrUpdateSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2853
    args = addOrUpdateSnapdealInventoryForItem_args()
2854
    args.snapdealinventoryitem = snapdealinventoryitem
2855
    args.write(self._oprot)
2856
    self._oprot.writeMessageEnd()
2857
    self._oprot.trans.flush()
2858
 
2859
  def recv_addOrUpdateSnapdealInventoryForItem(self, ):
2860
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2861
    if mtype == TMessageType.EXCEPTION:
2862
      x = TApplicationException()
2863
      x.read(self._iprot)
2864
      self._iprot.readMessageEnd()
2865
      raise x
2866
    result = addOrUpdateSnapdealInventoryForItem_result()
2867
    result.read(self._iprot)
2868
    self._iprot.readMessageEnd()
2869
    return
2870
 
2871
  def getNlcForWarehouse(self, warehouse_id, item_id):
2872
    """
2873
    Parameters:
2874
     - warehouse_id
2875
     - item_id
2876
    """
2877
    self.send_getNlcForWarehouse(warehouse_id, item_id)
2878
    return self.recv_getNlcForWarehouse()
2879
 
2880
  def send_getNlcForWarehouse(self, warehouse_id, item_id):
2881
    self._oprot.writeMessageBegin('getNlcForWarehouse', TMessageType.CALL, self._seqid)
2882
    args = getNlcForWarehouse_args()
2883
    args.warehouse_id = warehouse_id
2884
    args.item_id = item_id
2885
    args.write(self._oprot)
2886
    self._oprot.writeMessageEnd()
2887
    self._oprot.trans.flush()
2888
 
2889
  def recv_getNlcForWarehouse(self, ):
2890
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2891
    if mtype == TMessageType.EXCEPTION:
2892
      x = TApplicationException()
2893
      x.read(self._iprot)
2894
      self._iprot.readMessageEnd()
2895
      raise x
2896
    result = getNlcForWarehouse_result()
2897
    result.read(self._iprot)
2898
    self._iprot.readMessageEnd()
2899
    if result.success is not None:
2900
      return result.success
2901
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
2902
 
9640 amar.kumar 2903
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
2904
    """
2905
    Parameters:
2906
     - item_id
2907
     - warehouse_id
2908
    """
2909
    self.send_getHeldInventoryMapForItem(item_id, warehouse_id)
2910
    return self.recv_getHeldInventoryMapForItem()
2911
 
2912
  def send_getHeldInventoryMapForItem(self, item_id, warehouse_id):
2913
    self._oprot.writeMessageBegin('getHeldInventoryMapForItem', TMessageType.CALL, self._seqid)
2914
    args = getHeldInventoryMapForItem_args()
2915
    args.item_id = item_id
2916
    args.warehouse_id = warehouse_id
2917
    args.write(self._oprot)
2918
    self._oprot.writeMessageEnd()
2919
    self._oprot.trans.flush()
2920
 
2921
  def recv_getHeldInventoryMapForItem(self, ):
2922
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2923
    if mtype == TMessageType.EXCEPTION:
2924
      x = TApplicationException()
2925
      x.read(self._iprot)
2926
      self._iprot.readMessageEnd()
2927
      raise x
2928
    result = getHeldInventoryMapForItem_result()
2929
    result.read(self._iprot)
2930
    self._iprot.readMessageEnd()
2931
    if result.success is not None:
2932
      return result.success
2933
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHeldInventoryMapForItem failed: unknown result");
2934
 
9495 vikram.rag 2935
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2936
    """
2937
    Parameters:
2938
     - allamazonfbainventorysnapshot
2939
    """
2940
    self.send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot)
2941
    self.recv_addOrUpdateAllAmazonFbaInventory()
9404 vikram.rag 2942
 
9495 vikram.rag 2943
  def send_addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2944
    self._oprot.writeMessageBegin('addOrUpdateAllAmazonFbaInventory', TMessageType.CALL, self._seqid)
2945
    args = addOrUpdateAllAmazonFbaInventory_args()
2946
    args.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 2947
    args.write(self._oprot)
2948
    self._oprot.writeMessageEnd()
2949
    self._oprot.trans.flush()
2950
 
9495 vikram.rag 2951
  def recv_addOrUpdateAllAmazonFbaInventory(self, ):
9456 vikram.rag 2952
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2953
    if mtype == TMessageType.EXCEPTION:
2954
      x = TApplicationException()
2955
      x.read(self._iprot)
2956
      self._iprot.readMessageEnd()
2957
      raise x
9495 vikram.rag 2958
    result = addOrUpdateAllAmazonFbaInventory_result()
9456 vikram.rag 2959
    result.read(self._iprot)
2960
    self._iprot.readMessageEnd()
9495 vikram.rag 2961
    return
9456 vikram.rag 2962
 
9495 vikram.rag 2963
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
9482 vikram.rag 2964
    """
2965
    Parameters:
9495 vikram.rag 2966
     - allsnapdealinventorysnapshot
9482 vikram.rag 2967
    """
9495 vikram.rag 2968
    self.send_addOrUpdateAllSnapdealInventory(allsnapdealinventorysnapshot)
2969
    self.recv_addOrUpdateAllSnapdealInventory()
9456 vikram.rag 2970
 
9495 vikram.rag 2971
  def send_addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
2972
    self._oprot.writeMessageBegin('addOrUpdateAllSnapdealInventory', TMessageType.CALL, self._seqid)
2973
    args = addOrUpdateAllSnapdealInventory_args()
2974
    args.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 2975
    args.write(self._oprot)
2976
    self._oprot.writeMessageEnd()
2977
    self._oprot.trans.flush()
2978
 
9495 vikram.rag 2979
  def recv_addOrUpdateAllSnapdealInventory(self, ):
9482 vikram.rag 2980
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2981
    if mtype == TMessageType.EXCEPTION:
2982
      x = TApplicationException()
2983
      x.read(self._iprot)
2984
      self._iprot.readMessageEnd()
2985
      raise x
9495 vikram.rag 2986
    result = addOrUpdateAllSnapdealInventory_result()
9482 vikram.rag 2987
    result.read(self._iprot)
2988
    self._iprot.readMessageEnd()
2989
    return
2990
 
9495 vikram.rag 2991
  def getSnapdealInventorySnapshot(self, ):
2992
    self.send_getSnapdealInventorySnapshot()
2993
    return self.recv_getSnapdealInventorySnapshot()
9482 vikram.rag 2994
 
9495 vikram.rag 2995
  def send_getSnapdealInventorySnapshot(self, ):
2996
    self._oprot.writeMessageBegin('getSnapdealInventorySnapshot', TMessageType.CALL, self._seqid)
2997
    args = getSnapdealInventorySnapshot_args()
2998
    args.write(self._oprot)
2999
    self._oprot.writeMessageEnd()
3000
    self._oprot.trans.flush()
3001
 
3002
  def recv_getSnapdealInventorySnapshot(self, ):
3003
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3004
    if mtype == TMessageType.EXCEPTION:
3005
      x = TApplicationException()
3006
      x.read(self._iprot)
3007
      self._iprot.readMessageEnd()
3008
      raise x
3009
    result = getSnapdealInventorySnapshot_result()
3010
    result.read(self._iprot)
3011
    self._iprot.readMessageEnd()
3012
    if result.success is not None:
3013
      return result.success
3014
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventorySnapshot failed: unknown result");
3015
 
9761 amar.kumar 3016
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
3017
    """
3018
    Parameters:
3019
     - itemId
3020
     - warehouseId
3021
     - source
3022
    """
3023
    self.send_getHoldInventoryDetails(itemId, warehouseId, source)
3024
    return self.recv_getHoldInventoryDetails()
9495 vikram.rag 3025
 
9761 amar.kumar 3026
  def send_getHoldInventoryDetails(self, itemId, warehouseId, source):
3027
    self._oprot.writeMessageBegin('getHoldInventoryDetails', TMessageType.CALL, self._seqid)
3028
    args = getHoldInventoryDetails_args()
3029
    args.itemId = itemId
3030
    args.warehouseId = warehouseId
3031
    args.source = source
3032
    args.write(self._oprot)
3033
    self._oprot.writeMessageEnd()
3034
    self._oprot.trans.flush()
3035
 
3036
  def recv_getHoldInventoryDetails(self, ):
3037
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3038
    if mtype == TMessageType.EXCEPTION:
3039
      x = TApplicationException()
3040
      x.read(self._iprot)
3041
      self._iprot.readMessageEnd()
3042
      raise x
3043
    result = getHoldInventoryDetails_result()
3044
    result.read(self._iprot)
3045
    self._iprot.readMessageEnd()
3046
    if result.success is not None:
3047
      return result.success
3048
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetails failed: unknown result");
3049
 
10450 vikram.rag 3050
  def addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot, time):
10050 vikram.rag 3051
    """
3052
    Parameters:
3053
     - flipkartInventorySnapshot
10450 vikram.rag 3054
     - time
10050 vikram.rag 3055
    """
10450 vikram.rag 3056
    self.send_addOrUpdateFlipkartInventorySnapshot(flipkartInventorySnapshot, time)
10050 vikram.rag 3057
    self.recv_addOrUpdateFlipkartInventorySnapshot()
9761 amar.kumar 3058
 
10450 vikram.rag 3059
  def send_addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot, time):
10050 vikram.rag 3060
    self._oprot.writeMessageBegin('addOrUpdateFlipkartInventorySnapshot', TMessageType.CALL, self._seqid)
3061
    args = addOrUpdateFlipkartInventorySnapshot_args()
3062
    args.flipkartInventorySnapshot = flipkartInventorySnapshot
10450 vikram.rag 3063
    args.time = time
10050 vikram.rag 3064
    args.write(self._oprot)
3065
    self._oprot.writeMessageEnd()
3066
    self._oprot.trans.flush()
3067
 
3068
  def recv_addOrUpdateFlipkartInventorySnapshot(self, ):
3069
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3070
    if mtype == TMessageType.EXCEPTION:
3071
      x = TApplicationException()
3072
      x.read(self._iprot)
3073
      self._iprot.readMessageEnd()
3074
      raise x
3075
    result = addOrUpdateFlipkartInventorySnapshot_result()
3076
    result.read(self._iprot)
3077
    self._iprot.readMessageEnd()
3078
    return
3079
 
3080
  def getFlipkartInventorySnapshot(self, ):
3081
    self.send_getFlipkartInventorySnapshot()
3082
    return self.recv_getFlipkartInventorySnapshot()
3083
 
3084
  def send_getFlipkartInventorySnapshot(self, ):
3085
    self._oprot.writeMessageBegin('getFlipkartInventorySnapshot', TMessageType.CALL, self._seqid)
3086
    args = getFlipkartInventorySnapshot_args()
3087
    args.write(self._oprot)
3088
    self._oprot.writeMessageEnd()
3089
    self._oprot.trans.flush()
3090
 
3091
  def recv_getFlipkartInventorySnapshot(self, ):
3092
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3093
    if mtype == TMessageType.EXCEPTION:
3094
      x = TApplicationException()
3095
      x.read(self._iprot)
3096
      self._iprot.readMessageEnd()
3097
      raise x
3098
    result = getFlipkartInventorySnapshot_result()
3099
    result.read(self._iprot)
3100
    self._iprot.readMessageEnd()
3101
    if result.success is not None:
3102
      return result.success
3103
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartInventorySnapshot failed: unknown result");
3104
 
10097 kshitij.so 3105
  def getFlipkartlInventoryForItem(self, item_id):
3106
    """
3107
    Parameters:
3108
     - item_id
3109
    """
3110
    self.send_getFlipkartlInventoryForItem(item_id)
3111
    return self.recv_getFlipkartlInventoryForItem()
10050 vikram.rag 3112
 
10097 kshitij.so 3113
  def send_getFlipkartlInventoryForItem(self, item_id):
3114
    self._oprot.writeMessageBegin('getFlipkartlInventoryForItem', TMessageType.CALL, self._seqid)
3115
    args = getFlipkartlInventoryForItem_args()
3116
    args.item_id = item_id
3117
    args.write(self._oprot)
3118
    self._oprot.writeMessageEnd()
3119
    self._oprot.trans.flush()
3120
 
3121
  def recv_getFlipkartlInventoryForItem(self, ):
3122
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3123
    if mtype == TMessageType.EXCEPTION:
3124
      x = TApplicationException()
3125
      x.read(self._iprot)
3126
      self._iprot.readMessageEnd()
3127
      raise x
3128
    result = getFlipkartlInventoryForItem_result()
3129
    result.read(self._iprot)
3130
    self._iprot.readMessageEnd()
3131
    if result.success is not None:
3132
      return result.success
3133
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartlInventoryForItem failed: unknown result");
3134
 
10485 vikram.rag 3135
  def getStateMaster(self, ):
3136
    self.send_getStateMaster()
3137
    return self.recv_getStateMaster()
10097 kshitij.so 3138
 
10485 vikram.rag 3139
  def send_getStateMaster(self, ):
3140
    self._oprot.writeMessageBegin('getStateMaster', TMessageType.CALL, self._seqid)
3141
    args = getStateMaster_args()
3142
    args.write(self._oprot)
3143
    self._oprot.writeMessageEnd()
3144
    self._oprot.trans.flush()
3145
 
3146
  def recv_getStateMaster(self, ):
3147
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3148
    if mtype == TMessageType.EXCEPTION:
3149
      x = TApplicationException()
3150
      x.read(self._iprot)
3151
      self._iprot.readMessageEnd()
3152
      raise x
3153
    result = getStateMaster_result()
3154
    result.read(self._iprot)
3155
    self._iprot.readMessageEnd()
3156
    if result.success is not None:
3157
      return result.success
3158
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStateMaster failed: unknown result");
3159
 
10544 vikram.rag 3160
  def updateSnapdealStockAtEOD(self, allsnapdealstock):
3161
    """
3162
    Parameters:
3163
     - allsnapdealstock
3164
    """
3165
    self.send_updateSnapdealStockAtEOD(allsnapdealstock)
3166
    self.recv_updateSnapdealStockAtEOD()
10485 vikram.rag 3167
 
10544 vikram.rag 3168
  def send_updateSnapdealStockAtEOD(self, allsnapdealstock):
3169
    self._oprot.writeMessageBegin('updateSnapdealStockAtEOD', TMessageType.CALL, self._seqid)
3170
    args = updateSnapdealStockAtEOD_args()
3171
    args.allsnapdealstock = allsnapdealstock
3172
    args.write(self._oprot)
3173
    self._oprot.writeMessageEnd()
3174
    self._oprot.trans.flush()
3175
 
3176
  def recv_updateSnapdealStockAtEOD(self, ):
3177
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3178
    if mtype == TMessageType.EXCEPTION:
3179
      x = TApplicationException()
3180
      x.read(self._iprot)
3181
      self._iprot.readMessageEnd()
3182
      raise x
3183
    result = updateSnapdealStockAtEOD_result()
3184
    result.read(self._iprot)
3185
    self._iprot.readMessageEnd()
3186
    return
3187
 
3188
  def updateFlipkartStockAtEOD(self, allflipkartstock):
3189
    """
3190
    Parameters:
3191
     - allflipkartstock
3192
    """
3193
    self.send_updateFlipkartStockAtEOD(allflipkartstock)
3194
    self.recv_updateFlipkartStockAtEOD()
3195
 
3196
  def send_updateFlipkartStockAtEOD(self, allflipkartstock):
3197
    self._oprot.writeMessageBegin('updateFlipkartStockAtEOD', TMessageType.CALL, self._seqid)
3198
    args = updateFlipkartStockAtEOD_args()
3199
    args.allflipkartstock = allflipkartstock
3200
    args.write(self._oprot)
3201
    self._oprot.writeMessageEnd()
3202
    self._oprot.trans.flush()
3203
 
3204
  def recv_updateFlipkartStockAtEOD(self, ):
3205
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3206
    if mtype == TMessageType.EXCEPTION:
3207
      x = TApplicationException()
3208
      x.read(self._iprot)
3209
      self._iprot.readMessageEnd()
3210
      raise x
3211
    result = updateFlipkartStockAtEOD_result()
3212
    result.read(self._iprot)
3213
    self._iprot.readMessageEnd()
3214
    return
3215
 
12363 kshitij.so 3216
  def getWanNlcForSource(self, item_id, source):
3217
    """
3218
    Parameters:
3219
     - item_id
3220
     - source
3221
    """
3222
    self.send_getWanNlcForSource(item_id, source)
3223
    return self.recv_getWanNlcForSource()
10544 vikram.rag 3224
 
12363 kshitij.so 3225
  def send_getWanNlcForSource(self, item_id, source):
3226
    self._oprot.writeMessageBegin('getWanNlcForSource', TMessageType.CALL, self._seqid)
3227
    args = getWanNlcForSource_args()
3228
    args.item_id = item_id
3229
    args.source = source
3230
    args.write(self._oprot)
3231
    self._oprot.writeMessageEnd()
3232
    self._oprot.trans.flush()
3233
 
3234
  def recv_getWanNlcForSource(self, ):
3235
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3236
    if mtype == TMessageType.EXCEPTION:
3237
      x = TApplicationException()
3238
      x.read(self._iprot)
3239
      self._iprot.readMessageEnd()
3240
      raise x
3241
    result = getWanNlcForSource_result()
3242
    result.read(self._iprot)
3243
    self._iprot.readMessageEnd()
3244
    if result.success is not None:
3245
      return result.success
3246
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWanNlcForSource failed: unknown result");
3247
 
3248
  def getAllAvailableAmazonFbaItemInventory(self, ):
3249
    self.send_getAllAvailableAmazonFbaItemInventory()
3250
    return self.recv_getAllAvailableAmazonFbaItemInventory()
3251
 
3252
  def send_getAllAvailableAmazonFbaItemInventory(self, ):
3253
    self._oprot.writeMessageBegin('getAllAvailableAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
3254
    args = getAllAvailableAmazonFbaItemInventory_args()
3255
    args.write(self._oprot)
3256
    self._oprot.writeMessageEnd()
3257
    self._oprot.trans.flush()
3258
 
3259
  def recv_getAllAvailableAmazonFbaItemInventory(self, ):
3260
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3261
    if mtype == TMessageType.EXCEPTION:
3262
      x = TApplicationException()
3263
      x.read(self._iprot)
3264
      self._iprot.readMessageEnd()
3265
      raise x
3266
    result = getAllAvailableAmazonFbaItemInventory_result()
3267
    result.read(self._iprot)
3268
    self._iprot.readMessageEnd()
3269
    if result.success is not None:
3270
      return result.success
3271
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAvailableAmazonFbaItemInventory failed: unknown result");
3272
 
17990 kshitij.so 3273
  def updateItemAvailabilityForItemIds(self, itemIds):
3274
    """
3275
    Parameters:
3276
     - itemIds
3277
    """
3278
    self.send_updateItemAvailabilityForItemIds(itemIds)
3279
    return self.recv_updateItemAvailabilityForItemIds()
12363 kshitij.so 3280
 
17990 kshitij.so 3281
  def send_updateItemAvailabilityForItemIds(self, itemIds):
3282
    self._oprot.writeMessageBegin('updateItemAvailabilityForItemIds', TMessageType.CALL, self._seqid)
3283
    args = updateItemAvailabilityForItemIds_args()
3284
    args.itemIds = itemIds
3285
    args.write(self._oprot)
3286
    self._oprot.writeMessageEnd()
3287
    self._oprot.trans.flush()
3288
 
3289
  def recv_updateItemAvailabilityForItemIds(self, ):
3290
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3291
    if mtype == TMessageType.EXCEPTION:
3292
      x = TApplicationException()
3293
      x.read(self._iprot)
3294
      self._iprot.readMessageEnd()
3295
      raise x
3296
    result = updateItemAvailabilityForItemIds_result()
3297
    result.read(self._iprot)
3298
    self._iprot.readMessageEnd()
3299
    if result.success is not None:
3300
      return result.success
3301
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemAvailabilityForItemIds failed: unknown result");
3302
 
19247 kshitij.so 3303
  def addVendorItemPricingInBulk(self, vendorItemPricingList):
3304
    """
3305
    Parameters:
3306
     - vendorItemPricingList
3307
    """
3308
    self.send_addVendorItemPricingInBulk(vendorItemPricingList)
3309
    return self.recv_addVendorItemPricingInBulk()
17990 kshitij.so 3310
 
19247 kshitij.so 3311
  def send_addVendorItemPricingInBulk(self, vendorItemPricingList):
3312
    self._oprot.writeMessageBegin('addVendorItemPricingInBulk', TMessageType.CALL, self._seqid)
3313
    args = addVendorItemPricingInBulk_args()
3314
    args.vendorItemPricingList = vendorItemPricingList
3315
    args.write(self._oprot)
3316
    self._oprot.writeMessageEnd()
3317
    self._oprot.trans.flush()
3318
 
3319
  def recv_addVendorItemPricingInBulk(self, ):
3320
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3321
    if mtype == TMessageType.EXCEPTION:
3322
      x = TApplicationException()
3323
      x.read(self._iprot)
3324
      self._iprot.readMessageEnd()
3325
      raise x
3326
    result = addVendorItemPricingInBulk_result()
3327
    result.read(self._iprot)
3328
    self._iprot.readMessageEnd()
3329
    if result.success is not None:
3330
      return result.success
3331
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addVendorItemPricingInBulk failed: unknown result");
3332
 
3333
  def addInventoryInBulk(self, bulkInventoryList):
3334
    """
3335
    Parameters:
3336
     - bulkInventoryList
3337
    """
3338
    self.send_addInventoryInBulk(bulkInventoryList)
3339
    self.recv_addInventoryInBulk()
3340
 
3341
  def send_addInventoryInBulk(self, bulkInventoryList):
3342
    self._oprot.writeMessageBegin('addInventoryInBulk', TMessageType.CALL, self._seqid)
3343
    args = addInventoryInBulk_args()
3344
    args.bulkInventoryList = bulkInventoryList
3345
    args.write(self._oprot)
3346
    self._oprot.writeMessageEnd()
3347
    self._oprot.trans.flush()
3348
 
3349
  def recv_addInventoryInBulk(self, ):
3350
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3351
    if mtype == TMessageType.EXCEPTION:
3352
      x = TApplicationException()
3353
      x.read(self._iprot)
3354
      self._iprot.readMessageEnd()
3355
      raise x
3356
    result = addInventoryInBulk_result()
3357
    result.read(self._iprot)
3358
    self._iprot.readMessageEnd()
3359
    if result.cex is not None:
3360
      raise result.cex
3361
    return
3362
 
22717 amit.gupta 3363
  def getFofoAvailability(self, itemIds):
3364
    """
3365
    Parameters:
3366
     - itemIds
3367
    """
3368
    self.send_getFofoAvailability(itemIds)
3369
    return self.recv_getFofoAvailability()
3370
 
3371
  def send_getFofoAvailability(self, itemIds):
3372
    self._oprot.writeMessageBegin('getFofoAvailability', TMessageType.CALL, self._seqid)
3373
    args = getFofoAvailability_args()
3374
    args.itemIds = itemIds
3375
    args.write(self._oprot)
3376
    self._oprot.writeMessageEnd()
3377
    self._oprot.trans.flush()
3378
 
3379
  def recv_getFofoAvailability(self, ):
3380
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3381
    if mtype == TMessageType.EXCEPTION:
3382
      x = TApplicationException()
3383
      x.read(self._iprot)
3384
      self._iprot.readMessageEnd()
3385
      raise x
3386
    result = getFofoAvailability_result()
3387
    result.read(self._iprot)
3388
    self._iprot.readMessageEnd()
3389
    if result.success is not None:
3390
      return result.success
3391
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFofoAvailability failed: unknown result");
3392
 
22721 amit.gupta 3393
  def getFofoFulFillmentWarehouseMap(self, itemIds):
3394
    """
3395
    Parameters:
3396
     - itemIds
3397
    """
3398
    self.send_getFofoFulFillmentWarehouseMap(itemIds)
3399
    return self.recv_getFofoFulFillmentWarehouseMap()
3400
 
3401
  def send_getFofoFulFillmentWarehouseMap(self, itemIds):
3402
    self._oprot.writeMessageBegin('getFofoFulFillmentWarehouseMap', TMessageType.CALL, self._seqid)
3403
    args = getFofoFulFillmentWarehouseMap_args()
3404
    args.itemIds = itemIds
3405
    args.write(self._oprot)
3406
    self._oprot.writeMessageEnd()
3407
    self._oprot.trans.flush()
3408
 
3409
  def recv_getFofoFulFillmentWarehouseMap(self, ):
3410
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3411
    if mtype == TMessageType.EXCEPTION:
3412
      x = TApplicationException()
3413
      x.read(self._iprot)
3414
      self._iprot.readMessageEnd()
3415
      raise x
3416
    result = getFofoFulFillmentWarehouseMap_result()
3417
    result.read(self._iprot)
3418
    self._iprot.readMessageEnd()
3419
    if result.success is not None:
3420
      return result.success
3421
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFofoFulFillmentWarehouseMap failed: unknown result");
3422
 
19413 amit.gupta 3423
  def getItemLocationAvailabilityCache(self, itemLocations):
3424
    """
3425
    Parameters:
3426
     - itemLocations
3427
    """
3428
    self.send_getItemLocationAvailabilityCache(itemLocations)
3429
    return self.recv_getItemLocationAvailabilityCache()
19247 kshitij.so 3430
 
19413 amit.gupta 3431
  def send_getItemLocationAvailabilityCache(self, itemLocations):
3432
    self._oprot.writeMessageBegin('getItemLocationAvailabilityCache', TMessageType.CALL, self._seqid)
3433
    args = getItemLocationAvailabilityCache_args()
3434
    args.itemLocations = itemLocations
3435
    args.write(self._oprot)
3436
    self._oprot.writeMessageEnd()
3437
    self._oprot.trans.flush()
3438
 
3439
  def recv_getItemLocationAvailabilityCache(self, ):
3440
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3441
    if mtype == TMessageType.EXCEPTION:
3442
      x = TApplicationException()
3443
      x.read(self._iprot)
3444
      self._iprot.readMessageEnd()
3445
      raise x
3446
    result = getItemLocationAvailabilityCache_result()
3447
    result.read(self._iprot)
3448
    self._iprot.readMessageEnd()
3449
    if result.success is not None:
3450
      return result.success
3451
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemLocationAvailabilityCache failed: unknown result");
3452
 
3453
  def getItemLocationAvailabilityCacheByItemId(self, itemIds):
3454
    """
3455
    Parameters:
3456
     - itemIds
3457
    """
3458
    self.send_getItemLocationAvailabilityCacheByItemId(itemIds)
3459
    return self.recv_getItemLocationAvailabilityCacheByItemId()
3460
 
3461
  def send_getItemLocationAvailabilityCacheByItemId(self, itemIds):
3462
    self._oprot.writeMessageBegin('getItemLocationAvailabilityCacheByItemId', TMessageType.CALL, self._seqid)
3463
    args = getItemLocationAvailabilityCacheByItemId_args()
3464
    args.itemIds = itemIds
3465
    args.write(self._oprot)
3466
    self._oprot.writeMessageEnd()
3467
    self._oprot.trans.flush()
3468
 
3469
  def recv_getItemLocationAvailabilityCacheByItemId(self, ):
3470
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3471
    if mtype == TMessageType.EXCEPTION:
3472
      x = TApplicationException()
3473
      x.read(self._iprot)
3474
      self._iprot.readMessageEnd()
3475
      raise x
3476
    result = getItemLocationAvailabilityCacheByItemId_result()
3477
    result.read(self._iprot)
3478
    self._iprot.readMessageEnd()
3479
    if result.success is not None:
3480
      return result.success
3481
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemLocationAvailabilityCacheByItemId failed: unknown result");
3482
 
19416 amit.gupta 3483
  def getItemPincodeAvailability(self, itempricing, pincode):
19413 amit.gupta 3484
    """
3485
    Parameters:
19416 amit.gupta 3486
     - itempricing
19413 amit.gupta 3487
     - pincode
3488
    """
19416 amit.gupta 3489
    self.send_getItemPincodeAvailability(itempricing, pincode)
19413 amit.gupta 3490
    return self.recv_getItemPincodeAvailability()
3491
 
19416 amit.gupta 3492
  def send_getItemPincodeAvailability(self, itempricing, pincode):
19413 amit.gupta 3493
    self._oprot.writeMessageBegin('getItemPincodeAvailability', TMessageType.CALL, self._seqid)
3494
    args = getItemPincodeAvailability_args()
19416 amit.gupta 3495
    args.itempricing = itempricing
19413 amit.gupta 3496
    args.pincode = pincode
3497
    args.write(self._oprot)
3498
    self._oprot.writeMessageEnd()
3499
    self._oprot.trans.flush()
3500
 
3501
  def recv_getItemPincodeAvailability(self, ):
3502
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3503
    if mtype == TMessageType.EXCEPTION:
3504
      x = TApplicationException()
3505
      x.read(self._iprot)
3506
      self._iprot.readMessageEnd()
3507
      raise x
3508
    result = getItemPincodeAvailability_result()
3509
    result.read(self._iprot)
3510
    self._iprot.readMessageEnd()
3511
    if result.success is not None:
3512
      return result.success
3513
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPincodeAvailability failed: unknown result");
3514
 
3515
 
5944 mandeep.dh 3516
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3517
  def __init__(self, handler):
3518
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3519
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
3520
    self._processMap["addVendor"] = Processor.process_addVendor
3521
    self._processMap["updateInventoryHistory"] = Processor.process_updateInventoryHistory
3522
    self._processMap["updateInventory"] = Processor.process_updateInventory
3523
    self._processMap["addInventory"] = Processor.process_addInventory
3524
    self._processMap["retireWarehouse"] = Processor.process_retireWarehouse
3525
    self._processMap["getItemInventoryByItemId"] = Processor.process_getItemInventoryByItemId
3526
    self._processMap["getItemAvailibilityAtWarehouse"] = Processor.process_getItemAvailibilityAtWarehouse
3527
    self._processMap["getItemAvailabilityAtLocation"] = Processor.process_getItemAvailabilityAtLocation
3528
    self._processMap["getAllWarehouses"] = Processor.process_getAllWarehouses
3529
    self._processMap["getWarehouse"] = Processor.process_getWarehouse
3530
    self._processMap["getAllItemsForWarehouse"] = Processor.process_getAllItemsForWarehouse
5966 rajveer 3531
    self._processMap["isOrderBillable"] = Processor.process_isOrderBillable
5944 mandeep.dh 3532
    self._processMap["reserveItemInWarehouse"] = Processor.process_reserveItemInWarehouse
7968 amar.kumar 3533
    self._processMap["updateReservationForOrder"] = Processor.process_updateReservationForOrder
5944 mandeep.dh 3534
    self._processMap["reduceReservationCount"] = Processor.process_reduceReservationCount
3535
    self._processMap["getItemPricing"] = Processor.process_getItemPricing
3536
    self._processMap["getAllItemPricing"] = Processor.process_getAllItemPricing
3537
    self._processMap["addVendorItemPricing"] = Processor.process_addVendorItemPricing
3538
    self._processMap["getVendor"] = Processor.process_getVendor
3539
    self._processMap["getAllVendors"] = Processor.process_getAllVendors
3540
    self._processMap["addVendorItemMapping"] = Processor.process_addVendorItemMapping
3541
    self._processMap["getVendorItemMappings"] = Processor.process_getVendorItemMappings
3542
    self._processMap["getPendingOrdersInventory"] = Processor.process_getPendingOrdersInventory
3543
    self._processMap["getWarehouses"] = Processor.process_getWarehouses
3544
    self._processMap["resetAvailability"] = Processor.process_resetAvailability
3545
    self._processMap["resetAvailabilityForWarehouse"] = Processor.process_resetAvailabilityForWarehouse
3546
    self._processMap["getItemKeysToBeProcessed"] = Processor.process_getItemKeysToBeProcessed
3547
    self._processMap["markMissedInventoryUpdatesAsProcessed"] = Processor.process_markMissedInventoryUpdatesAsProcessed
3548
    self._processMap["getIgnoredItemKeys"] = Processor.process_getIgnoredItemKeys
3549
    self._processMap["addBadInventory"] = Processor.process_addBadInventory
3550
    self._processMap["getShippingLocations"] = Processor.process_getShippingLocations
3551
    self._processMap["getAllVendorItemMappings"] = Processor.process_getAllVendorItemMappings
3552
    self._processMap["getInventorySnapshot"] = Processor.process_getInventorySnapshot
3553
    self._processMap["clearItemAvailabilityCache"] = Processor.process_clearItemAvailabilityCache
3554
    self._processMap["updateVendorString"] = Processor.process_updateVendorString
6096 amit.gupta 3555
    self._processMap["clearItemAvailabilityCacheForItem"] = Processor.process_clearItemAvailabilityCacheForItem
6467 amar.kumar 3556
    self._processMap["getOurWarehouseIdForVendor"] = Processor.process_getOurWarehouseIdForVendor
6484 amar.kumar 3557
    self._processMap["getItemAvailabilitiesAtOurWarehouses"] = Processor.process_getItemAvailabilitiesAtOurWarehouses
6531 vikram.rag 3558
    self._processMap["getMonitoredWarehouseForVendors"] = Processor.process_getMonitoredWarehouseForVendors
3559
    self._processMap["getIgnoredWarehouseidsAndItemids"] = Processor.process_getIgnoredWarehouseidsAndItemids
3560
    self._processMap["insertItemtoIgnoreInventoryUpdatelist"] = Processor.process_insertItemtoIgnoreInventoryUpdatelist
3561
    self._processMap["deleteItemFromIgnoredInventoryUpdateList"] = Processor.process_deleteItemFromIgnoredInventoryUpdateList
3562
    self._processMap["getAllIgnoredInventoryupdateItemsCount"] = Processor.process_getAllIgnoredInventoryupdateItemsCount
3563
    self._processMap["getIgnoredInventoryUpdateItemids"] = Processor.process_getIgnoredInventoryUpdateItemids
6821 amar.kumar 3564
    self._processMap["updateItemStockPurchaseParams"] = Processor.process_updateItemStockPurchaseParams
3565
    self._processMap["getItemStockPurchaseParams"] = Processor.process_getItemStockPurchaseParams
3566
    self._processMap["addOosStatusForItem"] = Processor.process_addOosStatusForItem
6832 amar.kumar 3567
    self._processMap["getOosStatusesForXDaysForItem"] = Processor.process_getOosStatusesForXDaysForItem
10126 amar.kumar 3568
    self._processMap["getOosStatusesForXDays"] = Processor.process_getOosStatusesForXDays
3569
    self._processMap["getAllVendorItemPricing"] = Processor.process_getAllVendorItemPricing
6857 amar.kumar 3570
    self._processMap["getNonZeroItemStockPurchaseParams"] = Processor.process_getNonZeroItemStockPurchaseParams
7149 amar.kumar 3571
    self._processMap["getBillableInventoryAndPendingOrders"] = Processor.process_getBillableInventoryAndPendingOrders
7281 kshitij.so 3572
    self._processMap["getWarehouseName"] = Processor.process_getWarehouseName
3573
    self._processMap["getAmazonInventoryForItem"] = Processor.process_getAmazonInventoryForItem
3574
    self._processMap["getAllAmazonInventory"] = Processor.process_getAllAmazonInventory
3575
    self._processMap["addOrUpdateAmazonInventoryForItem"] = Processor.process_addOrUpdateAmazonInventoryForItem
7972 amar.kumar 3576
    self._processMap["getLastNdaySaleForItem"] = Processor.process_getLastNdaySaleForItem
8282 kshitij.so 3577
    self._processMap["addOrUpdateAmazonFbaInventory"] = Processor.process_addOrUpdateAmazonFbaInventory
8182 amar.kumar 3578
    self._processMap["addUpdateHoldInventory"] = Processor.process_addUpdateHoldInventory
8282 kshitij.so 3579
    self._processMap["getAmazonFbaItemInventory"] = Processor.process_getAmazonFbaItemInventory
8363 vikram.rag 3580
    self._processMap["getAllAmazonFbaItemInventory"] = Processor.process_getAllAmazonFbaItemInventory
3581
    self._processMap["getOursGoodWarehouseIdsForLocation"] = Processor.process_getOursGoodWarehouseIdsForLocation
8955 vikram.rag 3582
    self._processMap["getHoldInventoryDetailForItemForWarehouseIdExceptSource"] = Processor.process_getHoldInventoryDetailForItemForWarehouseIdExceptSource
9404 vikram.rag 3583
    self._processMap["getSnapdealInventoryForItem"] = Processor.process_getSnapdealInventoryForItem
3584
    self._processMap["addOrUpdateSnapdealInventoryForItem"] = Processor.process_addOrUpdateSnapdealInventoryForItem
3585
    self._processMap["getNlcForWarehouse"] = Processor.process_getNlcForWarehouse
9640 amar.kumar 3586
    self._processMap["getHeldInventoryMapForItem"] = Processor.process_getHeldInventoryMapForItem
9482 vikram.rag 3587
    self._processMap["addOrUpdateAllAmazonFbaInventory"] = Processor.process_addOrUpdateAllAmazonFbaInventory
9495 vikram.rag 3588
    self._processMap["addOrUpdateAllSnapdealInventory"] = Processor.process_addOrUpdateAllSnapdealInventory
3589
    self._processMap["getSnapdealInventorySnapshot"] = Processor.process_getSnapdealInventorySnapshot
9761 amar.kumar 3590
    self._processMap["getHoldInventoryDetails"] = Processor.process_getHoldInventoryDetails
10050 vikram.rag 3591
    self._processMap["addOrUpdateFlipkartInventorySnapshot"] = Processor.process_addOrUpdateFlipkartInventorySnapshot
3592
    self._processMap["getFlipkartInventorySnapshot"] = Processor.process_getFlipkartInventorySnapshot
10097 kshitij.so 3593
    self._processMap["getFlipkartlInventoryForItem"] = Processor.process_getFlipkartlInventoryForItem
10485 vikram.rag 3594
    self._processMap["getStateMaster"] = Processor.process_getStateMaster
10544 vikram.rag 3595
    self._processMap["updateSnapdealStockAtEOD"] = Processor.process_updateSnapdealStockAtEOD
3596
    self._processMap["updateFlipkartStockAtEOD"] = Processor.process_updateFlipkartStockAtEOD
12363 kshitij.so 3597
    self._processMap["getWanNlcForSource"] = Processor.process_getWanNlcForSource
3598
    self._processMap["getAllAvailableAmazonFbaItemInventory"] = Processor.process_getAllAvailableAmazonFbaItemInventory
17990 kshitij.so 3599
    self._processMap["updateItemAvailabilityForItemIds"] = Processor.process_updateItemAvailabilityForItemIds
19247 kshitij.so 3600
    self._processMap["addVendorItemPricingInBulk"] = Processor.process_addVendorItemPricingInBulk
3601
    self._processMap["addInventoryInBulk"] = Processor.process_addInventoryInBulk
22717 amit.gupta 3602
    self._processMap["getFofoAvailability"] = Processor.process_getFofoAvailability
22721 amit.gupta 3603
    self._processMap["getFofoFulFillmentWarehouseMap"] = Processor.process_getFofoFulFillmentWarehouseMap
19413 amit.gupta 3604
    self._processMap["getItemLocationAvailabilityCache"] = Processor.process_getItemLocationAvailabilityCache
3605
    self._processMap["getItemLocationAvailabilityCacheByItemId"] = Processor.process_getItemLocationAvailabilityCacheByItemId
3606
    self._processMap["getItemPincodeAvailability"] = Processor.process_getItemPincodeAvailability
5944 mandeep.dh 3607
 
3608
  def process(self, iprot, oprot):
3609
    (name, type, seqid) = iprot.readMessageBegin()
3610
    if name not in self._processMap:
3611
      iprot.skip(TType.STRUCT)
3612
      iprot.readMessageEnd()
3613
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3614
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3615
      x.write(oprot)
3616
      oprot.writeMessageEnd()
3617
      oprot.trans.flush()
3618
      return
3619
    else:
3620
      self._processMap[name](self, seqid, iprot, oprot)
3621
    return True
3622
 
3623
  def process_addWarehouse(self, seqid, iprot, oprot):
3624
    args = addWarehouse_args()
3625
    args.read(iprot)
3626
    iprot.readMessageEnd()
3627
    result = addWarehouse_result()
3628
    try:
3629
      result.success = self._handler.addWarehouse(args.warehouse)
3630
    except InventoryServiceException, cex:
3631
      result.cex = cex
3632
    oprot.writeMessageBegin("addWarehouse", TMessageType.REPLY, seqid)
3633
    result.write(oprot)
3634
    oprot.writeMessageEnd()
3635
    oprot.trans.flush()
3636
 
3637
  def process_addVendor(self, seqid, iprot, oprot):
3638
    args = addVendor_args()
3639
    args.read(iprot)
3640
    iprot.readMessageEnd()
3641
    result = addVendor_result()
3642
    try:
3643
      result.success = self._handler.addVendor(args.vendor)
3644
    except InventoryServiceException, cex:
3645
      result.cex = cex
3646
    oprot.writeMessageBegin("addVendor", TMessageType.REPLY, seqid)
3647
    result.write(oprot)
3648
    oprot.writeMessageEnd()
3649
    oprot.trans.flush()
3650
 
3651
  def process_updateInventoryHistory(self, seqid, iprot, oprot):
3652
    args = updateInventoryHistory_args()
3653
    args.read(iprot)
3654
    iprot.readMessageEnd()
3655
    result = updateInventoryHistory_result()
3656
    try:
3657
      self._handler.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability)
3658
    except InventoryServiceException, cex:
3659
      result.cex = cex
3660
    oprot.writeMessageBegin("updateInventoryHistory", TMessageType.REPLY, seqid)
3661
    result.write(oprot)
3662
    oprot.writeMessageEnd()
3663
    oprot.trans.flush()
3664
 
3665
  def process_updateInventory(self, seqid, iprot, oprot):
3666
    args = updateInventory_args()
3667
    args.read(iprot)
3668
    iprot.readMessageEnd()
3669
    result = updateInventory_result()
3670
    try:
3671
      self._handler.updateInventory(args.warehouse_id, args.timestamp, args.availability)
3672
    except InventoryServiceException, cex:
3673
      result.cex = cex
3674
    oprot.writeMessageBegin("updateInventory", TMessageType.REPLY, seqid)
3675
    result.write(oprot)
3676
    oprot.writeMessageEnd()
3677
    oprot.trans.flush()
3678
 
3679
  def process_addInventory(self, seqid, iprot, oprot):
3680
    args = addInventory_args()
3681
    args.read(iprot)
3682
    iprot.readMessageEnd()
3683
    result = addInventory_result()
3684
    try:
3685
      self._handler.addInventory(args.itemId, args.warehouseId, args.quantity)
3686
    except InventoryServiceException, cex:
3687
      result.cex = cex
3688
    oprot.writeMessageBegin("addInventory", TMessageType.REPLY, seqid)
3689
    result.write(oprot)
3690
    oprot.writeMessageEnd()
3691
    oprot.trans.flush()
3692
 
3693
  def process_retireWarehouse(self, seqid, iprot, oprot):
3694
    args = retireWarehouse_args()
3695
    args.read(iprot)
3696
    iprot.readMessageEnd()
3697
    result = retireWarehouse_result()
3698
    try:
3699
      self._handler.retireWarehouse(args.warehouse_id)
3700
    except InventoryServiceException, cex:
3701
      result.cex = cex
3702
    oprot.writeMessageBegin("retireWarehouse", TMessageType.REPLY, seqid)
3703
    result.write(oprot)
3704
    oprot.writeMessageEnd()
3705
    oprot.trans.flush()
3706
 
3707
  def process_getItemInventoryByItemId(self, seqid, iprot, oprot):
3708
    args = getItemInventoryByItemId_args()
3709
    args.read(iprot)
3710
    iprot.readMessageEnd()
3711
    result = getItemInventoryByItemId_result()
3712
    try:
3713
      result.success = self._handler.getItemInventoryByItemId(args.item_id)
3714
    except InventoryServiceException, cex:
3715
      result.cex = cex
3716
    oprot.writeMessageBegin("getItemInventoryByItemId", TMessageType.REPLY, seqid)
3717
    result.write(oprot)
3718
    oprot.writeMessageEnd()
3719
    oprot.trans.flush()
3720
 
3721
  def process_getItemAvailibilityAtWarehouse(self, seqid, iprot, oprot):
3722
    args = getItemAvailibilityAtWarehouse_args()
3723
    args.read(iprot)
3724
    iprot.readMessageEnd()
3725
    result = getItemAvailibilityAtWarehouse_result()
3726
    try:
3727
      result.success = self._handler.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id)
3728
    except InventoryServiceException, cex:
3729
      result.cex = cex
3730
    oprot.writeMessageBegin("getItemAvailibilityAtWarehouse", TMessageType.REPLY, seqid)
3731
    result.write(oprot)
3732
    oprot.writeMessageEnd()
3733
    oprot.trans.flush()
3734
 
3735
  def process_getItemAvailabilityAtLocation(self, seqid, iprot, oprot):
3736
    args = getItemAvailabilityAtLocation_args()
3737
    args.read(iprot)
3738
    iprot.readMessageEnd()
3739
    result = getItemAvailabilityAtLocation_result()
3740
    try:
5978 rajveer 3741
      result.success = self._handler.getItemAvailabilityAtLocation(args.itemId, args.sourceId)
5944 mandeep.dh 3742
    except InventoryServiceException, isex:
3743
      result.isex = isex
3744
    oprot.writeMessageBegin("getItemAvailabilityAtLocation", TMessageType.REPLY, seqid)
3745
    result.write(oprot)
3746
    oprot.writeMessageEnd()
3747
    oprot.trans.flush()
3748
 
3749
  def process_getAllWarehouses(self, seqid, iprot, oprot):
3750
    args = getAllWarehouses_args()
3751
    args.read(iprot)
3752
    iprot.readMessageEnd()
3753
    result = getAllWarehouses_result()
3754
    try:
3755
      result.success = self._handler.getAllWarehouses(args.isActive)
3756
    except InventoryServiceException, cex:
3757
      result.cex = cex
3758
    oprot.writeMessageBegin("getAllWarehouses", TMessageType.REPLY, seqid)
3759
    result.write(oprot)
3760
    oprot.writeMessageEnd()
3761
    oprot.trans.flush()
3762
 
3763
  def process_getWarehouse(self, seqid, iprot, oprot):
3764
    args = getWarehouse_args()
3765
    args.read(iprot)
3766
    iprot.readMessageEnd()
3767
    result = getWarehouse_result()
3768
    try:
3769
      result.success = self._handler.getWarehouse(args.warehouse_id)
3770
    except InventoryServiceException, cex:
3771
      result.cex = cex
3772
    oprot.writeMessageBegin("getWarehouse", TMessageType.REPLY, seqid)
3773
    result.write(oprot)
3774
    oprot.writeMessageEnd()
3775
    oprot.trans.flush()
3776
 
3777
  def process_getAllItemsForWarehouse(self, seqid, iprot, oprot):
3778
    args = getAllItemsForWarehouse_args()
3779
    args.read(iprot)
3780
    iprot.readMessageEnd()
3781
    result = getAllItemsForWarehouse_result()
3782
    try:
3783
      result.success = self._handler.getAllItemsForWarehouse(args.warehouse_id)
3784
    except InventoryServiceException, cex:
3785
      result.cex = cex
3786
    oprot.writeMessageBegin("getAllItemsForWarehouse", TMessageType.REPLY, seqid)
3787
    result.write(oprot)
3788
    oprot.writeMessageEnd()
3789
    oprot.trans.flush()
3790
 
5966 rajveer 3791
  def process_isOrderBillable(self, seqid, iprot, oprot):
3792
    args = isOrderBillable_args()
3793
    args.read(iprot)
3794
    iprot.readMessageEnd()
3795
    result = isOrderBillable_result()
3796
    result.success = self._handler.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId)
3797
    oprot.writeMessageBegin("isOrderBillable", TMessageType.REPLY, seqid)
3798
    result.write(oprot)
3799
    oprot.writeMessageEnd()
3800
    oprot.trans.flush()
3801
 
5944 mandeep.dh 3802
  def process_reserveItemInWarehouse(self, seqid, iprot, oprot):
3803
    args = reserveItemInWarehouse_args()
3804
    args.read(iprot)
3805
    iprot.readMessageEnd()
3806
    result = reserveItemInWarehouse_result()
3807
    try:
5966 rajveer 3808
      result.success = self._handler.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
5944 mandeep.dh 3809
    except InventoryServiceException, cex:
3810
      result.cex = cex
3811
    oprot.writeMessageBegin("reserveItemInWarehouse", TMessageType.REPLY, seqid)
3812
    result.write(oprot)
3813
    oprot.writeMessageEnd()
3814
    oprot.trans.flush()
3815
 
7968 amar.kumar 3816
  def process_updateReservationForOrder(self, seqid, iprot, oprot):
3817
    args = updateReservationForOrder_args()
3818
    args.read(iprot)
3819
    iprot.readMessageEnd()
3820
    result = updateReservationForOrder_result()
3821
    try:
3822
      result.success = self._handler.updateReservationForOrder(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
3823
    except InventoryServiceException, cex:
3824
      result.cex = cex
3825
    oprot.writeMessageBegin("updateReservationForOrder", TMessageType.REPLY, seqid)
3826
    result.write(oprot)
3827
    oprot.writeMessageEnd()
3828
    oprot.trans.flush()
3829
 
5944 mandeep.dh 3830
  def process_reduceReservationCount(self, seqid, iprot, oprot):
3831
    args = reduceReservationCount_args()
3832
    args.read(iprot)
3833
    iprot.readMessageEnd()
3834
    result = reduceReservationCount_result()
3835
    try:
5966 rajveer 3836
      result.success = self._handler.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity)
5944 mandeep.dh 3837
    except InventoryServiceException, cex:
3838
      result.cex = cex
3839
    oprot.writeMessageBegin("reduceReservationCount", TMessageType.REPLY, seqid)
3840
    result.write(oprot)
3841
    oprot.writeMessageEnd()
3842
    oprot.trans.flush()
3843
 
3844
  def process_getItemPricing(self, seqid, iprot, oprot):
3845
    args = getItemPricing_args()
3846
    args.read(iprot)
3847
    iprot.readMessageEnd()
3848
    result = getItemPricing_result()
3849
    try:
3850
      result.success = self._handler.getItemPricing(args.itemId, args.vendorId)
3851
    except InventoryServiceException, cex:
3852
      result.cex = cex
3853
    oprot.writeMessageBegin("getItemPricing", TMessageType.REPLY, seqid)
3854
    result.write(oprot)
3855
    oprot.writeMessageEnd()
3856
    oprot.trans.flush()
3857
 
3858
  def process_getAllItemPricing(self, seqid, iprot, oprot):
3859
    args = getAllItemPricing_args()
3860
    args.read(iprot)
3861
    iprot.readMessageEnd()
3862
    result = getAllItemPricing_result()
3863
    try:
3864
      result.success = self._handler.getAllItemPricing(args.itemId)
3865
    except InventoryServiceException, cex:
3866
      result.cex = cex
3867
    oprot.writeMessageBegin("getAllItemPricing", TMessageType.REPLY, seqid)
3868
    result.write(oprot)
3869
    oprot.writeMessageEnd()
3870
    oprot.trans.flush()
3871
 
3872
  def process_addVendorItemPricing(self, seqid, iprot, oprot):
3873
    args = addVendorItemPricing_args()
3874
    args.read(iprot)
3875
    iprot.readMessageEnd()
3876
    result = addVendorItemPricing_result()
3877
    try:
3878
      self._handler.addVendorItemPricing(args.vendorItemPricing)
3879
    except InventoryServiceException, cex:
3880
      result.cex = cex
3881
    oprot.writeMessageBegin("addVendorItemPricing", TMessageType.REPLY, seqid)
3882
    result.write(oprot)
3883
    oprot.writeMessageEnd()
3884
    oprot.trans.flush()
3885
 
3886
  def process_getVendor(self, seqid, iprot, oprot):
3887
    args = getVendor_args()
3888
    args.read(iprot)
3889
    iprot.readMessageEnd()
3890
    result = getVendor_result()
3891
    result.success = self._handler.getVendor(args.vendorId)
3892
    oprot.writeMessageBegin("getVendor", TMessageType.REPLY, seqid)
3893
    result.write(oprot)
3894
    oprot.writeMessageEnd()
3895
    oprot.trans.flush()
3896
 
3897
  def process_getAllVendors(self, seqid, iprot, oprot):
3898
    args = getAllVendors_args()
3899
    args.read(iprot)
3900
    iprot.readMessageEnd()
3901
    result = getAllVendors_result()
3902
    result.success = self._handler.getAllVendors()
3903
    oprot.writeMessageBegin("getAllVendors", TMessageType.REPLY, seqid)
3904
    result.write(oprot)
3905
    oprot.writeMessageEnd()
3906
    oprot.trans.flush()
3907
 
3908
  def process_addVendorItemMapping(self, seqid, iprot, oprot):
3909
    args = addVendorItemMapping_args()
3910
    args.read(iprot)
3911
    iprot.readMessageEnd()
3912
    result = addVendorItemMapping_result()
3913
    try:
3914
      self._handler.addVendorItemMapping(args.key, args.vendorItemMapping)
3915
    except InventoryServiceException, cex:
3916
      result.cex = cex
3917
    oprot.writeMessageBegin("addVendorItemMapping", TMessageType.REPLY, seqid)
3918
    result.write(oprot)
3919
    oprot.writeMessageEnd()
3920
    oprot.trans.flush()
3921
 
3922
  def process_getVendorItemMappings(self, seqid, iprot, oprot):
3923
    args = getVendorItemMappings_args()
3924
    args.read(iprot)
3925
    iprot.readMessageEnd()
3926
    result = getVendorItemMappings_result()
3927
    try:
3928
      result.success = self._handler.getVendorItemMappings(args.itemId)
3929
    except InventoryServiceException, cex:
3930
      result.cex = cex
3931
    oprot.writeMessageBegin("getVendorItemMappings", TMessageType.REPLY, seqid)
3932
    result.write(oprot)
3933
    oprot.writeMessageEnd()
3934
    oprot.trans.flush()
3935
 
3936
  def process_getPendingOrdersInventory(self, seqid, iprot, oprot):
3937
    args = getPendingOrdersInventory_args()
3938
    args.read(iprot)
3939
    iprot.readMessageEnd()
3940
    result = getPendingOrdersInventory_result()
3941
    result.success = self._handler.getPendingOrdersInventory(args.vendorid)
3942
    oprot.writeMessageBegin("getPendingOrdersInventory", TMessageType.REPLY, seqid)
3943
    result.write(oprot)
3944
    oprot.writeMessageEnd()
3945
    oprot.trans.flush()
3946
 
3947
  def process_getWarehouses(self, seqid, iprot, oprot):
3948
    args = getWarehouses_args()
3949
    args.read(iprot)
3950
    iprot.readMessageEnd()
3951
    result = getWarehouses_result()
3952
    result.success = self._handler.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId)
3953
    oprot.writeMessageBegin("getWarehouses", TMessageType.REPLY, seqid)
3954
    result.write(oprot)
3955
    oprot.writeMessageEnd()
3956
    oprot.trans.flush()
3957
 
3958
  def process_resetAvailability(self, seqid, iprot, oprot):
3959
    args = resetAvailability_args()
3960
    args.read(iprot)
3961
    iprot.readMessageEnd()
3962
    result = resetAvailability_result()
3963
    try:
3964
      self._handler.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId)
3965
    except InventoryServiceException, cex:
3966
      result.cex = cex
3967
    oprot.writeMessageBegin("resetAvailability", TMessageType.REPLY, seqid)
3968
    result.write(oprot)
3969
    oprot.writeMessageEnd()
3970
    oprot.trans.flush()
3971
 
3972
  def process_resetAvailabilityForWarehouse(self, seqid, iprot, oprot):
3973
    args = resetAvailabilityForWarehouse_args()
3974
    args.read(iprot)
3975
    iprot.readMessageEnd()
3976
    result = resetAvailabilityForWarehouse_result()
3977
    try:
3978
      self._handler.resetAvailabilityForWarehouse(args.warehouseId)
3979
    except InventoryServiceException, cex:
3980
      result.cex = cex
3981
    oprot.writeMessageBegin("resetAvailabilityForWarehouse", TMessageType.REPLY, seqid)
3982
    result.write(oprot)
3983
    oprot.writeMessageEnd()
3984
    oprot.trans.flush()
3985
 
3986
  def process_getItemKeysToBeProcessed(self, seqid, iprot, oprot):
3987
    args = getItemKeysToBeProcessed_args()
3988
    args.read(iprot)
3989
    iprot.readMessageEnd()
3990
    result = getItemKeysToBeProcessed_result()
3991
    result.success = self._handler.getItemKeysToBeProcessed(args.warehouseId)
3992
    oprot.writeMessageBegin("getItemKeysToBeProcessed", TMessageType.REPLY, seqid)
3993
    result.write(oprot)
3994
    oprot.writeMessageEnd()
3995
    oprot.trans.flush()
3996
 
3997
  def process_markMissedInventoryUpdatesAsProcessed(self, seqid, iprot, oprot):
3998
    args = markMissedInventoryUpdatesAsProcessed_args()
3999
    args.read(iprot)
4000
    iprot.readMessageEnd()
4001
    result = markMissedInventoryUpdatesAsProcessed_result()
4002
    self._handler.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId)
4003
    oprot.writeMessageBegin("markMissedInventoryUpdatesAsProcessed", TMessageType.REPLY, seqid)
4004
    result.write(oprot)
4005
    oprot.writeMessageEnd()
4006
    oprot.trans.flush()
4007
 
4008
  def process_getIgnoredItemKeys(self, seqid, iprot, oprot):
4009
    args = getIgnoredItemKeys_args()
4010
    args.read(iprot)
4011
    iprot.readMessageEnd()
4012
    result = getIgnoredItemKeys_result()
4013
    result.success = self._handler.getIgnoredItemKeys()
4014
    oprot.writeMessageBegin("getIgnoredItemKeys", TMessageType.REPLY, seqid)
4015
    result.write(oprot)
4016
    oprot.writeMessageEnd()
4017
    oprot.trans.flush()
4018
 
4019
  def process_addBadInventory(self, seqid, iprot, oprot):
4020
    args = addBadInventory_args()
4021
    args.read(iprot)
4022
    iprot.readMessageEnd()
4023
    result = addBadInventory_result()
4024
    try:
4025
      self._handler.addBadInventory(args.itemId, args.warehouseId, args.quantity)
4026
    except InventoryServiceException, cex:
4027
      result.cex = cex
4028
    oprot.writeMessageBegin("addBadInventory", TMessageType.REPLY, seqid)
4029
    result.write(oprot)
4030
    oprot.writeMessageEnd()
4031
    oprot.trans.flush()
4032
 
4033
  def process_getShippingLocations(self, seqid, iprot, oprot):
4034
    args = getShippingLocations_args()
4035
    args.read(iprot)
4036
    iprot.readMessageEnd()
4037
    result = getShippingLocations_result()
4038
    result.success = self._handler.getShippingLocations()
4039
    oprot.writeMessageBegin("getShippingLocations", TMessageType.REPLY, seqid)
4040
    result.write(oprot)
4041
    oprot.writeMessageEnd()
4042
    oprot.trans.flush()
4043
 
4044
  def process_getAllVendorItemMappings(self, seqid, iprot, oprot):
4045
    args = getAllVendorItemMappings_args()
4046
    args.read(iprot)
4047
    iprot.readMessageEnd()
4048
    result = getAllVendorItemMappings_result()
4049
    result.success = self._handler.getAllVendorItemMappings()
4050
    oprot.writeMessageBegin("getAllVendorItemMappings", TMessageType.REPLY, seqid)
4051
    result.write(oprot)
4052
    oprot.writeMessageEnd()
4053
    oprot.trans.flush()
4054
 
4055
  def process_getInventorySnapshot(self, seqid, iprot, oprot):
4056
    args = getInventorySnapshot_args()
4057
    args.read(iprot)
4058
    iprot.readMessageEnd()
4059
    result = getInventorySnapshot_result()
4060
    result.success = self._handler.getInventorySnapshot(args.warehouseId)
4061
    oprot.writeMessageBegin("getInventorySnapshot", TMessageType.REPLY, seqid)
4062
    result.write(oprot)
4063
    oprot.writeMessageEnd()
4064
    oprot.trans.flush()
4065
 
4066
  def process_clearItemAvailabilityCache(self, seqid, iprot, oprot):
4067
    args = clearItemAvailabilityCache_args()
4068
    args.read(iprot)
4069
    iprot.readMessageEnd()
4070
    result = clearItemAvailabilityCache_result()
4071
    self._handler.clearItemAvailabilityCache()
4072
    oprot.writeMessageBegin("clearItemAvailabilityCache", TMessageType.REPLY, seqid)
4073
    result.write(oprot)
4074
    oprot.writeMessageEnd()
4075
    oprot.trans.flush()
4076
 
4077
  def process_updateVendorString(self, seqid, iprot, oprot):
4078
    args = updateVendorString_args()
4079
    args.read(iprot)
4080
    iprot.readMessageEnd()
4081
    result = updateVendorString_result()
4082
    self._handler.updateVendorString(args.warehouseId, args.vendorString)
4083
    oprot.writeMessageBegin("updateVendorString", TMessageType.REPLY, seqid)
4084
    result.write(oprot)
4085
    oprot.writeMessageEnd()
4086
    oprot.trans.flush()
4087
 
6096 amit.gupta 4088
  def process_clearItemAvailabilityCacheForItem(self, seqid, iprot, oprot):
4089
    args = clearItemAvailabilityCacheForItem_args()
4090
    args.read(iprot)
4091
    iprot.readMessageEnd()
4092
    result = clearItemAvailabilityCacheForItem_result()
4093
    self._handler.clearItemAvailabilityCacheForItem(args.item_id)
4094
    oprot.writeMessageBegin("clearItemAvailabilityCacheForItem", TMessageType.REPLY, seqid)
4095
    result.write(oprot)
4096
    oprot.writeMessageEnd()
4097
    oprot.trans.flush()
5944 mandeep.dh 4098
 
6467 amar.kumar 4099
  def process_getOurWarehouseIdForVendor(self, seqid, iprot, oprot):
4100
    args = getOurWarehouseIdForVendor_args()
4101
    args.read(iprot)
4102
    iprot.readMessageEnd()
4103
    result = getOurWarehouseIdForVendor_result()
7718 amar.kumar 4104
    result.success = self._handler.getOurWarehouseIdForVendor(args.vendorId, args.billingWarehouseId)
6467 amar.kumar 4105
    oprot.writeMessageBegin("getOurWarehouseIdForVendor", TMessageType.REPLY, seqid)
4106
    result.write(oprot)
4107
    oprot.writeMessageEnd()
4108
    oprot.trans.flush()
6096 amit.gupta 4109
 
6484 amar.kumar 4110
  def process_getItemAvailabilitiesAtOurWarehouses(self, seqid, iprot, oprot):
4111
    args = getItemAvailabilitiesAtOurWarehouses_args()
4112
    args.read(iprot)
4113
    iprot.readMessageEnd()
4114
    result = getItemAvailabilitiesAtOurWarehouses_result()
4115
    result.success = self._handler.getItemAvailabilitiesAtOurWarehouses(args.item_ids)
4116
    oprot.writeMessageBegin("getItemAvailabilitiesAtOurWarehouses", TMessageType.REPLY, seqid)
4117
    result.write(oprot)
4118
    oprot.writeMessageEnd()
4119
    oprot.trans.flush()
6467 amar.kumar 4120
 
6531 vikram.rag 4121
  def process_getMonitoredWarehouseForVendors(self, seqid, iprot, oprot):
4122
    args = getMonitoredWarehouseForVendors_args()
4123
    args.read(iprot)
4124
    iprot.readMessageEnd()
4125
    result = getMonitoredWarehouseForVendors_result()
4126
    result.success = self._handler.getMonitoredWarehouseForVendors(args.vendorIds)
4127
    oprot.writeMessageBegin("getMonitoredWarehouseForVendors", TMessageType.REPLY, seqid)
4128
    result.write(oprot)
4129
    oprot.writeMessageEnd()
4130
    oprot.trans.flush()
6484 amar.kumar 4131
 
6531 vikram.rag 4132
  def process_getIgnoredWarehouseidsAndItemids(self, seqid, iprot, oprot):
4133
    args = getIgnoredWarehouseidsAndItemids_args()
4134
    args.read(iprot)
4135
    iprot.readMessageEnd()
4136
    result = getIgnoredWarehouseidsAndItemids_result()
4137
    result.success = self._handler.getIgnoredWarehouseidsAndItemids()
4138
    oprot.writeMessageBegin("getIgnoredWarehouseidsAndItemids", TMessageType.REPLY, seqid)
4139
    result.write(oprot)
4140
    oprot.writeMessageEnd()
4141
    oprot.trans.flush()
4142
 
4143
  def process_insertItemtoIgnoreInventoryUpdatelist(self, seqid, iprot, oprot):
4144
    args = insertItemtoIgnoreInventoryUpdatelist_args()
4145
    args.read(iprot)
4146
    iprot.readMessageEnd()
4147
    result = insertItemtoIgnoreInventoryUpdatelist_result()
4148
    result.success = self._handler.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id)
4149
    oprot.writeMessageBegin("insertItemtoIgnoreInventoryUpdatelist", TMessageType.REPLY, seqid)
4150
    result.write(oprot)
4151
    oprot.writeMessageEnd()
4152
    oprot.trans.flush()
4153
 
4154
  def process_deleteItemFromIgnoredInventoryUpdateList(self, seqid, iprot, oprot):
4155
    args = deleteItemFromIgnoredInventoryUpdateList_args()
4156
    args.read(iprot)
4157
    iprot.readMessageEnd()
4158
    result = deleteItemFromIgnoredInventoryUpdateList_result()
4159
    result.success = self._handler.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id)
4160
    oprot.writeMessageBegin("deleteItemFromIgnoredInventoryUpdateList", TMessageType.REPLY, seqid)
4161
    result.write(oprot)
4162
    oprot.writeMessageEnd()
4163
    oprot.trans.flush()
4164
 
4165
  def process_getAllIgnoredInventoryupdateItemsCount(self, seqid, iprot, oprot):
4166
    args = getAllIgnoredInventoryupdateItemsCount_args()
4167
    args.read(iprot)
4168
    iprot.readMessageEnd()
4169
    result = getAllIgnoredInventoryupdateItemsCount_result()
4170
    result.success = self._handler.getAllIgnoredInventoryupdateItemsCount()
4171
    oprot.writeMessageBegin("getAllIgnoredInventoryupdateItemsCount", TMessageType.REPLY, seqid)
4172
    result.write(oprot)
4173
    oprot.writeMessageEnd()
4174
    oprot.trans.flush()
4175
 
4176
  def process_getIgnoredInventoryUpdateItemids(self, seqid, iprot, oprot):
4177
    args = getIgnoredInventoryUpdateItemids_args()
4178
    args.read(iprot)
4179
    iprot.readMessageEnd()
4180
    result = getIgnoredInventoryUpdateItemids_result()
4181
    result.success = self._handler.getIgnoredInventoryUpdateItemids(args.offset, args.limit)
4182
    oprot.writeMessageBegin("getIgnoredInventoryUpdateItemids", TMessageType.REPLY, seqid)
4183
    result.write(oprot)
4184
    oprot.writeMessageEnd()
4185
    oprot.trans.flush()
4186
 
6821 amar.kumar 4187
  def process_updateItemStockPurchaseParams(self, seqid, iprot, oprot):
4188
    args = updateItemStockPurchaseParams_args()
4189
    args.read(iprot)
4190
    iprot.readMessageEnd()
4191
    result = updateItemStockPurchaseParams_result()
4192
    self._handler.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel)
4193
    oprot.writeMessageBegin("updateItemStockPurchaseParams", TMessageType.REPLY, seqid)
4194
    result.write(oprot)
4195
    oprot.writeMessageEnd()
4196
    oprot.trans.flush()
6531 vikram.rag 4197
 
6821 amar.kumar 4198
  def process_getItemStockPurchaseParams(self, seqid, iprot, oprot):
4199
    args = getItemStockPurchaseParams_args()
4200
    args.read(iprot)
4201
    iprot.readMessageEnd()
4202
    result = getItemStockPurchaseParams_result()
4203
    result.success = self._handler.getItemStockPurchaseParams(args.itemId)
4204
    oprot.writeMessageBegin("getItemStockPurchaseParams", TMessageType.REPLY, seqid)
4205
    result.write(oprot)
4206
    oprot.writeMessageEnd()
4207
    oprot.trans.flush()
4208
 
4209
  def process_addOosStatusForItem(self, seqid, iprot, oprot):
4210
    args = addOosStatusForItem_args()
4211
    args.read(iprot)
4212
    iprot.readMessageEnd()
4213
    result = addOosStatusForItem_result()
4214
    self._handler.addOosStatusForItem(args.oosStatusMap, args.date)
4215
    oprot.writeMessageBegin("addOosStatusForItem", TMessageType.REPLY, seqid)
4216
    result.write(oprot)
4217
    oprot.writeMessageEnd()
4218
    oprot.trans.flush()
4219
 
6832 amar.kumar 4220
  def process_getOosStatusesForXDaysForItem(self, seqid, iprot, oprot):
4221
    args = getOosStatusesForXDaysForItem_args()
4222
    args.read(iprot)
4223
    iprot.readMessageEnd()
4224
    result = getOosStatusesForXDaysForItem_result()
9762 amar.kumar 4225
    result.success = self._handler.getOosStatusesForXDaysForItem(args.itemId, args.sourceId, args.days)
6832 amar.kumar 4226
    oprot.writeMessageBegin("getOosStatusesForXDaysForItem", TMessageType.REPLY, seqid)
4227
    result.write(oprot)
4228
    oprot.writeMessageEnd()
4229
    oprot.trans.flush()
6821 amar.kumar 4230
 
10126 amar.kumar 4231
  def process_getOosStatusesForXDays(self, seqid, iprot, oprot):
4232
    args = getOosStatusesForXDays_args()
4233
    args.read(iprot)
4234
    iprot.readMessageEnd()
4235
    result = getOosStatusesForXDays_result()
4236
    result.success = self._handler.getOosStatusesForXDays(args.sourceId, args.days)
4237
    oprot.writeMessageBegin("getOosStatusesForXDays", TMessageType.REPLY, seqid)
4238
    result.write(oprot)
4239
    oprot.writeMessageEnd()
4240
    oprot.trans.flush()
4241
 
4242
  def process_getAllVendorItemPricing(self, seqid, iprot, oprot):
4243
    args = getAllVendorItemPricing_args()
4244
    args.read(iprot)
4245
    iprot.readMessageEnd()
4246
    result = getAllVendorItemPricing_result()
4247
    result.success = self._handler.getAllVendorItemPricing(args.itemId, args.vendorId)
4248
    oprot.writeMessageBegin("getAllVendorItemPricing", TMessageType.REPLY, seqid)
4249
    result.write(oprot)
4250
    oprot.writeMessageEnd()
4251
    oprot.trans.flush()
4252
 
6857 amar.kumar 4253
  def process_getNonZeroItemStockPurchaseParams(self, seqid, iprot, oprot):
4254
    args = getNonZeroItemStockPurchaseParams_args()
4255
    args.read(iprot)
4256
    iprot.readMessageEnd()
4257
    result = getNonZeroItemStockPurchaseParams_result()
4258
    result.success = self._handler.getNonZeroItemStockPurchaseParams()
4259
    oprot.writeMessageBegin("getNonZeroItemStockPurchaseParams", TMessageType.REPLY, seqid)
4260
    result.write(oprot)
4261
    oprot.writeMessageEnd()
4262
    oprot.trans.flush()
6832 amar.kumar 4263
 
7149 amar.kumar 4264
  def process_getBillableInventoryAndPendingOrders(self, seqid, iprot, oprot):
4265
    args = getBillableInventoryAndPendingOrders_args()
4266
    args.read(iprot)
4267
    iprot.readMessageEnd()
4268
    result = getBillableInventoryAndPendingOrders_result()
4269
    result.success = self._handler.getBillableInventoryAndPendingOrders()
4270
    oprot.writeMessageBegin("getBillableInventoryAndPendingOrders", TMessageType.REPLY, seqid)
4271
    result.write(oprot)
4272
    oprot.writeMessageEnd()
4273
    oprot.trans.flush()
6857 amar.kumar 4274
 
7281 kshitij.so 4275
  def process_getWarehouseName(self, seqid, iprot, oprot):
4276
    args = getWarehouseName_args()
4277
    args.read(iprot)
4278
    iprot.readMessageEnd()
4279
    result = getWarehouseName_result()
4280
    result.success = self._handler.getWarehouseName(args.warehouse_id)
4281
    oprot.writeMessageBegin("getWarehouseName", TMessageType.REPLY, seqid)
4282
    result.write(oprot)
4283
    oprot.writeMessageEnd()
4284
    oprot.trans.flush()
7149 amar.kumar 4285
 
7281 kshitij.so 4286
  def process_getAmazonInventoryForItem(self, seqid, iprot, oprot):
4287
    args = getAmazonInventoryForItem_args()
4288
    args.read(iprot)
4289
    iprot.readMessageEnd()
4290
    result = getAmazonInventoryForItem_result()
4291
    result.success = self._handler.getAmazonInventoryForItem(args.item_id)
4292
    oprot.writeMessageBegin("getAmazonInventoryForItem", TMessageType.REPLY, seqid)
4293
    result.write(oprot)
4294
    oprot.writeMessageEnd()
4295
    oprot.trans.flush()
4296
 
4297
  def process_getAllAmazonInventory(self, seqid, iprot, oprot):
4298
    args = getAllAmazonInventory_args()
4299
    args.read(iprot)
4300
    iprot.readMessageEnd()
4301
    result = getAllAmazonInventory_result()
4302
    result.success = self._handler.getAllAmazonInventory()
4303
    oprot.writeMessageBegin("getAllAmazonInventory", TMessageType.REPLY, seqid)
4304
    result.write(oprot)
4305
    oprot.writeMessageEnd()
4306
    oprot.trans.flush()
4307
 
4308
  def process_addOrUpdateAmazonInventoryForItem(self, seqid, iprot, oprot):
4309
    args = addOrUpdateAmazonInventoryForItem_args()
4310
    args.read(iprot)
4311
    iprot.readMessageEnd()
4312
    result = addOrUpdateAmazonInventoryForItem_result()
10450 vikram.rag 4313
    self._handler.addOrUpdateAmazonInventoryForItem(args.amazonInventorySnapshot, args.time)
7281 kshitij.so 4314
    oprot.writeMessageBegin("addOrUpdateAmazonInventoryForItem", TMessageType.REPLY, seqid)
4315
    result.write(oprot)
4316
    oprot.writeMessageEnd()
4317
    oprot.trans.flush()
4318
 
7972 amar.kumar 4319
  def process_getLastNdaySaleForItem(self, seqid, iprot, oprot):
4320
    args = getLastNdaySaleForItem_args()
4321
    args.read(iprot)
4322
    iprot.readMessageEnd()
4323
    result = getLastNdaySaleForItem_result()
4324
    result.success = self._handler.getLastNdaySaleForItem(args.itemId, args.numberOfDays)
4325
    oprot.writeMessageBegin("getLastNdaySaleForItem", TMessageType.REPLY, seqid)
4326
    result.write(oprot)
4327
    oprot.writeMessageEnd()
4328
    oprot.trans.flush()
7281 kshitij.so 4329
 
8282 kshitij.so 4330
  def process_addOrUpdateAmazonFbaInventory(self, seqid, iprot, oprot):
4331
    args = addOrUpdateAmazonFbaInventory_args()
4332
    args.read(iprot)
4333
    iprot.readMessageEnd()
4334
    result = addOrUpdateAmazonFbaInventory_result()
4335
    self._handler.addOrUpdateAmazonFbaInventory(args.amazonfbainventorysnapshot)
4336
    oprot.writeMessageBegin("addOrUpdateAmazonFbaInventory", TMessageType.REPLY, seqid)
4337
    result.write(oprot)
4338
    oprot.writeMessageEnd()
4339
    oprot.trans.flush()
4340
 
8182 amar.kumar 4341
  def process_addUpdateHoldInventory(self, seqid, iprot, oprot):
4342
    args = addUpdateHoldInventory_args()
4343
    args.read(iprot)
4344
    iprot.readMessageEnd()
4345
    result = addUpdateHoldInventory_result()
9762 amar.kumar 4346
    try:
4347
      self._handler.addUpdateHoldInventory(args.itemId, args.warehouseId, args.holdQuantity, args.source)
4348
    except InventoryServiceException, cex:
4349
      result.cex = cex
8182 amar.kumar 4350
    oprot.writeMessageBegin("addUpdateHoldInventory", TMessageType.REPLY, seqid)
4351
    result.write(oprot)
4352
    oprot.writeMessageEnd()
4353
    oprot.trans.flush()
7972 amar.kumar 4354
 
8282 kshitij.so 4355
  def process_getAmazonFbaItemInventory(self, seqid, iprot, oprot):
4356
    args = getAmazonFbaItemInventory_args()
4357
    args.read(iprot)
4358
    iprot.readMessageEnd()
4359
    result = getAmazonFbaItemInventory_result()
4360
    result.success = self._handler.getAmazonFbaItemInventory(args.itemId)
4361
    oprot.writeMessageBegin("getAmazonFbaItemInventory", TMessageType.REPLY, seqid)
4362
    result.write(oprot)
4363
    oprot.writeMessageEnd()
4364
    oprot.trans.flush()
8182 amar.kumar 4365
 
8363 vikram.rag 4366
  def process_getAllAmazonFbaItemInventory(self, seqid, iprot, oprot):
4367
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 4368
    args.read(iprot)
4369
    iprot.readMessageEnd()
8363 vikram.rag 4370
    result = getAllAmazonFbaItemInventory_result()
4371
    result.success = self._handler.getAllAmazonFbaItemInventory()
4372
    oprot.writeMessageBegin("getAllAmazonFbaItemInventory", TMessageType.REPLY, seqid)
8282 kshitij.so 4373
    result.write(oprot)
4374
    oprot.writeMessageEnd()
4375
    oprot.trans.flush()
4376
 
8363 vikram.rag 4377
  def process_getOursGoodWarehouseIdsForLocation(self, seqid, iprot, oprot):
4378
    args = getOursGoodWarehouseIdsForLocation_args()
4379
    args.read(iprot)
4380
    iprot.readMessageEnd()
4381
    result = getOursGoodWarehouseIdsForLocation_result()
4382
    result.success = self._handler.getOursGoodWarehouseIdsForLocation(args.state_id)
4383
    oprot.writeMessageBegin("getOursGoodWarehouseIdsForLocation", TMessageType.REPLY, seqid)
4384
    result.write(oprot)
4385
    oprot.writeMessageEnd()
4386
    oprot.trans.flush()
8282 kshitij.so 4387
 
8955 vikram.rag 4388
  def process_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, seqid, iprot, oprot):
4389
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
4390
    args.read(iprot)
4391
    iprot.readMessageEnd()
4392
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
4393
    result.success = self._handler.getHoldInventoryDetailForItemForWarehouseIdExceptSource(args.id, args.warehouse_id, args.source)
4394
    oprot.writeMessageBegin("getHoldInventoryDetailForItemForWarehouseIdExceptSource", TMessageType.REPLY, seqid)
4395
    result.write(oprot)
4396
    oprot.writeMessageEnd()
4397
    oprot.trans.flush()
8363 vikram.rag 4398
 
9404 vikram.rag 4399
  def process_getSnapdealInventoryForItem(self, seqid, iprot, oprot):
4400
    args = getSnapdealInventoryForItem_args()
4401
    args.read(iprot)
4402
    iprot.readMessageEnd()
4403
    result = getSnapdealInventoryForItem_result()
4404
    result.success = self._handler.getSnapdealInventoryForItem(args.item_id)
4405
    oprot.writeMessageBegin("getSnapdealInventoryForItem", TMessageType.REPLY, seqid)
4406
    result.write(oprot)
4407
    oprot.writeMessageEnd()
4408
    oprot.trans.flush()
8955 vikram.rag 4409
 
9404 vikram.rag 4410
  def process_addOrUpdateSnapdealInventoryForItem(self, seqid, iprot, oprot):
4411
    args = addOrUpdateSnapdealInventoryForItem_args()
4412
    args.read(iprot)
4413
    iprot.readMessageEnd()
4414
    result = addOrUpdateSnapdealInventoryForItem_result()
4415
    self._handler.addOrUpdateSnapdealInventoryForItem(args.snapdealinventoryitem)
4416
    oprot.writeMessageBegin("addOrUpdateSnapdealInventoryForItem", TMessageType.REPLY, seqid)
4417
    result.write(oprot)
4418
    oprot.writeMessageEnd()
4419
    oprot.trans.flush()
4420
 
4421
  def process_getNlcForWarehouse(self, seqid, iprot, oprot):
4422
    args = getNlcForWarehouse_args()
4423
    args.read(iprot)
4424
    iprot.readMessageEnd()
4425
    result = getNlcForWarehouse_result()
4426
    result.success = self._handler.getNlcForWarehouse(args.warehouse_id, args.item_id)
4427
    oprot.writeMessageBegin("getNlcForWarehouse", TMessageType.REPLY, seqid)
4428
    result.write(oprot)
4429
    oprot.writeMessageEnd()
4430
    oprot.trans.flush()
4431
 
9640 amar.kumar 4432
  def process_getHeldInventoryMapForItem(self, seqid, iprot, oprot):
4433
    args = getHeldInventoryMapForItem_args()
4434
    args.read(iprot)
4435
    iprot.readMessageEnd()
4436
    result = getHeldInventoryMapForItem_result()
4437
    result.success = self._handler.getHeldInventoryMapForItem(args.item_id, args.warehouse_id)
4438
    oprot.writeMessageBegin("getHeldInventoryMapForItem", TMessageType.REPLY, seqid)
4439
    result.write(oprot)
4440
    oprot.writeMessageEnd()
4441
    oprot.trans.flush()
4442
 
9495 vikram.rag 4443
  def process_addOrUpdateAllAmazonFbaInventory(self, seqid, iprot, oprot):
4444
    args = addOrUpdateAllAmazonFbaInventory_args()
9456 vikram.rag 4445
    args.read(iprot)
4446
    iprot.readMessageEnd()
9495 vikram.rag 4447
    result = addOrUpdateAllAmazonFbaInventory_result()
4448
    self._handler.addOrUpdateAllAmazonFbaInventory(args.allamazonfbainventorysnapshot)
4449
    oprot.writeMessageBegin("addOrUpdateAllAmazonFbaInventory", TMessageType.REPLY, seqid)
9456 vikram.rag 4450
    result.write(oprot)
4451
    oprot.writeMessageEnd()
4452
    oprot.trans.flush()
9404 vikram.rag 4453
 
9495 vikram.rag 4454
  def process_addOrUpdateAllSnapdealInventory(self, seqid, iprot, oprot):
4455
    args = addOrUpdateAllSnapdealInventory_args()
9482 vikram.rag 4456
    args.read(iprot)
4457
    iprot.readMessageEnd()
9495 vikram.rag 4458
    result = addOrUpdateAllSnapdealInventory_result()
4459
    self._handler.addOrUpdateAllSnapdealInventory(args.allsnapdealinventorysnapshot)
4460
    oprot.writeMessageBegin("addOrUpdateAllSnapdealInventory", TMessageType.REPLY, seqid)
9482 vikram.rag 4461
    result.write(oprot)
4462
    oprot.writeMessageEnd()
4463
    oprot.trans.flush()
9456 vikram.rag 4464
 
9495 vikram.rag 4465
  def process_getSnapdealInventorySnapshot(self, seqid, iprot, oprot):
4466
    args = getSnapdealInventorySnapshot_args()
4467
    args.read(iprot)
4468
    iprot.readMessageEnd()
4469
    result = getSnapdealInventorySnapshot_result()
4470
    result.success = self._handler.getSnapdealInventorySnapshot()
4471
    oprot.writeMessageBegin("getSnapdealInventorySnapshot", TMessageType.REPLY, seqid)
4472
    result.write(oprot)
4473
    oprot.writeMessageEnd()
4474
    oprot.trans.flush()
9482 vikram.rag 4475
 
9761 amar.kumar 4476
  def process_getHoldInventoryDetails(self, seqid, iprot, oprot):
4477
    args = getHoldInventoryDetails_args()
4478
    args.read(iprot)
4479
    iprot.readMessageEnd()
4480
    result = getHoldInventoryDetails_result()
4481
    result.success = self._handler.getHoldInventoryDetails(args.itemId, args.warehouseId, args.source)
4482
    oprot.writeMessageBegin("getHoldInventoryDetails", TMessageType.REPLY, seqid)
4483
    result.write(oprot)
4484
    oprot.writeMessageEnd()
4485
    oprot.trans.flush()
9495 vikram.rag 4486
 
10050 vikram.rag 4487
  def process_addOrUpdateFlipkartInventorySnapshot(self, seqid, iprot, oprot):
4488
    args = addOrUpdateFlipkartInventorySnapshot_args()
4489
    args.read(iprot)
4490
    iprot.readMessageEnd()
4491
    result = addOrUpdateFlipkartInventorySnapshot_result()
10450 vikram.rag 4492
    self._handler.addOrUpdateFlipkartInventorySnapshot(args.flipkartInventorySnapshot, args.time)
10050 vikram.rag 4493
    oprot.writeMessageBegin("addOrUpdateFlipkartInventorySnapshot", TMessageType.REPLY, seqid)
4494
    result.write(oprot)
4495
    oprot.writeMessageEnd()
4496
    oprot.trans.flush()
9761 amar.kumar 4497
 
10050 vikram.rag 4498
  def process_getFlipkartInventorySnapshot(self, seqid, iprot, oprot):
4499
    args = getFlipkartInventorySnapshot_args()
4500
    args.read(iprot)
4501
    iprot.readMessageEnd()
4502
    result = getFlipkartInventorySnapshot_result()
4503
    result.success = self._handler.getFlipkartInventorySnapshot()
4504
    oprot.writeMessageBegin("getFlipkartInventorySnapshot", TMessageType.REPLY, seqid)
4505
    result.write(oprot)
4506
    oprot.writeMessageEnd()
4507
    oprot.trans.flush()
4508
 
10097 kshitij.so 4509
  def process_getFlipkartlInventoryForItem(self, seqid, iprot, oprot):
4510
    args = getFlipkartlInventoryForItem_args()
4511
    args.read(iprot)
4512
    iprot.readMessageEnd()
4513
    result = getFlipkartlInventoryForItem_result()
4514
    result.success = self._handler.getFlipkartlInventoryForItem(args.item_id)
4515
    oprot.writeMessageBegin("getFlipkartlInventoryForItem", TMessageType.REPLY, seqid)
4516
    result.write(oprot)
4517
    oprot.writeMessageEnd()
4518
    oprot.trans.flush()
10050 vikram.rag 4519
 
10485 vikram.rag 4520
  def process_getStateMaster(self, seqid, iprot, oprot):
4521
    args = getStateMaster_args()
4522
    args.read(iprot)
4523
    iprot.readMessageEnd()
4524
    result = getStateMaster_result()
4525
    result.success = self._handler.getStateMaster()
4526
    oprot.writeMessageBegin("getStateMaster", TMessageType.REPLY, seqid)
4527
    result.write(oprot)
4528
    oprot.writeMessageEnd()
4529
    oprot.trans.flush()
10097 kshitij.so 4530
 
10544 vikram.rag 4531
  def process_updateSnapdealStockAtEOD(self, seqid, iprot, oprot):
4532
    args = updateSnapdealStockAtEOD_args()
4533
    args.read(iprot)
4534
    iprot.readMessageEnd()
4535
    result = updateSnapdealStockAtEOD_result()
4536
    self._handler.updateSnapdealStockAtEOD(args.allsnapdealstock)
4537
    oprot.writeMessageBegin("updateSnapdealStockAtEOD", TMessageType.REPLY, seqid)
4538
    result.write(oprot)
4539
    oprot.writeMessageEnd()
4540
    oprot.trans.flush()
10485 vikram.rag 4541
 
10544 vikram.rag 4542
  def process_updateFlipkartStockAtEOD(self, seqid, iprot, oprot):
4543
    args = updateFlipkartStockAtEOD_args()
4544
    args.read(iprot)
4545
    iprot.readMessageEnd()
4546
    result = updateFlipkartStockAtEOD_result()
4547
    self._handler.updateFlipkartStockAtEOD(args.allflipkartstock)
4548
    oprot.writeMessageBegin("updateFlipkartStockAtEOD", TMessageType.REPLY, seqid)
4549
    result.write(oprot)
4550
    oprot.writeMessageEnd()
4551
    oprot.trans.flush()
4552
 
12363 kshitij.so 4553
  def process_getWanNlcForSource(self, seqid, iprot, oprot):
4554
    args = getWanNlcForSource_args()
4555
    args.read(iprot)
4556
    iprot.readMessageEnd()
4557
    result = getWanNlcForSource_result()
4558
    result.success = self._handler.getWanNlcForSource(args.item_id, args.source)
4559
    oprot.writeMessageBegin("getWanNlcForSource", TMessageType.REPLY, seqid)
4560
    result.write(oprot)
4561
    oprot.writeMessageEnd()
4562
    oprot.trans.flush()
10544 vikram.rag 4563
 
12363 kshitij.so 4564
  def process_getAllAvailableAmazonFbaItemInventory(self, seqid, iprot, oprot):
4565
    args = getAllAvailableAmazonFbaItemInventory_args()
4566
    args.read(iprot)
4567
    iprot.readMessageEnd()
4568
    result = getAllAvailableAmazonFbaItemInventory_result()
4569
    result.success = self._handler.getAllAvailableAmazonFbaItemInventory()
4570
    oprot.writeMessageBegin("getAllAvailableAmazonFbaItemInventory", TMessageType.REPLY, seqid)
4571
    result.write(oprot)
4572
    oprot.writeMessageEnd()
4573
    oprot.trans.flush()
4574
 
17990 kshitij.so 4575
  def process_updateItemAvailabilityForItemIds(self, seqid, iprot, oprot):
4576
    args = updateItemAvailabilityForItemIds_args()
4577
    args.read(iprot)
4578
    iprot.readMessageEnd()
4579
    result = updateItemAvailabilityForItemIds_result()
4580
    result.success = self._handler.updateItemAvailabilityForItemIds(args.itemIds)
4581
    oprot.writeMessageBegin("updateItemAvailabilityForItemIds", TMessageType.REPLY, seqid)
4582
    result.write(oprot)
4583
    oprot.writeMessageEnd()
4584
    oprot.trans.flush()
12363 kshitij.so 4585
 
19247 kshitij.so 4586
  def process_addVendorItemPricingInBulk(self, seqid, iprot, oprot):
4587
    args = addVendorItemPricingInBulk_args()
4588
    args.read(iprot)
4589
    iprot.readMessageEnd()
4590
    result = addVendorItemPricingInBulk_result()
4591
    result.success = self._handler.addVendorItemPricingInBulk(args.vendorItemPricingList)
4592
    oprot.writeMessageBegin("addVendorItemPricingInBulk", TMessageType.REPLY, seqid)
4593
    result.write(oprot)
4594
    oprot.writeMessageEnd()
4595
    oprot.trans.flush()
17990 kshitij.so 4596
 
19247 kshitij.so 4597
  def process_addInventoryInBulk(self, seqid, iprot, oprot):
4598
    args = addInventoryInBulk_args()
4599
    args.read(iprot)
4600
    iprot.readMessageEnd()
4601
    result = addInventoryInBulk_result()
4602
    try:
4603
      self._handler.addInventoryInBulk(args.bulkInventoryList)
4604
    except InventoryServiceException, cex:
4605
      result.cex = cex
4606
    oprot.writeMessageBegin("addInventoryInBulk", TMessageType.REPLY, seqid)
4607
    result.write(oprot)
4608
    oprot.writeMessageEnd()
4609
    oprot.trans.flush()
4610
 
22717 amit.gupta 4611
  def process_getFofoAvailability(self, seqid, iprot, oprot):
4612
    args = getFofoAvailability_args()
4613
    args.read(iprot)
4614
    iprot.readMessageEnd()
4615
    result = getFofoAvailability_result()
4616
    result.success = self._handler.getFofoAvailability(args.itemIds)
4617
    oprot.writeMessageBegin("getFofoAvailability", TMessageType.REPLY, seqid)
4618
    result.write(oprot)
4619
    oprot.writeMessageEnd()
4620
    oprot.trans.flush()
4621
 
22721 amit.gupta 4622
  def process_getFofoFulFillmentWarehouseMap(self, seqid, iprot, oprot):
4623
    args = getFofoFulFillmentWarehouseMap_args()
4624
    args.read(iprot)
4625
    iprot.readMessageEnd()
4626
    result = getFofoFulFillmentWarehouseMap_result()
4627
    result.success = self._handler.getFofoFulFillmentWarehouseMap(args.itemIds)
4628
    oprot.writeMessageBegin("getFofoFulFillmentWarehouseMap", TMessageType.REPLY, seqid)
4629
    result.write(oprot)
4630
    oprot.writeMessageEnd()
4631
    oprot.trans.flush()
4632
 
19413 amit.gupta 4633
  def process_getItemLocationAvailabilityCache(self, seqid, iprot, oprot):
4634
    args = getItemLocationAvailabilityCache_args()
4635
    args.read(iprot)
4636
    iprot.readMessageEnd()
4637
    result = getItemLocationAvailabilityCache_result()
4638
    result.success = self._handler.getItemLocationAvailabilityCache(args.itemLocations)
4639
    oprot.writeMessageBegin("getItemLocationAvailabilityCache", TMessageType.REPLY, seqid)
4640
    result.write(oprot)
4641
    oprot.writeMessageEnd()
4642
    oprot.trans.flush()
19247 kshitij.so 4643
 
19413 amit.gupta 4644
  def process_getItemLocationAvailabilityCacheByItemId(self, seqid, iprot, oprot):
4645
    args = getItemLocationAvailabilityCacheByItemId_args()
4646
    args.read(iprot)
4647
    iprot.readMessageEnd()
4648
    result = getItemLocationAvailabilityCacheByItemId_result()
4649
    result.success = self._handler.getItemLocationAvailabilityCacheByItemId(args.itemIds)
4650
    oprot.writeMessageBegin("getItemLocationAvailabilityCacheByItemId", TMessageType.REPLY, seqid)
4651
    result.write(oprot)
4652
    oprot.writeMessageEnd()
4653
    oprot.trans.flush()
4654
 
4655
  def process_getItemPincodeAvailability(self, seqid, iprot, oprot):
4656
    args = getItemPincodeAvailability_args()
4657
    args.read(iprot)
4658
    iprot.readMessageEnd()
4659
    result = getItemPincodeAvailability_result()
19416 amit.gupta 4660
    result.success = self._handler.getItemPincodeAvailability(args.itempricing, args.pincode)
19413 amit.gupta 4661
    oprot.writeMessageBegin("getItemPincodeAvailability", TMessageType.REPLY, seqid)
4662
    result.write(oprot)
4663
    oprot.writeMessageEnd()
4664
    oprot.trans.flush()
4665
 
4666
 
5944 mandeep.dh 4667
# HELPER FUNCTIONS AND STRUCTURES
4668
 
4669
class addWarehouse_args:
4670
  """
4671
  Attributes:
4672
   - warehouse
4673
  """
4674
 
4675
  thrift_spec = (
4676
    None, # 0
4677
    (1, TType.STRUCT, 'warehouse', (Warehouse, Warehouse.thrift_spec), None, ), # 1
4678
  )
4679
 
4680
  def __init__(self, warehouse=None,):
4681
    self.warehouse = warehouse
4682
 
4683
  def read(self, iprot):
4684
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4685
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4686
      return
4687
    iprot.readStructBegin()
4688
    while True:
4689
      (fname, ftype, fid) = iprot.readFieldBegin()
4690
      if ftype == TType.STOP:
4691
        break
4692
      if fid == 1:
4693
        if ftype == TType.STRUCT:
4694
          self.warehouse = Warehouse()
4695
          self.warehouse.read(iprot)
4696
        else:
4697
          iprot.skip(ftype)
4698
      else:
4699
        iprot.skip(ftype)
4700
      iprot.readFieldEnd()
4701
    iprot.readStructEnd()
4702
 
4703
  def write(self, oprot):
4704
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4705
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4706
      return
4707
    oprot.writeStructBegin('addWarehouse_args')
4708
    if self.warehouse is not None:
4709
      oprot.writeFieldBegin('warehouse', TType.STRUCT, 1)
4710
      self.warehouse.write(oprot)
4711
      oprot.writeFieldEnd()
4712
    oprot.writeFieldStop()
4713
    oprot.writeStructEnd()
4714
 
4715
  def validate(self):
4716
    return
4717
 
4718
 
4719
  def __repr__(self):
4720
    L = ['%s=%r' % (key, value)
4721
      for key, value in self.__dict__.iteritems()]
4722
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4723
 
4724
  def __eq__(self, other):
4725
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4726
 
4727
  def __ne__(self, other):
4728
    return not (self == other)
4729
 
4730
class addWarehouse_result:
4731
  """
4732
  Attributes:
4733
   - success
4734
   - cex
4735
  """
4736
 
4737
  thrift_spec = (
4738
    (0, TType.I64, 'success', None, None, ), # 0
4739
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4740
  )
4741
 
4742
  def __init__(self, success=None, cex=None,):
4743
    self.success = success
4744
    self.cex = cex
4745
 
4746
  def read(self, iprot):
4747
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4748
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4749
      return
4750
    iprot.readStructBegin()
4751
    while True:
4752
      (fname, ftype, fid) = iprot.readFieldBegin()
4753
      if ftype == TType.STOP:
4754
        break
4755
      if fid == 0:
4756
        if ftype == TType.I64:
4757
          self.success = iprot.readI64();
4758
        else:
4759
          iprot.skip(ftype)
4760
      elif fid == 1:
4761
        if ftype == TType.STRUCT:
4762
          self.cex = InventoryServiceException()
4763
          self.cex.read(iprot)
4764
        else:
4765
          iprot.skip(ftype)
4766
      else:
4767
        iprot.skip(ftype)
4768
      iprot.readFieldEnd()
4769
    iprot.readStructEnd()
4770
 
4771
  def write(self, oprot):
4772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4774
      return
4775
    oprot.writeStructBegin('addWarehouse_result')
4776
    if self.success is not None:
4777
      oprot.writeFieldBegin('success', TType.I64, 0)
4778
      oprot.writeI64(self.success)
4779
      oprot.writeFieldEnd()
4780
    if self.cex is not None:
4781
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4782
      self.cex.write(oprot)
4783
      oprot.writeFieldEnd()
4784
    oprot.writeFieldStop()
4785
    oprot.writeStructEnd()
4786
 
4787
  def validate(self):
4788
    return
4789
 
4790
 
4791
  def __repr__(self):
4792
    L = ['%s=%r' % (key, value)
4793
      for key, value in self.__dict__.iteritems()]
4794
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4795
 
4796
  def __eq__(self, other):
4797
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4798
 
4799
  def __ne__(self, other):
4800
    return not (self == other)
4801
 
4802
class addVendor_args:
4803
  """
4804
  Attributes:
4805
   - vendor
4806
  """
4807
 
4808
  thrift_spec = (
4809
    None, # 0
4810
    (1, TType.STRUCT, 'vendor', (Vendor, Vendor.thrift_spec), None, ), # 1
4811
  )
4812
 
4813
  def __init__(self, vendor=None,):
4814
    self.vendor = vendor
4815
 
4816
  def read(self, iprot):
4817
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4818
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4819
      return
4820
    iprot.readStructBegin()
4821
    while True:
4822
      (fname, ftype, fid) = iprot.readFieldBegin()
4823
      if ftype == TType.STOP:
4824
        break
4825
      if fid == 1:
4826
        if ftype == TType.STRUCT:
4827
          self.vendor = Vendor()
4828
          self.vendor.read(iprot)
4829
        else:
4830
          iprot.skip(ftype)
4831
      else:
4832
        iprot.skip(ftype)
4833
      iprot.readFieldEnd()
4834
    iprot.readStructEnd()
4835
 
4836
  def write(self, oprot):
4837
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4838
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4839
      return
4840
    oprot.writeStructBegin('addVendor_args')
4841
    if self.vendor is not None:
4842
      oprot.writeFieldBegin('vendor', TType.STRUCT, 1)
4843
      self.vendor.write(oprot)
4844
      oprot.writeFieldEnd()
4845
    oprot.writeFieldStop()
4846
    oprot.writeStructEnd()
4847
 
4848
  def validate(self):
4849
    return
4850
 
4851
 
4852
  def __repr__(self):
4853
    L = ['%s=%r' % (key, value)
4854
      for key, value in self.__dict__.iteritems()]
4855
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4856
 
4857
  def __eq__(self, other):
4858
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4859
 
4860
  def __ne__(self, other):
4861
    return not (self == other)
4862
 
4863
class addVendor_result:
4864
  """
4865
  Attributes:
4866
   - success
4867
   - cex
4868
  """
4869
 
4870
  thrift_spec = (
4871
    (0, TType.I64, 'success', None, None, ), # 0
4872
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4873
  )
4874
 
4875
  def __init__(self, success=None, cex=None,):
4876
    self.success = success
4877
    self.cex = cex
4878
 
4879
  def read(self, iprot):
4880
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4881
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4882
      return
4883
    iprot.readStructBegin()
4884
    while True:
4885
      (fname, ftype, fid) = iprot.readFieldBegin()
4886
      if ftype == TType.STOP:
4887
        break
4888
      if fid == 0:
4889
        if ftype == TType.I64:
4890
          self.success = iprot.readI64();
4891
        else:
4892
          iprot.skip(ftype)
4893
      elif fid == 1:
4894
        if ftype == TType.STRUCT:
4895
          self.cex = InventoryServiceException()
4896
          self.cex.read(iprot)
4897
        else:
4898
          iprot.skip(ftype)
4899
      else:
4900
        iprot.skip(ftype)
4901
      iprot.readFieldEnd()
4902
    iprot.readStructEnd()
4903
 
4904
  def write(self, oprot):
4905
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4906
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4907
      return
4908
    oprot.writeStructBegin('addVendor_result')
4909
    if self.success is not None:
4910
      oprot.writeFieldBegin('success', TType.I64, 0)
4911
      oprot.writeI64(self.success)
4912
      oprot.writeFieldEnd()
4913
    if self.cex is not None:
4914
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4915
      self.cex.write(oprot)
4916
      oprot.writeFieldEnd()
4917
    oprot.writeFieldStop()
4918
    oprot.writeStructEnd()
4919
 
4920
  def validate(self):
4921
    return
4922
 
4923
 
4924
  def __repr__(self):
4925
    L = ['%s=%r' % (key, value)
4926
      for key, value in self.__dict__.iteritems()]
4927
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4928
 
4929
  def __eq__(self, other):
4930
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4931
 
4932
  def __ne__(self, other):
4933
    return not (self == other)
4934
 
4935
class updateInventoryHistory_args:
4936
  """
4937
  Attributes:
4938
   - warehouse_id
4939
   - timestamp
4940
   - availability
4941
  """
4942
 
4943
  thrift_spec = (
4944
    None, # 0
4945
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4946
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4947
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4948
  )
4949
 
4950
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4951
    self.warehouse_id = warehouse_id
4952
    self.timestamp = timestamp
4953
    self.availability = availability
4954
 
4955
  def read(self, iprot):
4956
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4957
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4958
      return
4959
    iprot.readStructBegin()
4960
    while True:
4961
      (fname, ftype, fid) = iprot.readFieldBegin()
4962
      if ftype == TType.STOP:
4963
        break
4964
      if fid == 1:
4965
        if ftype == TType.I64:
4966
          self.warehouse_id = iprot.readI64();
4967
        else:
4968
          iprot.skip(ftype)
4969
      elif fid == 2:
4970
        if ftype == TType.STRING:
4971
          self.timestamp = iprot.readString();
4972
        else:
4973
          iprot.skip(ftype)
4974
      elif fid == 3:
4975
        if ftype == TType.MAP:
4976
          self.availability = {}
8182 amar.kumar 4977
          (_ktype28, _vtype29, _size27 ) = iprot.readMapBegin() 
4978
          for _i31 in xrange(_size27):
4979
            _key32 = iprot.readString();
4980
            _val33 = iprot.readI64();
4981
            self.availability[_key32] = _val33
5944 mandeep.dh 4982
          iprot.readMapEnd()
4983
        else:
4984
          iprot.skip(ftype)
4985
      else:
4986
        iprot.skip(ftype)
4987
      iprot.readFieldEnd()
4988
    iprot.readStructEnd()
4989
 
4990
  def write(self, oprot):
4991
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4992
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4993
      return
4994
    oprot.writeStructBegin('updateInventoryHistory_args')
4995
    if self.warehouse_id is not None:
4996
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4997
      oprot.writeI64(self.warehouse_id)
4998
      oprot.writeFieldEnd()
4999
    if self.timestamp is not None:
5000
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
5001
      oprot.writeString(self.timestamp)
5002
      oprot.writeFieldEnd()
5003
    if self.availability is not None:
5004
      oprot.writeFieldBegin('availability', TType.MAP, 3)
5005
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 5006
      for kiter34,viter35 in self.availability.items():
5007
        oprot.writeString(kiter34)
5008
        oprot.writeI64(viter35)
5944 mandeep.dh 5009
      oprot.writeMapEnd()
5010
      oprot.writeFieldEnd()
5011
    oprot.writeFieldStop()
5012
    oprot.writeStructEnd()
5013
 
5014
  def validate(self):
5015
    return
5016
 
5017
 
5018
  def __repr__(self):
5019
    L = ['%s=%r' % (key, value)
5020
      for key, value in self.__dict__.iteritems()]
5021
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5022
 
5023
  def __eq__(self, other):
5024
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5025
 
5026
  def __ne__(self, other):
5027
    return not (self == other)
5028
 
5029
class updateInventoryHistory_result:
5030
  """
5031
  Attributes:
5032
   - cex
5033
  """
5034
 
5035
  thrift_spec = (
5036
    None, # 0
5037
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5038
  )
5039
 
5040
  def __init__(self, cex=None,):
5041
    self.cex = cex
5042
 
5043
  def read(self, iprot):
5044
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5045
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5046
      return
5047
    iprot.readStructBegin()
5048
    while True:
5049
      (fname, ftype, fid) = iprot.readFieldBegin()
5050
      if ftype == TType.STOP:
5051
        break
5052
      if fid == 1:
5053
        if ftype == TType.STRUCT:
5054
          self.cex = InventoryServiceException()
5055
          self.cex.read(iprot)
5056
        else:
5057
          iprot.skip(ftype)
5058
      else:
5059
        iprot.skip(ftype)
5060
      iprot.readFieldEnd()
5061
    iprot.readStructEnd()
5062
 
5063
  def write(self, oprot):
5064
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5065
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5066
      return
5067
    oprot.writeStructBegin('updateInventoryHistory_result')
5068
    if self.cex is not None:
5069
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5070
      self.cex.write(oprot)
5071
      oprot.writeFieldEnd()
5072
    oprot.writeFieldStop()
5073
    oprot.writeStructEnd()
5074
 
5075
  def validate(self):
5076
    return
5077
 
5078
 
5079
  def __repr__(self):
5080
    L = ['%s=%r' % (key, value)
5081
      for key, value in self.__dict__.iteritems()]
5082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5083
 
5084
  def __eq__(self, other):
5085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5086
 
5087
  def __ne__(self, other):
5088
    return not (self == other)
5089
 
5090
class updateInventory_args:
5091
  """
5092
  Attributes:
5093
   - warehouse_id
5094
   - timestamp
5095
   - availability
5096
  """
5097
 
5098
  thrift_spec = (
5099
    None, # 0
5100
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5101
    (2, TType.STRING, 'timestamp', None, None, ), # 2
5102
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
5103
  )
5104
 
5105
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
5106
    self.warehouse_id = warehouse_id
5107
    self.timestamp = timestamp
5108
    self.availability = availability
5109
 
5110
  def read(self, iprot):
5111
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5112
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5113
      return
5114
    iprot.readStructBegin()
5115
    while True:
5116
      (fname, ftype, fid) = iprot.readFieldBegin()
5117
      if ftype == TType.STOP:
5118
        break
5119
      if fid == 1:
5120
        if ftype == TType.I64:
5121
          self.warehouse_id = iprot.readI64();
5122
        else:
5123
          iprot.skip(ftype)
5124
      elif fid == 2:
5125
        if ftype == TType.STRING:
5126
          self.timestamp = iprot.readString();
5127
        else:
5128
          iprot.skip(ftype)
5129
      elif fid == 3:
5130
        if ftype == TType.MAP:
5131
          self.availability = {}
8182 amar.kumar 5132
          (_ktype37, _vtype38, _size36 ) = iprot.readMapBegin() 
5133
          for _i40 in xrange(_size36):
5134
            _key41 = iprot.readString();
5135
            _val42 = iprot.readI64();
5136
            self.availability[_key41] = _val42
5944 mandeep.dh 5137
          iprot.readMapEnd()
5138
        else:
5139
          iprot.skip(ftype)
5140
      else:
5141
        iprot.skip(ftype)
5142
      iprot.readFieldEnd()
5143
    iprot.readStructEnd()
5144
 
5145
  def write(self, oprot):
5146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5148
      return
5149
    oprot.writeStructBegin('updateInventory_args')
5150
    if self.warehouse_id is not None:
5151
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5152
      oprot.writeI64(self.warehouse_id)
5153
      oprot.writeFieldEnd()
5154
    if self.timestamp is not None:
5155
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
5156
      oprot.writeString(self.timestamp)
5157
      oprot.writeFieldEnd()
5158
    if self.availability is not None:
5159
      oprot.writeFieldBegin('availability', TType.MAP, 3)
5160
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 5161
      for kiter43,viter44 in self.availability.items():
5162
        oprot.writeString(kiter43)
5163
        oprot.writeI64(viter44)
5944 mandeep.dh 5164
      oprot.writeMapEnd()
5165
      oprot.writeFieldEnd()
5166
    oprot.writeFieldStop()
5167
    oprot.writeStructEnd()
5168
 
5169
  def validate(self):
5170
    return
5171
 
5172
 
5173
  def __repr__(self):
5174
    L = ['%s=%r' % (key, value)
5175
      for key, value in self.__dict__.iteritems()]
5176
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5177
 
5178
  def __eq__(self, other):
5179
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5180
 
5181
  def __ne__(self, other):
5182
    return not (self == other)
5183
 
5184
class updateInventory_result:
5185
  """
5186
  Attributes:
5187
   - cex
5188
  """
5189
 
5190
  thrift_spec = (
5191
    None, # 0
5192
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5193
  )
5194
 
5195
  def __init__(self, cex=None,):
5196
    self.cex = cex
5197
 
5198
  def read(self, iprot):
5199
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5200
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5201
      return
5202
    iprot.readStructBegin()
5203
    while True:
5204
      (fname, ftype, fid) = iprot.readFieldBegin()
5205
      if ftype == TType.STOP:
5206
        break
5207
      if fid == 1:
5208
        if ftype == TType.STRUCT:
5209
          self.cex = InventoryServiceException()
5210
          self.cex.read(iprot)
5211
        else:
5212
          iprot.skip(ftype)
5213
      else:
5214
        iprot.skip(ftype)
5215
      iprot.readFieldEnd()
5216
    iprot.readStructEnd()
5217
 
5218
  def write(self, oprot):
5219
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5220
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5221
      return
5222
    oprot.writeStructBegin('updateInventory_result')
5223
    if self.cex is not None:
5224
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5225
      self.cex.write(oprot)
5226
      oprot.writeFieldEnd()
5227
    oprot.writeFieldStop()
5228
    oprot.writeStructEnd()
5229
 
5230
  def validate(self):
5231
    return
5232
 
5233
 
5234
  def __repr__(self):
5235
    L = ['%s=%r' % (key, value)
5236
      for key, value in self.__dict__.iteritems()]
5237
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5238
 
5239
  def __eq__(self, other):
5240
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5241
 
5242
  def __ne__(self, other):
5243
    return not (self == other)
5244
 
5245
class addInventory_args:
5246
  """
5247
  Attributes:
5248
   - itemId
5249
   - warehouseId
5250
   - quantity
5251
  """
5252
 
5253
  thrift_spec = (
5254
    None, # 0
5255
    (1, TType.I64, 'itemId', None, None, ), # 1
5256
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5257
    (3, TType.I64, 'quantity', None, None, ), # 3
5258
  )
5259
 
5260
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
5261
    self.itemId = itemId
5262
    self.warehouseId = warehouseId
5263
    self.quantity = quantity
5264
 
5265
  def read(self, iprot):
5266
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5267
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5268
      return
5269
    iprot.readStructBegin()
5270
    while True:
5271
      (fname, ftype, fid) = iprot.readFieldBegin()
5272
      if ftype == TType.STOP:
5273
        break
5274
      if fid == 1:
5275
        if ftype == TType.I64:
5276
          self.itemId = iprot.readI64();
5277
        else:
5278
          iprot.skip(ftype)
5279
      elif fid == 2:
5280
        if ftype == TType.I64:
5281
          self.warehouseId = iprot.readI64();
5282
        else:
5283
          iprot.skip(ftype)
5284
      elif fid == 3:
5285
        if ftype == TType.I64:
5286
          self.quantity = iprot.readI64();
5287
        else:
5288
          iprot.skip(ftype)
5289
      else:
5290
        iprot.skip(ftype)
5291
      iprot.readFieldEnd()
5292
    iprot.readStructEnd()
5293
 
5294
  def write(self, oprot):
5295
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5296
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5297
      return
5298
    oprot.writeStructBegin('addInventory_args')
5299
    if self.itemId is not None:
5300
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5301
      oprot.writeI64(self.itemId)
5302
      oprot.writeFieldEnd()
5303
    if self.warehouseId is not None:
5304
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5305
      oprot.writeI64(self.warehouseId)
5306
      oprot.writeFieldEnd()
5307
    if self.quantity is not None:
5308
      oprot.writeFieldBegin('quantity', TType.I64, 3)
5309
      oprot.writeI64(self.quantity)
5310
      oprot.writeFieldEnd()
5311
    oprot.writeFieldStop()
5312
    oprot.writeStructEnd()
5313
 
5314
  def validate(self):
5315
    return
5316
 
5317
 
5318
  def __repr__(self):
5319
    L = ['%s=%r' % (key, value)
5320
      for key, value in self.__dict__.iteritems()]
5321
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5322
 
5323
  def __eq__(self, other):
5324
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5325
 
5326
  def __ne__(self, other):
5327
    return not (self == other)
5328
 
5329
class addInventory_result:
5330
  """
5331
  Attributes:
5332
   - cex
5333
  """
5334
 
5335
  thrift_spec = (
5336
    None, # 0
5337
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5338
  )
5339
 
5340
  def __init__(self, cex=None,):
5341
    self.cex = cex
5342
 
5343
  def read(self, iprot):
5344
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5345
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5346
      return
5347
    iprot.readStructBegin()
5348
    while True:
5349
      (fname, ftype, fid) = iprot.readFieldBegin()
5350
      if ftype == TType.STOP:
5351
        break
5352
      if fid == 1:
5353
        if ftype == TType.STRUCT:
5354
          self.cex = InventoryServiceException()
5355
          self.cex.read(iprot)
5356
        else:
5357
          iprot.skip(ftype)
5358
      else:
5359
        iprot.skip(ftype)
5360
      iprot.readFieldEnd()
5361
    iprot.readStructEnd()
5362
 
5363
  def write(self, oprot):
5364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5366
      return
5367
    oprot.writeStructBegin('addInventory_result')
5368
    if self.cex is not None:
5369
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5370
      self.cex.write(oprot)
5371
      oprot.writeFieldEnd()
5372
    oprot.writeFieldStop()
5373
    oprot.writeStructEnd()
5374
 
5375
  def validate(self):
5376
    return
5377
 
5378
 
5379
  def __repr__(self):
5380
    L = ['%s=%r' % (key, value)
5381
      for key, value in self.__dict__.iteritems()]
5382
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5383
 
5384
  def __eq__(self, other):
5385
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5386
 
5387
  def __ne__(self, other):
5388
    return not (self == other)
5389
 
5390
class retireWarehouse_args:
5391
  """
5392
  Attributes:
5393
   - warehouse_id
5394
  """
5395
 
5396
  thrift_spec = (
5397
    None, # 0
5398
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5399
  )
5400
 
5401
  def __init__(self, warehouse_id=None,):
5402
    self.warehouse_id = warehouse_id
5403
 
5404
  def read(self, iprot):
5405
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5406
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5407
      return
5408
    iprot.readStructBegin()
5409
    while True:
5410
      (fname, ftype, fid) = iprot.readFieldBegin()
5411
      if ftype == TType.STOP:
5412
        break
5413
      if fid == 1:
5414
        if ftype == TType.I64:
5415
          self.warehouse_id = iprot.readI64();
5416
        else:
5417
          iprot.skip(ftype)
5418
      else:
5419
        iprot.skip(ftype)
5420
      iprot.readFieldEnd()
5421
    iprot.readStructEnd()
5422
 
5423
  def write(self, oprot):
5424
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5425
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5426
      return
5427
    oprot.writeStructBegin('retireWarehouse_args')
5428
    if self.warehouse_id is not None:
5429
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5430
      oprot.writeI64(self.warehouse_id)
5431
      oprot.writeFieldEnd()
5432
    oprot.writeFieldStop()
5433
    oprot.writeStructEnd()
5434
 
5435
  def validate(self):
5436
    return
5437
 
5438
 
5439
  def __repr__(self):
5440
    L = ['%s=%r' % (key, value)
5441
      for key, value in self.__dict__.iteritems()]
5442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5443
 
5444
  def __eq__(self, other):
5445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5446
 
5447
  def __ne__(self, other):
5448
    return not (self == other)
5449
 
5450
class retireWarehouse_result:
5451
  """
5452
  Attributes:
5453
   - cex
5454
  """
5455
 
5456
  thrift_spec = (
5457
    None, # 0
5458
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5459
  )
5460
 
5461
  def __init__(self, cex=None,):
5462
    self.cex = cex
5463
 
5464
  def read(self, iprot):
5465
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5466
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5467
      return
5468
    iprot.readStructBegin()
5469
    while True:
5470
      (fname, ftype, fid) = iprot.readFieldBegin()
5471
      if ftype == TType.STOP:
5472
        break
5473
      if fid == 1:
5474
        if ftype == TType.STRUCT:
5475
          self.cex = InventoryServiceException()
5476
          self.cex.read(iprot)
5477
        else:
5478
          iprot.skip(ftype)
5479
      else:
5480
        iprot.skip(ftype)
5481
      iprot.readFieldEnd()
5482
    iprot.readStructEnd()
5483
 
5484
  def write(self, oprot):
5485
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5486
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5487
      return
5488
    oprot.writeStructBegin('retireWarehouse_result')
5489
    if self.cex is not None:
5490
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5491
      self.cex.write(oprot)
5492
      oprot.writeFieldEnd()
5493
    oprot.writeFieldStop()
5494
    oprot.writeStructEnd()
5495
 
5496
  def validate(self):
5497
    return
5498
 
5499
 
5500
  def __repr__(self):
5501
    L = ['%s=%r' % (key, value)
5502
      for key, value in self.__dict__.iteritems()]
5503
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5504
 
5505
  def __eq__(self, other):
5506
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5507
 
5508
  def __ne__(self, other):
5509
    return not (self == other)
5510
 
5511
class getItemInventoryByItemId_args:
5512
  """
5513
  Attributes:
5514
   - item_id
5515
  """
5516
 
5517
  thrift_spec = (
5518
    None, # 0
5519
    (1, TType.I64, 'item_id', None, None, ), # 1
5520
  )
5521
 
5522
  def __init__(self, item_id=None,):
5523
    self.item_id = item_id
5524
 
5525
  def read(self, iprot):
5526
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5527
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5528
      return
5529
    iprot.readStructBegin()
5530
    while True:
5531
      (fname, ftype, fid) = iprot.readFieldBegin()
5532
      if ftype == TType.STOP:
5533
        break
5534
      if fid == 1:
5535
        if ftype == TType.I64:
5536
          self.item_id = iprot.readI64();
5537
        else:
5538
          iprot.skip(ftype)
5539
      else:
5540
        iprot.skip(ftype)
5541
      iprot.readFieldEnd()
5542
    iprot.readStructEnd()
5543
 
5544
  def write(self, oprot):
5545
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5546
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5547
      return
5548
    oprot.writeStructBegin('getItemInventoryByItemId_args')
5549
    if self.item_id is not None:
5550
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5551
      oprot.writeI64(self.item_id)
5552
      oprot.writeFieldEnd()
5553
    oprot.writeFieldStop()
5554
    oprot.writeStructEnd()
5555
 
5556
  def validate(self):
5557
    return
5558
 
5559
 
5560
  def __repr__(self):
5561
    L = ['%s=%r' % (key, value)
5562
      for key, value in self.__dict__.iteritems()]
5563
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5564
 
5565
  def __eq__(self, other):
5566
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5567
 
5568
  def __ne__(self, other):
5569
    return not (self == other)
5570
 
5571
class getItemInventoryByItemId_result:
5572
  """
5573
  Attributes:
5574
   - success
5575
   - cex
5576
  """
5577
 
5578
  thrift_spec = (
5579
    (0, TType.STRUCT, 'success', (ItemInventory, ItemInventory.thrift_spec), None, ), # 0
5580
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5581
  )
5582
 
5583
  def __init__(self, success=None, cex=None,):
5584
    self.success = success
5585
    self.cex = cex
5586
 
5587
  def read(self, iprot):
5588
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5589
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5590
      return
5591
    iprot.readStructBegin()
5592
    while True:
5593
      (fname, ftype, fid) = iprot.readFieldBegin()
5594
      if ftype == TType.STOP:
5595
        break
5596
      if fid == 0:
5597
        if ftype == TType.STRUCT:
5598
          self.success = ItemInventory()
5599
          self.success.read(iprot)
5600
        else:
5601
          iprot.skip(ftype)
5602
      elif fid == 1:
5603
        if ftype == TType.STRUCT:
5604
          self.cex = InventoryServiceException()
5605
          self.cex.read(iprot)
5606
        else:
5607
          iprot.skip(ftype)
5608
      else:
5609
        iprot.skip(ftype)
5610
      iprot.readFieldEnd()
5611
    iprot.readStructEnd()
5612
 
5613
  def write(self, oprot):
5614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5616
      return
5617
    oprot.writeStructBegin('getItemInventoryByItemId_result')
5618
    if self.success is not None:
5619
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5620
      self.success.write(oprot)
5621
      oprot.writeFieldEnd()
5622
    if self.cex is not None:
5623
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5624
      self.cex.write(oprot)
5625
      oprot.writeFieldEnd()
5626
    oprot.writeFieldStop()
5627
    oprot.writeStructEnd()
5628
 
5629
  def validate(self):
5630
    return
5631
 
5632
 
5633
  def __repr__(self):
5634
    L = ['%s=%r' % (key, value)
5635
      for key, value in self.__dict__.iteritems()]
5636
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5637
 
5638
  def __eq__(self, other):
5639
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5640
 
5641
  def __ne__(self, other):
5642
    return not (self == other)
5643
 
5644
class getItemAvailibilityAtWarehouse_args:
5645
  """
5646
  Attributes:
5647
   - warehouse_id
5648
   - item_id
5649
  """
5650
 
5651
  thrift_spec = (
5652
    None, # 0
5653
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5654
    (2, TType.I64, 'item_id', None, None, ), # 2
5655
  )
5656
 
5657
  def __init__(self, warehouse_id=None, item_id=None,):
5658
    self.warehouse_id = warehouse_id
5659
    self.item_id = item_id
5660
 
5661
  def read(self, iprot):
5662
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5663
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5664
      return
5665
    iprot.readStructBegin()
5666
    while True:
5667
      (fname, ftype, fid) = iprot.readFieldBegin()
5668
      if ftype == TType.STOP:
5669
        break
5670
      if fid == 1:
5671
        if ftype == TType.I64:
5672
          self.warehouse_id = iprot.readI64();
5673
        else:
5674
          iprot.skip(ftype)
5675
      elif fid == 2:
5676
        if ftype == TType.I64:
5677
          self.item_id = iprot.readI64();
5678
        else:
5679
          iprot.skip(ftype)
5680
      else:
5681
        iprot.skip(ftype)
5682
      iprot.readFieldEnd()
5683
    iprot.readStructEnd()
5684
 
5685
  def write(self, oprot):
5686
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5687
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5688
      return
5689
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_args')
5690
    if self.warehouse_id is not None:
5691
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5692
      oprot.writeI64(self.warehouse_id)
5693
      oprot.writeFieldEnd()
5694
    if self.item_id is not None:
5695
      oprot.writeFieldBegin('item_id', TType.I64, 2)
5696
      oprot.writeI64(self.item_id)
5697
      oprot.writeFieldEnd()
5698
    oprot.writeFieldStop()
5699
    oprot.writeStructEnd()
5700
 
5701
  def validate(self):
5702
    return
5703
 
5704
 
5705
  def __repr__(self):
5706
    L = ['%s=%r' % (key, value)
5707
      for key, value in self.__dict__.iteritems()]
5708
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5709
 
5710
  def __eq__(self, other):
5711
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5712
 
5713
  def __ne__(self, other):
5714
    return not (self == other)
5715
 
5716
class getItemAvailibilityAtWarehouse_result:
5717
  """
5718
  Attributes:
5719
   - success
5720
   - cex
5721
  """
5722
 
5723
  thrift_spec = (
5724
    (0, TType.I64, 'success', None, None, ), # 0
5725
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5726
  )
5727
 
5728
  def __init__(self, success=None, cex=None,):
5729
    self.success = success
5730
    self.cex = cex
5731
 
5732
  def read(self, iprot):
5733
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5734
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5735
      return
5736
    iprot.readStructBegin()
5737
    while True:
5738
      (fname, ftype, fid) = iprot.readFieldBegin()
5739
      if ftype == TType.STOP:
5740
        break
5741
      if fid == 0:
5742
        if ftype == TType.I64:
5743
          self.success = iprot.readI64();
5744
        else:
5745
          iprot.skip(ftype)
5746
      elif fid == 1:
5747
        if ftype == TType.STRUCT:
5748
          self.cex = InventoryServiceException()
5749
          self.cex.read(iprot)
5750
        else:
5751
          iprot.skip(ftype)
5752
      else:
5753
        iprot.skip(ftype)
5754
      iprot.readFieldEnd()
5755
    iprot.readStructEnd()
5756
 
5757
  def write(self, oprot):
5758
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5759
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5760
      return
5761
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_result')
5762
    if self.success is not None:
5763
      oprot.writeFieldBegin('success', TType.I64, 0)
5764
      oprot.writeI64(self.success)
5765
      oprot.writeFieldEnd()
5766
    if self.cex is not None:
5767
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5768
      self.cex.write(oprot)
5769
      oprot.writeFieldEnd()
5770
    oprot.writeFieldStop()
5771
    oprot.writeStructEnd()
5772
 
5773
  def validate(self):
5774
    return
5775
 
5776
 
5777
  def __repr__(self):
5778
    L = ['%s=%r' % (key, value)
5779
      for key, value in self.__dict__.iteritems()]
5780
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5781
 
5782
  def __eq__(self, other):
5783
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5784
 
5785
  def __ne__(self, other):
5786
    return not (self == other)
5787
 
5788
class getItemAvailabilityAtLocation_args:
5789
  """
5790
  Attributes:
5791
   - itemId
5978 rajveer 5792
   - sourceId
5944 mandeep.dh 5793
  """
5794
 
5795
  thrift_spec = (
5796
    None, # 0
5797
    (1, TType.I64, 'itemId', None, None, ), # 1
5978 rajveer 5798
    (2, TType.I64, 'sourceId', None, None, ), # 2
5944 mandeep.dh 5799
  )
5800
 
5978 rajveer 5801
  def __init__(self, itemId=None, sourceId=None,):
5944 mandeep.dh 5802
    self.itemId = itemId
5978 rajveer 5803
    self.sourceId = sourceId
5944 mandeep.dh 5804
 
5805
  def read(self, iprot):
5806
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5807
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5808
      return
5809
    iprot.readStructBegin()
5810
    while True:
5811
      (fname, ftype, fid) = iprot.readFieldBegin()
5812
      if ftype == TType.STOP:
5813
        break
5814
      if fid == 1:
5815
        if ftype == TType.I64:
5816
          self.itemId = iprot.readI64();
5817
        else:
5818
          iprot.skip(ftype)
5978 rajveer 5819
      elif fid == 2:
5820
        if ftype == TType.I64:
5821
          self.sourceId = iprot.readI64();
5822
        else:
5823
          iprot.skip(ftype)
5944 mandeep.dh 5824
      else:
5825
        iprot.skip(ftype)
5826
      iprot.readFieldEnd()
5827
    iprot.readStructEnd()
5828
 
5829
  def write(self, oprot):
5830
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5831
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5832
      return
5833
    oprot.writeStructBegin('getItemAvailabilityAtLocation_args')
5834
    if self.itemId is not None:
5835
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5836
      oprot.writeI64(self.itemId)
5837
      oprot.writeFieldEnd()
5978 rajveer 5838
    if self.sourceId is not None:
5839
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
5840
      oprot.writeI64(self.sourceId)
5841
      oprot.writeFieldEnd()
5944 mandeep.dh 5842
    oprot.writeFieldStop()
5843
    oprot.writeStructEnd()
5844
 
5845
  def validate(self):
5846
    return
5847
 
5848
 
5849
  def __repr__(self):
5850
    L = ['%s=%r' % (key, value)
5851
      for key, value in self.__dict__.iteritems()]
5852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5853
 
5854
  def __eq__(self, other):
5855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5856
 
5857
  def __ne__(self, other):
5858
    return not (self == other)
5859
 
5860
class getItemAvailabilityAtLocation_result:
5861
  """
5862
  Attributes:
5863
   - success
5864
   - isex
5865
  """
5866
 
5867
  thrift_spec = (
5868
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5869
    (1, TType.STRUCT, 'isex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5870
  )
5871
 
5872
  def __init__(self, success=None, isex=None,):
5873
    self.success = success
5874
    self.isex = isex
5875
 
5876
  def read(self, iprot):
5877
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5878
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5879
      return
5880
    iprot.readStructBegin()
5881
    while True:
5882
      (fname, ftype, fid) = iprot.readFieldBegin()
5883
      if ftype == TType.STOP:
5884
        break
5885
      if fid == 0:
5886
        if ftype == TType.LIST:
5887
          self.success = []
8182 amar.kumar 5888
          (_etype48, _size45) = iprot.readListBegin()
5889
          for _i49 in xrange(_size45):
5890
            _elem50 = iprot.readI64();
5891
            self.success.append(_elem50)
5944 mandeep.dh 5892
          iprot.readListEnd()
5893
        else:
5894
          iprot.skip(ftype)
5895
      elif fid == 1:
5896
        if ftype == TType.STRUCT:
5897
          self.isex = InventoryServiceException()
5898
          self.isex.read(iprot)
5899
        else:
5900
          iprot.skip(ftype)
5901
      else:
5902
        iprot.skip(ftype)
5903
      iprot.readFieldEnd()
5904
    iprot.readStructEnd()
5905
 
5906
  def write(self, oprot):
5907
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5908
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5909
      return
5910
    oprot.writeStructBegin('getItemAvailabilityAtLocation_result')
5911
    if self.success is not None:
5912
      oprot.writeFieldBegin('success', TType.LIST, 0)
5913
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5914
      for iter51 in self.success:
5915
        oprot.writeI64(iter51)
5944 mandeep.dh 5916
      oprot.writeListEnd()
5917
      oprot.writeFieldEnd()
5918
    if self.isex is not None:
5919
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
5920
      self.isex.write(oprot)
5921
      oprot.writeFieldEnd()
5922
    oprot.writeFieldStop()
5923
    oprot.writeStructEnd()
5924
 
5925
  def validate(self):
5926
    return
5927
 
5928
 
5929
  def __repr__(self):
5930
    L = ['%s=%r' % (key, value)
5931
      for key, value in self.__dict__.iteritems()]
5932
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5933
 
5934
  def __eq__(self, other):
5935
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5936
 
5937
  def __ne__(self, other):
5938
    return not (self == other)
5939
 
5940
class getAllWarehouses_args:
5941
  """
5942
  Attributes:
5943
   - isActive
5944
  """
5945
 
5946
  thrift_spec = (
5947
    None, # 0
5948
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5949
  )
5950
 
5951
  def __init__(self, isActive=None,):
5952
    self.isActive = isActive
5953
 
5954
  def read(self, iprot):
5955
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5956
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5957
      return
5958
    iprot.readStructBegin()
5959
    while True:
5960
      (fname, ftype, fid) = iprot.readFieldBegin()
5961
      if ftype == TType.STOP:
5962
        break
5963
      if fid == 1:
5964
        if ftype == TType.BOOL:
5965
          self.isActive = iprot.readBool();
5966
        else:
5967
          iprot.skip(ftype)
5968
      else:
5969
        iprot.skip(ftype)
5970
      iprot.readFieldEnd()
5971
    iprot.readStructEnd()
5972
 
5973
  def write(self, oprot):
5974
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5975
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5976
      return
5977
    oprot.writeStructBegin('getAllWarehouses_args')
5978
    if self.isActive is not None:
5979
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5980
      oprot.writeBool(self.isActive)
5981
      oprot.writeFieldEnd()
5982
    oprot.writeFieldStop()
5983
    oprot.writeStructEnd()
5984
 
5985
  def validate(self):
5986
    return
5987
 
5988
 
5989
  def __repr__(self):
5990
    L = ['%s=%r' % (key, value)
5991
      for key, value in self.__dict__.iteritems()]
5992
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5993
 
5994
  def __eq__(self, other):
5995
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5996
 
5997
  def __ne__(self, other):
5998
    return not (self == other)
5999
 
6000
class getAllWarehouses_result:
6001
  """
6002
  Attributes:
6003
   - success
6004
   - cex
6005
  """
6006
 
6007
  thrift_spec = (
6008
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
6009
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6010
  )
6011
 
6012
  def __init__(self, success=None, cex=None,):
6013
    self.success = success
6014
    self.cex = cex
6015
 
6016
  def read(self, iprot):
6017
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6018
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6019
      return
6020
    iprot.readStructBegin()
6021
    while True:
6022
      (fname, ftype, fid) = iprot.readFieldBegin()
6023
      if ftype == TType.STOP:
6024
        break
6025
      if fid == 0:
6026
        if ftype == TType.LIST:
6027
          self.success = []
8182 amar.kumar 6028
          (_etype55, _size52) = iprot.readListBegin()
6029
          for _i56 in xrange(_size52):
6030
            _elem57 = Warehouse()
6031
            _elem57.read(iprot)
6032
            self.success.append(_elem57)
5944 mandeep.dh 6033
          iprot.readListEnd()
6034
        else:
6035
          iprot.skip(ftype)
6036
      elif fid == 1:
6037
        if ftype == TType.STRUCT:
6038
          self.cex = InventoryServiceException()
6039
          self.cex.read(iprot)
6040
        else:
6041
          iprot.skip(ftype)
6042
      else:
6043
        iprot.skip(ftype)
6044
      iprot.readFieldEnd()
6045
    iprot.readStructEnd()
6046
 
6047
  def write(self, oprot):
6048
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6049
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6050
      return
6051
    oprot.writeStructBegin('getAllWarehouses_result')
6052
    if self.success is not None:
6053
      oprot.writeFieldBegin('success', TType.LIST, 0)
6054
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 6055
      for iter58 in self.success:
6056
        iter58.write(oprot)
5944 mandeep.dh 6057
      oprot.writeListEnd()
6058
      oprot.writeFieldEnd()
6059
    if self.cex is not None:
6060
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6061
      self.cex.write(oprot)
6062
      oprot.writeFieldEnd()
6063
    oprot.writeFieldStop()
6064
    oprot.writeStructEnd()
6065
 
6066
  def validate(self):
6067
    return
6068
 
6069
 
6070
  def __repr__(self):
6071
    L = ['%s=%r' % (key, value)
6072
      for key, value in self.__dict__.iteritems()]
6073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6074
 
6075
  def __eq__(self, other):
6076
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6077
 
6078
  def __ne__(self, other):
6079
    return not (self == other)
6080
 
6081
class getWarehouse_args:
6082
  """
6083
  Attributes:
6084
   - warehouse_id
6085
  """
6086
 
6087
  thrift_spec = (
6088
    None, # 0
6089
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
6090
  )
6091
 
6092
  def __init__(self, warehouse_id=None,):
6093
    self.warehouse_id = warehouse_id
6094
 
6095
  def read(self, iprot):
6096
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6097
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6098
      return
6099
    iprot.readStructBegin()
6100
    while True:
6101
      (fname, ftype, fid) = iprot.readFieldBegin()
6102
      if ftype == TType.STOP:
6103
        break
6104
      if fid == 1:
6105
        if ftype == TType.I64:
6106
          self.warehouse_id = iprot.readI64();
6107
        else:
6108
          iprot.skip(ftype)
6109
      else:
6110
        iprot.skip(ftype)
6111
      iprot.readFieldEnd()
6112
    iprot.readStructEnd()
6113
 
6114
  def write(self, oprot):
6115
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6116
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6117
      return
6118
    oprot.writeStructBegin('getWarehouse_args')
6119
    if self.warehouse_id is not None:
6120
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
6121
      oprot.writeI64(self.warehouse_id)
6122
      oprot.writeFieldEnd()
6123
    oprot.writeFieldStop()
6124
    oprot.writeStructEnd()
6125
 
6126
  def validate(self):
6127
    return
6128
 
6129
 
6130
  def __repr__(self):
6131
    L = ['%s=%r' % (key, value)
6132
      for key, value in self.__dict__.iteritems()]
6133
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6134
 
6135
  def __eq__(self, other):
6136
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6137
 
6138
  def __ne__(self, other):
6139
    return not (self == other)
6140
 
6141
class getWarehouse_result:
6142
  """
6143
  Attributes:
6144
   - success
6145
   - cex
6146
  """
6147
 
6148
  thrift_spec = (
6149
    (0, TType.STRUCT, 'success', (Warehouse, Warehouse.thrift_spec), None, ), # 0
6150
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6151
  )
6152
 
6153
  def __init__(self, success=None, cex=None,):
6154
    self.success = success
6155
    self.cex = cex
6156
 
6157
  def read(self, iprot):
6158
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6159
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6160
      return
6161
    iprot.readStructBegin()
6162
    while True:
6163
      (fname, ftype, fid) = iprot.readFieldBegin()
6164
      if ftype == TType.STOP:
6165
        break
6166
      if fid == 0:
6167
        if ftype == TType.STRUCT:
6168
          self.success = Warehouse()
6169
          self.success.read(iprot)
6170
        else:
6171
          iprot.skip(ftype)
6172
      elif fid == 1:
6173
        if ftype == TType.STRUCT:
6174
          self.cex = InventoryServiceException()
6175
          self.cex.read(iprot)
6176
        else:
6177
          iprot.skip(ftype)
6178
      else:
6179
        iprot.skip(ftype)
6180
      iprot.readFieldEnd()
6181
    iprot.readStructEnd()
6182
 
6183
  def write(self, oprot):
6184
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6185
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6186
      return
6187
    oprot.writeStructBegin('getWarehouse_result')
6188
    if self.success is not None:
6189
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6190
      self.success.write(oprot)
6191
      oprot.writeFieldEnd()
6192
    if self.cex is not None:
6193
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6194
      self.cex.write(oprot)
6195
      oprot.writeFieldEnd()
6196
    oprot.writeFieldStop()
6197
    oprot.writeStructEnd()
6198
 
6199
  def validate(self):
6200
    return
6201
 
6202
 
6203
  def __repr__(self):
6204
    L = ['%s=%r' % (key, value)
6205
      for key, value in self.__dict__.iteritems()]
6206
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6207
 
6208
  def __eq__(self, other):
6209
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6210
 
6211
  def __ne__(self, other):
6212
    return not (self == other)
6213
 
6214
class getAllItemsForWarehouse_args:
6215
  """
6216
  Attributes:
6217
   - warehouse_id
6218
  """
6219
 
6220
  thrift_spec = (
6221
    None, # 0
6222
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
6223
  )
6224
 
6225
  def __init__(self, warehouse_id=None,):
6226
    self.warehouse_id = warehouse_id
6227
 
6228
  def read(self, iprot):
6229
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6230
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6231
      return
6232
    iprot.readStructBegin()
6233
    while True:
6234
      (fname, ftype, fid) = iprot.readFieldBegin()
6235
      if ftype == TType.STOP:
6236
        break
6237
      if fid == 1:
6238
        if ftype == TType.I64:
6239
          self.warehouse_id = iprot.readI64();
6240
        else:
6241
          iprot.skip(ftype)
6242
      else:
6243
        iprot.skip(ftype)
6244
      iprot.readFieldEnd()
6245
    iprot.readStructEnd()
6246
 
6247
  def write(self, oprot):
6248
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6249
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6250
      return
6251
    oprot.writeStructBegin('getAllItemsForWarehouse_args')
6252
    if self.warehouse_id is not None:
6253
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
6254
      oprot.writeI64(self.warehouse_id)
6255
      oprot.writeFieldEnd()
6256
    oprot.writeFieldStop()
6257
    oprot.writeStructEnd()
6258
 
6259
  def validate(self):
6260
    return
6261
 
6262
 
6263
  def __repr__(self):
6264
    L = ['%s=%r' % (key, value)
6265
      for key, value in self.__dict__.iteritems()]
6266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6267
 
6268
  def __eq__(self, other):
6269
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6270
 
6271
  def __ne__(self, other):
6272
    return not (self == other)
6273
 
6274
class getAllItemsForWarehouse_result:
6275
  """
6276
  Attributes:
6277
   - success
6278
   - cex
6279
  """
6280
 
6281
  thrift_spec = (
6282
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6283
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6284
  )
6285
 
6286
  def __init__(self, success=None, cex=None,):
6287
    self.success = success
6288
    self.cex = cex
6289
 
6290
  def read(self, iprot):
6291
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6292
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6293
      return
6294
    iprot.readStructBegin()
6295
    while True:
6296
      (fname, ftype, fid) = iprot.readFieldBegin()
6297
      if ftype == TType.STOP:
6298
        break
6299
      if fid == 0:
6300
        if ftype == TType.LIST:
6301
          self.success = []
8182 amar.kumar 6302
          (_etype62, _size59) = iprot.readListBegin()
6303
          for _i63 in xrange(_size59):
6304
            _elem64 = iprot.readI64();
6305
            self.success.append(_elem64)
5944 mandeep.dh 6306
          iprot.readListEnd()
6307
        else:
6308
          iprot.skip(ftype)
6309
      elif fid == 1:
6310
        if ftype == TType.STRUCT:
6311
          self.cex = InventoryServiceException()
6312
          self.cex.read(iprot)
6313
        else:
6314
          iprot.skip(ftype)
6315
      else:
6316
        iprot.skip(ftype)
6317
      iprot.readFieldEnd()
6318
    iprot.readStructEnd()
6319
 
6320
  def write(self, oprot):
6321
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6322
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6323
      return
6324
    oprot.writeStructBegin('getAllItemsForWarehouse_result')
6325
    if self.success is not None:
6326
      oprot.writeFieldBegin('success', TType.LIST, 0)
6327
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 6328
      for iter65 in self.success:
6329
        oprot.writeI64(iter65)
5944 mandeep.dh 6330
      oprot.writeListEnd()
6331
      oprot.writeFieldEnd()
6332
    if self.cex is not None:
6333
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6334
      self.cex.write(oprot)
6335
      oprot.writeFieldEnd()
6336
    oprot.writeFieldStop()
6337
    oprot.writeStructEnd()
6338
 
6339
  def validate(self):
6340
    return
6341
 
6342
 
6343
  def __repr__(self):
6344
    L = ['%s=%r' % (key, value)
6345
      for key, value in self.__dict__.iteritems()]
6346
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6347
 
6348
  def __eq__(self, other):
6349
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6350
 
6351
  def __ne__(self, other):
6352
    return not (self == other)
6353
 
5966 rajveer 6354
class isOrderBillable_args:
6355
  """
6356
  Attributes:
6357
   - itemId
6358
   - warehouseId
6359
   - sourceId
6360
   - orderId
6361
  """
6362
 
6363
  thrift_spec = (
6364
    None, # 0
6365
    (1, TType.I64, 'itemId', None, None, ), # 1
6366
    (2, TType.I64, 'warehouseId', None, None, ), # 2
6367
    (3, TType.I64, 'sourceId', None, None, ), # 3
6368
    (4, TType.I64, 'orderId', None, None, ), # 4
6369
  )
6370
 
6371
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None,):
6372
    self.itemId = itemId
6373
    self.warehouseId = warehouseId
6374
    self.sourceId = sourceId
6375
    self.orderId = orderId
6376
 
6377
  def read(self, iprot):
6378
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6379
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6380
      return
6381
    iprot.readStructBegin()
6382
    while True:
6383
      (fname, ftype, fid) = iprot.readFieldBegin()
6384
      if ftype == TType.STOP:
6385
        break
6386
      if fid == 1:
6387
        if ftype == TType.I64:
6388
          self.itemId = iprot.readI64();
6389
        else:
6390
          iprot.skip(ftype)
6391
      elif fid == 2:
6392
        if ftype == TType.I64:
6393
          self.warehouseId = iprot.readI64();
6394
        else:
6395
          iprot.skip(ftype)
6396
      elif fid == 3:
6397
        if ftype == TType.I64:
6398
          self.sourceId = iprot.readI64();
6399
        else:
6400
          iprot.skip(ftype)
6401
      elif fid == 4:
6402
        if ftype == TType.I64:
6403
          self.orderId = iprot.readI64();
6404
        else:
6405
          iprot.skip(ftype)
6406
      else:
6407
        iprot.skip(ftype)
6408
      iprot.readFieldEnd()
6409
    iprot.readStructEnd()
6410
 
6411
  def write(self, oprot):
6412
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6413
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6414
      return
6415
    oprot.writeStructBegin('isOrderBillable_args')
6416
    if self.itemId is not None:
6417
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6418
      oprot.writeI64(self.itemId)
6419
      oprot.writeFieldEnd()
6420
    if self.warehouseId is not None:
6421
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6422
      oprot.writeI64(self.warehouseId)
6423
      oprot.writeFieldEnd()
6424
    if self.sourceId is not None:
6425
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6426
      oprot.writeI64(self.sourceId)
6427
      oprot.writeFieldEnd()
6428
    if self.orderId is not None:
6429
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6430
      oprot.writeI64(self.orderId)
6431
      oprot.writeFieldEnd()
6432
    oprot.writeFieldStop()
6433
    oprot.writeStructEnd()
6434
 
6435
  def validate(self):
6436
    return
6437
 
6438
 
6439
  def __repr__(self):
6440
    L = ['%s=%r' % (key, value)
6441
      for key, value in self.__dict__.iteritems()]
6442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6443
 
6444
  def __eq__(self, other):
6445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6446
 
6447
  def __ne__(self, other):
6448
    return not (self == other)
6449
 
6450
class isOrderBillable_result:
6451
  """
6452
  Attributes:
6453
   - success
6454
  """
6455
 
6456
  thrift_spec = (
6457
    (0, TType.BOOL, 'success', None, None, ), # 0
6458
  )
6459
 
6460
  def __init__(self, success=None,):
6461
    self.success = success
6462
 
6463
  def read(self, iprot):
6464
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6465
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6466
      return
6467
    iprot.readStructBegin()
6468
    while True:
6469
      (fname, ftype, fid) = iprot.readFieldBegin()
6470
      if ftype == TType.STOP:
6471
        break
6472
      if fid == 0:
6473
        if ftype == TType.BOOL:
6474
          self.success = iprot.readBool();
6475
        else:
6476
          iprot.skip(ftype)
6477
      else:
6478
        iprot.skip(ftype)
6479
      iprot.readFieldEnd()
6480
    iprot.readStructEnd()
6481
 
6482
  def write(self, oprot):
6483
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6484
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6485
      return
6486
    oprot.writeStructBegin('isOrderBillable_result')
6487
    if self.success is not None:
6488
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6489
      oprot.writeBool(self.success)
6490
      oprot.writeFieldEnd()
6491
    oprot.writeFieldStop()
6492
    oprot.writeStructEnd()
6493
 
6494
  def validate(self):
6495
    return
6496
 
6497
 
6498
  def __repr__(self):
6499
    L = ['%s=%r' % (key, value)
6500
      for key, value in self.__dict__.iteritems()]
6501
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6502
 
6503
  def __eq__(self, other):
6504
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6505
 
6506
  def __ne__(self, other):
6507
    return not (self == other)
6508
 
5944 mandeep.dh 6509
class reserveItemInWarehouse_args:
6510
  """
6511
  Attributes:
6512
   - itemId
6513
   - warehouseId
5966 rajveer 6514
   - sourceId
6515
   - orderId
6516
   - createdTimestamp
6517
   - promisedShippingTimestamp
5944 mandeep.dh 6518
   - quantity
6519
  """
6520
 
6521
  thrift_spec = (
6522
    None, # 0
6523
    (1, TType.I64, 'itemId', None, None, ), # 1
6524
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 6525
    (3, TType.I64, 'sourceId', None, None, ), # 3
6526
    (4, TType.I64, 'orderId', None, None, ), # 4
6527
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
6528
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
6529
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
5944 mandeep.dh 6530
  )
6531
 
5966 rajveer 6532
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
5944 mandeep.dh 6533
    self.itemId = itemId
6534
    self.warehouseId = warehouseId
5966 rajveer 6535
    self.sourceId = sourceId
6536
    self.orderId = orderId
6537
    self.createdTimestamp = createdTimestamp
6538
    self.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 6539
    self.quantity = quantity
6540
 
6541
  def read(self, iprot):
6542
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6543
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6544
      return
6545
    iprot.readStructBegin()
6546
    while True:
6547
      (fname, ftype, fid) = iprot.readFieldBegin()
6548
      if ftype == TType.STOP:
6549
        break
6550
      if fid == 1:
6551
        if ftype == TType.I64:
6552
          self.itemId = iprot.readI64();
6553
        else:
6554
          iprot.skip(ftype)
6555
      elif fid == 2:
6556
        if ftype == TType.I64:
6557
          self.warehouseId = iprot.readI64();
6558
        else:
6559
          iprot.skip(ftype)
6560
      elif fid == 3:
5966 rajveer 6561
        if ftype == TType.I64:
6562
          self.sourceId = iprot.readI64();
6563
        else:
6564
          iprot.skip(ftype)
6565
      elif fid == 4:
6566
        if ftype == TType.I64:
6567
          self.orderId = iprot.readI64();
6568
        else:
6569
          iprot.skip(ftype)
6570
      elif fid == 5:
6571
        if ftype == TType.I64:
6572
          self.createdTimestamp = iprot.readI64();
6573
        else:
6574
          iprot.skip(ftype)
6575
      elif fid == 6:
6576
        if ftype == TType.I64:
6577
          self.promisedShippingTimestamp = iprot.readI64();
6578
        else:
6579
          iprot.skip(ftype)
6580
      elif fid == 7:
5944 mandeep.dh 6581
        if ftype == TType.DOUBLE:
6582
          self.quantity = iprot.readDouble();
6583
        else:
6584
          iprot.skip(ftype)
6585
      else:
6586
        iprot.skip(ftype)
6587
      iprot.readFieldEnd()
6588
    iprot.readStructEnd()
6589
 
6590
  def write(self, oprot):
6591
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6592
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6593
      return
6594
    oprot.writeStructBegin('reserveItemInWarehouse_args')
6595
    if self.itemId is not None:
6596
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6597
      oprot.writeI64(self.itemId)
6598
      oprot.writeFieldEnd()
6599
    if self.warehouseId is not None:
6600
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6601
      oprot.writeI64(self.warehouseId)
6602
      oprot.writeFieldEnd()
5966 rajveer 6603
    if self.sourceId is not None:
6604
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6605
      oprot.writeI64(self.sourceId)
6606
      oprot.writeFieldEnd()
6607
    if self.orderId is not None:
6608
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6609
      oprot.writeI64(self.orderId)
6610
      oprot.writeFieldEnd()
6611
    if self.createdTimestamp is not None:
6612
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
6613
      oprot.writeI64(self.createdTimestamp)
6614
      oprot.writeFieldEnd()
6615
    if self.promisedShippingTimestamp is not None:
6616
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
6617
      oprot.writeI64(self.promisedShippingTimestamp)
6618
      oprot.writeFieldEnd()
5944 mandeep.dh 6619
    if self.quantity is not None:
5966 rajveer 6620
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
5944 mandeep.dh 6621
      oprot.writeDouble(self.quantity)
6622
      oprot.writeFieldEnd()
6623
    oprot.writeFieldStop()
6624
    oprot.writeStructEnd()
6625
 
6626
  def validate(self):
6627
    return
6628
 
6629
 
6630
  def __repr__(self):
6631
    L = ['%s=%r' % (key, value)
6632
      for key, value in self.__dict__.iteritems()]
6633
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6634
 
6635
  def __eq__(self, other):
6636
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6637
 
6638
  def __ne__(self, other):
6639
    return not (self == other)
6640
 
6641
class reserveItemInWarehouse_result:
6642
  """
6643
  Attributes:
6644
   - success
6645
   - cex
6646
  """
6647
 
6648
  thrift_spec = (
6649
    (0, TType.BOOL, 'success', None, None, ), # 0
6650
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6651
  )
6652
 
6653
  def __init__(self, success=None, cex=None,):
6654
    self.success = success
6655
    self.cex = cex
6656
 
6657
  def read(self, iprot):
6658
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6659
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6660
      return
6661
    iprot.readStructBegin()
6662
    while True:
6663
      (fname, ftype, fid) = iprot.readFieldBegin()
6664
      if ftype == TType.STOP:
6665
        break
6666
      if fid == 0:
6667
        if ftype == TType.BOOL:
6668
          self.success = iprot.readBool();
6669
        else:
6670
          iprot.skip(ftype)
6671
      elif fid == 1:
6672
        if ftype == TType.STRUCT:
6673
          self.cex = InventoryServiceException()
6674
          self.cex.read(iprot)
6675
        else:
6676
          iprot.skip(ftype)
6677
      else:
6678
        iprot.skip(ftype)
6679
      iprot.readFieldEnd()
6680
    iprot.readStructEnd()
6681
 
6682
  def write(self, oprot):
6683
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6684
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6685
      return
6686
    oprot.writeStructBegin('reserveItemInWarehouse_result')
6687
    if self.success is not None:
6688
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6689
      oprot.writeBool(self.success)
6690
      oprot.writeFieldEnd()
6691
    if self.cex is not None:
6692
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6693
      self.cex.write(oprot)
6694
      oprot.writeFieldEnd()
6695
    oprot.writeFieldStop()
6696
    oprot.writeStructEnd()
6697
 
6698
  def validate(self):
6699
    return
6700
 
6701
 
6702
  def __repr__(self):
6703
    L = ['%s=%r' % (key, value)
6704
      for key, value in self.__dict__.iteritems()]
6705
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6706
 
6707
  def __eq__(self, other):
6708
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6709
 
6710
  def __ne__(self, other):
6711
    return not (self == other)
6712
 
7968 amar.kumar 6713
class updateReservationForOrder_args:
6714
  """
6715
  Attributes:
6716
   - itemId
6717
   - warehouseId
6718
   - sourceId
6719
   - orderId
6720
   - createdTimestamp
6721
   - promisedShippingTimestamp
6722
   - quantity
6723
  """
6724
 
6725
  thrift_spec = (
6726
    None, # 0
6727
    (1, TType.I64, 'itemId', None, None, ), # 1
6728
    (2, TType.I64, 'warehouseId', None, None, ), # 2
6729
    (3, TType.I64, 'sourceId', None, None, ), # 3
6730
    (4, TType.I64, 'orderId', None, None, ), # 4
6731
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
6732
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
6733
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
6734
  )
6735
 
6736
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
6737
    self.itemId = itemId
6738
    self.warehouseId = warehouseId
6739
    self.sourceId = sourceId
6740
    self.orderId = orderId
6741
    self.createdTimestamp = createdTimestamp
6742
    self.promisedShippingTimestamp = promisedShippingTimestamp
6743
    self.quantity = quantity
6744
 
6745
  def read(self, iprot):
6746
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6747
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6748
      return
6749
    iprot.readStructBegin()
6750
    while True:
6751
      (fname, ftype, fid) = iprot.readFieldBegin()
6752
      if ftype == TType.STOP:
6753
        break
6754
      if fid == 1:
6755
        if ftype == TType.I64:
6756
          self.itemId = iprot.readI64();
6757
        else:
6758
          iprot.skip(ftype)
6759
      elif fid == 2:
6760
        if ftype == TType.I64:
6761
          self.warehouseId = iprot.readI64();
6762
        else:
6763
          iprot.skip(ftype)
6764
      elif fid == 3:
6765
        if ftype == TType.I64:
6766
          self.sourceId = iprot.readI64();
6767
        else:
6768
          iprot.skip(ftype)
6769
      elif fid == 4:
6770
        if ftype == TType.I64:
6771
          self.orderId = iprot.readI64();
6772
        else:
6773
          iprot.skip(ftype)
6774
      elif fid == 5:
6775
        if ftype == TType.I64:
6776
          self.createdTimestamp = iprot.readI64();
6777
        else:
6778
          iprot.skip(ftype)
6779
      elif fid == 6:
6780
        if ftype == TType.I64:
6781
          self.promisedShippingTimestamp = iprot.readI64();
6782
        else:
6783
          iprot.skip(ftype)
6784
      elif fid == 7:
6785
        if ftype == TType.DOUBLE:
6786
          self.quantity = iprot.readDouble();
6787
        else:
6788
          iprot.skip(ftype)
6789
      else:
6790
        iprot.skip(ftype)
6791
      iprot.readFieldEnd()
6792
    iprot.readStructEnd()
6793
 
6794
  def write(self, oprot):
6795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6797
      return
6798
    oprot.writeStructBegin('updateReservationForOrder_args')
6799
    if self.itemId is not None:
6800
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6801
      oprot.writeI64(self.itemId)
6802
      oprot.writeFieldEnd()
6803
    if self.warehouseId is not None:
6804
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6805
      oprot.writeI64(self.warehouseId)
6806
      oprot.writeFieldEnd()
6807
    if self.sourceId is not None:
6808
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6809
      oprot.writeI64(self.sourceId)
6810
      oprot.writeFieldEnd()
6811
    if self.orderId is not None:
6812
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6813
      oprot.writeI64(self.orderId)
6814
      oprot.writeFieldEnd()
6815
    if self.createdTimestamp is not None:
6816
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
6817
      oprot.writeI64(self.createdTimestamp)
6818
      oprot.writeFieldEnd()
6819
    if self.promisedShippingTimestamp is not None:
6820
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
6821
      oprot.writeI64(self.promisedShippingTimestamp)
6822
      oprot.writeFieldEnd()
6823
    if self.quantity is not None:
6824
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
6825
      oprot.writeDouble(self.quantity)
6826
      oprot.writeFieldEnd()
6827
    oprot.writeFieldStop()
6828
    oprot.writeStructEnd()
6829
 
6830
  def validate(self):
6831
    return
6832
 
6833
 
6834
  def __repr__(self):
6835
    L = ['%s=%r' % (key, value)
6836
      for key, value in self.__dict__.iteritems()]
6837
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6838
 
6839
  def __eq__(self, other):
6840
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6841
 
6842
  def __ne__(self, other):
6843
    return not (self == other)
6844
 
6845
class updateReservationForOrder_result:
6846
  """
6847
  Attributes:
6848
   - success
6849
   - cex
6850
  """
6851
 
6852
  thrift_spec = (
6853
    (0, TType.BOOL, 'success', None, None, ), # 0
6854
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6855
  )
6856
 
6857
  def __init__(self, success=None, cex=None,):
6858
    self.success = success
6859
    self.cex = cex
6860
 
6861
  def read(self, iprot):
6862
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6863
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6864
      return
6865
    iprot.readStructBegin()
6866
    while True:
6867
      (fname, ftype, fid) = iprot.readFieldBegin()
6868
      if ftype == TType.STOP:
6869
        break
6870
      if fid == 0:
6871
        if ftype == TType.BOOL:
6872
          self.success = iprot.readBool();
6873
        else:
6874
          iprot.skip(ftype)
6875
      elif fid == 1:
6876
        if ftype == TType.STRUCT:
6877
          self.cex = InventoryServiceException()
6878
          self.cex.read(iprot)
6879
        else:
6880
          iprot.skip(ftype)
6881
      else:
6882
        iprot.skip(ftype)
6883
      iprot.readFieldEnd()
6884
    iprot.readStructEnd()
6885
 
6886
  def write(self, oprot):
6887
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6888
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6889
      return
6890
    oprot.writeStructBegin('updateReservationForOrder_result')
6891
    if self.success is not None:
6892
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6893
      oprot.writeBool(self.success)
6894
      oprot.writeFieldEnd()
6895
    if self.cex is not None:
6896
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6897
      self.cex.write(oprot)
6898
      oprot.writeFieldEnd()
6899
    oprot.writeFieldStop()
6900
    oprot.writeStructEnd()
6901
 
6902
  def validate(self):
6903
    return
6904
 
6905
 
6906
  def __repr__(self):
6907
    L = ['%s=%r' % (key, value)
6908
      for key, value in self.__dict__.iteritems()]
6909
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6910
 
6911
  def __eq__(self, other):
6912
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6913
 
6914
  def __ne__(self, other):
6915
    return not (self == other)
6916
 
5944 mandeep.dh 6917
class reduceReservationCount_args:
6918
  """
6919
  Attributes:
6920
   - itemId
6921
   - warehouseId
5966 rajveer 6922
   - sourceId
6923
   - orderId
5944 mandeep.dh 6924
   - quantity
6925
  """
6926
 
6927
  thrift_spec = (
6928
    None, # 0
6929
    (1, TType.I64, 'itemId', None, None, ), # 1
6930
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 6931
    (3, TType.I64, 'sourceId', None, None, ), # 3
6932
    (4, TType.I64, 'orderId', None, None, ), # 4
6933
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
5944 mandeep.dh 6934
  )
6935
 
5966 rajveer 6936
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, quantity=None,):
5944 mandeep.dh 6937
    self.itemId = itemId
6938
    self.warehouseId = warehouseId
5966 rajveer 6939
    self.sourceId = sourceId
6940
    self.orderId = orderId
5944 mandeep.dh 6941
    self.quantity = quantity
6942
 
6943
  def read(self, iprot):
6944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6946
      return
6947
    iprot.readStructBegin()
6948
    while True:
6949
      (fname, ftype, fid) = iprot.readFieldBegin()
6950
      if ftype == TType.STOP:
6951
        break
6952
      if fid == 1:
6953
        if ftype == TType.I64:
6954
          self.itemId = iprot.readI64();
6955
        else:
6956
          iprot.skip(ftype)
6957
      elif fid == 2:
6958
        if ftype == TType.I64:
6959
          self.warehouseId = iprot.readI64();
6960
        else:
6961
          iprot.skip(ftype)
6962
      elif fid == 3:
5966 rajveer 6963
        if ftype == TType.I64:
6964
          self.sourceId = iprot.readI64();
6965
        else:
6966
          iprot.skip(ftype)
6967
      elif fid == 4:
6968
        if ftype == TType.I64:
6969
          self.orderId = iprot.readI64();
6970
        else:
6971
          iprot.skip(ftype)
6972
      elif fid == 5:
5944 mandeep.dh 6973
        if ftype == TType.DOUBLE:
6974
          self.quantity = iprot.readDouble();
6975
        else:
6976
          iprot.skip(ftype)
6977
      else:
6978
        iprot.skip(ftype)
6979
      iprot.readFieldEnd()
6980
    iprot.readStructEnd()
6981
 
6982
  def write(self, oprot):
6983
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6984
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6985
      return
6986
    oprot.writeStructBegin('reduceReservationCount_args')
6987
    if self.itemId is not None:
6988
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6989
      oprot.writeI64(self.itemId)
6990
      oprot.writeFieldEnd()
6991
    if self.warehouseId is not None:
6992
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6993
      oprot.writeI64(self.warehouseId)
6994
      oprot.writeFieldEnd()
5966 rajveer 6995
    if self.sourceId is not None:
6996
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6997
      oprot.writeI64(self.sourceId)
6998
      oprot.writeFieldEnd()
6999
    if self.orderId is not None:
7000
      oprot.writeFieldBegin('orderId', TType.I64, 4)
7001
      oprot.writeI64(self.orderId)
7002
      oprot.writeFieldEnd()
5944 mandeep.dh 7003
    if self.quantity is not None:
5966 rajveer 7004
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
5944 mandeep.dh 7005
      oprot.writeDouble(self.quantity)
7006
      oprot.writeFieldEnd()
7007
    oprot.writeFieldStop()
7008
    oprot.writeStructEnd()
7009
 
7010
  def validate(self):
7011
    return
7012
 
7013
 
7014
  def __repr__(self):
7015
    L = ['%s=%r' % (key, value)
7016
      for key, value in self.__dict__.iteritems()]
7017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7018
 
7019
  def __eq__(self, other):
7020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7021
 
7022
  def __ne__(self, other):
7023
    return not (self == other)
7024
 
7025
class reduceReservationCount_result:
7026
  """
7027
  Attributes:
7028
   - success
7029
   - cex
7030
  """
7031
 
7032
  thrift_spec = (
7033
    (0, TType.BOOL, 'success', None, None, ), # 0
7034
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7035
  )
7036
 
7037
  def __init__(self, success=None, cex=None,):
7038
    self.success = success
7039
    self.cex = cex
7040
 
7041
  def read(self, iprot):
7042
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7043
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7044
      return
7045
    iprot.readStructBegin()
7046
    while True:
7047
      (fname, ftype, fid) = iprot.readFieldBegin()
7048
      if ftype == TType.STOP:
7049
        break
7050
      if fid == 0:
7051
        if ftype == TType.BOOL:
7052
          self.success = iprot.readBool();
7053
        else:
7054
          iprot.skip(ftype)
7055
      elif fid == 1:
7056
        if ftype == TType.STRUCT:
7057
          self.cex = InventoryServiceException()
7058
          self.cex.read(iprot)
7059
        else:
7060
          iprot.skip(ftype)
7061
      else:
7062
        iprot.skip(ftype)
7063
      iprot.readFieldEnd()
7064
    iprot.readStructEnd()
7065
 
7066
  def write(self, oprot):
7067
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7068
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7069
      return
7070
    oprot.writeStructBegin('reduceReservationCount_result')
7071
    if self.success is not None:
7072
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7073
      oprot.writeBool(self.success)
7074
      oprot.writeFieldEnd()
7075
    if self.cex is not None:
7076
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7077
      self.cex.write(oprot)
7078
      oprot.writeFieldEnd()
7079
    oprot.writeFieldStop()
7080
    oprot.writeStructEnd()
7081
 
7082
  def validate(self):
7083
    return
7084
 
7085
 
7086
  def __repr__(self):
7087
    L = ['%s=%r' % (key, value)
7088
      for key, value in self.__dict__.iteritems()]
7089
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7090
 
7091
  def __eq__(self, other):
7092
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7093
 
7094
  def __ne__(self, other):
7095
    return not (self == other)
7096
 
7097
class getItemPricing_args:
7098
  """
7099
  Attributes:
7100
   - itemId
7101
   - vendorId
7102
  """
7103
 
7104
  thrift_spec = (
7105
    None, # 0
7106
    (1, TType.I64, 'itemId', None, None, ), # 1
7107
    (2, TType.I64, 'vendorId', None, None, ), # 2
7108
  )
7109
 
7110
  def __init__(self, itemId=None, vendorId=None,):
7111
    self.itemId = itemId
7112
    self.vendorId = vendorId
7113
 
7114
  def read(self, iprot):
7115
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7116
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7117
      return
7118
    iprot.readStructBegin()
7119
    while True:
7120
      (fname, ftype, fid) = iprot.readFieldBegin()
7121
      if ftype == TType.STOP:
7122
        break
7123
      if fid == 1:
7124
        if ftype == TType.I64:
7125
          self.itemId = iprot.readI64();
7126
        else:
7127
          iprot.skip(ftype)
7128
      elif fid == 2:
7129
        if ftype == TType.I64:
7130
          self.vendorId = iprot.readI64();
7131
        else:
7132
          iprot.skip(ftype)
7133
      else:
7134
        iprot.skip(ftype)
7135
      iprot.readFieldEnd()
7136
    iprot.readStructEnd()
7137
 
7138
  def write(self, oprot):
7139
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7140
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7141
      return
7142
    oprot.writeStructBegin('getItemPricing_args')
7143
    if self.itemId is not None:
7144
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7145
      oprot.writeI64(self.itemId)
7146
      oprot.writeFieldEnd()
7147
    if self.vendorId is not None:
7148
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
7149
      oprot.writeI64(self.vendorId)
7150
      oprot.writeFieldEnd()
7151
    oprot.writeFieldStop()
7152
    oprot.writeStructEnd()
7153
 
7154
  def validate(self):
7155
    return
7156
 
7157
 
7158
  def __repr__(self):
7159
    L = ['%s=%r' % (key, value)
7160
      for key, value in self.__dict__.iteritems()]
7161
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7162
 
7163
  def __eq__(self, other):
7164
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7165
 
7166
  def __ne__(self, other):
7167
    return not (self == other)
7168
 
7169
class getItemPricing_result:
7170
  """
7171
  Attributes:
7172
   - success
7173
   - cex
7174
  """
7175
 
7176
  thrift_spec = (
7177
    (0, TType.STRUCT, 'success', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 0
7178
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7179
  )
7180
 
7181
  def __init__(self, success=None, cex=None,):
7182
    self.success = success
7183
    self.cex = cex
7184
 
7185
  def read(self, iprot):
7186
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7187
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7188
      return
7189
    iprot.readStructBegin()
7190
    while True:
7191
      (fname, ftype, fid) = iprot.readFieldBegin()
7192
      if ftype == TType.STOP:
7193
        break
7194
      if fid == 0:
7195
        if ftype == TType.STRUCT:
7196
          self.success = VendorItemPricing()
7197
          self.success.read(iprot)
7198
        else:
7199
          iprot.skip(ftype)
7200
      elif fid == 1:
7201
        if ftype == TType.STRUCT:
7202
          self.cex = InventoryServiceException()
7203
          self.cex.read(iprot)
7204
        else:
7205
          iprot.skip(ftype)
7206
      else:
7207
        iprot.skip(ftype)
7208
      iprot.readFieldEnd()
7209
    iprot.readStructEnd()
7210
 
7211
  def write(self, oprot):
7212
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7213
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7214
      return
7215
    oprot.writeStructBegin('getItemPricing_result')
7216
    if self.success is not None:
7217
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7218
      self.success.write(oprot)
7219
      oprot.writeFieldEnd()
7220
    if self.cex is not None:
7221
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7222
      self.cex.write(oprot)
7223
      oprot.writeFieldEnd()
7224
    oprot.writeFieldStop()
7225
    oprot.writeStructEnd()
7226
 
7227
  def validate(self):
7228
    return
7229
 
7230
 
7231
  def __repr__(self):
7232
    L = ['%s=%r' % (key, value)
7233
      for key, value in self.__dict__.iteritems()]
7234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7235
 
7236
  def __eq__(self, other):
7237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7238
 
7239
  def __ne__(self, other):
7240
    return not (self == other)
7241
 
7242
class getAllItemPricing_args:
7243
  """
7244
  Attributes:
7245
   - itemId
7246
  """
7247
 
7248
  thrift_spec = (
7249
    None, # 0
7250
    (1, TType.I64, 'itemId', None, None, ), # 1
7251
  )
7252
 
7253
  def __init__(self, itemId=None,):
7254
    self.itemId = itemId
7255
 
7256
  def read(self, iprot):
7257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7259
      return
7260
    iprot.readStructBegin()
7261
    while True:
7262
      (fname, ftype, fid) = iprot.readFieldBegin()
7263
      if ftype == TType.STOP:
7264
        break
7265
      if fid == 1:
7266
        if ftype == TType.I64:
7267
          self.itemId = iprot.readI64();
7268
        else:
7269
          iprot.skip(ftype)
7270
      else:
7271
        iprot.skip(ftype)
7272
      iprot.readFieldEnd()
7273
    iprot.readStructEnd()
7274
 
7275
  def write(self, oprot):
7276
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7277
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7278
      return
7279
    oprot.writeStructBegin('getAllItemPricing_args')
7280
    if self.itemId is not None:
7281
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7282
      oprot.writeI64(self.itemId)
7283
      oprot.writeFieldEnd()
7284
    oprot.writeFieldStop()
7285
    oprot.writeStructEnd()
7286
 
7287
  def validate(self):
7288
    return
7289
 
7290
 
7291
  def __repr__(self):
7292
    L = ['%s=%r' % (key, value)
7293
      for key, value in self.__dict__.iteritems()]
7294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7295
 
7296
  def __eq__(self, other):
7297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7298
 
7299
  def __ne__(self, other):
7300
    return not (self == other)
7301
 
7302
class getAllItemPricing_result:
7303
  """
7304
  Attributes:
7305
   - success
7306
   - cex
7307
  """
7308
 
7309
  thrift_spec = (
7310
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
7311
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7312
  )
7313
 
7314
  def __init__(self, success=None, cex=None,):
7315
    self.success = success
7316
    self.cex = cex
7317
 
7318
  def read(self, iprot):
7319
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7320
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7321
      return
7322
    iprot.readStructBegin()
7323
    while True:
7324
      (fname, ftype, fid) = iprot.readFieldBegin()
7325
      if ftype == TType.STOP:
7326
        break
7327
      if fid == 0:
7328
        if ftype == TType.LIST:
7329
          self.success = []
8182 amar.kumar 7330
          (_etype69, _size66) = iprot.readListBegin()
7331
          for _i70 in xrange(_size66):
7332
            _elem71 = VendorItemPricing()
7333
            _elem71.read(iprot)
7334
            self.success.append(_elem71)
5944 mandeep.dh 7335
          iprot.readListEnd()
7336
        else:
7337
          iprot.skip(ftype)
7338
      elif fid == 1:
7339
        if ftype == TType.STRUCT:
7340
          self.cex = InventoryServiceException()
7341
          self.cex.read(iprot)
7342
        else:
7343
          iprot.skip(ftype)
7344
      else:
7345
        iprot.skip(ftype)
7346
      iprot.readFieldEnd()
7347
    iprot.readStructEnd()
7348
 
7349
  def write(self, oprot):
7350
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7351
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7352
      return
7353
    oprot.writeStructBegin('getAllItemPricing_result')
7354
    if self.success is not None:
7355
      oprot.writeFieldBegin('success', TType.LIST, 0)
7356
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7357
      for iter72 in self.success:
7358
        iter72.write(oprot)
5944 mandeep.dh 7359
      oprot.writeListEnd()
7360
      oprot.writeFieldEnd()
7361
    if self.cex is not None:
7362
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7363
      self.cex.write(oprot)
7364
      oprot.writeFieldEnd()
7365
    oprot.writeFieldStop()
7366
    oprot.writeStructEnd()
7367
 
7368
  def validate(self):
7369
    return
7370
 
7371
 
7372
  def __repr__(self):
7373
    L = ['%s=%r' % (key, value)
7374
      for key, value in self.__dict__.iteritems()]
7375
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7376
 
7377
  def __eq__(self, other):
7378
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7379
 
7380
  def __ne__(self, other):
7381
    return not (self == other)
7382
 
7383
class addVendorItemPricing_args:
7384
  """
7385
  Attributes:
7386
   - vendorItemPricing
7387
  """
7388
 
7389
  thrift_spec = (
7390
    None, # 0
7391
    (1, TType.STRUCT, 'vendorItemPricing', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 1
7392
  )
7393
 
7394
  def __init__(self, vendorItemPricing=None,):
7395
    self.vendorItemPricing = vendorItemPricing
7396
 
7397
  def read(self, iprot):
7398
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7399
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7400
      return
7401
    iprot.readStructBegin()
7402
    while True:
7403
      (fname, ftype, fid) = iprot.readFieldBegin()
7404
      if ftype == TType.STOP:
7405
        break
7406
      if fid == 1:
7407
        if ftype == TType.STRUCT:
7408
          self.vendorItemPricing = VendorItemPricing()
7409
          self.vendorItemPricing.read(iprot)
7410
        else:
7411
          iprot.skip(ftype)
7412
      else:
7413
        iprot.skip(ftype)
7414
      iprot.readFieldEnd()
7415
    iprot.readStructEnd()
7416
 
7417
  def write(self, oprot):
7418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7420
      return
7421
    oprot.writeStructBegin('addVendorItemPricing_args')
7422
    if self.vendorItemPricing is not None:
7423
      oprot.writeFieldBegin('vendorItemPricing', TType.STRUCT, 1)
7424
      self.vendorItemPricing.write(oprot)
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 addVendorItemPricing_result:
7445
  """
7446
  Attributes:
7447
   - cex
7448
  """
7449
 
7450
  thrift_spec = (
7451
    None, # 0
7452
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7453
  )
7454
 
7455
  def __init__(self, cex=None,):
7456
    self.cex = cex
7457
 
7458
  def read(self, iprot):
7459
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7460
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7461
      return
7462
    iprot.readStructBegin()
7463
    while True:
7464
      (fname, ftype, fid) = iprot.readFieldBegin()
7465
      if ftype == TType.STOP:
7466
        break
7467
      if fid == 1:
7468
        if ftype == TType.STRUCT:
7469
          self.cex = InventoryServiceException()
7470
          self.cex.read(iprot)
7471
        else:
7472
          iprot.skip(ftype)
7473
      else:
7474
        iprot.skip(ftype)
7475
      iprot.readFieldEnd()
7476
    iprot.readStructEnd()
7477
 
7478
  def write(self, oprot):
7479
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7480
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7481
      return
7482
    oprot.writeStructBegin('addVendorItemPricing_result')
7483
    if self.cex is not None:
7484
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7485
      self.cex.write(oprot)
7486
      oprot.writeFieldEnd()
7487
    oprot.writeFieldStop()
7488
    oprot.writeStructEnd()
7489
 
7490
  def validate(self):
7491
    return
7492
 
7493
 
7494
  def __repr__(self):
7495
    L = ['%s=%r' % (key, value)
7496
      for key, value in self.__dict__.iteritems()]
7497
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7498
 
7499
  def __eq__(self, other):
7500
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7501
 
7502
  def __ne__(self, other):
7503
    return not (self == other)
7504
 
7505
class getVendor_args:
7506
  """
7507
  Attributes:
7508
   - vendorId
7509
  """
7510
 
7511
  thrift_spec = (
7512
    None, # 0
7513
    (1, TType.I64, 'vendorId', None, None, ), # 1
7514
  )
7515
 
7516
  def __init__(self, vendorId=None,):
7517
    self.vendorId = vendorId
7518
 
7519
  def read(self, iprot):
7520
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7521
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7522
      return
7523
    iprot.readStructBegin()
7524
    while True:
7525
      (fname, ftype, fid) = iprot.readFieldBegin()
7526
      if ftype == TType.STOP:
7527
        break
7528
      if fid == 1:
7529
        if ftype == TType.I64:
7530
          self.vendorId = iprot.readI64();
7531
        else:
7532
          iprot.skip(ftype)
7533
      else:
7534
        iprot.skip(ftype)
7535
      iprot.readFieldEnd()
7536
    iprot.readStructEnd()
7537
 
7538
  def write(self, oprot):
7539
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7540
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7541
      return
7542
    oprot.writeStructBegin('getVendor_args')
7543
    if self.vendorId is not None:
7544
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
7545
      oprot.writeI64(self.vendorId)
7546
      oprot.writeFieldEnd()
7547
    oprot.writeFieldStop()
7548
    oprot.writeStructEnd()
7549
 
7550
  def validate(self):
7551
    return
7552
 
7553
 
7554
  def __repr__(self):
7555
    L = ['%s=%r' % (key, value)
7556
      for key, value in self.__dict__.iteritems()]
7557
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7558
 
7559
  def __eq__(self, other):
7560
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7561
 
7562
  def __ne__(self, other):
7563
    return not (self == other)
7564
 
7565
class getVendor_result:
7566
  """
7567
  Attributes:
7568
   - success
7569
  """
7570
 
7571
  thrift_spec = (
7572
    (0, TType.STRUCT, 'success', (Vendor, Vendor.thrift_spec), None, ), # 0
7573
  )
7574
 
7575
  def __init__(self, success=None,):
7576
    self.success = success
7577
 
7578
  def read(self, iprot):
7579
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7580
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7581
      return
7582
    iprot.readStructBegin()
7583
    while True:
7584
      (fname, ftype, fid) = iprot.readFieldBegin()
7585
      if ftype == TType.STOP:
7586
        break
7587
      if fid == 0:
7588
        if ftype == TType.STRUCT:
7589
          self.success = Vendor()
7590
          self.success.read(iprot)
7591
        else:
7592
          iprot.skip(ftype)
7593
      else:
7594
        iprot.skip(ftype)
7595
      iprot.readFieldEnd()
7596
    iprot.readStructEnd()
7597
 
7598
  def write(self, oprot):
7599
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7600
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7601
      return
7602
    oprot.writeStructBegin('getVendor_result')
7603
    if self.success is not None:
7604
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7605
      self.success.write(oprot)
7606
      oprot.writeFieldEnd()
7607
    oprot.writeFieldStop()
7608
    oprot.writeStructEnd()
7609
 
7610
  def validate(self):
7611
    return
7612
 
7613
 
7614
  def __repr__(self):
7615
    L = ['%s=%r' % (key, value)
7616
      for key, value in self.__dict__.iteritems()]
7617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7618
 
7619
  def __eq__(self, other):
7620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7621
 
7622
  def __ne__(self, other):
7623
    return not (self == other)
7624
 
7625
class getAllVendors_args:
7626
 
7627
  thrift_spec = (
7628
  )
7629
 
7630
  def read(self, iprot):
7631
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7632
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7633
      return
7634
    iprot.readStructBegin()
7635
    while True:
7636
      (fname, ftype, fid) = iprot.readFieldBegin()
7637
      if ftype == TType.STOP:
7638
        break
7639
      else:
7640
        iprot.skip(ftype)
7641
      iprot.readFieldEnd()
7642
    iprot.readStructEnd()
7643
 
7644
  def write(self, oprot):
7645
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7646
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7647
      return
7648
    oprot.writeStructBegin('getAllVendors_args')
7649
    oprot.writeFieldStop()
7650
    oprot.writeStructEnd()
7651
 
7652
  def validate(self):
7653
    return
7654
 
7655
 
7656
  def __repr__(self):
7657
    L = ['%s=%r' % (key, value)
7658
      for key, value in self.__dict__.iteritems()]
7659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7660
 
7661
  def __eq__(self, other):
7662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7663
 
7664
  def __ne__(self, other):
7665
    return not (self == other)
7666
 
7667
class getAllVendors_result:
7668
  """
7669
  Attributes:
7670
   - success
7671
  """
7672
 
7673
  thrift_spec = (
7674
    (0, TType.LIST, 'success', (TType.STRUCT,(Vendor, Vendor.thrift_spec)), None, ), # 0
7675
  )
7676
 
7677
  def __init__(self, success=None,):
7678
    self.success = success
7679
 
7680
  def read(self, iprot):
7681
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7682
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7683
      return
7684
    iprot.readStructBegin()
7685
    while True:
7686
      (fname, ftype, fid) = iprot.readFieldBegin()
7687
      if ftype == TType.STOP:
7688
        break
7689
      if fid == 0:
7690
        if ftype == TType.LIST:
7691
          self.success = []
8182 amar.kumar 7692
          (_etype76, _size73) = iprot.readListBegin()
7693
          for _i77 in xrange(_size73):
7694
            _elem78 = Vendor()
7695
            _elem78.read(iprot)
7696
            self.success.append(_elem78)
5944 mandeep.dh 7697
          iprot.readListEnd()
7698
        else:
7699
          iprot.skip(ftype)
7700
      else:
7701
        iprot.skip(ftype)
7702
      iprot.readFieldEnd()
7703
    iprot.readStructEnd()
7704
 
7705
  def write(self, oprot):
7706
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7707
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7708
      return
7709
    oprot.writeStructBegin('getAllVendors_result')
7710
    if self.success is not None:
7711
      oprot.writeFieldBegin('success', TType.LIST, 0)
7712
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7713
      for iter79 in self.success:
7714
        iter79.write(oprot)
5944 mandeep.dh 7715
      oprot.writeListEnd()
7716
      oprot.writeFieldEnd()
7717
    oprot.writeFieldStop()
7718
    oprot.writeStructEnd()
7719
 
7720
  def validate(self):
7721
    return
7722
 
7723
 
7724
  def __repr__(self):
7725
    L = ['%s=%r' % (key, value)
7726
      for key, value in self.__dict__.iteritems()]
7727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7728
 
7729
  def __eq__(self, other):
7730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7731
 
7732
  def __ne__(self, other):
7733
    return not (self == other)
7734
 
7735
class addVendorItemMapping_args:
7736
  """
7737
  Attributes:
7738
   - key
7739
   - vendorItemMapping
7740
  """
7741
 
7742
  thrift_spec = (
7743
    None, # 0
7744
    (1, TType.STRING, 'key', None, None, ), # 1
7745
    (2, TType.STRUCT, 'vendorItemMapping', (VendorItemMapping, VendorItemMapping.thrift_spec), None, ), # 2
7746
  )
7747
 
7748
  def __init__(self, key=None, vendorItemMapping=None,):
7749
    self.key = key
7750
    self.vendorItemMapping = vendorItemMapping
7751
 
7752
  def read(self, iprot):
7753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7755
      return
7756
    iprot.readStructBegin()
7757
    while True:
7758
      (fname, ftype, fid) = iprot.readFieldBegin()
7759
      if ftype == TType.STOP:
7760
        break
7761
      if fid == 1:
7762
        if ftype == TType.STRING:
7763
          self.key = iprot.readString();
7764
        else:
7765
          iprot.skip(ftype)
7766
      elif fid == 2:
7767
        if ftype == TType.STRUCT:
7768
          self.vendorItemMapping = VendorItemMapping()
7769
          self.vendorItemMapping.read(iprot)
7770
        else:
7771
          iprot.skip(ftype)
7772
      else:
7773
        iprot.skip(ftype)
7774
      iprot.readFieldEnd()
7775
    iprot.readStructEnd()
7776
 
7777
  def write(self, oprot):
7778
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7779
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7780
      return
7781
    oprot.writeStructBegin('addVendorItemMapping_args')
7782
    if self.key is not None:
7783
      oprot.writeFieldBegin('key', TType.STRING, 1)
7784
      oprot.writeString(self.key)
7785
      oprot.writeFieldEnd()
7786
    if self.vendorItemMapping is not None:
7787
      oprot.writeFieldBegin('vendorItemMapping', TType.STRUCT, 2)
7788
      self.vendorItemMapping.write(oprot)
7789
      oprot.writeFieldEnd()
7790
    oprot.writeFieldStop()
7791
    oprot.writeStructEnd()
7792
 
7793
  def validate(self):
7794
    return
7795
 
7796
 
7797
  def __repr__(self):
7798
    L = ['%s=%r' % (key, value)
7799
      for key, value in self.__dict__.iteritems()]
7800
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7801
 
7802
  def __eq__(self, other):
7803
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7804
 
7805
  def __ne__(self, other):
7806
    return not (self == other)
7807
 
7808
class addVendorItemMapping_result:
7809
  """
7810
  Attributes:
7811
   - cex
7812
  """
7813
 
7814
  thrift_spec = (
7815
    None, # 0
7816
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7817
  )
7818
 
7819
  def __init__(self, cex=None,):
7820
    self.cex = cex
7821
 
7822
  def read(self, iprot):
7823
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7824
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7825
      return
7826
    iprot.readStructBegin()
7827
    while True:
7828
      (fname, ftype, fid) = iprot.readFieldBegin()
7829
      if ftype == TType.STOP:
7830
        break
7831
      if fid == 1:
7832
        if ftype == TType.STRUCT:
7833
          self.cex = InventoryServiceException()
7834
          self.cex.read(iprot)
7835
        else:
7836
          iprot.skip(ftype)
7837
      else:
7838
        iprot.skip(ftype)
7839
      iprot.readFieldEnd()
7840
    iprot.readStructEnd()
7841
 
7842
  def write(self, oprot):
7843
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7844
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7845
      return
7846
    oprot.writeStructBegin('addVendorItemMapping_result')
7847
    if self.cex is not None:
7848
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7849
      self.cex.write(oprot)
7850
      oprot.writeFieldEnd()
7851
    oprot.writeFieldStop()
7852
    oprot.writeStructEnd()
7853
 
7854
  def validate(self):
7855
    return
7856
 
7857
 
7858
  def __repr__(self):
7859
    L = ['%s=%r' % (key, value)
7860
      for key, value in self.__dict__.iteritems()]
7861
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7862
 
7863
  def __eq__(self, other):
7864
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7865
 
7866
  def __ne__(self, other):
7867
    return not (self == other)
7868
 
7869
class getVendorItemMappings_args:
7870
  """
7871
  Attributes:
7872
   - itemId
7873
  """
7874
 
7875
  thrift_spec = (
7876
    None, # 0
7877
    (1, TType.I64, 'itemId', None, None, ), # 1
7878
  )
7879
 
7880
  def __init__(self, itemId=None,):
7881
    self.itemId = itemId
7882
 
7883
  def read(self, iprot):
7884
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7885
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7886
      return
7887
    iprot.readStructBegin()
7888
    while True:
7889
      (fname, ftype, fid) = iprot.readFieldBegin()
7890
      if ftype == TType.STOP:
7891
        break
7892
      if fid == 1:
7893
        if ftype == TType.I64:
7894
          self.itemId = iprot.readI64();
7895
        else:
7896
          iprot.skip(ftype)
7897
      else:
7898
        iprot.skip(ftype)
7899
      iprot.readFieldEnd()
7900
    iprot.readStructEnd()
7901
 
7902
  def write(self, oprot):
7903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7905
      return
7906
    oprot.writeStructBegin('getVendorItemMappings_args')
7907
    if self.itemId is not None:
7908
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7909
      oprot.writeI64(self.itemId)
7910
      oprot.writeFieldEnd()
7911
    oprot.writeFieldStop()
7912
    oprot.writeStructEnd()
7913
 
7914
  def validate(self):
7915
    return
7916
 
7917
 
7918
  def __repr__(self):
7919
    L = ['%s=%r' % (key, value)
7920
      for key, value in self.__dict__.iteritems()]
7921
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7922
 
7923
  def __eq__(self, other):
7924
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7925
 
7926
  def __ne__(self, other):
7927
    return not (self == other)
7928
 
7929
class getVendorItemMappings_result:
7930
  """
7931
  Attributes:
7932
   - success
7933
   - cex
7934
  """
7935
 
7936
  thrift_spec = (
7937
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
7938
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7939
  )
7940
 
7941
  def __init__(self, success=None, cex=None,):
7942
    self.success = success
7943
    self.cex = cex
7944
 
7945
  def read(self, iprot):
7946
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7947
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7948
      return
7949
    iprot.readStructBegin()
7950
    while True:
7951
      (fname, ftype, fid) = iprot.readFieldBegin()
7952
      if ftype == TType.STOP:
7953
        break
7954
      if fid == 0:
7955
        if ftype == TType.LIST:
7956
          self.success = []
8182 amar.kumar 7957
          (_etype83, _size80) = iprot.readListBegin()
7958
          for _i84 in xrange(_size80):
7959
            _elem85 = VendorItemMapping()
7960
            _elem85.read(iprot)
7961
            self.success.append(_elem85)
5944 mandeep.dh 7962
          iprot.readListEnd()
7963
        else:
7964
          iprot.skip(ftype)
7965
      elif fid == 1:
7966
        if ftype == TType.STRUCT:
7967
          self.cex = InventoryServiceException()
7968
          self.cex.read(iprot)
7969
        else:
7970
          iprot.skip(ftype)
7971
      else:
7972
        iprot.skip(ftype)
7973
      iprot.readFieldEnd()
7974
    iprot.readStructEnd()
7975
 
7976
  def write(self, oprot):
7977
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7978
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7979
      return
7980
    oprot.writeStructBegin('getVendorItemMappings_result')
7981
    if self.success is not None:
7982
      oprot.writeFieldBegin('success', TType.LIST, 0)
7983
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7984
      for iter86 in self.success:
7985
        iter86.write(oprot)
5944 mandeep.dh 7986
      oprot.writeListEnd()
7987
      oprot.writeFieldEnd()
7988
    if self.cex is not None:
7989
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7990
      self.cex.write(oprot)
7991
      oprot.writeFieldEnd()
7992
    oprot.writeFieldStop()
7993
    oprot.writeStructEnd()
7994
 
7995
  def validate(self):
7996
    return
7997
 
7998
 
7999
  def __repr__(self):
8000
    L = ['%s=%r' % (key, value)
8001
      for key, value in self.__dict__.iteritems()]
8002
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8003
 
8004
  def __eq__(self, other):
8005
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8006
 
8007
  def __ne__(self, other):
8008
    return not (self == other)
8009
 
8010
class getPendingOrdersInventory_args:
8011
  """
8012
  Attributes:
8013
   - vendorid
8014
  """
8015
 
8016
  thrift_spec = (
8017
    None, # 0
8018
    (1, TType.I64, 'vendorid', None, None, ), # 1
8019
  )
8020
 
8021
  def __init__(self, vendorid=None,):
8022
    self.vendorid = vendorid
8023
 
8024
  def read(self, iprot):
8025
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8026
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8027
      return
8028
    iprot.readStructBegin()
8029
    while True:
8030
      (fname, ftype, fid) = iprot.readFieldBegin()
8031
      if ftype == TType.STOP:
8032
        break
8033
      if fid == 1:
8034
        if ftype == TType.I64:
8035
          self.vendorid = iprot.readI64();
8036
        else:
8037
          iprot.skip(ftype)
8038
      else:
8039
        iprot.skip(ftype)
8040
      iprot.readFieldEnd()
8041
    iprot.readStructEnd()
8042
 
8043
  def write(self, oprot):
8044
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8045
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8046
      return
8047
    oprot.writeStructBegin('getPendingOrdersInventory_args')
8048
    if self.vendorid is not None:
8049
      oprot.writeFieldBegin('vendorid', TType.I64, 1)
8050
      oprot.writeI64(self.vendorid)
8051
      oprot.writeFieldEnd()
8052
    oprot.writeFieldStop()
8053
    oprot.writeStructEnd()
8054
 
8055
  def validate(self):
8056
    return
8057
 
8058
 
8059
  def __repr__(self):
8060
    L = ['%s=%r' % (key, value)
8061
      for key, value in self.__dict__.iteritems()]
8062
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8063
 
8064
  def __eq__(self, other):
8065
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8066
 
8067
  def __ne__(self, other):
8068
    return not (self == other)
8069
 
8070
class getPendingOrdersInventory_result:
8071
  """
8072
  Attributes:
8073
   - success
8074
  """
8075
 
8076
  thrift_spec = (
8077
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
8078
  )
8079
 
8080
  def __init__(self, success=None,):
8081
    self.success = success
8082
 
8083
  def read(self, iprot):
8084
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8085
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8086
      return
8087
    iprot.readStructBegin()
8088
    while True:
8089
      (fname, ftype, fid) = iprot.readFieldBegin()
8090
      if ftype == TType.STOP:
8091
        break
8092
      if fid == 0:
8093
        if ftype == TType.LIST:
8094
          self.success = []
8182 amar.kumar 8095
          (_etype90, _size87) = iprot.readListBegin()
8096
          for _i91 in xrange(_size87):
8097
            _elem92 = AvailableAndReservedStock()
8098
            _elem92.read(iprot)
8099
            self.success.append(_elem92)
5944 mandeep.dh 8100
          iprot.readListEnd()
8101
        else:
8102
          iprot.skip(ftype)
8103
      else:
8104
        iprot.skip(ftype)
8105
      iprot.readFieldEnd()
8106
    iprot.readStructEnd()
8107
 
8108
  def write(self, oprot):
8109
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8110
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8111
      return
8112
    oprot.writeStructBegin('getPendingOrdersInventory_result')
8113
    if self.success is not None:
8114
      oprot.writeFieldBegin('success', TType.LIST, 0)
8115
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8116
      for iter93 in self.success:
8117
        iter93.write(oprot)
5944 mandeep.dh 8118
      oprot.writeListEnd()
8119
      oprot.writeFieldEnd()
8120
    oprot.writeFieldStop()
8121
    oprot.writeStructEnd()
8122
 
8123
  def validate(self):
8124
    return
8125
 
8126
 
8127
  def __repr__(self):
8128
    L = ['%s=%r' % (key, value)
8129
      for key, value in self.__dict__.iteritems()]
8130
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8131
 
8132
  def __eq__(self, other):
8133
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8134
 
8135
  def __ne__(self, other):
8136
    return not (self == other)
8137
 
8138
class getWarehouses_args:
8139
  """
8140
  Attributes:
8141
   - warehouseType
8142
   - inventoryType
8143
   - vendorId
8144
   - billingWarehouseId
8145
   - shippingWarehouseId
8146
  """
8147
 
8148
  thrift_spec = (
8149
    None, # 0
8150
    (1, TType.I32, 'warehouseType', None, None, ), # 1
8151
    (2, TType.I32, 'inventoryType', None, None, ), # 2
8152
    (3, TType.I64, 'vendorId', None, None, ), # 3
8153
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
8154
    (5, TType.I64, 'shippingWarehouseId', None, None, ), # 5
8155
  )
8156
 
8157
  def __init__(self, warehouseType=None, inventoryType=None, vendorId=None, billingWarehouseId=None, shippingWarehouseId=None,):
8158
    self.warehouseType = warehouseType
8159
    self.inventoryType = inventoryType
8160
    self.vendorId = vendorId
8161
    self.billingWarehouseId = billingWarehouseId
8162
    self.shippingWarehouseId = shippingWarehouseId
8163
 
8164
  def read(self, iprot):
8165
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8166
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8167
      return
8168
    iprot.readStructBegin()
8169
    while True:
8170
      (fname, ftype, fid) = iprot.readFieldBegin()
8171
      if ftype == TType.STOP:
8172
        break
8173
      if fid == 1:
8174
        if ftype == TType.I32:
8175
          self.warehouseType = iprot.readI32();
8176
        else:
8177
          iprot.skip(ftype)
8178
      elif fid == 2:
8179
        if ftype == TType.I32:
8180
          self.inventoryType = iprot.readI32();
8181
        else:
8182
          iprot.skip(ftype)
8183
      elif fid == 3:
8184
        if ftype == TType.I64:
8185
          self.vendorId = iprot.readI64();
8186
        else:
8187
          iprot.skip(ftype)
8188
      elif fid == 4:
8189
        if ftype == TType.I64:
8190
          self.billingWarehouseId = iprot.readI64();
8191
        else:
8192
          iprot.skip(ftype)
8193
      elif fid == 5:
8194
        if ftype == TType.I64:
8195
          self.shippingWarehouseId = iprot.readI64();
8196
        else:
8197
          iprot.skip(ftype)
8198
      else:
8199
        iprot.skip(ftype)
8200
      iprot.readFieldEnd()
8201
    iprot.readStructEnd()
8202
 
8203
  def write(self, oprot):
8204
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8205
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8206
      return
8207
    oprot.writeStructBegin('getWarehouses_args')
8208
    if self.warehouseType is not None:
8209
      oprot.writeFieldBegin('warehouseType', TType.I32, 1)
8210
      oprot.writeI32(self.warehouseType)
8211
      oprot.writeFieldEnd()
8212
    if self.inventoryType is not None:
8213
      oprot.writeFieldBegin('inventoryType', TType.I32, 2)
8214
      oprot.writeI32(self.inventoryType)
8215
      oprot.writeFieldEnd()
8216
    if self.vendorId is not None:
8217
      oprot.writeFieldBegin('vendorId', TType.I64, 3)
8218
      oprot.writeI64(self.vendorId)
8219
      oprot.writeFieldEnd()
8220
    if self.billingWarehouseId is not None:
8221
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
8222
      oprot.writeI64(self.billingWarehouseId)
8223
      oprot.writeFieldEnd()
8224
    if self.shippingWarehouseId is not None:
8225
      oprot.writeFieldBegin('shippingWarehouseId', TType.I64, 5)
8226
      oprot.writeI64(self.shippingWarehouseId)
8227
      oprot.writeFieldEnd()
8228
    oprot.writeFieldStop()
8229
    oprot.writeStructEnd()
8230
 
8231
  def validate(self):
8232
    return
8233
 
8234
 
8235
  def __repr__(self):
8236
    L = ['%s=%r' % (key, value)
8237
      for key, value in self.__dict__.iteritems()]
8238
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8239
 
8240
  def __eq__(self, other):
8241
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8242
 
8243
  def __ne__(self, other):
8244
    return not (self == other)
8245
 
8246
class getWarehouses_result:
8247
  """
8248
  Attributes:
8249
   - success
8250
  """
8251
 
8252
  thrift_spec = (
8253
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
8254
  )
8255
 
8256
  def __init__(self, success=None,):
8257
    self.success = success
8258
 
8259
  def read(self, iprot):
8260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8262
      return
8263
    iprot.readStructBegin()
8264
    while True:
8265
      (fname, ftype, fid) = iprot.readFieldBegin()
8266
      if ftype == TType.STOP:
8267
        break
8268
      if fid == 0:
8269
        if ftype == TType.LIST:
8270
          self.success = []
8182 amar.kumar 8271
          (_etype97, _size94) = iprot.readListBegin()
8272
          for _i98 in xrange(_size94):
8273
            _elem99 = Warehouse()
8274
            _elem99.read(iprot)
8275
            self.success.append(_elem99)
5944 mandeep.dh 8276
          iprot.readListEnd()
8277
        else:
8278
          iprot.skip(ftype)
8279
      else:
8280
        iprot.skip(ftype)
8281
      iprot.readFieldEnd()
8282
    iprot.readStructEnd()
8283
 
8284
  def write(self, oprot):
8285
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8286
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8287
      return
8288
    oprot.writeStructBegin('getWarehouses_result')
8289
    if self.success is not None:
8290
      oprot.writeFieldBegin('success', TType.LIST, 0)
8291
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8292
      for iter100 in self.success:
8293
        iter100.write(oprot)
5944 mandeep.dh 8294
      oprot.writeListEnd()
8295
      oprot.writeFieldEnd()
8296
    oprot.writeFieldStop()
8297
    oprot.writeStructEnd()
8298
 
8299
  def validate(self):
8300
    return
8301
 
8302
 
8303
  def __repr__(self):
8304
    L = ['%s=%r' % (key, value)
8305
      for key, value in self.__dict__.iteritems()]
8306
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8307
 
8308
  def __eq__(self, other):
8309
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8310
 
8311
  def __ne__(self, other):
8312
    return not (self == other)
8313
 
8314
class resetAvailability_args:
8315
  """
8316
  Attributes:
8317
   - itemKey
8318
   - vendorId
8319
   - quantity
8320
   - warehouseId
8321
  """
8322
 
8323
  thrift_spec = (
8324
    None, # 0
8325
    (1, TType.STRING, 'itemKey', None, None, ), # 1
8326
    (2, TType.I64, 'vendorId', None, None, ), # 2
8327
    (3, TType.I64, 'quantity', None, None, ), # 3
8328
    (4, TType.I64, 'warehouseId', None, None, ), # 4
8329
  )
8330
 
8331
  def __init__(self, itemKey=None, vendorId=None, quantity=None, warehouseId=None,):
8332
    self.itemKey = itemKey
8333
    self.vendorId = vendorId
8334
    self.quantity = quantity
8335
    self.warehouseId = warehouseId
8336
 
8337
  def read(self, iprot):
8338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8340
      return
8341
    iprot.readStructBegin()
8342
    while True:
8343
      (fname, ftype, fid) = iprot.readFieldBegin()
8344
      if ftype == TType.STOP:
8345
        break
8346
      if fid == 1:
8347
        if ftype == TType.STRING:
8348
          self.itemKey = iprot.readString();
8349
        else:
8350
          iprot.skip(ftype)
8351
      elif fid == 2:
8352
        if ftype == TType.I64:
8353
          self.vendorId = iprot.readI64();
8354
        else:
8355
          iprot.skip(ftype)
8356
      elif fid == 3:
8357
        if ftype == TType.I64:
8358
          self.quantity = iprot.readI64();
8359
        else:
8360
          iprot.skip(ftype)
8361
      elif fid == 4:
8362
        if ftype == TType.I64:
8363
          self.warehouseId = iprot.readI64();
8364
        else:
8365
          iprot.skip(ftype)
8366
      else:
8367
        iprot.skip(ftype)
8368
      iprot.readFieldEnd()
8369
    iprot.readStructEnd()
8370
 
8371
  def write(self, oprot):
8372
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8373
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8374
      return
8375
    oprot.writeStructBegin('resetAvailability_args')
8376
    if self.itemKey is not None:
8377
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
8378
      oprot.writeString(self.itemKey)
8379
      oprot.writeFieldEnd()
8380
    if self.vendorId is not None:
8381
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
8382
      oprot.writeI64(self.vendorId)
8383
      oprot.writeFieldEnd()
8384
    if self.quantity is not None:
8385
      oprot.writeFieldBegin('quantity', TType.I64, 3)
8386
      oprot.writeI64(self.quantity)
8387
      oprot.writeFieldEnd()
8388
    if self.warehouseId is not None:
8389
      oprot.writeFieldBegin('warehouseId', TType.I64, 4)
8390
      oprot.writeI64(self.warehouseId)
8391
      oprot.writeFieldEnd()
8392
    oprot.writeFieldStop()
8393
    oprot.writeStructEnd()
8394
 
8395
  def validate(self):
8396
    return
8397
 
8398
 
8399
  def __repr__(self):
8400
    L = ['%s=%r' % (key, value)
8401
      for key, value in self.__dict__.iteritems()]
8402
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8403
 
8404
  def __eq__(self, other):
8405
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8406
 
8407
  def __ne__(self, other):
8408
    return not (self == other)
8409
 
8410
class resetAvailability_result:
8411
  """
8412
  Attributes:
8413
   - cex
8414
  """
8415
 
8416
  thrift_spec = (
8417
    None, # 0
8418
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8419
  )
8420
 
8421
  def __init__(self, cex=None,):
8422
    self.cex = cex
8423
 
8424
  def read(self, iprot):
8425
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8426
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8427
      return
8428
    iprot.readStructBegin()
8429
    while True:
8430
      (fname, ftype, fid) = iprot.readFieldBegin()
8431
      if ftype == TType.STOP:
8432
        break
8433
      if fid == 1:
8434
        if ftype == TType.STRUCT:
8435
          self.cex = InventoryServiceException()
8436
          self.cex.read(iprot)
8437
        else:
8438
          iprot.skip(ftype)
8439
      else:
8440
        iprot.skip(ftype)
8441
      iprot.readFieldEnd()
8442
    iprot.readStructEnd()
8443
 
8444
  def write(self, oprot):
8445
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8446
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8447
      return
8448
    oprot.writeStructBegin('resetAvailability_result')
8449
    if self.cex is not None:
8450
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8451
      self.cex.write(oprot)
8452
      oprot.writeFieldEnd()
8453
    oprot.writeFieldStop()
8454
    oprot.writeStructEnd()
8455
 
8456
  def validate(self):
8457
    return
8458
 
8459
 
8460
  def __repr__(self):
8461
    L = ['%s=%r' % (key, value)
8462
      for key, value in self.__dict__.iteritems()]
8463
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8464
 
8465
  def __eq__(self, other):
8466
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8467
 
8468
  def __ne__(self, other):
8469
    return not (self == other)
8470
 
8471
class resetAvailabilityForWarehouse_args:
8472
  """
8473
  Attributes:
8474
   - warehouseId
8475
  """
8476
 
8477
  thrift_spec = (
8478
    None, # 0
8479
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8480
  )
8481
 
8482
  def __init__(self, warehouseId=None,):
8483
    self.warehouseId = warehouseId
8484
 
8485
  def read(self, iprot):
8486
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8487
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8488
      return
8489
    iprot.readStructBegin()
8490
    while True:
8491
      (fname, ftype, fid) = iprot.readFieldBegin()
8492
      if ftype == TType.STOP:
8493
        break
8494
      if fid == 1:
8495
        if ftype == TType.I64:
8496
          self.warehouseId = iprot.readI64();
8497
        else:
8498
          iprot.skip(ftype)
8499
      else:
8500
        iprot.skip(ftype)
8501
      iprot.readFieldEnd()
8502
    iprot.readStructEnd()
8503
 
8504
  def write(self, oprot):
8505
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8506
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8507
      return
8508
    oprot.writeStructBegin('resetAvailabilityForWarehouse_args')
8509
    if self.warehouseId is not None:
8510
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8511
      oprot.writeI64(self.warehouseId)
8512
      oprot.writeFieldEnd()
8513
    oprot.writeFieldStop()
8514
    oprot.writeStructEnd()
8515
 
8516
  def validate(self):
8517
    return
8518
 
8519
 
8520
  def __repr__(self):
8521
    L = ['%s=%r' % (key, value)
8522
      for key, value in self.__dict__.iteritems()]
8523
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8524
 
8525
  def __eq__(self, other):
8526
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8527
 
8528
  def __ne__(self, other):
8529
    return not (self == other)
8530
 
8531
class resetAvailabilityForWarehouse_result:
8532
  """
8533
  Attributes:
8534
   - cex
8535
  """
8536
 
8537
  thrift_spec = (
8538
    None, # 0
8539
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8540
  )
8541
 
8542
  def __init__(self, cex=None,):
8543
    self.cex = cex
8544
 
8545
  def read(self, iprot):
8546
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8547
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8548
      return
8549
    iprot.readStructBegin()
8550
    while True:
8551
      (fname, ftype, fid) = iprot.readFieldBegin()
8552
      if ftype == TType.STOP:
8553
        break
8554
      if fid == 1:
8555
        if ftype == TType.STRUCT:
8556
          self.cex = InventoryServiceException()
8557
          self.cex.read(iprot)
8558
        else:
8559
          iprot.skip(ftype)
8560
      else:
8561
        iprot.skip(ftype)
8562
      iprot.readFieldEnd()
8563
    iprot.readStructEnd()
8564
 
8565
  def write(self, oprot):
8566
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8567
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8568
      return
8569
    oprot.writeStructBegin('resetAvailabilityForWarehouse_result')
8570
    if self.cex is not None:
8571
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8572
      self.cex.write(oprot)
8573
      oprot.writeFieldEnd()
8574
    oprot.writeFieldStop()
8575
    oprot.writeStructEnd()
8576
 
8577
  def validate(self):
8578
    return
8579
 
8580
 
8581
  def __repr__(self):
8582
    L = ['%s=%r' % (key, value)
8583
      for key, value in self.__dict__.iteritems()]
8584
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8585
 
8586
  def __eq__(self, other):
8587
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8588
 
8589
  def __ne__(self, other):
8590
    return not (self == other)
8591
 
8592
class getItemKeysToBeProcessed_args:
8593
  """
8594
  Attributes:
8595
   - warehouseId
8596
  """
8597
 
8598
  thrift_spec = (
8599
    None, # 0
8600
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8601
  )
8602
 
8603
  def __init__(self, warehouseId=None,):
8604
    self.warehouseId = warehouseId
8605
 
8606
  def read(self, iprot):
8607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8609
      return
8610
    iprot.readStructBegin()
8611
    while True:
8612
      (fname, ftype, fid) = iprot.readFieldBegin()
8613
      if ftype == TType.STOP:
8614
        break
8615
      if fid == 1:
8616
        if ftype == TType.I64:
8617
          self.warehouseId = iprot.readI64();
8618
        else:
8619
          iprot.skip(ftype)
8620
      else:
8621
        iprot.skip(ftype)
8622
      iprot.readFieldEnd()
8623
    iprot.readStructEnd()
8624
 
8625
  def write(self, oprot):
8626
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8627
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8628
      return
8629
    oprot.writeStructBegin('getItemKeysToBeProcessed_args')
8630
    if self.warehouseId is not None:
8631
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8632
      oprot.writeI64(self.warehouseId)
8633
      oprot.writeFieldEnd()
8634
    oprot.writeFieldStop()
8635
    oprot.writeStructEnd()
8636
 
8637
  def validate(self):
8638
    return
8639
 
8640
 
8641
  def __repr__(self):
8642
    L = ['%s=%r' % (key, value)
8643
      for key, value in self.__dict__.iteritems()]
8644
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8645
 
8646
  def __eq__(self, other):
8647
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8648
 
8649
  def __ne__(self, other):
8650
    return not (self == other)
8651
 
8652
class getItemKeysToBeProcessed_result:
8653
  """
8654
  Attributes:
8655
   - success
8656
  """
8657
 
8658
  thrift_spec = (
8659
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
8660
  )
8661
 
8662
  def __init__(self, success=None,):
8663
    self.success = success
8664
 
8665
  def read(self, iprot):
8666
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8667
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8668
      return
8669
    iprot.readStructBegin()
8670
    while True:
8671
      (fname, ftype, fid) = iprot.readFieldBegin()
8672
      if ftype == TType.STOP:
8673
        break
8674
      if fid == 0:
8675
        if ftype == TType.LIST:
8676
          self.success = []
8182 amar.kumar 8677
          (_etype104, _size101) = iprot.readListBegin()
8678
          for _i105 in xrange(_size101):
8679
            _elem106 = iprot.readString();
8680
            self.success.append(_elem106)
5944 mandeep.dh 8681
          iprot.readListEnd()
8682
        else:
8683
          iprot.skip(ftype)
8684
      else:
8685
        iprot.skip(ftype)
8686
      iprot.readFieldEnd()
8687
    iprot.readStructEnd()
8688
 
8689
  def write(self, oprot):
8690
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8691
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8692
      return
8693
    oprot.writeStructBegin('getItemKeysToBeProcessed_result')
8694
    if self.success is not None:
8695
      oprot.writeFieldBegin('success', TType.LIST, 0)
8696
      oprot.writeListBegin(TType.STRING, len(self.success))
8182 amar.kumar 8697
      for iter107 in self.success:
8698
        oprot.writeString(iter107)
5944 mandeep.dh 8699
      oprot.writeListEnd()
8700
      oprot.writeFieldEnd()
8701
    oprot.writeFieldStop()
8702
    oprot.writeStructEnd()
8703
 
8704
  def validate(self):
8705
    return
8706
 
8707
 
8708
  def __repr__(self):
8709
    L = ['%s=%r' % (key, value)
8710
      for key, value in self.__dict__.iteritems()]
8711
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8712
 
8713
  def __eq__(self, other):
8714
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8715
 
8716
  def __ne__(self, other):
8717
    return not (self == other)
8718
 
8719
class markMissedInventoryUpdatesAsProcessed_args:
8720
  """
8721
  Attributes:
8722
   - itemKey
8723
   - warehouseId
8724
  """
8725
 
8726
  thrift_spec = (
8727
    None, # 0
8728
    (1, TType.STRING, 'itemKey', None, None, ), # 1
8729
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8730
  )
8731
 
8732
  def __init__(self, itemKey=None, warehouseId=None,):
8733
    self.itemKey = itemKey
8734
    self.warehouseId = warehouseId
8735
 
8736
  def read(self, iprot):
8737
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8738
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8739
      return
8740
    iprot.readStructBegin()
8741
    while True:
8742
      (fname, ftype, fid) = iprot.readFieldBegin()
8743
      if ftype == TType.STOP:
8744
        break
8745
      if fid == 1:
8746
        if ftype == TType.STRING:
8747
          self.itemKey = iprot.readString();
8748
        else:
8749
          iprot.skip(ftype)
8750
      elif fid == 2:
8751
        if ftype == TType.I64:
8752
          self.warehouseId = iprot.readI64();
8753
        else:
8754
          iprot.skip(ftype)
8755
      else:
8756
        iprot.skip(ftype)
8757
      iprot.readFieldEnd()
8758
    iprot.readStructEnd()
8759
 
8760
  def write(self, oprot):
8761
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8762
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8763
      return
8764
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_args')
8765
    if self.itemKey is not None:
8766
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
8767
      oprot.writeString(self.itemKey)
8768
      oprot.writeFieldEnd()
8769
    if self.warehouseId is not None:
8770
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8771
      oprot.writeI64(self.warehouseId)
8772
      oprot.writeFieldEnd()
8773
    oprot.writeFieldStop()
8774
    oprot.writeStructEnd()
8775
 
8776
  def validate(self):
8777
    return
8778
 
8779
 
8780
  def __repr__(self):
8781
    L = ['%s=%r' % (key, value)
8782
      for key, value in self.__dict__.iteritems()]
8783
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8784
 
8785
  def __eq__(self, other):
8786
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8787
 
8788
  def __ne__(self, other):
8789
    return not (self == other)
8790
 
8791
class markMissedInventoryUpdatesAsProcessed_result:
8792
 
8793
  thrift_spec = (
8794
  )
8795
 
8796
  def read(self, iprot):
8797
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8798
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8799
      return
8800
    iprot.readStructBegin()
8801
    while True:
8802
      (fname, ftype, fid) = iprot.readFieldBegin()
8803
      if ftype == TType.STOP:
8804
        break
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('markMissedInventoryUpdatesAsProcessed_result')
8815
    oprot.writeFieldStop()
8816
    oprot.writeStructEnd()
8817
 
8818
  def validate(self):
8819
    return
8820
 
8821
 
8822
  def __repr__(self):
8823
    L = ['%s=%r' % (key, value)
8824
      for key, value in self.__dict__.iteritems()]
8825
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8826
 
8827
  def __eq__(self, other):
8828
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8829
 
8830
  def __ne__(self, other):
8831
    return not (self == other)
8832
 
8833
class getIgnoredItemKeys_args:
8834
 
8835
  thrift_spec = (
8836
  )
8837
 
8838
  def read(self, iprot):
8839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8841
      return
8842
    iprot.readStructBegin()
8843
    while True:
8844
      (fname, ftype, fid) = iprot.readFieldBegin()
8845
      if ftype == TType.STOP:
8846
        break
8847
      else:
8848
        iprot.skip(ftype)
8849
      iprot.readFieldEnd()
8850
    iprot.readStructEnd()
8851
 
8852
  def write(self, oprot):
8853
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8854
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8855
      return
8856
    oprot.writeStructBegin('getIgnoredItemKeys_args')
8857
    oprot.writeFieldStop()
8858
    oprot.writeStructEnd()
8859
 
8860
  def validate(self):
8861
    return
8862
 
8863
 
8864
  def __repr__(self):
8865
    L = ['%s=%r' % (key, value)
8866
      for key, value in self.__dict__.iteritems()]
8867
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8868
 
8869
  def __eq__(self, other):
8870
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8871
 
8872
  def __ne__(self, other):
8873
    return not (self == other)
8874
 
8875
class getIgnoredItemKeys_result:
8876
  """
8877
  Attributes:
8878
   - success
8879
  """
8880
 
8881
  thrift_spec = (
8882
    (0, TType.MAP, 'success', (TType.STRING,None,TType.MAP,(TType.I64,None,TType.I64,None)), None, ), # 0
8883
  )
8884
 
8885
  def __init__(self, success=None,):
8886
    self.success = success
8887
 
8888
  def read(self, iprot):
8889
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8890
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8891
      return
8892
    iprot.readStructBegin()
8893
    while True:
8894
      (fname, ftype, fid) = iprot.readFieldBegin()
8895
      if ftype == TType.STOP:
8896
        break
8897
      if fid == 0:
8898
        if ftype == TType.MAP:
8899
          self.success = {}
8182 amar.kumar 8900
          (_ktype109, _vtype110, _size108 ) = iprot.readMapBegin() 
8901
          for _i112 in xrange(_size108):
8902
            _key113 = iprot.readString();
8903
            _val114 = {}
8904
            (_ktype116, _vtype117, _size115 ) = iprot.readMapBegin() 
8905
            for _i119 in xrange(_size115):
8906
              _key120 = iprot.readI64();
8907
              _val121 = iprot.readI64();
8908
              _val114[_key120] = _val121
5944 mandeep.dh 8909
            iprot.readMapEnd()
8182 amar.kumar 8910
            self.success[_key113] = _val114
5944 mandeep.dh 8911
          iprot.readMapEnd()
8912
        else:
8913
          iprot.skip(ftype)
8914
      else:
8915
        iprot.skip(ftype)
8916
      iprot.readFieldEnd()
8917
    iprot.readStructEnd()
8918
 
8919
  def write(self, oprot):
8920
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8921
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8922
      return
8923
    oprot.writeStructBegin('getIgnoredItemKeys_result')
8924
    if self.success is not None:
8925
      oprot.writeFieldBegin('success', TType.MAP, 0)
8926
      oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.success))
8182 amar.kumar 8927
      for kiter122,viter123 in self.success.items():
8928
        oprot.writeString(kiter122)
8929
        oprot.writeMapBegin(TType.I64, TType.I64, len(viter123))
8930
        for kiter124,viter125 in viter123.items():
8931
          oprot.writeI64(kiter124)
8932
          oprot.writeI64(viter125)
5944 mandeep.dh 8933
        oprot.writeMapEnd()
8934
      oprot.writeMapEnd()
8935
      oprot.writeFieldEnd()
8936
    oprot.writeFieldStop()
8937
    oprot.writeStructEnd()
8938
 
8939
  def validate(self):
8940
    return
8941
 
8942
 
8943
  def __repr__(self):
8944
    L = ['%s=%r' % (key, value)
8945
      for key, value in self.__dict__.iteritems()]
8946
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8947
 
8948
  def __eq__(self, other):
8949
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8950
 
8951
  def __ne__(self, other):
8952
    return not (self == other)
8953
 
8954
class addBadInventory_args:
8955
  """
8956
  Attributes:
8957
   - itemId
8958
   - warehouseId
8959
   - quantity
8960
  """
8961
 
8962
  thrift_spec = (
8963
    None, # 0
8964
    (1, TType.I64, 'itemId', None, None, ), # 1
8965
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8966
    (3, TType.I64, 'quantity', None, None, ), # 3
8967
  )
8968
 
8969
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
8970
    self.itemId = itemId
8971
    self.warehouseId = warehouseId
8972
    self.quantity = quantity
8973
 
8974
  def read(self, iprot):
8975
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8976
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8977
      return
8978
    iprot.readStructBegin()
8979
    while True:
8980
      (fname, ftype, fid) = iprot.readFieldBegin()
8981
      if ftype == TType.STOP:
8982
        break
8983
      if fid == 1:
8984
        if ftype == TType.I64:
8985
          self.itemId = iprot.readI64();
8986
        else:
8987
          iprot.skip(ftype)
8988
      elif fid == 2:
8989
        if ftype == TType.I64:
8990
          self.warehouseId = iprot.readI64();
8991
        else:
8992
          iprot.skip(ftype)
8993
      elif fid == 3:
8994
        if ftype == TType.I64:
8995
          self.quantity = iprot.readI64();
8996
        else:
8997
          iprot.skip(ftype)
8998
      else:
8999
        iprot.skip(ftype)
9000
      iprot.readFieldEnd()
9001
    iprot.readStructEnd()
9002
 
9003
  def write(self, oprot):
9004
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9005
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9006
      return
9007
    oprot.writeStructBegin('addBadInventory_args')
9008
    if self.itemId is not None:
9009
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9010
      oprot.writeI64(self.itemId)
9011
      oprot.writeFieldEnd()
9012
    if self.warehouseId is not None:
9013
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
9014
      oprot.writeI64(self.warehouseId)
9015
      oprot.writeFieldEnd()
9016
    if self.quantity is not None:
9017
      oprot.writeFieldBegin('quantity', TType.I64, 3)
9018
      oprot.writeI64(self.quantity)
9019
      oprot.writeFieldEnd()
9020
    oprot.writeFieldStop()
9021
    oprot.writeStructEnd()
9022
 
9023
  def validate(self):
9024
    return
9025
 
9026
 
9027
  def __repr__(self):
9028
    L = ['%s=%r' % (key, value)
9029
      for key, value in self.__dict__.iteritems()]
9030
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9031
 
9032
  def __eq__(self, other):
9033
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9034
 
9035
  def __ne__(self, other):
9036
    return not (self == other)
9037
 
9038
class addBadInventory_result:
9039
  """
9040
  Attributes:
9041
   - cex
9042
  """
9043
 
9044
  thrift_spec = (
9045
    None, # 0
9046
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
9047
  )
9048
 
9049
  def __init__(self, cex=None,):
9050
    self.cex = cex
9051
 
9052
  def read(self, iprot):
9053
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9054
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9055
      return
9056
    iprot.readStructBegin()
9057
    while True:
9058
      (fname, ftype, fid) = iprot.readFieldBegin()
9059
      if ftype == TType.STOP:
9060
        break
9061
      if fid == 1:
9062
        if ftype == TType.STRUCT:
9063
          self.cex = InventoryServiceException()
9064
          self.cex.read(iprot)
9065
        else:
9066
          iprot.skip(ftype)
9067
      else:
9068
        iprot.skip(ftype)
9069
      iprot.readFieldEnd()
9070
    iprot.readStructEnd()
9071
 
9072
  def write(self, oprot):
9073
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9074
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9075
      return
9076
    oprot.writeStructBegin('addBadInventory_result')
9077
    if self.cex is not None:
9078
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9079
      self.cex.write(oprot)
9080
      oprot.writeFieldEnd()
9081
    oprot.writeFieldStop()
9082
    oprot.writeStructEnd()
9083
 
9084
  def validate(self):
9085
    return
9086
 
9087
 
9088
  def __repr__(self):
9089
    L = ['%s=%r' % (key, value)
9090
      for key, value in self.__dict__.iteritems()]
9091
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9092
 
9093
  def __eq__(self, other):
9094
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9095
 
9096
  def __ne__(self, other):
9097
    return not (self == other)
9098
 
9099
class getShippingLocations_args:
9100
 
9101
  thrift_spec = (
9102
  )
9103
 
9104
  def read(self, iprot):
9105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9107
      return
9108
    iprot.readStructBegin()
9109
    while True:
9110
      (fname, ftype, fid) = iprot.readFieldBegin()
9111
      if ftype == TType.STOP:
9112
        break
9113
      else:
9114
        iprot.skip(ftype)
9115
      iprot.readFieldEnd()
9116
    iprot.readStructEnd()
9117
 
9118
  def write(self, oprot):
9119
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9120
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9121
      return
9122
    oprot.writeStructBegin('getShippingLocations_args')
9123
    oprot.writeFieldStop()
9124
    oprot.writeStructEnd()
9125
 
9126
  def validate(self):
9127
    return
9128
 
9129
 
9130
  def __repr__(self):
9131
    L = ['%s=%r' % (key, value)
9132
      for key, value in self.__dict__.iteritems()]
9133
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9134
 
9135
  def __eq__(self, other):
9136
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9137
 
9138
  def __ne__(self, other):
9139
    return not (self == other)
9140
 
9141
class getShippingLocations_result:
9142
  """
9143
  Attributes:
9144
   - success
9145
  """
9146
 
9147
  thrift_spec = (
9148
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
9149
  )
9150
 
9151
  def __init__(self, success=None,):
9152
    self.success = success
9153
 
9154
  def read(self, iprot):
9155
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9156
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9157
      return
9158
    iprot.readStructBegin()
9159
    while True:
9160
      (fname, ftype, fid) = iprot.readFieldBegin()
9161
      if ftype == TType.STOP:
9162
        break
9163
      if fid == 0:
9164
        if ftype == TType.LIST:
9165
          self.success = []
8182 amar.kumar 9166
          (_etype129, _size126) = iprot.readListBegin()
9167
          for _i130 in xrange(_size126):
9168
            _elem131 = Warehouse()
9169
            _elem131.read(iprot)
9170
            self.success.append(_elem131)
5944 mandeep.dh 9171
          iprot.readListEnd()
9172
        else:
9173
          iprot.skip(ftype)
9174
      else:
9175
        iprot.skip(ftype)
9176
      iprot.readFieldEnd()
9177
    iprot.readStructEnd()
9178
 
9179
  def write(self, oprot):
9180
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9181
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9182
      return
9183
    oprot.writeStructBegin('getShippingLocations_result')
9184
    if self.success is not None:
9185
      oprot.writeFieldBegin('success', TType.LIST, 0)
9186
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 9187
      for iter132 in self.success:
9188
        iter132.write(oprot)
5944 mandeep.dh 9189
      oprot.writeListEnd()
9190
      oprot.writeFieldEnd()
9191
    oprot.writeFieldStop()
9192
    oprot.writeStructEnd()
9193
 
9194
  def validate(self):
9195
    return
9196
 
9197
 
9198
  def __repr__(self):
9199
    L = ['%s=%r' % (key, value)
9200
      for key, value in self.__dict__.iteritems()]
9201
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9202
 
9203
  def __eq__(self, other):
9204
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9205
 
9206
  def __ne__(self, other):
9207
    return not (self == other)
9208
 
9209
class getAllVendorItemMappings_args:
9210
 
9211
  thrift_spec = (
9212
  )
9213
 
9214
  def read(self, iprot):
9215
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9216
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9217
      return
9218
    iprot.readStructBegin()
9219
    while True:
9220
      (fname, ftype, fid) = iprot.readFieldBegin()
9221
      if ftype == TType.STOP:
9222
        break
9223
      else:
9224
        iprot.skip(ftype)
9225
      iprot.readFieldEnd()
9226
    iprot.readStructEnd()
9227
 
9228
  def write(self, oprot):
9229
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9230
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9231
      return
9232
    oprot.writeStructBegin('getAllVendorItemMappings_args')
9233
    oprot.writeFieldStop()
9234
    oprot.writeStructEnd()
9235
 
9236
  def validate(self):
9237
    return
9238
 
9239
 
9240
  def __repr__(self):
9241
    L = ['%s=%r' % (key, value)
9242
      for key, value in self.__dict__.iteritems()]
9243
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9244
 
9245
  def __eq__(self, other):
9246
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9247
 
9248
  def __ne__(self, other):
9249
    return not (self == other)
9250
 
9251
class getAllVendorItemMappings_result:
9252
  """
9253
  Attributes:
9254
   - success
9255
  """
9256
 
9257
  thrift_spec = (
9258
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
9259
  )
9260
 
9261
  def __init__(self, success=None,):
9262
    self.success = success
9263
 
9264
  def read(self, iprot):
9265
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9266
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9267
      return
9268
    iprot.readStructBegin()
9269
    while True:
9270
      (fname, ftype, fid) = iprot.readFieldBegin()
9271
      if ftype == TType.STOP:
9272
        break
9273
      if fid == 0:
9274
        if ftype == TType.LIST:
9275
          self.success = []
8182 amar.kumar 9276
          (_etype136, _size133) = iprot.readListBegin()
9277
          for _i137 in xrange(_size133):
9278
            _elem138 = VendorItemMapping()
9279
            _elem138.read(iprot)
9280
            self.success.append(_elem138)
5944 mandeep.dh 9281
          iprot.readListEnd()
9282
        else:
9283
          iprot.skip(ftype)
9284
      else:
9285
        iprot.skip(ftype)
9286
      iprot.readFieldEnd()
9287
    iprot.readStructEnd()
9288
 
9289
  def write(self, oprot):
9290
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9291
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9292
      return
9293
    oprot.writeStructBegin('getAllVendorItemMappings_result')
9294
    if self.success is not None:
9295
      oprot.writeFieldBegin('success', TType.LIST, 0)
9296
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 9297
      for iter139 in self.success:
9298
        iter139.write(oprot)
5944 mandeep.dh 9299
      oprot.writeListEnd()
9300
      oprot.writeFieldEnd()
9301
    oprot.writeFieldStop()
9302
    oprot.writeStructEnd()
9303
 
9304
  def validate(self):
9305
    return
9306
 
9307
 
9308
  def __repr__(self):
9309
    L = ['%s=%r' % (key, value)
9310
      for key, value in self.__dict__.iteritems()]
9311
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9312
 
9313
  def __eq__(self, other):
9314
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9315
 
9316
  def __ne__(self, other):
9317
    return not (self == other)
9318
 
9319
class getInventorySnapshot_args:
9320
  """
9321
  Attributes:
9322
   - warehouseId
9323
  """
9324
 
9325
  thrift_spec = (
9326
    None, # 0
9327
    (1, TType.I64, 'warehouseId', None, None, ), # 1
9328
  )
9329
 
9330
  def __init__(self, warehouseId=None,):
9331
    self.warehouseId = warehouseId
9332
 
9333
  def read(self, iprot):
9334
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9335
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9336
      return
9337
    iprot.readStructBegin()
9338
    while True:
9339
      (fname, ftype, fid) = iprot.readFieldBegin()
9340
      if ftype == TType.STOP:
9341
        break
9342
      if fid == 1:
9343
        if ftype == TType.I64:
9344
          self.warehouseId = iprot.readI64();
9345
        else:
9346
          iprot.skip(ftype)
9347
      else:
9348
        iprot.skip(ftype)
9349
      iprot.readFieldEnd()
9350
    iprot.readStructEnd()
9351
 
9352
  def write(self, oprot):
9353
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9354
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9355
      return
9356
    oprot.writeStructBegin('getInventorySnapshot_args')
9357
    if self.warehouseId is not None:
9358
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9359
      oprot.writeI64(self.warehouseId)
9360
      oprot.writeFieldEnd()
9361
    oprot.writeFieldStop()
9362
    oprot.writeStructEnd()
9363
 
9364
  def validate(self):
9365
    return
9366
 
9367
 
9368
  def __repr__(self):
9369
    L = ['%s=%r' % (key, value)
9370
      for key, value in self.__dict__.iteritems()]
9371
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9372
 
9373
  def __eq__(self, other):
9374
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9375
 
9376
  def __ne__(self, other):
9377
    return not (self == other)
9378
 
9379
class getInventorySnapshot_result:
9380
  """
9381
  Attributes:
9382
   - success
9383
  """
9384
 
9385
  thrift_spec = (
9386
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ItemInventory, ItemInventory.thrift_spec)), None, ), # 0
9387
  )
9388
 
9389
  def __init__(self, success=None,):
9390
    self.success = success
9391
 
9392
  def read(self, iprot):
9393
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9394
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9395
      return
9396
    iprot.readStructBegin()
9397
    while True:
9398
      (fname, ftype, fid) = iprot.readFieldBegin()
9399
      if ftype == TType.STOP:
9400
        break
9401
      if fid == 0:
9402
        if ftype == TType.MAP:
9403
          self.success = {}
8182 amar.kumar 9404
          (_ktype141, _vtype142, _size140 ) = iprot.readMapBegin() 
9405
          for _i144 in xrange(_size140):
9406
            _key145 = iprot.readI64();
9407
            _val146 = ItemInventory()
9408
            _val146.read(iprot)
9409
            self.success[_key145] = _val146
5944 mandeep.dh 9410
          iprot.readMapEnd()
9411
        else:
9412
          iprot.skip(ftype)
9413
      else:
9414
        iprot.skip(ftype)
9415
      iprot.readFieldEnd()
9416
    iprot.readStructEnd()
9417
 
9418
  def write(self, oprot):
9419
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9420
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9421
      return
9422
    oprot.writeStructBegin('getInventorySnapshot_result')
9423
    if self.success is not None:
9424
      oprot.writeFieldBegin('success', TType.MAP, 0)
9425
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
8182 amar.kumar 9426
      for kiter147,viter148 in self.success.items():
9427
        oprot.writeI64(kiter147)
9428
        viter148.write(oprot)
5944 mandeep.dh 9429
      oprot.writeMapEnd()
9430
      oprot.writeFieldEnd()
9431
    oprot.writeFieldStop()
9432
    oprot.writeStructEnd()
9433
 
9434
  def validate(self):
9435
    return
9436
 
9437
 
9438
  def __repr__(self):
9439
    L = ['%s=%r' % (key, value)
9440
      for key, value in self.__dict__.iteritems()]
9441
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9442
 
9443
  def __eq__(self, other):
9444
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9445
 
9446
  def __ne__(self, other):
9447
    return not (self == other)
9448
 
9449
class clearItemAvailabilityCache_args:
9450
 
9451
  thrift_spec = (
9452
  )
9453
 
9454
  def read(self, iprot):
9455
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9456
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9457
      return
9458
    iprot.readStructBegin()
9459
    while True:
9460
      (fname, ftype, fid) = iprot.readFieldBegin()
9461
      if ftype == TType.STOP:
9462
        break
9463
      else:
9464
        iprot.skip(ftype)
9465
      iprot.readFieldEnd()
9466
    iprot.readStructEnd()
9467
 
9468
  def write(self, oprot):
9469
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9470
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9471
      return
9472
    oprot.writeStructBegin('clearItemAvailabilityCache_args')
9473
    oprot.writeFieldStop()
9474
    oprot.writeStructEnd()
9475
 
9476
  def validate(self):
9477
    return
9478
 
9479
 
9480
  def __repr__(self):
9481
    L = ['%s=%r' % (key, value)
9482
      for key, value in self.__dict__.iteritems()]
9483
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9484
 
9485
  def __eq__(self, other):
9486
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9487
 
9488
  def __ne__(self, other):
9489
    return not (self == other)
9490
 
9491
class clearItemAvailabilityCache_result:
9492
 
9493
  thrift_spec = (
9494
  )
9495
 
9496
  def read(self, iprot):
9497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9499
      return
9500
    iprot.readStructBegin()
9501
    while True:
9502
      (fname, ftype, fid) = iprot.readFieldBegin()
9503
      if ftype == TType.STOP:
9504
        break
9505
      else:
9506
        iprot.skip(ftype)
9507
      iprot.readFieldEnd()
9508
    iprot.readStructEnd()
9509
 
9510
  def write(self, oprot):
9511
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9512
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9513
      return
9514
    oprot.writeStructBegin('clearItemAvailabilityCache_result')
9515
    oprot.writeFieldStop()
9516
    oprot.writeStructEnd()
9517
 
9518
  def validate(self):
9519
    return
9520
 
9521
 
9522
  def __repr__(self):
9523
    L = ['%s=%r' % (key, value)
9524
      for key, value in self.__dict__.iteritems()]
9525
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9526
 
9527
  def __eq__(self, other):
9528
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9529
 
9530
  def __ne__(self, other):
9531
    return not (self == other)
9532
 
9533
class updateVendorString_args:
9534
  """
9535
  Attributes:
9536
   - warehouseId
9537
   - vendorString
9538
  """
9539
 
9540
  thrift_spec = (
9541
    None, # 0
9542
    (1, TType.I64, 'warehouseId', None, None, ), # 1
9543
    (2, TType.STRING, 'vendorString', None, None, ), # 2
9544
  )
9545
 
9546
  def __init__(self, warehouseId=None, vendorString=None,):
9547
    self.warehouseId = warehouseId
9548
    self.vendorString = vendorString
9549
 
9550
  def read(self, iprot):
9551
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9552
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9553
      return
9554
    iprot.readStructBegin()
9555
    while True:
9556
      (fname, ftype, fid) = iprot.readFieldBegin()
9557
      if ftype == TType.STOP:
9558
        break
9559
      if fid == 1:
9560
        if ftype == TType.I64:
9561
          self.warehouseId = iprot.readI64();
9562
        else:
9563
          iprot.skip(ftype)
9564
      elif fid == 2:
9565
        if ftype == TType.STRING:
9566
          self.vendorString = iprot.readString();
9567
        else:
9568
          iprot.skip(ftype)
9569
      else:
9570
        iprot.skip(ftype)
9571
      iprot.readFieldEnd()
9572
    iprot.readStructEnd()
9573
 
9574
  def write(self, oprot):
9575
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9576
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9577
      return
9578
    oprot.writeStructBegin('updateVendorString_args')
9579
    if self.warehouseId is not None:
9580
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9581
      oprot.writeI64(self.warehouseId)
9582
      oprot.writeFieldEnd()
9583
    if self.vendorString is not None:
9584
      oprot.writeFieldBegin('vendorString', TType.STRING, 2)
9585
      oprot.writeString(self.vendorString)
9586
      oprot.writeFieldEnd()
9587
    oprot.writeFieldStop()
9588
    oprot.writeStructEnd()
9589
 
9590
  def validate(self):
9591
    return
9592
 
9593
 
9594
  def __repr__(self):
9595
    L = ['%s=%r' % (key, value)
9596
      for key, value in self.__dict__.iteritems()]
9597
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9598
 
9599
  def __eq__(self, other):
9600
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9601
 
9602
  def __ne__(self, other):
9603
    return not (self == other)
9604
 
9605
class updateVendorString_result:
9606
 
9607
  thrift_spec = (
9608
  )
9609
 
9610
  def read(self, iprot):
9611
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9612
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9613
      return
9614
    iprot.readStructBegin()
9615
    while True:
9616
      (fname, ftype, fid) = iprot.readFieldBegin()
9617
      if ftype == TType.STOP:
9618
        break
9619
      else:
9620
        iprot.skip(ftype)
9621
      iprot.readFieldEnd()
9622
    iprot.readStructEnd()
9623
 
9624
  def write(self, oprot):
9625
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9626
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9627
      return
9628
    oprot.writeStructBegin('updateVendorString_result')
9629
    oprot.writeFieldStop()
9630
    oprot.writeStructEnd()
9631
 
9632
  def validate(self):
9633
    return
9634
 
9635
 
9636
  def __repr__(self):
9637
    L = ['%s=%r' % (key, value)
9638
      for key, value in self.__dict__.iteritems()]
9639
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9640
 
9641
  def __eq__(self, other):
9642
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9643
 
9644
  def __ne__(self, other):
9645
    return not (self == other)
6096 amit.gupta 9646
 
9647
class clearItemAvailabilityCacheForItem_args:
9648
  """
9649
  Attributes:
9650
   - item_id
9651
  """
9652
 
9653
  thrift_spec = (
9654
    None, # 0
9655
    (1, TType.I64, 'item_id', None, None, ), # 1
9656
  )
9657
 
9658
  def __init__(self, item_id=None,):
9659
    self.item_id = item_id
9660
 
9661
  def read(self, iprot):
9662
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9663
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9664
      return
9665
    iprot.readStructBegin()
9666
    while True:
9667
      (fname, ftype, fid) = iprot.readFieldBegin()
9668
      if ftype == TType.STOP:
9669
        break
9670
      if fid == 1:
9671
        if ftype == TType.I64:
9672
          self.item_id = iprot.readI64();
9673
        else:
9674
          iprot.skip(ftype)
9675
      else:
9676
        iprot.skip(ftype)
9677
      iprot.readFieldEnd()
9678
    iprot.readStructEnd()
9679
 
9680
  def write(self, oprot):
9681
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9682
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9683
      return
9684
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_args')
9685
    if self.item_id is not None:
9686
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9687
      oprot.writeI64(self.item_id)
9688
      oprot.writeFieldEnd()
9689
    oprot.writeFieldStop()
9690
    oprot.writeStructEnd()
9691
 
9692
  def validate(self):
9693
    return
9694
 
9695
 
9696
  def __repr__(self):
9697
    L = ['%s=%r' % (key, value)
9698
      for key, value in self.__dict__.iteritems()]
9699
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9700
 
9701
  def __eq__(self, other):
9702
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9703
 
9704
  def __ne__(self, other):
9705
    return not (self == other)
9706
 
9707
class clearItemAvailabilityCacheForItem_result:
9708
 
9709
  thrift_spec = (
9710
  )
9711
 
9712
  def read(self, iprot):
9713
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9714
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9715
      return
9716
    iprot.readStructBegin()
9717
    while True:
9718
      (fname, ftype, fid) = iprot.readFieldBegin()
9719
      if ftype == TType.STOP:
9720
        break
9721
      else:
9722
        iprot.skip(ftype)
9723
      iprot.readFieldEnd()
9724
    iprot.readStructEnd()
9725
 
9726
  def write(self, oprot):
9727
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9728
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9729
      return
9730
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_result')
9731
    oprot.writeFieldStop()
9732
    oprot.writeStructEnd()
9733
 
9734
  def validate(self):
9735
    return
9736
 
9737
 
9738
  def __repr__(self):
9739
    L = ['%s=%r' % (key, value)
9740
      for key, value in self.__dict__.iteritems()]
9741
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9742
 
9743
  def __eq__(self, other):
9744
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9745
 
9746
  def __ne__(self, other):
9747
    return not (self == other)
6467 amar.kumar 9748
 
9749
class getOurWarehouseIdForVendor_args:
9750
  """
9751
  Attributes:
9752
   - vendorId
7718 amar.kumar 9753
   - billingWarehouseId
6467 amar.kumar 9754
  """
9755
 
9756
  thrift_spec = (
9757
    None, # 0
9758
    (1, TType.I64, 'vendorId', None, None, ), # 1
7718 amar.kumar 9759
    (2, TType.I64, 'billingWarehouseId', None, None, ), # 2
6467 amar.kumar 9760
  )
9761
 
7718 amar.kumar 9762
  def __init__(self, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 9763
    self.vendorId = vendorId
7718 amar.kumar 9764
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 9765
 
9766
  def read(self, iprot):
9767
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9768
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9769
      return
9770
    iprot.readStructBegin()
9771
    while True:
9772
      (fname, ftype, fid) = iprot.readFieldBegin()
9773
      if ftype == TType.STOP:
9774
        break
9775
      if fid == 1:
9776
        if ftype == TType.I64:
9777
          self.vendorId = iprot.readI64();
9778
        else:
9779
          iprot.skip(ftype)
7718 amar.kumar 9780
      elif fid == 2:
9781
        if ftype == TType.I64:
9782
          self.billingWarehouseId = iprot.readI64();
9783
        else:
9784
          iprot.skip(ftype)
6467 amar.kumar 9785
      else:
9786
        iprot.skip(ftype)
9787
      iprot.readFieldEnd()
9788
    iprot.readStructEnd()
9789
 
9790
  def write(self, oprot):
9791
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9792
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9793
      return
9794
    oprot.writeStructBegin('getOurWarehouseIdForVendor_args')
9795
    if self.vendorId is not None:
9796
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
9797
      oprot.writeI64(self.vendorId)
9798
      oprot.writeFieldEnd()
7718 amar.kumar 9799
    if self.billingWarehouseId is not None:
9800
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 2)
9801
      oprot.writeI64(self.billingWarehouseId)
9802
      oprot.writeFieldEnd()
6467 amar.kumar 9803
    oprot.writeFieldStop()
9804
    oprot.writeStructEnd()
9805
 
9806
  def validate(self):
9807
    return
9808
 
9809
 
9810
  def __repr__(self):
9811
    L = ['%s=%r' % (key, value)
9812
      for key, value in self.__dict__.iteritems()]
9813
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9814
 
9815
  def __eq__(self, other):
9816
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9817
 
9818
  def __ne__(self, other):
9819
    return not (self == other)
9820
 
9821
class getOurWarehouseIdForVendor_result:
9822
  """
9823
  Attributes:
9824
   - success
9825
  """
9826
 
9827
  thrift_spec = (
9828
    (0, TType.I64, 'success', None, None, ), # 0
9829
  )
9830
 
9831
  def __init__(self, success=None,):
9832
    self.success = success
9833
 
9834
  def read(self, iprot):
9835
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9836
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9837
      return
9838
    iprot.readStructBegin()
9839
    while True:
9840
      (fname, ftype, fid) = iprot.readFieldBegin()
9841
      if ftype == TType.STOP:
9842
        break
9843
      if fid == 0:
9844
        if ftype == TType.I64:
9845
          self.success = iprot.readI64();
9846
        else:
9847
          iprot.skip(ftype)
9848
      else:
9849
        iprot.skip(ftype)
9850
      iprot.readFieldEnd()
9851
    iprot.readStructEnd()
9852
 
9853
  def write(self, oprot):
9854
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9855
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9856
      return
9857
    oprot.writeStructBegin('getOurWarehouseIdForVendor_result')
9858
    if self.success is not None:
9859
      oprot.writeFieldBegin('success', TType.I64, 0)
9860
      oprot.writeI64(self.success)
9861
      oprot.writeFieldEnd()
9862
    oprot.writeFieldStop()
9863
    oprot.writeStructEnd()
9864
 
9865
  def validate(self):
9866
    return
9867
 
9868
 
9869
  def __repr__(self):
9870
    L = ['%s=%r' % (key, value)
9871
      for key, value in self.__dict__.iteritems()]
9872
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9873
 
9874
  def __eq__(self, other):
9875
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9876
 
9877
  def __ne__(self, other):
9878
    return not (self == other)
6484 amar.kumar 9879
 
9880
class getItemAvailabilitiesAtOurWarehouses_args:
9881
  """
9882
  Attributes:
9883
   - item_ids
9884
  """
9885
 
9886
  thrift_spec = (
9887
    None, # 0
9888
    (1, TType.LIST, 'item_ids', (TType.I64,None), None, ), # 1
9889
  )
9890
 
9891
  def __init__(self, item_ids=None,):
9892
    self.item_ids = item_ids
9893
 
9894
  def read(self, iprot):
9895
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9896
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9897
      return
9898
    iprot.readStructBegin()
9899
    while True:
9900
      (fname, ftype, fid) = iprot.readFieldBegin()
9901
      if ftype == TType.STOP:
9902
        break
9903
      if fid == 1:
9904
        if ftype == TType.LIST:
9905
          self.item_ids = []
8182 amar.kumar 9906
          (_etype152, _size149) = iprot.readListBegin()
9907
          for _i153 in xrange(_size149):
9908
            _elem154 = iprot.readI64();
9909
            self.item_ids.append(_elem154)
6484 amar.kumar 9910
          iprot.readListEnd()
9911
        else:
9912
          iprot.skip(ftype)
9913
      else:
9914
        iprot.skip(ftype)
9915
      iprot.readFieldEnd()
9916
    iprot.readStructEnd()
9917
 
9918
  def write(self, oprot):
9919
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9920
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9921
      return
9922
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_args')
9923
    if self.item_ids is not None:
9924
      oprot.writeFieldBegin('item_ids', TType.LIST, 1)
9925
      oprot.writeListBegin(TType.I64, len(self.item_ids))
8182 amar.kumar 9926
      for iter155 in self.item_ids:
9927
        oprot.writeI64(iter155)
6484 amar.kumar 9928
      oprot.writeListEnd()
9929
      oprot.writeFieldEnd()
9930
    oprot.writeFieldStop()
9931
    oprot.writeStructEnd()
9932
 
9933
  def validate(self):
9934
    return
9935
 
9936
 
9937
  def __repr__(self):
9938
    L = ['%s=%r' % (key, value)
9939
      for key, value in self.__dict__.iteritems()]
9940
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9941
 
9942
  def __eq__(self, other):
9943
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9944
 
9945
  def __ne__(self, other):
9946
    return not (self == other)
9947
 
9948
class getItemAvailabilitiesAtOurWarehouses_result:
9949
  """
9950
  Attributes:
9951
   - success
9952
  """
9953
 
9954
  thrift_spec = (
9955
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
9956
  )
9957
 
9958
  def __init__(self, success=None,):
9959
    self.success = success
9960
 
9961
  def read(self, iprot):
9962
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9963
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9964
      return
9965
    iprot.readStructBegin()
9966
    while True:
9967
      (fname, ftype, fid) = iprot.readFieldBegin()
9968
      if ftype == TType.STOP:
9969
        break
9970
      if fid == 0:
9971
        if ftype == TType.MAP:
9972
          self.success = {}
8182 amar.kumar 9973
          (_ktype157, _vtype158, _size156 ) = iprot.readMapBegin() 
9974
          for _i160 in xrange(_size156):
9975
            _key161 = iprot.readI64();
9976
            _val162 = iprot.readI64();
9977
            self.success[_key161] = _val162
6484 amar.kumar 9978
          iprot.readMapEnd()
9979
        else:
9980
          iprot.skip(ftype)
9981
      else:
9982
        iprot.skip(ftype)
9983
      iprot.readFieldEnd()
9984
    iprot.readStructEnd()
9985
 
9986
  def write(self, oprot):
9987
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9988
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9989
      return
9990
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_result')
9991
    if self.success is not None:
9992
      oprot.writeFieldBegin('success', TType.MAP, 0)
9993
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
8182 amar.kumar 9994
      for kiter163,viter164 in self.success.items():
9995
        oprot.writeI64(kiter163)
9996
        oprot.writeI64(viter164)
6484 amar.kumar 9997
      oprot.writeMapEnd()
9998
      oprot.writeFieldEnd()
9999
    oprot.writeFieldStop()
10000
    oprot.writeStructEnd()
10001
 
10002
  def validate(self):
10003
    return
10004
 
10005
 
10006
  def __repr__(self):
10007
    L = ['%s=%r' % (key, value)
10008
      for key, value in self.__dict__.iteritems()]
10009
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10010
 
10011
  def __eq__(self, other):
10012
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10013
 
10014
  def __ne__(self, other):
10015
    return not (self == other)
6531 vikram.rag 10016
 
10017
class getMonitoredWarehouseForVendors_args:
10018
  """
10019
  Attributes:
10020
   - vendorIds
10021
  """
10022
 
10023
  thrift_spec = (
10024
    None, # 0
10025
    (1, TType.LIST, 'vendorIds', (TType.I64,None), None, ), # 1
10026
  )
10027
 
10028
  def __init__(self, vendorIds=None,):
10029
    self.vendorIds = vendorIds
10030
 
10031
  def read(self, iprot):
10032
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10033
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10034
      return
10035
    iprot.readStructBegin()
10036
    while True:
10037
      (fname, ftype, fid) = iprot.readFieldBegin()
10038
      if ftype == TType.STOP:
10039
        break
10040
      if fid == 1:
10041
        if ftype == TType.LIST:
10042
          self.vendorIds = []
8182 amar.kumar 10043
          (_etype168, _size165) = iprot.readListBegin()
10044
          for _i169 in xrange(_size165):
10045
            _elem170 = iprot.readI64();
10046
            self.vendorIds.append(_elem170)
6531 vikram.rag 10047
          iprot.readListEnd()
10048
        else:
10049
          iprot.skip(ftype)
10050
      else:
10051
        iprot.skip(ftype)
10052
      iprot.readFieldEnd()
10053
    iprot.readStructEnd()
10054
 
10055
  def write(self, oprot):
10056
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10057
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10058
      return
10059
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_args')
10060
    if self.vendorIds is not None:
10061
      oprot.writeFieldBegin('vendorIds', TType.LIST, 1)
10062
      oprot.writeListBegin(TType.I64, len(self.vendorIds))
8182 amar.kumar 10063
      for iter171 in self.vendorIds:
10064
        oprot.writeI64(iter171)
6531 vikram.rag 10065
      oprot.writeListEnd()
10066
      oprot.writeFieldEnd()
10067
    oprot.writeFieldStop()
10068
    oprot.writeStructEnd()
10069
 
10070
  def validate(self):
10071
    return
10072
 
10073
 
10074
  def __repr__(self):
10075
    L = ['%s=%r' % (key, value)
10076
      for key, value in self.__dict__.iteritems()]
10077
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10078
 
10079
  def __eq__(self, other):
10080
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10081
 
10082
  def __ne__(self, other):
10083
    return not (self == other)
10084
 
10085
class getMonitoredWarehouseForVendors_result:
10086
  """
10087
  Attributes:
10088
   - success
10089
  """
10090
 
10091
  thrift_spec = (
10092
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10093
  )
10094
 
10095
  def __init__(self, success=None,):
10096
    self.success = success
10097
 
10098
  def read(self, iprot):
10099
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10100
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10101
      return
10102
    iprot.readStructBegin()
10103
    while True:
10104
      (fname, ftype, fid) = iprot.readFieldBegin()
10105
      if ftype == TType.STOP:
10106
        break
10107
      if fid == 0:
10108
        if ftype == TType.LIST:
10109
          self.success = []
8182 amar.kumar 10110
          (_etype175, _size172) = iprot.readListBegin()
10111
          for _i176 in xrange(_size172):
10112
            _elem177 = iprot.readI64();
10113
            self.success.append(_elem177)
6531 vikram.rag 10114
          iprot.readListEnd()
10115
        else:
10116
          iprot.skip(ftype)
10117
      else:
10118
        iprot.skip(ftype)
10119
      iprot.readFieldEnd()
10120
    iprot.readStructEnd()
10121
 
10122
  def write(self, oprot):
10123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10125
      return
10126
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_result')
10127
    if self.success is not None:
10128
      oprot.writeFieldBegin('success', TType.LIST, 0)
10129
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 10130
      for iter178 in self.success:
10131
        oprot.writeI64(iter178)
6531 vikram.rag 10132
      oprot.writeListEnd()
10133
      oprot.writeFieldEnd()
10134
    oprot.writeFieldStop()
10135
    oprot.writeStructEnd()
10136
 
10137
  def validate(self):
10138
    return
10139
 
10140
 
10141
  def __repr__(self):
10142
    L = ['%s=%r' % (key, value)
10143
      for key, value in self.__dict__.iteritems()]
10144
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10145
 
10146
  def __eq__(self, other):
10147
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10148
 
10149
  def __ne__(self, other):
10150
    return not (self == other)
10151
 
10152
class getIgnoredWarehouseidsAndItemids_args:
10153
 
10154
  thrift_spec = (
10155
  )
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
      else:
10167
        iprot.skip(ftype)
10168
      iprot.readFieldEnd()
10169
    iprot.readStructEnd()
10170
 
10171
  def write(self, oprot):
10172
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10173
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10174
      return
10175
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_args')
10176
    oprot.writeFieldStop()
10177
    oprot.writeStructEnd()
10178
 
10179
  def validate(self):
10180
    return
10181
 
10182
 
10183
  def __repr__(self):
10184
    L = ['%s=%r' % (key, value)
10185
      for key, value in self.__dict__.iteritems()]
10186
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10187
 
10188
  def __eq__(self, other):
10189
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10190
 
10191
  def __ne__(self, other):
10192
    return not (self == other)
10193
 
10194
class getIgnoredWarehouseidsAndItemids_result:
10195
  """
10196
  Attributes:
10197
   - success
10198
  """
10199
 
10200
  thrift_spec = (
10201
    (0, TType.LIST, 'success', (TType.STRUCT,(IgnoredInventoryUpdateItems, IgnoredInventoryUpdateItems.thrift_spec)), None, ), # 0
10202
  )
10203
 
10204
  def __init__(self, success=None,):
10205
    self.success = success
10206
 
10207
  def read(self, iprot):
10208
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10209
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10210
      return
10211
    iprot.readStructBegin()
10212
    while True:
10213
      (fname, ftype, fid) = iprot.readFieldBegin()
10214
      if ftype == TType.STOP:
10215
        break
10216
      if fid == 0:
10217
        if ftype == TType.LIST:
10218
          self.success = []
8182 amar.kumar 10219
          (_etype182, _size179) = iprot.readListBegin()
10220
          for _i183 in xrange(_size179):
10221
            _elem184 = IgnoredInventoryUpdateItems()
10222
            _elem184.read(iprot)
10223
            self.success.append(_elem184)
6531 vikram.rag 10224
          iprot.readListEnd()
10225
        else:
10226
          iprot.skip(ftype)
10227
      else:
10228
        iprot.skip(ftype)
10229
      iprot.readFieldEnd()
10230
    iprot.readStructEnd()
10231
 
10232
  def write(self, oprot):
10233
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10234
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10235
      return
10236
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_result')
10237
    if self.success is not None:
10238
      oprot.writeFieldBegin('success', TType.LIST, 0)
10239
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10240
      for iter185 in self.success:
10241
        iter185.write(oprot)
6531 vikram.rag 10242
      oprot.writeListEnd()
10243
      oprot.writeFieldEnd()
10244
    oprot.writeFieldStop()
10245
    oprot.writeStructEnd()
10246
 
10247
  def validate(self):
10248
    return
10249
 
10250
 
10251
  def __repr__(self):
10252
    L = ['%s=%r' % (key, value)
10253
      for key, value in self.__dict__.iteritems()]
10254
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10255
 
10256
  def __eq__(self, other):
10257
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10258
 
10259
  def __ne__(self, other):
10260
    return not (self == other)
10261
 
10262
class insertItemtoIgnoreInventoryUpdatelist_args:
10263
  """
10264
  Attributes:
10265
   - item_id
10266
   - warehouse_id
10267
  """
10268
 
10269
  thrift_spec = (
10270
    None, # 0
10271
    (1, TType.I64, 'item_id', None, None, ), # 1
10272
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
10273
  )
10274
 
10275
  def __init__(self, item_id=None, warehouse_id=None,):
10276
    self.item_id = item_id
10277
    self.warehouse_id = warehouse_id
10278
 
10279
  def read(self, iprot):
10280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10282
      return
10283
    iprot.readStructBegin()
10284
    while True:
10285
      (fname, ftype, fid) = iprot.readFieldBegin()
10286
      if ftype == TType.STOP:
10287
        break
10288
      if fid == 1:
10289
        if ftype == TType.I64:
10290
          self.item_id = iprot.readI64();
10291
        else:
10292
          iprot.skip(ftype)
10293
      elif fid == 2:
10294
        if ftype == TType.I64:
10295
          self.warehouse_id = iprot.readI64();
10296
        else:
10297
          iprot.skip(ftype)
10298
      else:
10299
        iprot.skip(ftype)
10300
      iprot.readFieldEnd()
10301
    iprot.readStructEnd()
10302
 
10303
  def write(self, oprot):
10304
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10305
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10306
      return
10307
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_args')
10308
    if self.item_id is not None:
10309
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10310
      oprot.writeI64(self.item_id)
10311
      oprot.writeFieldEnd()
10312
    if self.warehouse_id is not None:
10313
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
10314
      oprot.writeI64(self.warehouse_id)
10315
      oprot.writeFieldEnd()
10316
    oprot.writeFieldStop()
10317
    oprot.writeStructEnd()
10318
 
10319
  def validate(self):
10320
    return
10321
 
10322
 
10323
  def __repr__(self):
10324
    L = ['%s=%r' % (key, value)
10325
      for key, value in self.__dict__.iteritems()]
10326
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10327
 
10328
  def __eq__(self, other):
10329
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10330
 
10331
  def __ne__(self, other):
10332
    return not (self == other)
10333
 
10334
class insertItemtoIgnoreInventoryUpdatelist_result:
10335
  """
10336
  Attributes:
10337
   - success
10338
  """
10339
 
10340
  thrift_spec = (
10341
    (0, TType.BOOL, 'success', None, None, ), # 0
10342
  )
10343
 
10344
  def __init__(self, success=None,):
10345
    self.success = success
10346
 
10347
  def read(self, iprot):
10348
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10349
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10350
      return
10351
    iprot.readStructBegin()
10352
    while True:
10353
      (fname, ftype, fid) = iprot.readFieldBegin()
10354
      if ftype == TType.STOP:
10355
        break
10356
      if fid == 0:
10357
        if ftype == TType.BOOL:
10358
          self.success = iprot.readBool();
10359
        else:
10360
          iprot.skip(ftype)
10361
      else:
10362
        iprot.skip(ftype)
10363
      iprot.readFieldEnd()
10364
    iprot.readStructEnd()
10365
 
10366
  def write(self, oprot):
10367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10369
      return
10370
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_result')
10371
    if self.success is not None:
10372
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10373
      oprot.writeBool(self.success)
10374
      oprot.writeFieldEnd()
10375
    oprot.writeFieldStop()
10376
    oprot.writeStructEnd()
10377
 
10378
  def validate(self):
10379
    return
10380
 
10381
 
10382
  def __repr__(self):
10383
    L = ['%s=%r' % (key, value)
10384
      for key, value in self.__dict__.iteritems()]
10385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10386
 
10387
  def __eq__(self, other):
10388
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10389
 
10390
  def __ne__(self, other):
10391
    return not (self == other)
10392
 
10393
class deleteItemFromIgnoredInventoryUpdateList_args:
10394
  """
10395
  Attributes:
10396
   - item_id
10397
   - warehouse_id
10398
  """
10399
 
10400
  thrift_spec = (
10401
    None, # 0
10402
    (1, TType.I64, 'item_id', None, None, ), # 1
10403
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
10404
  )
10405
 
10406
  def __init__(self, item_id=None, warehouse_id=None,):
10407
    self.item_id = item_id
10408
    self.warehouse_id = warehouse_id
10409
 
10410
  def read(self, iprot):
10411
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10412
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10413
      return
10414
    iprot.readStructBegin()
10415
    while True:
10416
      (fname, ftype, fid) = iprot.readFieldBegin()
10417
      if ftype == TType.STOP:
10418
        break
10419
      if fid == 1:
10420
        if ftype == TType.I64:
10421
          self.item_id = iprot.readI64();
10422
        else:
10423
          iprot.skip(ftype)
10424
      elif fid == 2:
10425
        if ftype == TType.I64:
10426
          self.warehouse_id = iprot.readI64();
10427
        else:
10428
          iprot.skip(ftype)
10429
      else:
10430
        iprot.skip(ftype)
10431
      iprot.readFieldEnd()
10432
    iprot.readStructEnd()
10433
 
10434
  def write(self, oprot):
10435
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10436
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10437
      return
10438
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_args')
10439
    if self.item_id is not None:
10440
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10441
      oprot.writeI64(self.item_id)
10442
      oprot.writeFieldEnd()
10443
    if self.warehouse_id is not None:
10444
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
10445
      oprot.writeI64(self.warehouse_id)
10446
      oprot.writeFieldEnd()
10447
    oprot.writeFieldStop()
10448
    oprot.writeStructEnd()
10449
 
10450
  def validate(self):
10451
    return
10452
 
10453
 
10454
  def __repr__(self):
10455
    L = ['%s=%r' % (key, value)
10456
      for key, value in self.__dict__.iteritems()]
10457
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10458
 
10459
  def __eq__(self, other):
10460
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10461
 
10462
  def __ne__(self, other):
10463
    return not (self == other)
10464
 
10465
class deleteItemFromIgnoredInventoryUpdateList_result:
10466
  """
10467
  Attributes:
10468
   - success
10469
  """
10470
 
10471
  thrift_spec = (
10472
    (0, TType.BOOL, 'success', None, None, ), # 0
10473
  )
10474
 
10475
  def __init__(self, success=None,):
10476
    self.success = success
10477
 
10478
  def read(self, iprot):
10479
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10480
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10481
      return
10482
    iprot.readStructBegin()
10483
    while True:
10484
      (fname, ftype, fid) = iprot.readFieldBegin()
10485
      if ftype == TType.STOP:
10486
        break
10487
      if fid == 0:
10488
        if ftype == TType.BOOL:
10489
          self.success = iprot.readBool();
10490
        else:
10491
          iprot.skip(ftype)
10492
      else:
10493
        iprot.skip(ftype)
10494
      iprot.readFieldEnd()
10495
    iprot.readStructEnd()
10496
 
10497
  def write(self, oprot):
10498
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10499
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10500
      return
10501
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_result')
10502
    if self.success is not None:
10503
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10504
      oprot.writeBool(self.success)
10505
      oprot.writeFieldEnd()
10506
    oprot.writeFieldStop()
10507
    oprot.writeStructEnd()
10508
 
10509
  def validate(self):
10510
    return
10511
 
10512
 
10513
  def __repr__(self):
10514
    L = ['%s=%r' % (key, value)
10515
      for key, value in self.__dict__.iteritems()]
10516
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10517
 
10518
  def __eq__(self, other):
10519
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10520
 
10521
  def __ne__(self, other):
10522
    return not (self == other)
10523
 
10524
class getAllIgnoredInventoryupdateItemsCount_args:
10525
 
10526
  thrift_spec = (
10527
  )
10528
 
10529
  def read(self, iprot):
10530
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10531
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10532
      return
10533
    iprot.readStructBegin()
10534
    while True:
10535
      (fname, ftype, fid) = iprot.readFieldBegin()
10536
      if ftype == TType.STOP:
10537
        break
10538
      else:
10539
        iprot.skip(ftype)
10540
      iprot.readFieldEnd()
10541
    iprot.readStructEnd()
10542
 
10543
  def write(self, oprot):
10544
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10545
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10546
      return
10547
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_args')
10548
    oprot.writeFieldStop()
10549
    oprot.writeStructEnd()
10550
 
10551
  def validate(self):
10552
    return
10553
 
10554
 
10555
  def __repr__(self):
10556
    L = ['%s=%r' % (key, value)
10557
      for key, value in self.__dict__.iteritems()]
10558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10559
 
10560
  def __eq__(self, other):
10561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10562
 
10563
  def __ne__(self, other):
10564
    return not (self == other)
10565
 
10566
class getAllIgnoredInventoryupdateItemsCount_result:
10567
  """
10568
  Attributes:
10569
   - success
10570
  """
10571
 
10572
  thrift_spec = (
10573
    (0, TType.I32, 'success', None, None, ), # 0
10574
  )
10575
 
10576
  def __init__(self, success=None,):
10577
    self.success = success
10578
 
10579
  def read(self, iprot):
10580
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10581
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10582
      return
10583
    iprot.readStructBegin()
10584
    while True:
10585
      (fname, ftype, fid) = iprot.readFieldBegin()
10586
      if ftype == TType.STOP:
10587
        break
10588
      if fid == 0:
10589
        if ftype == TType.I32:
10590
          self.success = iprot.readI32();
10591
        else:
10592
          iprot.skip(ftype)
10593
      else:
10594
        iprot.skip(ftype)
10595
      iprot.readFieldEnd()
10596
    iprot.readStructEnd()
10597
 
10598
  def write(self, oprot):
10599
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10600
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10601
      return
10602
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_result')
10603
    if self.success is not None:
10604
      oprot.writeFieldBegin('success', TType.I32, 0)
10605
      oprot.writeI32(self.success)
10606
      oprot.writeFieldEnd()
10607
    oprot.writeFieldStop()
10608
    oprot.writeStructEnd()
10609
 
10610
  def validate(self):
10611
    return
10612
 
10613
 
10614
  def __repr__(self):
10615
    L = ['%s=%r' % (key, value)
10616
      for key, value in self.__dict__.iteritems()]
10617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10618
 
10619
  def __eq__(self, other):
10620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10621
 
10622
  def __ne__(self, other):
10623
    return not (self == other)
10624
 
10625
class getIgnoredInventoryUpdateItemids_args:
10626
  """
10627
  Attributes:
10628
   - offset
10629
   - limit
10630
  """
10631
 
10632
  thrift_spec = (
10633
    None, # 0
10634
    (1, TType.I32, 'offset', None, None, ), # 1
10635
    (2, TType.I32, 'limit', None, None, ), # 2
10636
  )
10637
 
10638
  def __init__(self, offset=None, limit=None,):
10639
    self.offset = offset
10640
    self.limit = limit
10641
 
10642
  def read(self, iprot):
10643
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10644
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10645
      return
10646
    iprot.readStructBegin()
10647
    while True:
10648
      (fname, ftype, fid) = iprot.readFieldBegin()
10649
      if ftype == TType.STOP:
10650
        break
10651
      if fid == 1:
10652
        if ftype == TType.I32:
10653
          self.offset = iprot.readI32();
10654
        else:
10655
          iprot.skip(ftype)
10656
      elif fid == 2:
10657
        if ftype == TType.I32:
10658
          self.limit = iprot.readI32();
10659
        else:
10660
          iprot.skip(ftype)
10661
      else:
10662
        iprot.skip(ftype)
10663
      iprot.readFieldEnd()
10664
    iprot.readStructEnd()
10665
 
10666
  def write(self, oprot):
10667
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10668
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10669
      return
10670
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_args')
10671
    if self.offset is not None:
10672
      oprot.writeFieldBegin('offset', TType.I32, 1)
10673
      oprot.writeI32(self.offset)
10674
      oprot.writeFieldEnd()
10675
    if self.limit is not None:
10676
      oprot.writeFieldBegin('limit', TType.I32, 2)
10677
      oprot.writeI32(self.limit)
10678
      oprot.writeFieldEnd()
10679
    oprot.writeFieldStop()
10680
    oprot.writeStructEnd()
10681
 
10682
  def validate(self):
10683
    return
10684
 
10685
 
10686
  def __repr__(self):
10687
    L = ['%s=%r' % (key, value)
10688
      for key, value in self.__dict__.iteritems()]
10689
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10690
 
10691
  def __eq__(self, other):
10692
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10693
 
10694
  def __ne__(self, other):
10695
    return not (self == other)
10696
 
10697
class getIgnoredInventoryUpdateItemids_result:
10698
  """
10699
  Attributes:
10700
   - success
10701
  """
10702
 
10703
  thrift_spec = (
10704
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10705
  )
10706
 
10707
  def __init__(self, success=None,):
10708
    self.success = success
10709
 
10710
  def read(self, iprot):
10711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10713
      return
10714
    iprot.readStructBegin()
10715
    while True:
10716
      (fname, ftype, fid) = iprot.readFieldBegin()
10717
      if ftype == TType.STOP:
10718
        break
10719
      if fid == 0:
10720
        if ftype == TType.LIST:
10721
          self.success = []
8182 amar.kumar 10722
          (_etype189, _size186) = iprot.readListBegin()
10723
          for _i190 in xrange(_size186):
10724
            _elem191 = iprot.readI64();
10725
            self.success.append(_elem191)
6531 vikram.rag 10726
          iprot.readListEnd()
10727
        else:
10728
          iprot.skip(ftype)
10729
      else:
10730
        iprot.skip(ftype)
10731
      iprot.readFieldEnd()
10732
    iprot.readStructEnd()
10733
 
10734
  def write(self, oprot):
10735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10737
      return
10738
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_result')
10739
    if self.success is not None:
10740
      oprot.writeFieldBegin('success', TType.LIST, 0)
10741
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 10742
      for iter192 in self.success:
10743
        oprot.writeI64(iter192)
6531 vikram.rag 10744
      oprot.writeListEnd()
10745
      oprot.writeFieldEnd()
10746
    oprot.writeFieldStop()
10747
    oprot.writeStructEnd()
10748
 
10749
  def validate(self):
10750
    return
10751
 
10752
 
10753
  def __repr__(self):
10754
    L = ['%s=%r' % (key, value)
10755
      for key, value in self.__dict__.iteritems()]
10756
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10757
 
10758
  def __eq__(self, other):
10759
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10760
 
10761
  def __ne__(self, other):
10762
    return not (self == other)
6821 amar.kumar 10763
 
10764
class updateItemStockPurchaseParams_args:
10765
  """
10766
  Attributes:
10767
   - item_id
10768
   - numOfDaysStock
10769
   - minStockLevel
10770
  """
10771
 
10772
  thrift_spec = (
10773
    None, # 0
10774
    (1, TType.I64, 'item_id', None, None, ), # 1
10775
    (2, TType.I32, 'numOfDaysStock', None, None, ), # 2
10776
    (3, TType.I64, 'minStockLevel', None, None, ), # 3
10777
  )
10778
 
10779
  def __init__(self, item_id=None, numOfDaysStock=None, minStockLevel=None,):
10780
    self.item_id = item_id
10781
    self.numOfDaysStock = numOfDaysStock
10782
    self.minStockLevel = minStockLevel
10783
 
10784
  def read(self, iprot):
10785
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10786
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10787
      return
10788
    iprot.readStructBegin()
10789
    while True:
10790
      (fname, ftype, fid) = iprot.readFieldBegin()
10791
      if ftype == TType.STOP:
10792
        break
10793
      if fid == 1:
10794
        if ftype == TType.I64:
10795
          self.item_id = iprot.readI64();
10796
        else:
10797
          iprot.skip(ftype)
10798
      elif fid == 2:
10799
        if ftype == TType.I32:
10800
          self.numOfDaysStock = iprot.readI32();
10801
        else:
10802
          iprot.skip(ftype)
10803
      elif fid == 3:
10804
        if ftype == TType.I64:
10805
          self.minStockLevel = iprot.readI64();
10806
        else:
10807
          iprot.skip(ftype)
10808
      else:
10809
        iprot.skip(ftype)
10810
      iprot.readFieldEnd()
10811
    iprot.readStructEnd()
10812
 
10813
  def write(self, oprot):
10814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10816
      return
10817
    oprot.writeStructBegin('updateItemStockPurchaseParams_args')
10818
    if self.item_id is not None:
10819
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10820
      oprot.writeI64(self.item_id)
10821
      oprot.writeFieldEnd()
10822
    if self.numOfDaysStock is not None:
10823
      oprot.writeFieldBegin('numOfDaysStock', TType.I32, 2)
10824
      oprot.writeI32(self.numOfDaysStock)
10825
      oprot.writeFieldEnd()
10826
    if self.minStockLevel is not None:
10827
      oprot.writeFieldBegin('minStockLevel', TType.I64, 3)
10828
      oprot.writeI64(self.minStockLevel)
10829
      oprot.writeFieldEnd()
10830
    oprot.writeFieldStop()
10831
    oprot.writeStructEnd()
10832
 
10833
  def validate(self):
10834
    return
10835
 
10836
 
10837
  def __repr__(self):
10838
    L = ['%s=%r' % (key, value)
10839
      for key, value in self.__dict__.iteritems()]
10840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10841
 
10842
  def __eq__(self, other):
10843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10844
 
10845
  def __ne__(self, other):
10846
    return not (self == other)
10847
 
10848
class updateItemStockPurchaseParams_result:
10849
 
10850
  thrift_spec = (
10851
  )
10852
 
10853
  def read(self, iprot):
10854
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10855
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10856
      return
10857
    iprot.readStructBegin()
10858
    while True:
10859
      (fname, ftype, fid) = iprot.readFieldBegin()
10860
      if ftype == TType.STOP:
10861
        break
10862
      else:
10863
        iprot.skip(ftype)
10864
      iprot.readFieldEnd()
10865
    iprot.readStructEnd()
10866
 
10867
  def write(self, oprot):
10868
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10869
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10870
      return
10871
    oprot.writeStructBegin('updateItemStockPurchaseParams_result')
10872
    oprot.writeFieldStop()
10873
    oprot.writeStructEnd()
10874
 
10875
  def validate(self):
10876
    return
10877
 
10878
 
10879
  def __repr__(self):
10880
    L = ['%s=%r' % (key, value)
10881
      for key, value in self.__dict__.iteritems()]
10882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10883
 
10884
  def __eq__(self, other):
10885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10886
 
10887
  def __ne__(self, other):
10888
    return not (self == other)
10889
 
10890
class getItemStockPurchaseParams_args:
10891
  """
10892
  Attributes:
10893
   - itemId
10894
  """
10895
 
10896
  thrift_spec = (
10897
    None, # 0
10898
    (1, TType.I64, 'itemId', None, None, ), # 1
10899
  )
10900
 
10901
  def __init__(self, itemId=None,):
10902
    self.itemId = itemId
10903
 
10904
  def read(self, iprot):
10905
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10906
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10907
      return
10908
    iprot.readStructBegin()
10909
    while True:
10910
      (fname, ftype, fid) = iprot.readFieldBegin()
10911
      if ftype == TType.STOP:
10912
        break
10913
      if fid == 1:
10914
        if ftype == TType.I64:
10915
          self.itemId = iprot.readI64();
10916
        else:
10917
          iprot.skip(ftype)
10918
      else:
10919
        iprot.skip(ftype)
10920
      iprot.readFieldEnd()
10921
    iprot.readStructEnd()
10922
 
10923
  def write(self, oprot):
10924
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10925
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10926
      return
10927
    oprot.writeStructBegin('getItemStockPurchaseParams_args')
10928
    if self.itemId is not None:
10929
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10930
      oprot.writeI64(self.itemId)
10931
      oprot.writeFieldEnd()
10932
    oprot.writeFieldStop()
10933
    oprot.writeStructEnd()
10934
 
10935
  def validate(self):
10936
    return
10937
 
10938
 
10939
  def __repr__(self):
10940
    L = ['%s=%r' % (key, value)
10941
      for key, value in self.__dict__.iteritems()]
10942
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10943
 
10944
  def __eq__(self, other):
10945
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10946
 
10947
  def __ne__(self, other):
10948
    return not (self == other)
10949
 
10950
class getItemStockPurchaseParams_result:
10951
  """
10952
  Attributes:
10953
   - success
10954
  """
10955
 
10956
  thrift_spec = (
10957
    (0, TType.STRUCT, 'success', (ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec), None, ), # 0
10958
  )
10959
 
10960
  def __init__(self, success=None,):
10961
    self.success = success
10962
 
10963
  def read(self, iprot):
10964
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10965
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10966
      return
10967
    iprot.readStructBegin()
10968
    while True:
10969
      (fname, ftype, fid) = iprot.readFieldBegin()
10970
      if ftype == TType.STOP:
10971
        break
10972
      if fid == 0:
10973
        if ftype == TType.STRUCT:
10974
          self.success = ItemStockPurchaseParams()
10975
          self.success.read(iprot)
10976
        else:
10977
          iprot.skip(ftype)
10978
      else:
10979
        iprot.skip(ftype)
10980
      iprot.readFieldEnd()
10981
    iprot.readStructEnd()
10982
 
10983
  def write(self, oprot):
10984
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10985
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10986
      return
10987
    oprot.writeStructBegin('getItemStockPurchaseParams_result')
10988
    if self.success is not None:
10989
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10990
      self.success.write(oprot)
10991
      oprot.writeFieldEnd()
10992
    oprot.writeFieldStop()
10993
    oprot.writeStructEnd()
10994
 
10995
  def validate(self):
10996
    return
10997
 
10998
 
10999
  def __repr__(self):
11000
    L = ['%s=%r' % (key, value)
11001
      for key, value in self.__dict__.iteritems()]
11002
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11003
 
11004
  def __eq__(self, other):
11005
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11006
 
11007
  def __ne__(self, other):
11008
    return not (self == other)
11009
 
11010
class addOosStatusForItem_args:
11011
  """
11012
  Attributes:
11013
   - oosStatusMap
11014
   - date
11015
  """
11016
 
11017
  thrift_spec = (
11018
    None, # 0
11019
    (1, TType.MAP, 'oosStatusMap', (TType.I64,None,TType.BOOL,None), None, ), # 1
11020
    (2, TType.I64, 'date', None, None, ), # 2
11021
  )
11022
 
11023
  def __init__(self, oosStatusMap=None, date=None,):
11024
    self.oosStatusMap = oosStatusMap
11025
    self.date = date
11026
 
11027
  def read(self, iprot):
11028
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11029
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11030
      return
11031
    iprot.readStructBegin()
11032
    while True:
11033
      (fname, ftype, fid) = iprot.readFieldBegin()
11034
      if ftype == TType.STOP:
11035
        break
11036
      if fid == 1:
11037
        if ftype == TType.MAP:
11038
          self.oosStatusMap = {}
8182 amar.kumar 11039
          (_ktype194, _vtype195, _size193 ) = iprot.readMapBegin() 
11040
          for _i197 in xrange(_size193):
11041
            _key198 = iprot.readI64();
11042
            _val199 = iprot.readBool();
11043
            self.oosStatusMap[_key198] = _val199
6821 amar.kumar 11044
          iprot.readMapEnd()
11045
        else:
11046
          iprot.skip(ftype)
11047
      elif fid == 2:
11048
        if ftype == TType.I64:
11049
          self.date = iprot.readI64();
11050
        else:
11051
          iprot.skip(ftype)
11052
      else:
11053
        iprot.skip(ftype)
11054
      iprot.readFieldEnd()
11055
    iprot.readStructEnd()
11056
 
11057
  def write(self, oprot):
11058
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11059
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11060
      return
11061
    oprot.writeStructBegin('addOosStatusForItem_args')
11062
    if self.oosStatusMap is not None:
11063
      oprot.writeFieldBegin('oosStatusMap', TType.MAP, 1)
11064
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.oosStatusMap))
8182 amar.kumar 11065
      for kiter200,viter201 in self.oosStatusMap.items():
11066
        oprot.writeI64(kiter200)
11067
        oprot.writeBool(viter201)
6821 amar.kumar 11068
      oprot.writeMapEnd()
11069
      oprot.writeFieldEnd()
11070
    if self.date is not None:
11071
      oprot.writeFieldBegin('date', TType.I64, 2)
11072
      oprot.writeI64(self.date)
11073
      oprot.writeFieldEnd()
11074
    oprot.writeFieldStop()
11075
    oprot.writeStructEnd()
11076
 
11077
  def validate(self):
11078
    return
11079
 
11080
 
11081
  def __repr__(self):
11082
    L = ['%s=%r' % (key, value)
11083
      for key, value in self.__dict__.iteritems()]
11084
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11085
 
11086
  def __eq__(self, other):
11087
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11088
 
11089
  def __ne__(self, other):
11090
    return not (self == other)
11091
 
11092
class addOosStatusForItem_result:
11093
 
11094
  thrift_spec = (
11095
  )
11096
 
11097
  def read(self, iprot):
11098
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11099
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11100
      return
11101
    iprot.readStructBegin()
11102
    while True:
11103
      (fname, ftype, fid) = iprot.readFieldBegin()
11104
      if ftype == TType.STOP:
11105
        break
11106
      else:
11107
        iprot.skip(ftype)
11108
      iprot.readFieldEnd()
11109
    iprot.readStructEnd()
11110
 
11111
  def write(self, oprot):
11112
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11113
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11114
      return
11115
    oprot.writeStructBegin('addOosStatusForItem_result')
11116
    oprot.writeFieldStop()
11117
    oprot.writeStructEnd()
11118
 
11119
  def validate(self):
11120
    return
11121
 
11122
 
11123
  def __repr__(self):
11124
    L = ['%s=%r' % (key, value)
11125
      for key, value in self.__dict__.iteritems()]
11126
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11127
 
11128
  def __eq__(self, other):
11129
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11130
 
11131
  def __ne__(self, other):
11132
    return not (self == other)
6832 amar.kumar 11133
 
11134
class getOosStatusesForXDaysForItem_args:
11135
  """
11136
  Attributes:
11137
   - itemId
9762 amar.kumar 11138
   - sourceId
6832 amar.kumar 11139
   - days
11140
  """
11141
 
11142
  thrift_spec = (
11143
    None, # 0
11144
    (1, TType.I64, 'itemId', None, None, ), # 1
9762 amar.kumar 11145
    (2, TType.I32, 'sourceId', None, None, ), # 2
11146
    (3, TType.I32, 'days', None, None, ), # 3
6832 amar.kumar 11147
  )
11148
 
9762 amar.kumar 11149
  def __init__(self, itemId=None, sourceId=None, days=None,):
6832 amar.kumar 11150
    self.itemId = itemId
9762 amar.kumar 11151
    self.sourceId = sourceId
6832 amar.kumar 11152
    self.days = days
11153
 
11154
  def read(self, iprot):
11155
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11156
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11157
      return
11158
    iprot.readStructBegin()
11159
    while True:
11160
      (fname, ftype, fid) = iprot.readFieldBegin()
11161
      if ftype == TType.STOP:
11162
        break
11163
      if fid == 1:
11164
        if ftype == TType.I64:
11165
          self.itemId = iprot.readI64();
11166
        else:
11167
          iprot.skip(ftype)
11168
      elif fid == 2:
11169
        if ftype == TType.I32:
9762 amar.kumar 11170
          self.sourceId = iprot.readI32();
11171
        else:
11172
          iprot.skip(ftype)
11173
      elif fid == 3:
11174
        if ftype == TType.I32:
6832 amar.kumar 11175
          self.days = iprot.readI32();
11176
        else:
11177
          iprot.skip(ftype)
11178
      else:
11179
        iprot.skip(ftype)
11180
      iprot.readFieldEnd()
11181
    iprot.readStructEnd()
11182
 
11183
  def write(self, oprot):
11184
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11185
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11186
      return
11187
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_args')
11188
    if self.itemId is not None:
11189
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11190
      oprot.writeI64(self.itemId)
11191
      oprot.writeFieldEnd()
9762 amar.kumar 11192
    if self.sourceId is not None:
11193
      oprot.writeFieldBegin('sourceId', TType.I32, 2)
11194
      oprot.writeI32(self.sourceId)
11195
      oprot.writeFieldEnd()
6832 amar.kumar 11196
    if self.days is not None:
9762 amar.kumar 11197
      oprot.writeFieldBegin('days', TType.I32, 3)
6832 amar.kumar 11198
      oprot.writeI32(self.days)
11199
      oprot.writeFieldEnd()
11200
    oprot.writeFieldStop()
11201
    oprot.writeStructEnd()
11202
 
11203
  def validate(self):
11204
    return
11205
 
11206
 
11207
  def __repr__(self):
11208
    L = ['%s=%r' % (key, value)
11209
      for key, value in self.__dict__.iteritems()]
11210
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11211
 
11212
  def __eq__(self, other):
11213
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11214
 
11215
  def __ne__(self, other):
11216
    return not (self == other)
11217
 
11218
class getOosStatusesForXDaysForItem_result:
11219
  """
11220
  Attributes:
11221
   - success
11222
  """
11223
 
11224
  thrift_spec = (
11225
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.thrift_spec)), None, ), # 0
11226
  )
11227
 
11228
  def __init__(self, success=None,):
11229
    self.success = success
11230
 
11231
  def read(self, iprot):
11232
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11233
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11234
      return
11235
    iprot.readStructBegin()
11236
    while True:
11237
      (fname, ftype, fid) = iprot.readFieldBegin()
11238
      if ftype == TType.STOP:
11239
        break
11240
      if fid == 0:
11241
        if ftype == TType.LIST:
11242
          self.success = []
8182 amar.kumar 11243
          (_etype205, _size202) = iprot.readListBegin()
11244
          for _i206 in xrange(_size202):
11245
            _elem207 = OOSStatus()
11246
            _elem207.read(iprot)
11247
            self.success.append(_elem207)
6832 amar.kumar 11248
          iprot.readListEnd()
11249
        else:
11250
          iprot.skip(ftype)
11251
      else:
11252
        iprot.skip(ftype)
11253
      iprot.readFieldEnd()
11254
    iprot.readStructEnd()
11255
 
11256
  def write(self, oprot):
11257
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11258
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11259
      return
11260
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_result')
11261
    if self.success is not None:
11262
      oprot.writeFieldBegin('success', TType.LIST, 0)
11263
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 11264
      for iter208 in self.success:
11265
        iter208.write(oprot)
6832 amar.kumar 11266
      oprot.writeListEnd()
11267
      oprot.writeFieldEnd()
11268
    oprot.writeFieldStop()
11269
    oprot.writeStructEnd()
11270
 
11271
  def validate(self):
11272
    return
11273
 
11274
 
11275
  def __repr__(self):
11276
    L = ['%s=%r' % (key, value)
11277
      for key, value in self.__dict__.iteritems()]
11278
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11279
 
11280
  def __eq__(self, other):
11281
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11282
 
11283
  def __ne__(self, other):
11284
    return not (self == other)
6857 amar.kumar 11285
 
10126 amar.kumar 11286
class getOosStatusesForXDays_args:
11287
  """
11288
  Attributes:
11289
   - sourceId
11290
   - days
11291
  """
6857 amar.kumar 11292
 
11293
  thrift_spec = (
10126 amar.kumar 11294
    None, # 0
11295
    (1, TType.I32, 'sourceId', None, None, ), # 1
11296
    (2, TType.I32, 'days', None, None, ), # 2
6857 amar.kumar 11297
  )
11298
 
10126 amar.kumar 11299
  def __init__(self, sourceId=None, days=None,):
11300
    self.sourceId = sourceId
11301
    self.days = days
11302
 
6857 amar.kumar 11303
  def read(self, iprot):
11304
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11305
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11306
      return
11307
    iprot.readStructBegin()
11308
    while True:
11309
      (fname, ftype, fid) = iprot.readFieldBegin()
11310
      if ftype == TType.STOP:
11311
        break
10126 amar.kumar 11312
      if fid == 1:
11313
        if ftype == TType.I32:
11314
          self.sourceId = iprot.readI32();
11315
        else:
11316
          iprot.skip(ftype)
11317
      elif fid == 2:
11318
        if ftype == TType.I32:
11319
          self.days = iprot.readI32();
11320
        else:
11321
          iprot.skip(ftype)
6857 amar.kumar 11322
      else:
11323
        iprot.skip(ftype)
11324
      iprot.readFieldEnd()
11325
    iprot.readStructEnd()
11326
 
11327
  def write(self, oprot):
11328
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11329
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11330
      return
10126 amar.kumar 11331
    oprot.writeStructBegin('getOosStatusesForXDays_args')
11332
    if self.sourceId is not None:
11333
      oprot.writeFieldBegin('sourceId', TType.I32, 1)
11334
      oprot.writeI32(self.sourceId)
11335
      oprot.writeFieldEnd()
11336
    if self.days is not None:
11337
      oprot.writeFieldBegin('days', TType.I32, 2)
11338
      oprot.writeI32(self.days)
11339
      oprot.writeFieldEnd()
6857 amar.kumar 11340
    oprot.writeFieldStop()
11341
    oprot.writeStructEnd()
11342
 
11343
  def validate(self):
11344
    return
11345
 
11346
 
11347
  def __repr__(self):
11348
    L = ['%s=%r' % (key, value)
11349
      for key, value in self.__dict__.iteritems()]
11350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11351
 
11352
  def __eq__(self, other):
11353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11354
 
11355
  def __ne__(self, other):
11356
    return not (self == other)
11357
 
10126 amar.kumar 11358
class getOosStatusesForXDays_result:
6857 amar.kumar 11359
  """
11360
  Attributes:
11361
   - success
11362
  """
11363
 
11364
  thrift_spec = (
10126 amar.kumar 11365
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.thrift_spec)), None, ), # 0
6857 amar.kumar 11366
  )
11367
 
11368
  def __init__(self, success=None,):
11369
    self.success = success
11370
 
11371
  def read(self, iprot):
11372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11374
      return
11375
    iprot.readStructBegin()
11376
    while True:
11377
      (fname, ftype, fid) = iprot.readFieldBegin()
11378
      if ftype == TType.STOP:
11379
        break
11380
      if fid == 0:
11381
        if ftype == TType.LIST:
11382
          self.success = []
8182 amar.kumar 11383
          (_etype212, _size209) = iprot.readListBegin()
11384
          for _i213 in xrange(_size209):
10126 amar.kumar 11385
            _elem214 = OOSStatus()
8182 amar.kumar 11386
            _elem214.read(iprot)
11387
            self.success.append(_elem214)
6857 amar.kumar 11388
          iprot.readListEnd()
11389
        else:
11390
          iprot.skip(ftype)
11391
      else:
11392
        iprot.skip(ftype)
11393
      iprot.readFieldEnd()
11394
    iprot.readStructEnd()
11395
 
11396
  def write(self, oprot):
11397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11399
      return
10126 amar.kumar 11400
    oprot.writeStructBegin('getOosStatusesForXDays_result')
6857 amar.kumar 11401
    if self.success is not None:
11402
      oprot.writeFieldBegin('success', TType.LIST, 0)
11403
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 11404
      for iter215 in self.success:
11405
        iter215.write(oprot)
6857 amar.kumar 11406
      oprot.writeListEnd()
11407
      oprot.writeFieldEnd()
11408
    oprot.writeFieldStop()
11409
    oprot.writeStructEnd()
11410
 
11411
  def validate(self):
11412
    return
11413
 
11414
 
11415
  def __repr__(self):
11416
    L = ['%s=%r' % (key, value)
11417
      for key, value in self.__dict__.iteritems()]
11418
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11419
 
11420
  def __eq__(self, other):
11421
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11422
 
11423
  def __ne__(self, other):
11424
    return not (self == other)
7149 amar.kumar 11425
 
10126 amar.kumar 11426
class getAllVendorItemPricing_args:
11427
  """
11428
  Attributes:
11429
   - itemId
11430
   - vendorId
11431
  """
7149 amar.kumar 11432
 
11433
  thrift_spec = (
10126 amar.kumar 11434
    None, # 0
11435
    (1, TType.I64, 'itemId', None, None, ), # 1
11436
    (2, TType.I64, 'vendorId', None, None, ), # 2
7149 amar.kumar 11437
  )
11438
 
10126 amar.kumar 11439
  def __init__(self, itemId=None, vendorId=None,):
11440
    self.itemId = itemId
11441
    self.vendorId = vendorId
11442
 
7149 amar.kumar 11443
  def read(self, iprot):
11444
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11445
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11446
      return
11447
    iprot.readStructBegin()
11448
    while True:
11449
      (fname, ftype, fid) = iprot.readFieldBegin()
11450
      if ftype == TType.STOP:
11451
        break
10126 amar.kumar 11452
      if fid == 1:
11453
        if ftype == TType.I64:
11454
          self.itemId = iprot.readI64();
11455
        else:
11456
          iprot.skip(ftype)
11457
      elif fid == 2:
11458
        if ftype == TType.I64:
11459
          self.vendorId = iprot.readI64();
11460
        else:
11461
          iprot.skip(ftype)
7149 amar.kumar 11462
      else:
11463
        iprot.skip(ftype)
11464
      iprot.readFieldEnd()
11465
    iprot.readStructEnd()
11466
 
11467
  def write(self, oprot):
11468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11470
      return
10126 amar.kumar 11471
    oprot.writeStructBegin('getAllVendorItemPricing_args')
11472
    if self.itemId is not None:
11473
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11474
      oprot.writeI64(self.itemId)
11475
      oprot.writeFieldEnd()
11476
    if self.vendorId is not None:
11477
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
11478
      oprot.writeI64(self.vendorId)
11479
      oprot.writeFieldEnd()
7149 amar.kumar 11480
    oprot.writeFieldStop()
11481
    oprot.writeStructEnd()
11482
 
11483
  def validate(self):
11484
    return
11485
 
11486
 
11487
  def __repr__(self):
11488
    L = ['%s=%r' % (key, value)
11489
      for key, value in self.__dict__.iteritems()]
11490
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11491
 
11492
  def __eq__(self, other):
11493
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11494
 
11495
  def __ne__(self, other):
11496
    return not (self == other)
11497
 
10126 amar.kumar 11498
class getAllVendorItemPricing_result:
7149 amar.kumar 11499
  """
11500
  Attributes:
11501
   - success
11502
  """
11503
 
11504
  thrift_spec = (
10126 amar.kumar 11505
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
7149 amar.kumar 11506
  )
11507
 
11508
  def __init__(self, success=None,):
11509
    self.success = success
11510
 
11511
  def read(self, iprot):
11512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11514
      return
11515
    iprot.readStructBegin()
11516
    while True:
11517
      (fname, ftype, fid) = iprot.readFieldBegin()
11518
      if ftype == TType.STOP:
11519
        break
11520
      if fid == 0:
11521
        if ftype == TType.LIST:
11522
          self.success = []
8182 amar.kumar 11523
          (_etype219, _size216) = iprot.readListBegin()
11524
          for _i220 in xrange(_size216):
10126 amar.kumar 11525
            _elem221 = VendorItemPricing()
8182 amar.kumar 11526
            _elem221.read(iprot)
11527
            self.success.append(_elem221)
7149 amar.kumar 11528
          iprot.readListEnd()
11529
        else:
11530
          iprot.skip(ftype)
11531
      else:
11532
        iprot.skip(ftype)
11533
      iprot.readFieldEnd()
11534
    iprot.readStructEnd()
11535
 
11536
  def write(self, oprot):
11537
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11538
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11539
      return
10126 amar.kumar 11540
    oprot.writeStructBegin('getAllVendorItemPricing_result')
7149 amar.kumar 11541
    if self.success is not None:
11542
      oprot.writeFieldBegin('success', TType.LIST, 0)
11543
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 11544
      for iter222 in self.success:
11545
        iter222.write(oprot)
7149 amar.kumar 11546
      oprot.writeListEnd()
11547
      oprot.writeFieldEnd()
11548
    oprot.writeFieldStop()
11549
    oprot.writeStructEnd()
11550
 
11551
  def validate(self):
11552
    return
11553
 
11554
 
11555
  def __repr__(self):
11556
    L = ['%s=%r' % (key, value)
11557
      for key, value in self.__dict__.iteritems()]
11558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11559
 
11560
  def __eq__(self, other):
11561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11562
 
11563
  def __ne__(self, other):
11564
    return not (self == other)
7281 kshitij.so 11565
 
10126 amar.kumar 11566
class getNonZeroItemStockPurchaseParams_args:
11567
 
11568
  thrift_spec = (
11569
  )
11570
 
11571
  def read(self, iprot):
11572
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11573
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11574
      return
11575
    iprot.readStructBegin()
11576
    while True:
11577
      (fname, ftype, fid) = iprot.readFieldBegin()
11578
      if ftype == TType.STOP:
11579
        break
11580
      else:
11581
        iprot.skip(ftype)
11582
      iprot.readFieldEnd()
11583
    iprot.readStructEnd()
11584
 
11585
  def write(self, oprot):
11586
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11587
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11588
      return
11589
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_args')
11590
    oprot.writeFieldStop()
11591
    oprot.writeStructEnd()
11592
 
11593
  def validate(self):
11594
    return
11595
 
11596
 
11597
  def __repr__(self):
11598
    L = ['%s=%r' % (key, value)
11599
      for key, value in self.__dict__.iteritems()]
11600
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11601
 
11602
  def __eq__(self, other):
11603
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11604
 
11605
  def __ne__(self, other):
11606
    return not (self == other)
11607
 
11608
class getNonZeroItemStockPurchaseParams_result:
11609
  """
11610
  Attributes:
11611
   - success
11612
  """
11613
 
11614
  thrift_spec = (
11615
    (0, TType.LIST, 'success', (TType.STRUCT,(ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec)), None, ), # 0
11616
  )
11617
 
11618
  def __init__(self, success=None,):
11619
    self.success = success
11620
 
11621
  def read(self, iprot):
11622
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11623
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11624
      return
11625
    iprot.readStructBegin()
11626
    while True:
11627
      (fname, ftype, fid) = iprot.readFieldBegin()
11628
      if ftype == TType.STOP:
11629
        break
11630
      if fid == 0:
11631
        if ftype == TType.LIST:
11632
          self.success = []
11633
          (_etype226, _size223) = iprot.readListBegin()
11634
          for _i227 in xrange(_size223):
11635
            _elem228 = ItemStockPurchaseParams()
11636
            _elem228.read(iprot)
11637
            self.success.append(_elem228)
11638
          iprot.readListEnd()
11639
        else:
11640
          iprot.skip(ftype)
11641
      else:
11642
        iprot.skip(ftype)
11643
      iprot.readFieldEnd()
11644
    iprot.readStructEnd()
11645
 
11646
  def write(self, oprot):
11647
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11648
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11649
      return
11650
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_result')
11651
    if self.success is not None:
11652
      oprot.writeFieldBegin('success', TType.LIST, 0)
11653
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11654
      for iter229 in self.success:
11655
        iter229.write(oprot)
11656
      oprot.writeListEnd()
11657
      oprot.writeFieldEnd()
11658
    oprot.writeFieldStop()
11659
    oprot.writeStructEnd()
11660
 
11661
  def validate(self):
11662
    return
11663
 
11664
 
11665
  def __repr__(self):
11666
    L = ['%s=%r' % (key, value)
11667
      for key, value in self.__dict__.iteritems()]
11668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11669
 
11670
  def __eq__(self, other):
11671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11672
 
11673
  def __ne__(self, other):
11674
    return not (self == other)
11675
 
11676
class getBillableInventoryAndPendingOrders_args:
11677
 
11678
  thrift_spec = (
11679
  )
11680
 
11681
  def read(self, iprot):
11682
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11683
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11684
      return
11685
    iprot.readStructBegin()
11686
    while True:
11687
      (fname, ftype, fid) = iprot.readFieldBegin()
11688
      if ftype == TType.STOP:
11689
        break
11690
      else:
11691
        iprot.skip(ftype)
11692
      iprot.readFieldEnd()
11693
    iprot.readStructEnd()
11694
 
11695
  def write(self, oprot):
11696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11698
      return
11699
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_args')
11700
    oprot.writeFieldStop()
11701
    oprot.writeStructEnd()
11702
 
11703
  def validate(self):
11704
    return
11705
 
11706
 
11707
  def __repr__(self):
11708
    L = ['%s=%r' % (key, value)
11709
      for key, value in self.__dict__.iteritems()]
11710
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11711
 
11712
  def __eq__(self, other):
11713
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11714
 
11715
  def __ne__(self, other):
11716
    return not (self == other)
11717
 
11718
class getBillableInventoryAndPendingOrders_result:
11719
  """
11720
  Attributes:
11721
   - success
11722
  """
11723
 
11724
  thrift_spec = (
11725
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
11726
  )
11727
 
11728
  def __init__(self, success=None,):
11729
    self.success = success
11730
 
11731
  def read(self, iprot):
11732
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11733
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11734
      return
11735
    iprot.readStructBegin()
11736
    while True:
11737
      (fname, ftype, fid) = iprot.readFieldBegin()
11738
      if ftype == TType.STOP:
11739
        break
11740
      if fid == 0:
11741
        if ftype == TType.LIST:
11742
          self.success = []
11743
          (_etype233, _size230) = iprot.readListBegin()
11744
          for _i234 in xrange(_size230):
11745
            _elem235 = AvailableAndReservedStock()
11746
            _elem235.read(iprot)
11747
            self.success.append(_elem235)
11748
          iprot.readListEnd()
11749
        else:
11750
          iprot.skip(ftype)
11751
      else:
11752
        iprot.skip(ftype)
11753
      iprot.readFieldEnd()
11754
    iprot.readStructEnd()
11755
 
11756
  def write(self, oprot):
11757
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11758
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11759
      return
11760
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_result')
11761
    if self.success is not None:
11762
      oprot.writeFieldBegin('success', TType.LIST, 0)
11763
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11764
      for iter236 in self.success:
11765
        iter236.write(oprot)
11766
      oprot.writeListEnd()
11767
      oprot.writeFieldEnd()
11768
    oprot.writeFieldStop()
11769
    oprot.writeStructEnd()
11770
 
11771
  def validate(self):
11772
    return
11773
 
11774
 
11775
  def __repr__(self):
11776
    L = ['%s=%r' % (key, value)
11777
      for key, value in self.__dict__.iteritems()]
11778
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11779
 
11780
  def __eq__(self, other):
11781
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11782
 
11783
  def __ne__(self, other):
11784
    return not (self == other)
11785
 
7281 kshitij.so 11786
class getWarehouseName_args:
11787
  """
11788
  Attributes:
11789
   - warehouse_id
11790
  """
11791
 
11792
  thrift_spec = (
11793
    None, # 0
11794
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
11795
  )
11796
 
11797
  def __init__(self, warehouse_id=None,):
11798
    self.warehouse_id = warehouse_id
11799
 
11800
  def read(self, iprot):
11801
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11802
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11803
      return
11804
    iprot.readStructBegin()
11805
    while True:
11806
      (fname, ftype, fid) = iprot.readFieldBegin()
11807
      if ftype == TType.STOP:
11808
        break
11809
      if fid == 1:
11810
        if ftype == TType.I64:
11811
          self.warehouse_id = iprot.readI64();
11812
        else:
11813
          iprot.skip(ftype)
11814
      else:
11815
        iprot.skip(ftype)
11816
      iprot.readFieldEnd()
11817
    iprot.readStructEnd()
11818
 
11819
  def write(self, oprot):
11820
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11821
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11822
      return
11823
    oprot.writeStructBegin('getWarehouseName_args')
11824
    if self.warehouse_id is not None:
11825
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
11826
      oprot.writeI64(self.warehouse_id)
11827
      oprot.writeFieldEnd()
11828
    oprot.writeFieldStop()
11829
    oprot.writeStructEnd()
11830
 
11831
  def validate(self):
11832
    return
11833
 
11834
 
11835
  def __repr__(self):
11836
    L = ['%s=%r' % (key, value)
11837
      for key, value in self.__dict__.iteritems()]
11838
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11839
 
11840
  def __eq__(self, other):
11841
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11842
 
11843
  def __ne__(self, other):
11844
    return not (self == other)
11845
 
11846
class getWarehouseName_result:
11847
  """
11848
  Attributes:
11849
   - success
11850
  """
11851
 
11852
  thrift_spec = (
11853
    (0, TType.STRING, 'success', None, None, ), # 0
11854
  )
11855
 
11856
  def __init__(self, success=None,):
11857
    self.success = success
11858
 
11859
  def read(self, iprot):
11860
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11861
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11862
      return
11863
    iprot.readStructBegin()
11864
    while True:
11865
      (fname, ftype, fid) = iprot.readFieldBegin()
11866
      if ftype == TType.STOP:
11867
        break
11868
      if fid == 0:
11869
        if ftype == TType.STRING:
11870
          self.success = iprot.readString();
11871
        else:
11872
          iprot.skip(ftype)
11873
      else:
11874
        iprot.skip(ftype)
11875
      iprot.readFieldEnd()
11876
    iprot.readStructEnd()
11877
 
11878
  def write(self, oprot):
11879
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11880
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11881
      return
11882
    oprot.writeStructBegin('getWarehouseName_result')
11883
    if self.success is not None:
11884
      oprot.writeFieldBegin('success', TType.STRING, 0)
11885
      oprot.writeString(self.success)
11886
      oprot.writeFieldEnd()
11887
    oprot.writeFieldStop()
11888
    oprot.writeStructEnd()
11889
 
11890
  def validate(self):
11891
    return
11892
 
11893
 
11894
  def __repr__(self):
11895
    L = ['%s=%r' % (key, value)
11896
      for key, value in self.__dict__.iteritems()]
11897
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11898
 
11899
  def __eq__(self, other):
11900
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11901
 
11902
  def __ne__(self, other):
11903
    return not (self == other)
11904
 
11905
class getAmazonInventoryForItem_args:
11906
  """
11907
  Attributes:
11908
   - item_id
11909
  """
11910
 
11911
  thrift_spec = (
11912
    None, # 0
11913
    (1, TType.I64, 'item_id', None, None, ), # 1
11914
  )
11915
 
11916
  def __init__(self, item_id=None,):
11917
    self.item_id = item_id
11918
 
11919
  def read(self, iprot):
11920
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11921
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11922
      return
11923
    iprot.readStructBegin()
11924
    while True:
11925
      (fname, ftype, fid) = iprot.readFieldBegin()
11926
      if ftype == TType.STOP:
11927
        break
11928
      if fid == 1:
11929
        if ftype == TType.I64:
11930
          self.item_id = iprot.readI64();
11931
        else:
11932
          iprot.skip(ftype)
11933
      else:
11934
        iprot.skip(ftype)
11935
      iprot.readFieldEnd()
11936
    iprot.readStructEnd()
11937
 
11938
  def write(self, oprot):
11939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11941
      return
11942
    oprot.writeStructBegin('getAmazonInventoryForItem_args')
11943
    if self.item_id is not None:
11944
      oprot.writeFieldBegin('item_id', TType.I64, 1)
11945
      oprot.writeI64(self.item_id)
11946
      oprot.writeFieldEnd()
11947
    oprot.writeFieldStop()
11948
    oprot.writeStructEnd()
11949
 
11950
  def validate(self):
11951
    return
11952
 
11953
 
11954
  def __repr__(self):
11955
    L = ['%s=%r' % (key, value)
11956
      for key, value in self.__dict__.iteritems()]
11957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11958
 
11959
  def __eq__(self, other):
11960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11961
 
11962
  def __ne__(self, other):
11963
    return not (self == other)
11964
 
11965
class getAmazonInventoryForItem_result:
11966
  """
11967
  Attributes:
11968
   - success
11969
  """
11970
 
11971
  thrift_spec = (
11972
    (0, TType.STRUCT, 'success', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 0
11973
  )
11974
 
11975
  def __init__(self, success=None,):
11976
    self.success = success
11977
 
11978
  def read(self, iprot):
11979
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11980
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11981
      return
11982
    iprot.readStructBegin()
11983
    while True:
11984
      (fname, ftype, fid) = iprot.readFieldBegin()
11985
      if ftype == TType.STOP:
11986
        break
11987
      if fid == 0:
11988
        if ftype == TType.STRUCT:
11989
          self.success = AmazonInventorySnapshot()
11990
          self.success.read(iprot)
11991
        else:
11992
          iprot.skip(ftype)
11993
      else:
11994
        iprot.skip(ftype)
11995
      iprot.readFieldEnd()
11996
    iprot.readStructEnd()
11997
 
11998
  def write(self, oprot):
11999
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12000
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12001
      return
12002
    oprot.writeStructBegin('getAmazonInventoryForItem_result')
12003
    if self.success is not None:
12004
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12005
      self.success.write(oprot)
12006
      oprot.writeFieldEnd()
12007
    oprot.writeFieldStop()
12008
    oprot.writeStructEnd()
12009
 
12010
  def validate(self):
12011
    return
12012
 
12013
 
12014
  def __repr__(self):
12015
    L = ['%s=%r' % (key, value)
12016
      for key, value in self.__dict__.iteritems()]
12017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12018
 
12019
  def __eq__(self, other):
12020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12021
 
12022
  def __ne__(self, other):
12023
    return not (self == other)
12024
 
12025
class getAllAmazonInventory_args:
12026
 
12027
  thrift_spec = (
12028
  )
12029
 
12030
  def read(self, iprot):
12031
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12032
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12033
      return
12034
    iprot.readStructBegin()
12035
    while True:
12036
      (fname, ftype, fid) = iprot.readFieldBegin()
12037
      if ftype == TType.STOP:
12038
        break
12039
      else:
12040
        iprot.skip(ftype)
12041
      iprot.readFieldEnd()
12042
    iprot.readStructEnd()
12043
 
12044
  def write(self, oprot):
12045
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12046
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12047
      return
12048
    oprot.writeStructBegin('getAllAmazonInventory_args')
12049
    oprot.writeFieldStop()
12050
    oprot.writeStructEnd()
12051
 
12052
  def validate(self):
12053
    return
12054
 
12055
 
12056
  def __repr__(self):
12057
    L = ['%s=%r' % (key, value)
12058
      for key, value in self.__dict__.iteritems()]
12059
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12060
 
12061
  def __eq__(self, other):
12062
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12063
 
12064
  def __ne__(self, other):
12065
    return not (self == other)
12066
 
12067
class getAllAmazonInventory_result:
12068
  """
12069
  Attributes:
12070
   - success
12071
  """
12072
 
12073
  thrift_spec = (
12074
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec)), None, ), # 0
12075
  )
12076
 
12077
  def __init__(self, success=None,):
12078
    self.success = success
12079
 
12080
  def read(self, iprot):
12081
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12082
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12083
      return
12084
    iprot.readStructBegin()
12085
    while True:
12086
      (fname, ftype, fid) = iprot.readFieldBegin()
12087
      if ftype == TType.STOP:
12088
        break
12089
      if fid == 0:
12090
        if ftype == TType.LIST:
12091
          self.success = []
10126 amar.kumar 12092
          (_etype240, _size237) = iprot.readListBegin()
12093
          for _i241 in xrange(_size237):
12094
            _elem242 = AmazonInventorySnapshot()
12095
            _elem242.read(iprot)
12096
            self.success.append(_elem242)
7281 kshitij.so 12097
          iprot.readListEnd()
12098
        else:
12099
          iprot.skip(ftype)
12100
      else:
12101
        iprot.skip(ftype)
12102
      iprot.readFieldEnd()
12103
    iprot.readStructEnd()
12104
 
12105
  def write(self, oprot):
12106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12108
      return
12109
    oprot.writeStructBegin('getAllAmazonInventory_result')
12110
    if self.success is not None:
12111
      oprot.writeFieldBegin('success', TType.LIST, 0)
12112
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10126 amar.kumar 12113
      for iter243 in self.success:
12114
        iter243.write(oprot)
7281 kshitij.so 12115
      oprot.writeListEnd()
12116
      oprot.writeFieldEnd()
12117
    oprot.writeFieldStop()
12118
    oprot.writeStructEnd()
12119
 
12120
  def validate(self):
12121
    return
12122
 
12123
 
12124
  def __repr__(self):
12125
    L = ['%s=%r' % (key, value)
12126
      for key, value in self.__dict__.iteritems()]
12127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12128
 
12129
  def __eq__(self, other):
12130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12131
 
12132
  def __ne__(self, other):
12133
    return not (self == other)
12134
 
12135
class addOrUpdateAmazonInventoryForItem_args:
12136
  """
12137
  Attributes:
12138
   - amazonInventorySnapshot
10450 vikram.rag 12139
   - time
7281 kshitij.so 12140
  """
12141
 
12142
  thrift_spec = (
12143
    None, # 0
12144
    (1, TType.STRUCT, 'amazonInventorySnapshot', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 1
10450 vikram.rag 12145
    (2, TType.I64, 'time', None, None, ), # 2
7281 kshitij.so 12146
  )
12147
 
10450 vikram.rag 12148
  def __init__(self, amazonInventorySnapshot=None, time=None,):
7281 kshitij.so 12149
    self.amazonInventorySnapshot = amazonInventorySnapshot
10450 vikram.rag 12150
    self.time = time
7281 kshitij.so 12151
 
12152
  def read(self, iprot):
12153
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12154
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12155
      return
12156
    iprot.readStructBegin()
12157
    while True:
12158
      (fname, ftype, fid) = iprot.readFieldBegin()
12159
      if ftype == TType.STOP:
12160
        break
12161
      if fid == 1:
12162
        if ftype == TType.STRUCT:
12163
          self.amazonInventorySnapshot = AmazonInventorySnapshot()
12164
          self.amazonInventorySnapshot.read(iprot)
12165
        else:
12166
          iprot.skip(ftype)
10450 vikram.rag 12167
      elif fid == 2:
12168
        if ftype == TType.I64:
12169
          self.time = iprot.readI64();
12170
        else:
12171
          iprot.skip(ftype)
7281 kshitij.so 12172
      else:
12173
        iprot.skip(ftype)
12174
      iprot.readFieldEnd()
12175
    iprot.readStructEnd()
12176
 
12177
  def write(self, oprot):
12178
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12179
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12180
      return
12181
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_args')
12182
    if self.amazonInventorySnapshot is not None:
12183
      oprot.writeFieldBegin('amazonInventorySnapshot', TType.STRUCT, 1)
12184
      self.amazonInventorySnapshot.write(oprot)
12185
      oprot.writeFieldEnd()
10450 vikram.rag 12186
    if self.time is not None:
12187
      oprot.writeFieldBegin('time', TType.I64, 2)
12188
      oprot.writeI64(self.time)
12189
      oprot.writeFieldEnd()
7281 kshitij.so 12190
    oprot.writeFieldStop()
12191
    oprot.writeStructEnd()
12192
 
12193
  def validate(self):
12194
    return
12195
 
12196
 
12197
  def __repr__(self):
12198
    L = ['%s=%r' % (key, value)
12199
      for key, value in self.__dict__.iteritems()]
12200
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12201
 
12202
  def __eq__(self, other):
12203
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12204
 
12205
  def __ne__(self, other):
12206
    return not (self == other)
12207
 
12208
class addOrUpdateAmazonInventoryForItem_result:
12209
 
12210
  thrift_spec = (
12211
  )
12212
 
12213
  def read(self, iprot):
12214
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12215
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12216
      return
12217
    iprot.readStructBegin()
12218
    while True:
12219
      (fname, ftype, fid) = iprot.readFieldBegin()
12220
      if ftype == TType.STOP:
12221
        break
12222
      else:
12223
        iprot.skip(ftype)
12224
      iprot.readFieldEnd()
12225
    iprot.readStructEnd()
12226
 
12227
  def write(self, oprot):
12228
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12229
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12230
      return
12231
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_result')
12232
    oprot.writeFieldStop()
12233
    oprot.writeStructEnd()
12234
 
12235
  def validate(self):
12236
    return
12237
 
12238
 
12239
  def __repr__(self):
12240
    L = ['%s=%r' % (key, value)
12241
      for key, value in self.__dict__.iteritems()]
12242
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12243
 
12244
  def __eq__(self, other):
12245
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12246
 
12247
  def __ne__(self, other):
12248
    return not (self == other)
7972 amar.kumar 12249
 
12250
class getLastNdaySaleForItem_args:
12251
  """
12252
  Attributes:
12253
   - itemId
12254
   - numberOfDays
12255
  """
12256
 
12257
  thrift_spec = (
12258
    None, # 0
12259
    (1, TType.I64, 'itemId', None, None, ), # 1
12260
    (2, TType.I64, 'numberOfDays', None, None, ), # 2
12261
  )
12262
 
12263
  def __init__(self, itemId=None, numberOfDays=None,):
12264
    self.itemId = itemId
12265
    self.numberOfDays = numberOfDays
12266
 
12267
  def read(self, iprot):
12268
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12269
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12270
      return
12271
    iprot.readStructBegin()
12272
    while True:
12273
      (fname, ftype, fid) = iprot.readFieldBegin()
12274
      if ftype == TType.STOP:
12275
        break
12276
      if fid == 1:
12277
        if ftype == TType.I64:
12278
          self.itemId = iprot.readI64();
12279
        else:
12280
          iprot.skip(ftype)
12281
      elif fid == 2:
12282
        if ftype == TType.I64:
12283
          self.numberOfDays = iprot.readI64();
12284
        else:
12285
          iprot.skip(ftype)
12286
      else:
12287
        iprot.skip(ftype)
12288
      iprot.readFieldEnd()
12289
    iprot.readStructEnd()
12290
 
12291
  def write(self, oprot):
12292
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12293
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12294
      return
12295
    oprot.writeStructBegin('getLastNdaySaleForItem_args')
12296
    if self.itemId is not None:
12297
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12298
      oprot.writeI64(self.itemId)
12299
      oprot.writeFieldEnd()
12300
    if self.numberOfDays is not None:
12301
      oprot.writeFieldBegin('numberOfDays', TType.I64, 2)
12302
      oprot.writeI64(self.numberOfDays)
12303
      oprot.writeFieldEnd()
12304
    oprot.writeFieldStop()
12305
    oprot.writeStructEnd()
12306
 
12307
  def validate(self):
12308
    return
12309
 
12310
 
12311
  def __repr__(self):
12312
    L = ['%s=%r' % (key, value)
12313
      for key, value in self.__dict__.iteritems()]
12314
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12315
 
12316
  def __eq__(self, other):
12317
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12318
 
12319
  def __ne__(self, other):
12320
    return not (self == other)
12321
 
12322
class getLastNdaySaleForItem_result:
12323
  """
12324
  Attributes:
12325
   - success
12326
  """
12327
 
12328
  thrift_spec = (
12329
    (0, TType.STRING, 'success', None, None, ), # 0
12330
  )
12331
 
12332
  def __init__(self, success=None,):
12333
    self.success = success
12334
 
12335
  def read(self, iprot):
12336
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12337
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12338
      return
12339
    iprot.readStructBegin()
12340
    while True:
12341
      (fname, ftype, fid) = iprot.readFieldBegin()
12342
      if ftype == TType.STOP:
12343
        break
12344
      if fid == 0:
12345
        if ftype == TType.STRING:
12346
          self.success = iprot.readString();
12347
        else:
12348
          iprot.skip(ftype)
12349
      else:
12350
        iprot.skip(ftype)
12351
      iprot.readFieldEnd()
12352
    iprot.readStructEnd()
12353
 
12354
  def write(self, oprot):
12355
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12356
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12357
      return
12358
    oprot.writeStructBegin('getLastNdaySaleForItem_result')
12359
    if self.success is not None:
12360
      oprot.writeFieldBegin('success', TType.STRING, 0)
12361
      oprot.writeString(self.success)
12362
      oprot.writeFieldEnd()
12363
    oprot.writeFieldStop()
12364
    oprot.writeStructEnd()
12365
 
12366
  def validate(self):
12367
    return
12368
 
12369
 
12370
  def __repr__(self):
12371
    L = ['%s=%r' % (key, value)
12372
      for key, value in self.__dict__.iteritems()]
12373
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12374
 
12375
  def __eq__(self, other):
12376
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12377
 
12378
  def __ne__(self, other):
12379
    return not (self == other)
8182 amar.kumar 12380
 
8282 kshitij.so 12381
class addOrUpdateAmazonFbaInventory_args:
12382
  """
12383
  Attributes:
12384
   - amazonfbainventorysnapshot
12385
  """
12386
 
12387
  thrift_spec = (
12388
    None, # 0
12389
    (1, TType.STRUCT, 'amazonfbainventorysnapshot', (AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec), None, ), # 1
12390
  )
12391
 
12392
  def __init__(self, amazonfbainventorysnapshot=None,):
12393
    self.amazonfbainventorysnapshot = amazonfbainventorysnapshot
12394
 
12395
  def read(self, iprot):
12396
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12397
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12398
      return
12399
    iprot.readStructBegin()
12400
    while True:
12401
      (fname, ftype, fid) = iprot.readFieldBegin()
12402
      if ftype == TType.STOP:
12403
        break
12404
      if fid == 1:
12405
        if ftype == TType.STRUCT:
12406
          self.amazonfbainventorysnapshot = AmazonFbaInventorySnapshot()
12407
          self.amazonfbainventorysnapshot.read(iprot)
12408
        else:
12409
          iprot.skip(ftype)
12410
      else:
12411
        iprot.skip(ftype)
12412
      iprot.readFieldEnd()
12413
    iprot.readStructEnd()
12414
 
12415
  def write(self, oprot):
12416
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12417
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12418
      return
12419
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_args')
12420
    if self.amazonfbainventorysnapshot is not None:
12421
      oprot.writeFieldBegin('amazonfbainventorysnapshot', TType.STRUCT, 1)
12422
      self.amazonfbainventorysnapshot.write(oprot)
12423
      oprot.writeFieldEnd()
12424
    oprot.writeFieldStop()
12425
    oprot.writeStructEnd()
12426
 
12427
  def validate(self):
12428
    return
12429
 
12430
 
12431
  def __repr__(self):
12432
    L = ['%s=%r' % (key, value)
12433
      for key, value in self.__dict__.iteritems()]
12434
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12435
 
12436
  def __eq__(self, other):
12437
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12438
 
12439
  def __ne__(self, other):
12440
    return not (self == other)
12441
 
12442
class addOrUpdateAmazonFbaInventory_result:
12443
 
12444
  thrift_spec = (
12445
  )
12446
 
12447
  def read(self, iprot):
12448
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12449
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12450
      return
12451
    iprot.readStructBegin()
12452
    while True:
12453
      (fname, ftype, fid) = iprot.readFieldBegin()
12454
      if ftype == TType.STOP:
12455
        break
12456
      else:
12457
        iprot.skip(ftype)
12458
      iprot.readFieldEnd()
12459
    iprot.readStructEnd()
12460
 
12461
  def write(self, oprot):
12462
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12463
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12464
      return
12465
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_result')
12466
    oprot.writeFieldStop()
12467
    oprot.writeStructEnd()
12468
 
12469
  def validate(self):
12470
    return
12471
 
12472
 
12473
  def __repr__(self):
12474
    L = ['%s=%r' % (key, value)
12475
      for key, value in self.__dict__.iteritems()]
12476
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12477
 
12478
  def __eq__(self, other):
12479
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12480
 
12481
  def __ne__(self, other):
12482
    return not (self == other)
12483
 
8182 amar.kumar 12484
class addUpdateHoldInventory_args:
12485
  """
12486
  Attributes:
12487
   - itemId
12488
   - warehouseId
12489
   - holdQuantity
12490
   - source
12491
  """
12492
 
12493
  thrift_spec = (
12494
    None, # 0
12495
    (1, TType.I64, 'itemId', None, None, ), # 1
12496
    (2, TType.I64, 'warehouseId', None, None, ), # 2
12497
    (3, TType.I64, 'holdQuantity', None, None, ), # 3
12498
    (4, TType.I64, 'source', None, None, ), # 4
12499
  )
12500
 
12501
  def __init__(self, itemId=None, warehouseId=None, holdQuantity=None, source=None,):
12502
    self.itemId = itemId
12503
    self.warehouseId = warehouseId
12504
    self.holdQuantity = holdQuantity
12505
    self.source = source
12506
 
12507
  def read(self, iprot):
12508
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12509
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12510
      return
12511
    iprot.readStructBegin()
12512
    while True:
12513
      (fname, ftype, fid) = iprot.readFieldBegin()
12514
      if ftype == TType.STOP:
12515
        break
12516
      if fid == 1:
12517
        if ftype == TType.I64:
12518
          self.itemId = iprot.readI64();
12519
        else:
12520
          iprot.skip(ftype)
12521
      elif fid == 2:
12522
        if ftype == TType.I64:
12523
          self.warehouseId = iprot.readI64();
12524
        else:
12525
          iprot.skip(ftype)
12526
      elif fid == 3:
12527
        if ftype == TType.I64:
12528
          self.holdQuantity = iprot.readI64();
12529
        else:
12530
          iprot.skip(ftype)
12531
      elif fid == 4:
12532
        if ftype == TType.I64:
12533
          self.source = iprot.readI64();
12534
        else:
12535
          iprot.skip(ftype)
12536
      else:
12537
        iprot.skip(ftype)
12538
      iprot.readFieldEnd()
12539
    iprot.readStructEnd()
12540
 
12541
  def write(self, oprot):
12542
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12543
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12544
      return
12545
    oprot.writeStructBegin('addUpdateHoldInventory_args')
12546
    if self.itemId is not None:
12547
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12548
      oprot.writeI64(self.itemId)
12549
      oprot.writeFieldEnd()
12550
    if self.warehouseId is not None:
12551
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
12552
      oprot.writeI64(self.warehouseId)
12553
      oprot.writeFieldEnd()
12554
    if self.holdQuantity is not None:
12555
      oprot.writeFieldBegin('holdQuantity', TType.I64, 3)
12556
      oprot.writeI64(self.holdQuantity)
12557
      oprot.writeFieldEnd()
12558
    if self.source is not None:
12559
      oprot.writeFieldBegin('source', TType.I64, 4)
12560
      oprot.writeI64(self.source)
12561
      oprot.writeFieldEnd()
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)
12579
 
12580
class addUpdateHoldInventory_result:
9762 amar.kumar 12581
  """
12582
  Attributes:
12583
   - cex
12584
  """
8182 amar.kumar 12585
 
12586
  thrift_spec = (
9762 amar.kumar 12587
    None, # 0
12588
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8182 amar.kumar 12589
  )
12590
 
9762 amar.kumar 12591
  def __init__(self, cex=None,):
12592
    self.cex = cex
12593
 
8182 amar.kumar 12594
  def read(self, iprot):
12595
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12596
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12597
      return
12598
    iprot.readStructBegin()
12599
    while True:
12600
      (fname, ftype, fid) = iprot.readFieldBegin()
12601
      if ftype == TType.STOP:
12602
        break
9762 amar.kumar 12603
      if fid == 1:
12604
        if ftype == TType.STRUCT:
12605
          self.cex = InventoryServiceException()
12606
          self.cex.read(iprot)
12607
        else:
12608
          iprot.skip(ftype)
8182 amar.kumar 12609
      else:
12610
        iprot.skip(ftype)
12611
      iprot.readFieldEnd()
12612
    iprot.readStructEnd()
12613
 
12614
  def write(self, oprot):
12615
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12616
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12617
      return
12618
    oprot.writeStructBegin('addUpdateHoldInventory_result')
9762 amar.kumar 12619
    if self.cex is not None:
12620
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12621
      self.cex.write(oprot)
12622
      oprot.writeFieldEnd()
8182 amar.kumar 12623
    oprot.writeFieldStop()
12624
    oprot.writeStructEnd()
12625
 
12626
  def validate(self):
12627
    return
12628
 
12629
 
12630
  def __repr__(self):
12631
    L = ['%s=%r' % (key, value)
12632
      for key, value in self.__dict__.iteritems()]
12633
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12634
 
12635
  def __eq__(self, other):
12636
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12637
 
12638
  def __ne__(self, other):
12639
    return not (self == other)
8282 kshitij.so 12640
 
12641
class getAmazonFbaItemInventory_args:
12642
  """
12643
  Attributes:
12644
   - itemId
12645
  """
12646
 
12647
  thrift_spec = (
12648
    None, # 0
12649
    (1, TType.I64, 'itemId', None, None, ), # 1
12650
  )
12651
 
12652
  def __init__(self, itemId=None,):
12653
    self.itemId = itemId
12654
 
12655
  def read(self, iprot):
12656
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12657
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12658
      return
12659
    iprot.readStructBegin()
12660
    while True:
12661
      (fname, ftype, fid) = iprot.readFieldBegin()
12662
      if ftype == TType.STOP:
12663
        break
12664
      if fid == 1:
12665
        if ftype == TType.I64:
12666
          self.itemId = iprot.readI64();
12667
        else:
12668
          iprot.skip(ftype)
12669
      else:
12670
        iprot.skip(ftype)
12671
      iprot.readFieldEnd()
12672
    iprot.readStructEnd()
12673
 
12674
  def write(self, oprot):
12675
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12676
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12677
      return
12678
    oprot.writeStructBegin('getAmazonFbaItemInventory_args')
12679
    if self.itemId is not None:
12680
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12681
      oprot.writeI64(self.itemId)
12682
      oprot.writeFieldEnd()
12683
    oprot.writeFieldStop()
12684
    oprot.writeStructEnd()
12685
 
12686
  def validate(self):
12687
    return
12688
 
12689
 
12690
  def __repr__(self):
12691
    L = ['%s=%r' % (key, value)
12692
      for key, value in self.__dict__.iteritems()]
12693
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12694
 
12695
  def __eq__(self, other):
12696
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12697
 
12698
  def __ne__(self, other):
12699
    return not (self == other)
12700
 
12701
class getAmazonFbaItemInventory_result:
12702
  """
12703
  Attributes:
12704
   - success
12705
  """
12706
 
12707
  thrift_spec = (
11173 vikram.rag 12708
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
8282 kshitij.so 12709
  )
12710
 
12711
  def __init__(self, success=None,):
12712
    self.success = success
12713
 
12714
  def read(self, iprot):
12715
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12716
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12717
      return
12718
    iprot.readStructBegin()
12719
    while True:
12720
      (fname, ftype, fid) = iprot.readFieldBegin()
12721
      if ftype == TType.STOP:
12722
        break
12723
      if fid == 0:
11173 vikram.rag 12724
        if ftype == TType.LIST:
12725
          self.success = []
12726
          (_etype247, _size244) = iprot.readListBegin()
12727
          for _i248 in xrange(_size244):
12728
            _elem249 = AmazonFbaInventorySnapshot()
12729
            _elem249.read(iprot)
12730
            self.success.append(_elem249)
12731
          iprot.readListEnd()
8282 kshitij.so 12732
        else:
12733
          iprot.skip(ftype)
12734
      else:
12735
        iprot.skip(ftype)
12736
      iprot.readFieldEnd()
12737
    iprot.readStructEnd()
12738
 
12739
  def write(self, oprot):
12740
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12741
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12742
      return
12743
    oprot.writeStructBegin('getAmazonFbaItemInventory_result')
12744
    if self.success is not None:
11173 vikram.rag 12745
      oprot.writeFieldBegin('success', TType.LIST, 0)
12746
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12747
      for iter250 in self.success:
12748
        iter250.write(oprot)
12749
      oprot.writeListEnd()
8282 kshitij.so 12750
      oprot.writeFieldEnd()
12751
    oprot.writeFieldStop()
12752
    oprot.writeStructEnd()
12753
 
12754
  def validate(self):
12755
    return
12756
 
12757
 
12758
  def __repr__(self):
12759
    L = ['%s=%r' % (key, value)
12760
      for key, value in self.__dict__.iteritems()]
12761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12762
 
12763
  def __eq__(self, other):
12764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12765
 
12766
  def __ne__(self, other):
12767
    return not (self == other)
12768
 
8363 vikram.rag 12769
class getAllAmazonFbaItemInventory_args:
8282 kshitij.so 12770
 
12771
  thrift_spec = (
12772
  )
12773
 
12774
  def read(self, iprot):
12775
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12776
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12777
      return
12778
    iprot.readStructBegin()
12779
    while True:
12780
      (fname, ftype, fid) = iprot.readFieldBegin()
12781
      if ftype == TType.STOP:
12782
        break
12783
      else:
12784
        iprot.skip(ftype)
12785
      iprot.readFieldEnd()
12786
    iprot.readStructEnd()
12787
 
12788
  def write(self, oprot):
12789
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12790
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12791
      return
8363 vikram.rag 12792
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_args')
8282 kshitij.so 12793
    oprot.writeFieldStop()
12794
    oprot.writeStructEnd()
12795
 
12796
  def validate(self):
12797
    return
12798
 
12799
 
12800
  def __repr__(self):
12801
    L = ['%s=%r' % (key, value)
12802
      for key, value in self.__dict__.iteritems()]
12803
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12804
 
12805
  def __eq__(self, other):
12806
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12807
 
12808
  def __ne__(self, other):
12809
    return not (self == other)
12810
 
8363 vikram.rag 12811
class getAllAmazonFbaItemInventory_result:
8282 kshitij.so 12812
  """
12813
  Attributes:
12814
   - success
12815
  """
12816
 
12817
  thrift_spec = (
12818
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
12819
  )
12820
 
12821
  def __init__(self, success=None,):
12822
    self.success = success
12823
 
12824
  def read(self, iprot):
12825
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12826
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12827
      return
12828
    iprot.readStructBegin()
12829
    while True:
12830
      (fname, ftype, fid) = iprot.readFieldBegin()
12831
      if ftype == TType.STOP:
12832
        break
12833
      if fid == 0:
12834
        if ftype == TType.LIST:
12835
          self.success = []
11173 vikram.rag 12836
          (_etype254, _size251) = iprot.readListBegin()
12837
          for _i255 in xrange(_size251):
12838
            _elem256 = AmazonFbaInventorySnapshot()
12839
            _elem256.read(iprot)
12840
            self.success.append(_elem256)
8282 kshitij.so 12841
          iprot.readListEnd()
12842
        else:
12843
          iprot.skip(ftype)
12844
      else:
12845
        iprot.skip(ftype)
12846
      iprot.readFieldEnd()
12847
    iprot.readStructEnd()
12848
 
12849
  def write(self, oprot):
12850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12852
      return
8363 vikram.rag 12853
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_result')
8282 kshitij.so 12854
    if self.success is not None:
12855
      oprot.writeFieldBegin('success', TType.LIST, 0)
12856
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 12857
      for iter257 in self.success:
12858
        iter257.write(oprot)
8282 kshitij.so 12859
      oprot.writeListEnd()
12860
      oprot.writeFieldEnd()
12861
    oprot.writeFieldStop()
12862
    oprot.writeStructEnd()
12863
 
12864
  def validate(self):
12865
    return
12866
 
12867
 
12868
  def __repr__(self):
12869
    L = ['%s=%r' % (key, value)
12870
      for key, value in self.__dict__.iteritems()]
12871
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12872
 
12873
  def __eq__(self, other):
12874
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12875
 
12876
  def __ne__(self, other):
12877
    return not (self == other)
8363 vikram.rag 12878
 
12879
class getOursGoodWarehouseIdsForLocation_args:
12880
  """
12881
  Attributes:
12882
   - state_id
12883
  """
12884
 
12885
  thrift_spec = (
12886
    None, # 0
12887
    (1, TType.I64, 'state_id', None, None, ), # 1
12888
  )
12889
 
12890
  def __init__(self, state_id=None,):
12891
    self.state_id = state_id
12892
 
12893
  def read(self, iprot):
12894
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12895
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12896
      return
12897
    iprot.readStructBegin()
12898
    while True:
12899
      (fname, ftype, fid) = iprot.readFieldBegin()
12900
      if ftype == TType.STOP:
12901
        break
12902
      if fid == 1:
12903
        if ftype == TType.I64:
12904
          self.state_id = iprot.readI64();
12905
        else:
12906
          iprot.skip(ftype)
12907
      else:
12908
        iprot.skip(ftype)
12909
      iprot.readFieldEnd()
12910
    iprot.readStructEnd()
12911
 
12912
  def write(self, oprot):
12913
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12914
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12915
      return
12916
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_args')
12917
    if self.state_id is not None:
12918
      oprot.writeFieldBegin('state_id', TType.I64, 1)
12919
      oprot.writeI64(self.state_id)
12920
      oprot.writeFieldEnd()
12921
    oprot.writeFieldStop()
12922
    oprot.writeStructEnd()
12923
 
12924
  def validate(self):
12925
    return
12926
 
12927
 
12928
  def __repr__(self):
12929
    L = ['%s=%r' % (key, value)
12930
      for key, value in self.__dict__.iteritems()]
12931
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12932
 
12933
  def __eq__(self, other):
12934
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12935
 
12936
  def __ne__(self, other):
12937
    return not (self == other)
12938
 
12939
class getOursGoodWarehouseIdsForLocation_result:
12940
  """
12941
  Attributes:
12942
   - success
12943
  """
12944
 
12945
  thrift_spec = (
12946
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12947
  )
12948
 
12949
  def __init__(self, success=None,):
12950
    self.success = success
12951
 
12952
  def read(self, iprot):
12953
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12954
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12955
      return
12956
    iprot.readStructBegin()
12957
    while True:
12958
      (fname, ftype, fid) = iprot.readFieldBegin()
12959
      if ftype == TType.STOP:
12960
        break
12961
      if fid == 0:
12962
        if ftype == TType.LIST:
12963
          self.success = []
11173 vikram.rag 12964
          (_etype261, _size258) = iprot.readListBegin()
12965
          for _i262 in xrange(_size258):
12966
            _elem263 = iprot.readI64();
12967
            self.success.append(_elem263)
8363 vikram.rag 12968
          iprot.readListEnd()
12969
        else:
12970
          iprot.skip(ftype)
12971
      else:
12972
        iprot.skip(ftype)
12973
      iprot.readFieldEnd()
12974
    iprot.readStructEnd()
12975
 
12976
  def write(self, oprot):
12977
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12978
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12979
      return
12980
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_result')
12981
    if self.success is not None:
12982
      oprot.writeFieldBegin('success', TType.LIST, 0)
12983
      oprot.writeListBegin(TType.I64, len(self.success))
11173 vikram.rag 12984
      for iter264 in self.success:
12985
        oprot.writeI64(iter264)
8363 vikram.rag 12986
      oprot.writeListEnd()
12987
      oprot.writeFieldEnd()
12988
    oprot.writeFieldStop()
12989
    oprot.writeStructEnd()
12990
 
12991
  def validate(self):
12992
    return
12993
 
12994
 
12995
  def __repr__(self):
12996
    L = ['%s=%r' % (key, value)
12997
      for key, value in self.__dict__.iteritems()]
12998
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12999
 
13000
  def __eq__(self, other):
13001
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13002
 
13003
  def __ne__(self, other):
13004
    return not (self == other)
8955 vikram.rag 13005
 
13006
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_args:
13007
  """
13008
  Attributes:
13009
   - id
13010
   - warehouse_id
13011
   - source
13012
  """
13013
 
13014
  thrift_spec = (
13015
    None, # 0
13016
    (1, TType.I64, 'id', None, None, ), # 1
13017
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
13018
    (3, TType.I64, 'source', None, None, ), # 3
13019
  )
13020
 
13021
  def __init__(self, id=None, warehouse_id=None, source=None,):
13022
    self.id = id
13023
    self.warehouse_id = warehouse_id
13024
    self.source = source
13025
 
13026
  def read(self, iprot):
13027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13029
      return
13030
    iprot.readStructBegin()
13031
    while True:
13032
      (fname, ftype, fid) = iprot.readFieldBegin()
13033
      if ftype == TType.STOP:
13034
        break
13035
      if fid == 1:
13036
        if ftype == TType.I64:
13037
          self.id = iprot.readI64();
13038
        else:
13039
          iprot.skip(ftype)
13040
      elif fid == 2:
13041
        if ftype == TType.I64:
13042
          self.warehouse_id = iprot.readI64();
13043
        else:
13044
          iprot.skip(ftype)
13045
      elif fid == 3:
13046
        if ftype == TType.I64:
13047
          self.source = iprot.readI64();
13048
        else:
13049
          iprot.skip(ftype)
13050
      else:
13051
        iprot.skip(ftype)
13052
      iprot.readFieldEnd()
13053
    iprot.readStructEnd()
13054
 
13055
  def write(self, oprot):
13056
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13057
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13058
      return
13059
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_args')
13060
    if self.id is not None:
13061
      oprot.writeFieldBegin('id', TType.I64, 1)
13062
      oprot.writeI64(self.id)
13063
      oprot.writeFieldEnd()
13064
    if self.warehouse_id is not None:
13065
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
13066
      oprot.writeI64(self.warehouse_id)
13067
      oprot.writeFieldEnd()
13068
    if self.source is not None:
13069
      oprot.writeFieldBegin('source', TType.I64, 3)
13070
      oprot.writeI64(self.source)
13071
      oprot.writeFieldEnd()
13072
    oprot.writeFieldStop()
13073
    oprot.writeStructEnd()
13074
 
13075
  def validate(self):
13076
    return
13077
 
13078
 
13079
  def __repr__(self):
13080
    L = ['%s=%r' % (key, value)
13081
      for key, value in self.__dict__.iteritems()]
13082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13083
 
13084
  def __eq__(self, other):
13085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13086
 
13087
  def __ne__(self, other):
13088
    return not (self == other)
13089
 
13090
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_result:
13091
  """
13092
  Attributes:
13093
   - success
13094
  """
13095
 
13096
  thrift_spec = (
13097
    (0, TType.I64, 'success', None, None, ), # 0
13098
  )
13099
 
13100
  def __init__(self, success=None,):
13101
    self.success = success
13102
 
13103
  def read(self, iprot):
13104
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13105
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13106
      return
13107
    iprot.readStructBegin()
13108
    while True:
13109
      (fname, ftype, fid) = iprot.readFieldBegin()
13110
      if ftype == TType.STOP:
13111
        break
13112
      if fid == 0:
13113
        if ftype == TType.I64:
13114
          self.success = iprot.readI64();
13115
        else:
13116
          iprot.skip(ftype)
13117
      else:
13118
        iprot.skip(ftype)
13119
      iprot.readFieldEnd()
13120
    iprot.readStructEnd()
13121
 
13122
  def write(self, oprot):
13123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13125
      return
13126
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_result')
13127
    if self.success is not None:
13128
      oprot.writeFieldBegin('success', TType.I64, 0)
13129
      oprot.writeI64(self.success)
13130
      oprot.writeFieldEnd()
13131
    oprot.writeFieldStop()
13132
    oprot.writeStructEnd()
13133
 
13134
  def validate(self):
13135
    return
13136
 
13137
 
13138
  def __repr__(self):
13139
    L = ['%s=%r' % (key, value)
13140
      for key, value in self.__dict__.iteritems()]
13141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13142
 
13143
  def __eq__(self, other):
13144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13145
 
13146
  def __ne__(self, other):
13147
    return not (self == other)
9404 vikram.rag 13148
 
13149
class getSnapdealInventoryForItem_args:
13150
  """
13151
  Attributes:
13152
   - item_id
13153
  """
13154
 
13155
  thrift_spec = (
13156
    None, # 0
13157
    (1, TType.I64, 'item_id', None, None, ), # 1
13158
  )
13159
 
13160
  def __init__(self, item_id=None,):
13161
    self.item_id = item_id
13162
 
13163
  def read(self, iprot):
13164
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13165
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13166
      return
13167
    iprot.readStructBegin()
13168
    while True:
13169
      (fname, ftype, fid) = iprot.readFieldBegin()
13170
      if ftype == TType.STOP:
13171
        break
13172
      if fid == 1:
13173
        if ftype == TType.I64:
13174
          self.item_id = iprot.readI64();
13175
        else:
13176
          iprot.skip(ftype)
13177
      else:
13178
        iprot.skip(ftype)
13179
      iprot.readFieldEnd()
13180
    iprot.readStructEnd()
13181
 
13182
  def write(self, oprot):
13183
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13184
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13185
      return
13186
    oprot.writeStructBegin('getSnapdealInventoryForItem_args')
13187
    if self.item_id is not None:
13188
      oprot.writeFieldBegin('item_id', TType.I64, 1)
13189
      oprot.writeI64(self.item_id)
13190
      oprot.writeFieldEnd()
13191
    oprot.writeFieldStop()
13192
    oprot.writeStructEnd()
13193
 
13194
  def validate(self):
13195
    return
13196
 
13197
 
13198
  def __repr__(self):
13199
    L = ['%s=%r' % (key, value)
13200
      for key, value in self.__dict__.iteritems()]
13201
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13202
 
13203
  def __eq__(self, other):
13204
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13205
 
13206
  def __ne__(self, other):
13207
    return not (self == other)
13208
 
13209
class getSnapdealInventoryForItem_result:
13210
  """
13211
  Attributes:
13212
   - success
13213
  """
13214
 
13215
  thrift_spec = (
13216
    (0, TType.STRUCT, 'success', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 0
13217
  )
13218
 
13219
  def __init__(self, success=None,):
13220
    self.success = success
13221
 
13222
  def read(self, iprot):
13223
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13224
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13225
      return
13226
    iprot.readStructBegin()
13227
    while True:
13228
      (fname, ftype, fid) = iprot.readFieldBegin()
13229
      if ftype == TType.STOP:
13230
        break
13231
      if fid == 0:
13232
        if ftype == TType.STRUCT:
13233
          self.success = SnapdealInventoryItem()
13234
          self.success.read(iprot)
13235
        else:
13236
          iprot.skip(ftype)
13237
      else:
13238
        iprot.skip(ftype)
13239
      iprot.readFieldEnd()
13240
    iprot.readStructEnd()
13241
 
13242
  def write(self, oprot):
13243
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13244
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13245
      return
13246
    oprot.writeStructBegin('getSnapdealInventoryForItem_result')
13247
    if self.success is not None:
13248
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13249
      self.success.write(oprot)
13250
      oprot.writeFieldEnd()
13251
    oprot.writeFieldStop()
13252
    oprot.writeStructEnd()
13253
 
13254
  def validate(self):
13255
    return
13256
 
13257
 
13258
  def __repr__(self):
13259
    L = ['%s=%r' % (key, value)
13260
      for key, value in self.__dict__.iteritems()]
13261
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13262
 
13263
  def __eq__(self, other):
13264
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13265
 
13266
  def __ne__(self, other):
13267
    return not (self == other)
13268
 
13269
class addOrUpdateSnapdealInventoryForItem_args:
13270
  """
13271
  Attributes:
13272
   - snapdealinventoryitem
13273
  """
13274
 
13275
  thrift_spec = (
13276
    None, # 0
13277
    (1, TType.STRUCT, 'snapdealinventoryitem', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 1
13278
  )
13279
 
13280
  def __init__(self, snapdealinventoryitem=None,):
13281
    self.snapdealinventoryitem = snapdealinventoryitem
13282
 
13283
  def read(self, iprot):
13284
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13285
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13286
      return
13287
    iprot.readStructBegin()
13288
    while True:
13289
      (fname, ftype, fid) = iprot.readFieldBegin()
13290
      if ftype == TType.STOP:
13291
        break
13292
      if fid == 1:
13293
        if ftype == TType.STRUCT:
13294
          self.snapdealinventoryitem = SnapdealInventoryItem()
13295
          self.snapdealinventoryitem.read(iprot)
13296
        else:
13297
          iprot.skip(ftype)
13298
      else:
13299
        iprot.skip(ftype)
13300
      iprot.readFieldEnd()
13301
    iprot.readStructEnd()
13302
 
13303
  def write(self, oprot):
13304
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13305
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13306
      return
13307
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_args')
13308
    if self.snapdealinventoryitem is not None:
13309
      oprot.writeFieldBegin('snapdealinventoryitem', TType.STRUCT, 1)
13310
      self.snapdealinventoryitem.write(oprot)
13311
      oprot.writeFieldEnd()
13312
    oprot.writeFieldStop()
13313
    oprot.writeStructEnd()
13314
 
13315
  def validate(self):
13316
    return
13317
 
13318
 
13319
  def __repr__(self):
13320
    L = ['%s=%r' % (key, value)
13321
      for key, value in self.__dict__.iteritems()]
13322
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13323
 
13324
  def __eq__(self, other):
13325
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13326
 
13327
  def __ne__(self, other):
13328
    return not (self == other)
13329
 
13330
class addOrUpdateSnapdealInventoryForItem_result:
13331
 
13332
  thrift_spec = (
13333
  )
13334
 
13335
  def read(self, iprot):
13336
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13337
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13338
      return
13339
    iprot.readStructBegin()
13340
    while True:
13341
      (fname, ftype, fid) = iprot.readFieldBegin()
13342
      if ftype == TType.STOP:
13343
        break
13344
      else:
13345
        iprot.skip(ftype)
13346
      iprot.readFieldEnd()
13347
    iprot.readStructEnd()
13348
 
13349
  def write(self, oprot):
13350
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13351
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13352
      return
13353
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_result')
13354
    oprot.writeFieldStop()
13355
    oprot.writeStructEnd()
13356
 
13357
  def validate(self):
13358
    return
13359
 
13360
 
13361
  def __repr__(self):
13362
    L = ['%s=%r' % (key, value)
13363
      for key, value in self.__dict__.iteritems()]
13364
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13365
 
13366
  def __eq__(self, other):
13367
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13368
 
13369
  def __ne__(self, other):
13370
    return not (self == other)
13371
 
13372
class getNlcForWarehouse_args:
13373
  """
13374
  Attributes:
13375
   - warehouse_id
13376
   - item_id
13377
  """
13378
 
13379
  thrift_spec = (
13380
    None, # 0
13381
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
13382
    (2, TType.I64, 'item_id', None, None, ), # 2
13383
  )
13384
 
13385
  def __init__(self, warehouse_id=None, item_id=None,):
13386
    self.warehouse_id = warehouse_id
13387
    self.item_id = item_id
13388
 
13389
  def read(self, iprot):
13390
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13391
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13392
      return
13393
    iprot.readStructBegin()
13394
    while True:
13395
      (fname, ftype, fid) = iprot.readFieldBegin()
13396
      if ftype == TType.STOP:
13397
        break
13398
      if fid == 1:
13399
        if ftype == TType.I64:
13400
          self.warehouse_id = iprot.readI64();
13401
        else:
13402
          iprot.skip(ftype)
13403
      elif fid == 2:
13404
        if ftype == TType.I64:
13405
          self.item_id = iprot.readI64();
13406
        else:
13407
          iprot.skip(ftype)
13408
      else:
13409
        iprot.skip(ftype)
13410
      iprot.readFieldEnd()
13411
    iprot.readStructEnd()
13412
 
13413
  def write(self, oprot):
13414
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13415
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13416
      return
13417
    oprot.writeStructBegin('getNlcForWarehouse_args')
13418
    if self.warehouse_id is not None:
13419
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
13420
      oprot.writeI64(self.warehouse_id)
13421
      oprot.writeFieldEnd()
13422
    if self.item_id is not None:
13423
      oprot.writeFieldBegin('item_id', TType.I64, 2)
13424
      oprot.writeI64(self.item_id)
13425
      oprot.writeFieldEnd()
13426
    oprot.writeFieldStop()
13427
    oprot.writeStructEnd()
13428
 
13429
  def validate(self):
13430
    return
13431
 
13432
 
13433
  def __repr__(self):
13434
    L = ['%s=%r' % (key, value)
13435
      for key, value in self.__dict__.iteritems()]
13436
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13437
 
13438
  def __eq__(self, other):
13439
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13440
 
13441
  def __ne__(self, other):
13442
    return not (self == other)
13443
 
13444
class getNlcForWarehouse_result:
13445
  """
13446
  Attributes:
13447
   - success
13448
  """
13449
 
13450
  thrift_spec = (
13451
    (0, TType.DOUBLE, 'success', None, None, ), # 0
13452
  )
13453
 
13454
  def __init__(self, success=None,):
13455
    self.success = success
13456
 
13457
  def read(self, iprot):
13458
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13459
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13460
      return
13461
    iprot.readStructBegin()
13462
    while True:
13463
      (fname, ftype, fid) = iprot.readFieldBegin()
13464
      if ftype == TType.STOP:
13465
        break
13466
      if fid == 0:
13467
        if ftype == TType.DOUBLE:
13468
          self.success = iprot.readDouble();
13469
        else:
13470
          iprot.skip(ftype)
13471
      else:
13472
        iprot.skip(ftype)
13473
      iprot.readFieldEnd()
13474
    iprot.readStructEnd()
13475
 
13476
  def write(self, oprot):
13477
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13478
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13479
      return
13480
    oprot.writeStructBegin('getNlcForWarehouse_result')
13481
    if self.success is not None:
13482
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
13483
      oprot.writeDouble(self.success)
13484
      oprot.writeFieldEnd()
13485
    oprot.writeFieldStop()
13486
    oprot.writeStructEnd()
13487
 
13488
  def validate(self):
13489
    return
13490
 
13491
 
13492
  def __repr__(self):
13493
    L = ['%s=%r' % (key, value)
13494
      for key, value in self.__dict__.iteritems()]
13495
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13496
 
13497
  def __eq__(self, other):
13498
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13499
 
13500
  def __ne__(self, other):
13501
    return not (self == other)
9456 vikram.rag 13502
 
9640 amar.kumar 13503
class getHeldInventoryMapForItem_args:
13504
  """
13505
  Attributes:
13506
   - item_id
13507
   - warehouse_id
13508
  """
13509
 
13510
  thrift_spec = (
13511
    None, # 0
13512
    (1, TType.I64, 'item_id', None, None, ), # 1
13513
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
13514
  )
13515
 
13516
  def __init__(self, item_id=None, warehouse_id=None,):
13517
    self.item_id = item_id
13518
    self.warehouse_id = warehouse_id
13519
 
13520
  def read(self, iprot):
13521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13523
      return
13524
    iprot.readStructBegin()
13525
    while True:
13526
      (fname, ftype, fid) = iprot.readFieldBegin()
13527
      if ftype == TType.STOP:
13528
        break
13529
      if fid == 1:
13530
        if ftype == TType.I64:
13531
          self.item_id = iprot.readI64();
13532
        else:
13533
          iprot.skip(ftype)
13534
      elif fid == 2:
13535
        if ftype == TType.I64:
13536
          self.warehouse_id = iprot.readI64();
13537
        else:
13538
          iprot.skip(ftype)
13539
      else:
13540
        iprot.skip(ftype)
13541
      iprot.readFieldEnd()
13542
    iprot.readStructEnd()
13543
 
13544
  def write(self, oprot):
13545
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13546
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13547
      return
13548
    oprot.writeStructBegin('getHeldInventoryMapForItem_args')
13549
    if self.item_id is not None:
13550
      oprot.writeFieldBegin('item_id', TType.I64, 1)
13551
      oprot.writeI64(self.item_id)
13552
      oprot.writeFieldEnd()
13553
    if self.warehouse_id is not None:
13554
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
13555
      oprot.writeI64(self.warehouse_id)
13556
      oprot.writeFieldEnd()
13557
    oprot.writeFieldStop()
13558
    oprot.writeStructEnd()
13559
 
13560
  def validate(self):
13561
    return
13562
 
13563
 
13564
  def __repr__(self):
13565
    L = ['%s=%r' % (key, value)
13566
      for key, value in self.__dict__.iteritems()]
13567
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13568
 
13569
  def __eq__(self, other):
13570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13571
 
13572
  def __ne__(self, other):
13573
    return not (self == other)
13574
 
13575
class getHeldInventoryMapForItem_result:
13576
  """
13577
  Attributes:
13578
   - success
13579
  """
13580
 
13581
  thrift_spec = (
13582
    (0, TType.MAP, 'success', (TType.I32,None,TType.I64,None), None, ), # 0
13583
  )
13584
 
13585
  def __init__(self, success=None,):
13586
    self.success = success
13587
 
13588
  def read(self, iprot):
13589
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13590
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13591
      return
13592
    iprot.readStructBegin()
13593
    while True:
13594
      (fname, ftype, fid) = iprot.readFieldBegin()
13595
      if ftype == TType.STOP:
13596
        break
13597
      if fid == 0:
13598
        if ftype == TType.MAP:
13599
          self.success = {}
11173 vikram.rag 13600
          (_ktype266, _vtype267, _size265 ) = iprot.readMapBegin() 
13601
          for _i269 in xrange(_size265):
13602
            _key270 = iprot.readI32();
13603
            _val271 = iprot.readI64();
13604
            self.success[_key270] = _val271
9640 amar.kumar 13605
          iprot.readMapEnd()
13606
        else:
13607
          iprot.skip(ftype)
13608
      else:
13609
        iprot.skip(ftype)
13610
      iprot.readFieldEnd()
13611
    iprot.readStructEnd()
13612
 
13613
  def write(self, oprot):
13614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13616
      return
13617
    oprot.writeStructBegin('getHeldInventoryMapForItem_result')
13618
    if self.success is not None:
13619
      oprot.writeFieldBegin('success', TType.MAP, 0)
13620
      oprot.writeMapBegin(TType.I32, TType.I64, len(self.success))
11173 vikram.rag 13621
      for kiter272,viter273 in self.success.items():
13622
        oprot.writeI32(kiter272)
13623
        oprot.writeI64(viter273)
9640 amar.kumar 13624
      oprot.writeMapEnd()
13625
      oprot.writeFieldEnd()
13626
    oprot.writeFieldStop()
13627
    oprot.writeStructEnd()
13628
 
13629
  def validate(self):
13630
    return
13631
 
13632
 
13633
  def __repr__(self):
13634
    L = ['%s=%r' % (key, value)
13635
      for key, value in self.__dict__.iteritems()]
13636
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13637
 
13638
  def __eq__(self, other):
13639
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13640
 
13641
  def __ne__(self, other):
13642
    return not (self == other)
13643
 
9495 vikram.rag 13644
class addOrUpdateAllAmazonFbaInventory_args:
13645
  """
13646
  Attributes:
13647
   - allamazonfbainventorysnapshot
13648
  """
9456 vikram.rag 13649
 
9495 vikram.rag 13650
  thrift_spec = None
13651
  def __init__(self, allamazonfbainventorysnapshot=None,):
13652
    self.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 13653
 
13654
  def read(self, iprot):
13655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13657
      return
13658
    iprot.readStructBegin()
13659
    while True:
13660
      (fname, ftype, fid) = iprot.readFieldBegin()
13661
      if ftype == TType.STOP:
13662
        break
9495 vikram.rag 13663
      if fid == -1:
13664
        if ftype == TType.LIST:
13665
          self.allamazonfbainventorysnapshot = []
11173 vikram.rag 13666
          (_etype277, _size274) = iprot.readListBegin()
13667
          for _i278 in xrange(_size274):
13668
            _elem279 = AmazonFbaInventorySnapshot()
13669
            _elem279.read(iprot)
13670
            self.allamazonfbainventorysnapshot.append(_elem279)
9495 vikram.rag 13671
          iprot.readListEnd()
13672
        else:
13673
          iprot.skip(ftype)
9456 vikram.rag 13674
      else:
13675
        iprot.skip(ftype)
13676
      iprot.readFieldEnd()
13677
    iprot.readStructEnd()
13678
 
13679
  def write(self, oprot):
13680
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13681
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13682
      return
9495 vikram.rag 13683
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_args')
13684
    if self.allamazonfbainventorysnapshot is not None:
13685
      oprot.writeFieldBegin('allamazonfbainventorysnapshot', TType.LIST, -1)
13686
      oprot.writeListBegin(TType.STRUCT, len(self.allamazonfbainventorysnapshot))
11173 vikram.rag 13687
      for iter280 in self.allamazonfbainventorysnapshot:
13688
        iter280.write(oprot)
9495 vikram.rag 13689
      oprot.writeListEnd()
13690
      oprot.writeFieldEnd()
9456 vikram.rag 13691
    oprot.writeFieldStop()
13692
    oprot.writeStructEnd()
13693
 
13694
  def validate(self):
13695
    return
13696
 
13697
 
13698
  def __repr__(self):
13699
    L = ['%s=%r' % (key, value)
13700
      for key, value in self.__dict__.iteritems()]
13701
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13702
 
13703
  def __eq__(self, other):
13704
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13705
 
13706
  def __ne__(self, other):
13707
    return not (self == other)
13708
 
9495 vikram.rag 13709
class addOrUpdateAllAmazonFbaInventory_result:
9456 vikram.rag 13710
 
13711
  thrift_spec = (
13712
  )
13713
 
13714
  def read(self, iprot):
13715
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13716
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13717
      return
13718
    iprot.readStructBegin()
13719
    while True:
13720
      (fname, ftype, fid) = iprot.readFieldBegin()
13721
      if ftype == TType.STOP:
13722
        break
13723
      else:
13724
        iprot.skip(ftype)
13725
      iprot.readFieldEnd()
13726
    iprot.readStructEnd()
13727
 
13728
  def write(self, oprot):
13729
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13730
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13731
      return
9495 vikram.rag 13732
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_result')
9456 vikram.rag 13733
    oprot.writeFieldStop()
13734
    oprot.writeStructEnd()
13735
 
13736
  def validate(self):
13737
    return
13738
 
13739
 
13740
  def __repr__(self):
13741
    L = ['%s=%r' % (key, value)
13742
      for key, value in self.__dict__.iteritems()]
13743
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13744
 
13745
  def __eq__(self, other):
13746
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13747
 
13748
  def __ne__(self, other):
13749
    return not (self == other)
9482 vikram.rag 13750
 
9495 vikram.rag 13751
class addOrUpdateAllSnapdealInventory_args:
9482 vikram.rag 13752
  """
13753
  Attributes:
9495 vikram.rag 13754
   - allsnapdealinventorysnapshot
9482 vikram.rag 13755
  """
13756
 
13757
  thrift_spec = None
9495 vikram.rag 13758
  def __init__(self, allsnapdealinventorysnapshot=None,):
13759
    self.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 13760
 
13761
  def read(self, iprot):
13762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13764
      return
13765
    iprot.readStructBegin()
13766
    while True:
13767
      (fname, ftype, fid) = iprot.readFieldBegin()
13768
      if ftype == TType.STOP:
13769
        break
13770
      if fid == -1:
13771
        if ftype == TType.LIST:
9495 vikram.rag 13772
          self.allsnapdealinventorysnapshot = []
11173 vikram.rag 13773
          (_etype284, _size281) = iprot.readListBegin()
13774
          for _i285 in xrange(_size281):
13775
            _elem286 = SnapdealInventoryItem()
13776
            _elem286.read(iprot)
13777
            self.allsnapdealinventorysnapshot.append(_elem286)
9482 vikram.rag 13778
          iprot.readListEnd()
13779
        else:
13780
          iprot.skip(ftype)
13781
      else:
13782
        iprot.skip(ftype)
13783
      iprot.readFieldEnd()
13784
    iprot.readStructEnd()
13785
 
13786
  def write(self, oprot):
13787
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13788
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13789
      return
9495 vikram.rag 13790
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_args')
13791
    if self.allsnapdealinventorysnapshot is not None:
13792
      oprot.writeFieldBegin('allsnapdealinventorysnapshot', TType.LIST, -1)
13793
      oprot.writeListBegin(TType.STRUCT, len(self.allsnapdealinventorysnapshot))
11173 vikram.rag 13794
      for iter287 in self.allsnapdealinventorysnapshot:
13795
        iter287.write(oprot)
9482 vikram.rag 13796
      oprot.writeListEnd()
13797
      oprot.writeFieldEnd()
13798
    oprot.writeFieldStop()
13799
    oprot.writeStructEnd()
13800
 
13801
  def validate(self):
13802
    return
13803
 
13804
 
13805
  def __repr__(self):
13806
    L = ['%s=%r' % (key, value)
13807
      for key, value in self.__dict__.iteritems()]
13808
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13809
 
13810
  def __eq__(self, other):
13811
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13812
 
13813
  def __ne__(self, other):
13814
    return not (self == other)
13815
 
9495 vikram.rag 13816
class addOrUpdateAllSnapdealInventory_result:
9482 vikram.rag 13817
 
13818
  thrift_spec = (
13819
  )
13820
 
13821
  def read(self, iprot):
13822
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13823
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13824
      return
13825
    iprot.readStructBegin()
13826
    while True:
13827
      (fname, ftype, fid) = iprot.readFieldBegin()
13828
      if ftype == TType.STOP:
13829
        break
13830
      else:
13831
        iprot.skip(ftype)
13832
      iprot.readFieldEnd()
13833
    iprot.readStructEnd()
13834
 
13835
  def write(self, oprot):
13836
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13837
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13838
      return
9495 vikram.rag 13839
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_result')
9482 vikram.rag 13840
    oprot.writeFieldStop()
13841
    oprot.writeStructEnd()
13842
 
13843
  def validate(self):
13844
    return
13845
 
13846
 
13847
  def __repr__(self):
13848
    L = ['%s=%r' % (key, value)
13849
      for key, value in self.__dict__.iteritems()]
13850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13851
 
13852
  def __eq__(self, other):
13853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13854
 
13855
  def __ne__(self, other):
13856
    return not (self == other)
9495 vikram.rag 13857
 
13858
class getSnapdealInventorySnapshot_args:
13859
 
13860
  thrift_spec = (
13861
  )
13862
 
13863
  def read(self, iprot):
13864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13866
      return
13867
    iprot.readStructBegin()
13868
    while True:
13869
      (fname, ftype, fid) = iprot.readFieldBegin()
13870
      if ftype == TType.STOP:
13871
        break
13872
      else:
13873
        iprot.skip(ftype)
13874
      iprot.readFieldEnd()
13875
    iprot.readStructEnd()
13876
 
13877
  def write(self, oprot):
13878
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13879
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13880
      return
13881
    oprot.writeStructBegin('getSnapdealInventorySnapshot_args')
13882
    oprot.writeFieldStop()
13883
    oprot.writeStructEnd()
13884
 
13885
  def validate(self):
13886
    return
13887
 
13888
 
13889
  def __repr__(self):
13890
    L = ['%s=%r' % (key, value)
13891
      for key, value in self.__dict__.iteritems()]
13892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13893
 
13894
  def __eq__(self, other):
13895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13896
 
13897
  def __ne__(self, other):
13898
    return not (self == other)
13899
 
13900
class getSnapdealInventorySnapshot_result:
13901
  """
13902
  Attributes:
13903
   - success
13904
  """
13905
 
13906
  thrift_spec = (
13907
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec)), None, ), # 0
13908
  )
13909
 
13910
  def __init__(self, success=None,):
13911
    self.success = success
13912
 
13913
  def read(self, iprot):
13914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13916
      return
13917
    iprot.readStructBegin()
13918
    while True:
13919
      (fname, ftype, fid) = iprot.readFieldBegin()
13920
      if ftype == TType.STOP:
13921
        break
13922
      if fid == 0:
13923
        if ftype == TType.LIST:
13924
          self.success = []
11173 vikram.rag 13925
          (_etype291, _size288) = iprot.readListBegin()
13926
          for _i292 in xrange(_size288):
13927
            _elem293 = SnapdealInventoryItem()
13928
            _elem293.read(iprot)
13929
            self.success.append(_elem293)
9495 vikram.rag 13930
          iprot.readListEnd()
13931
        else:
13932
          iprot.skip(ftype)
13933
      else:
13934
        iprot.skip(ftype)
13935
      iprot.readFieldEnd()
13936
    iprot.readStructEnd()
13937
 
13938
  def write(self, oprot):
13939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13941
      return
13942
    oprot.writeStructBegin('getSnapdealInventorySnapshot_result')
13943
    if self.success is not None:
13944
      oprot.writeFieldBegin('success', TType.LIST, 0)
13945
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 13946
      for iter294 in self.success:
13947
        iter294.write(oprot)
9495 vikram.rag 13948
      oprot.writeListEnd()
13949
      oprot.writeFieldEnd()
13950
    oprot.writeFieldStop()
13951
    oprot.writeStructEnd()
13952
 
13953
  def validate(self):
13954
    return
13955
 
13956
 
13957
  def __repr__(self):
13958
    L = ['%s=%r' % (key, value)
13959
      for key, value in self.__dict__.iteritems()]
13960
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13961
 
13962
  def __eq__(self, other):
13963
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13964
 
13965
  def __ne__(self, other):
13966
    return not (self == other)
9761 amar.kumar 13967
 
13968
class getHoldInventoryDetails_args:
13969
  """
13970
  Attributes:
13971
   - itemId
13972
   - warehouseId
13973
   - source
13974
  """
13975
 
13976
  thrift_spec = (
13977
    None, # 0
13978
    (1, TType.I64, 'itemId', None, None, ), # 1
13979
    (2, TType.I64, 'warehouseId', None, None, ), # 2
13980
    (3, TType.I64, 'source', None, None, ), # 3
13981
  )
13982
 
13983
  def __init__(self, itemId=None, warehouseId=None, source=None,):
13984
    self.itemId = itemId
13985
    self.warehouseId = warehouseId
13986
    self.source = source
13987
 
13988
  def read(self, iprot):
13989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13991
      return
13992
    iprot.readStructBegin()
13993
    while True:
13994
      (fname, ftype, fid) = iprot.readFieldBegin()
13995
      if ftype == TType.STOP:
13996
        break
13997
      if fid == 1:
13998
        if ftype == TType.I64:
13999
          self.itemId = iprot.readI64();
14000
        else:
14001
          iprot.skip(ftype)
14002
      elif fid == 2:
14003
        if ftype == TType.I64:
14004
          self.warehouseId = iprot.readI64();
14005
        else:
14006
          iprot.skip(ftype)
14007
      elif fid == 3:
14008
        if ftype == TType.I64:
14009
          self.source = iprot.readI64();
14010
        else:
14011
          iprot.skip(ftype)
14012
      else:
14013
        iprot.skip(ftype)
14014
      iprot.readFieldEnd()
14015
    iprot.readStructEnd()
14016
 
14017
  def write(self, oprot):
14018
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14019
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14020
      return
14021
    oprot.writeStructBegin('getHoldInventoryDetails_args')
14022
    if self.itemId is not None:
14023
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14024
      oprot.writeI64(self.itemId)
14025
      oprot.writeFieldEnd()
14026
    if self.warehouseId is not None:
14027
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
14028
      oprot.writeI64(self.warehouseId)
14029
      oprot.writeFieldEnd()
14030
    if self.source is not None:
14031
      oprot.writeFieldBegin('source', TType.I64, 3)
14032
      oprot.writeI64(self.source)
14033
      oprot.writeFieldEnd()
14034
    oprot.writeFieldStop()
14035
    oprot.writeStructEnd()
14036
 
14037
  def validate(self):
14038
    return
14039
 
14040
 
14041
  def __repr__(self):
14042
    L = ['%s=%r' % (key, value)
14043
      for key, value in self.__dict__.iteritems()]
14044
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14045
 
14046
  def __eq__(self, other):
14047
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14048
 
14049
  def __ne__(self, other):
14050
    return not (self == other)
14051
 
14052
class getHoldInventoryDetails_result:
14053
  """
14054
  Attributes:
14055
   - success
14056
  """
14057
 
14058
  thrift_spec = (
14059
    (0, TType.LIST, 'success', (TType.STRUCT,(HoldInventoryDetail, HoldInventoryDetail.thrift_spec)), None, ), # 0
14060
  )
14061
 
14062
  def __init__(self, success=None,):
14063
    self.success = success
14064
 
14065
  def read(self, iprot):
14066
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14067
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14068
      return
14069
    iprot.readStructBegin()
14070
    while True:
14071
      (fname, ftype, fid) = iprot.readFieldBegin()
14072
      if ftype == TType.STOP:
14073
        break
14074
      if fid == 0:
14075
        if ftype == TType.LIST:
14076
          self.success = []
11173 vikram.rag 14077
          (_etype298, _size295) = iprot.readListBegin()
14078
          for _i299 in xrange(_size295):
14079
            _elem300 = HoldInventoryDetail()
14080
            _elem300.read(iprot)
14081
            self.success.append(_elem300)
9761 amar.kumar 14082
          iprot.readListEnd()
14083
        else:
14084
          iprot.skip(ftype)
14085
      else:
14086
        iprot.skip(ftype)
14087
      iprot.readFieldEnd()
14088
    iprot.readStructEnd()
14089
 
14090
  def write(self, oprot):
14091
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14092
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14093
      return
14094
    oprot.writeStructBegin('getHoldInventoryDetails_result')
14095
    if self.success is not None:
14096
      oprot.writeFieldBegin('success', TType.LIST, 0)
14097
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 14098
      for iter301 in self.success:
14099
        iter301.write(oprot)
9761 amar.kumar 14100
      oprot.writeListEnd()
14101
      oprot.writeFieldEnd()
14102
    oprot.writeFieldStop()
14103
    oprot.writeStructEnd()
14104
 
14105
  def validate(self):
14106
    return
14107
 
14108
 
14109
  def __repr__(self):
14110
    L = ['%s=%r' % (key, value)
14111
      for key, value in self.__dict__.iteritems()]
14112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14113
 
14114
  def __eq__(self, other):
14115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14116
 
14117
  def __ne__(self, other):
14118
    return not (self == other)
10050 vikram.rag 14119
 
14120
class addOrUpdateFlipkartInventorySnapshot_args:
14121
  """
14122
  Attributes:
14123
   - flipkartInventorySnapshot
10450 vikram.rag 14124
   - time
10050 vikram.rag 14125
  """
14126
 
10450 vikram.rag 14127
  thrift_spec = (
14128
    None, # 0
14129
    (1, TType.LIST, 'flipkartInventorySnapshot', (TType.STRUCT,(FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec)), None, ), # 1
14130
    (2, TType.I64, 'time', None, None, ), # 2
14131
  )
14132
 
14133
  def __init__(self, flipkartInventorySnapshot=None, time=None,):
10050 vikram.rag 14134
    self.flipkartInventorySnapshot = flipkartInventorySnapshot
10450 vikram.rag 14135
    self.time = time
10050 vikram.rag 14136
 
14137
  def read(self, iprot):
14138
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14139
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14140
      return
14141
    iprot.readStructBegin()
14142
    while True:
14143
      (fname, ftype, fid) = iprot.readFieldBegin()
14144
      if ftype == TType.STOP:
14145
        break
10450 vikram.rag 14146
      if fid == 1:
10050 vikram.rag 14147
        if ftype == TType.LIST:
14148
          self.flipkartInventorySnapshot = []
11173 vikram.rag 14149
          (_etype305, _size302) = iprot.readListBegin()
14150
          for _i306 in xrange(_size302):
14151
            _elem307 = FlipkartInventorySnapshot()
14152
            _elem307.read(iprot)
14153
            self.flipkartInventorySnapshot.append(_elem307)
10050 vikram.rag 14154
          iprot.readListEnd()
14155
        else:
14156
          iprot.skip(ftype)
10450 vikram.rag 14157
      elif fid == 2:
14158
        if ftype == TType.I64:
14159
          self.time = iprot.readI64();
14160
        else:
14161
          iprot.skip(ftype)
10050 vikram.rag 14162
      else:
14163
        iprot.skip(ftype)
14164
      iprot.readFieldEnd()
14165
    iprot.readStructEnd()
14166
 
14167
  def write(self, oprot):
14168
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14169
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14170
      return
14171
    oprot.writeStructBegin('addOrUpdateFlipkartInventorySnapshot_args')
14172
    if self.flipkartInventorySnapshot is not None:
10450 vikram.rag 14173
      oprot.writeFieldBegin('flipkartInventorySnapshot', TType.LIST, 1)
10050 vikram.rag 14174
      oprot.writeListBegin(TType.STRUCT, len(self.flipkartInventorySnapshot))
11173 vikram.rag 14175
      for iter308 in self.flipkartInventorySnapshot:
14176
        iter308.write(oprot)
10050 vikram.rag 14177
      oprot.writeListEnd()
14178
      oprot.writeFieldEnd()
10450 vikram.rag 14179
    if self.time is not None:
14180
      oprot.writeFieldBegin('time', TType.I64, 2)
14181
      oprot.writeI64(self.time)
14182
      oprot.writeFieldEnd()
10050 vikram.rag 14183
    oprot.writeFieldStop()
14184
    oprot.writeStructEnd()
14185
 
14186
  def validate(self):
14187
    return
14188
 
14189
 
14190
  def __repr__(self):
14191
    L = ['%s=%r' % (key, value)
14192
      for key, value in self.__dict__.iteritems()]
14193
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14194
 
14195
  def __eq__(self, other):
14196
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14197
 
14198
  def __ne__(self, other):
14199
    return not (self == other)
14200
 
14201
class addOrUpdateFlipkartInventorySnapshot_result:
14202
 
14203
  thrift_spec = (
14204
  )
14205
 
14206
  def read(self, iprot):
14207
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14208
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14209
      return
14210
    iprot.readStructBegin()
14211
    while True:
14212
      (fname, ftype, fid) = iprot.readFieldBegin()
14213
      if ftype == TType.STOP:
14214
        break
14215
      else:
14216
        iprot.skip(ftype)
14217
      iprot.readFieldEnd()
14218
    iprot.readStructEnd()
14219
 
14220
  def write(self, oprot):
14221
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14222
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14223
      return
14224
    oprot.writeStructBegin('addOrUpdateFlipkartInventorySnapshot_result')
14225
    oprot.writeFieldStop()
14226
    oprot.writeStructEnd()
14227
 
14228
  def validate(self):
14229
    return
14230
 
14231
 
14232
  def __repr__(self):
14233
    L = ['%s=%r' % (key, value)
14234
      for key, value in self.__dict__.iteritems()]
14235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14236
 
14237
  def __eq__(self, other):
14238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14239
 
14240
  def __ne__(self, other):
14241
    return not (self == other)
14242
 
14243
class getFlipkartInventorySnapshot_args:
14244
 
14245
  thrift_spec = (
14246
  )
14247
 
14248
  def read(self, iprot):
14249
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14250
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14251
      return
14252
    iprot.readStructBegin()
14253
    while True:
14254
      (fname, ftype, fid) = iprot.readFieldBegin()
14255
      if ftype == TType.STOP:
14256
        break
14257
      else:
14258
        iprot.skip(ftype)
14259
      iprot.readFieldEnd()
14260
    iprot.readStructEnd()
14261
 
14262
  def write(self, oprot):
14263
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14264
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14265
      return
14266
    oprot.writeStructBegin('getFlipkartInventorySnapshot_args')
14267
    oprot.writeFieldStop()
14268
    oprot.writeStructEnd()
14269
 
14270
  def validate(self):
14271
    return
14272
 
14273
 
14274
  def __repr__(self):
14275
    L = ['%s=%r' % (key, value)
14276
      for key, value in self.__dict__.iteritems()]
14277
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14278
 
14279
  def __eq__(self, other):
14280
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14281
 
14282
  def __ne__(self, other):
14283
    return not (self == other)
14284
 
14285
class getFlipkartInventorySnapshot_result:
14286
  """
14287
  Attributes:
14288
   - success
14289
  """
14290
 
14291
  thrift_spec = (
14292
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec)), None, ), # 0
14293
  )
14294
 
14295
  def __init__(self, success=None,):
14296
    self.success = success
14297
 
14298
  def read(self, iprot):
14299
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14300
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14301
      return
14302
    iprot.readStructBegin()
14303
    while True:
14304
      (fname, ftype, fid) = iprot.readFieldBegin()
14305
      if ftype == TType.STOP:
14306
        break
14307
      if fid == 0:
14308
        if ftype == TType.LIST:
14309
          self.success = []
11173 vikram.rag 14310
          (_etype312, _size309) = iprot.readListBegin()
14311
          for _i313 in xrange(_size309):
14312
            _elem314 = FlipkartInventorySnapshot()
14313
            _elem314.read(iprot)
14314
            self.success.append(_elem314)
10050 vikram.rag 14315
          iprot.readListEnd()
14316
        else:
14317
          iprot.skip(ftype)
14318
      else:
14319
        iprot.skip(ftype)
14320
      iprot.readFieldEnd()
14321
    iprot.readStructEnd()
14322
 
14323
  def write(self, oprot):
14324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14326
      return
14327
    oprot.writeStructBegin('getFlipkartInventorySnapshot_result')
14328
    if self.success is not None:
14329
      oprot.writeFieldBegin('success', TType.LIST, 0)
14330
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 14331
      for iter315 in self.success:
14332
        iter315.write(oprot)
10050 vikram.rag 14333
      oprot.writeListEnd()
14334
      oprot.writeFieldEnd()
14335
    oprot.writeFieldStop()
14336
    oprot.writeStructEnd()
14337
 
14338
  def validate(self):
14339
    return
14340
 
14341
 
14342
  def __repr__(self):
14343
    L = ['%s=%r' % (key, value)
14344
      for key, value in self.__dict__.iteritems()]
14345
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14346
 
14347
  def __eq__(self, other):
14348
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14349
 
14350
  def __ne__(self, other):
14351
    return not (self == other)
10097 kshitij.so 14352
 
14353
class getFlipkartlInventoryForItem_args:
14354
  """
14355
  Attributes:
14356
   - item_id
14357
  """
14358
 
14359
  thrift_spec = (
14360
    None, # 0
14361
    (1, TType.I64, 'item_id', None, None, ), # 1
14362
  )
14363
 
14364
  def __init__(self, item_id=None,):
14365
    self.item_id = item_id
14366
 
14367
  def read(self, iprot):
14368
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14369
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14370
      return
14371
    iprot.readStructBegin()
14372
    while True:
14373
      (fname, ftype, fid) = iprot.readFieldBegin()
14374
      if ftype == TType.STOP:
14375
        break
14376
      if fid == 1:
14377
        if ftype == TType.I64:
14378
          self.item_id = iprot.readI64();
14379
        else:
14380
          iprot.skip(ftype)
14381
      else:
14382
        iprot.skip(ftype)
14383
      iprot.readFieldEnd()
14384
    iprot.readStructEnd()
14385
 
14386
  def write(self, oprot):
14387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14389
      return
14390
    oprot.writeStructBegin('getFlipkartlInventoryForItem_args')
14391
    if self.item_id is not None:
14392
      oprot.writeFieldBegin('item_id', TType.I64, 1)
14393
      oprot.writeI64(self.item_id)
14394
      oprot.writeFieldEnd()
14395
    oprot.writeFieldStop()
14396
    oprot.writeStructEnd()
14397
 
14398
  def validate(self):
14399
    return
14400
 
14401
 
14402
  def __repr__(self):
14403
    L = ['%s=%r' % (key, value)
14404
      for key, value in self.__dict__.iteritems()]
14405
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14406
 
14407
  def __eq__(self, other):
14408
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14409
 
14410
  def __ne__(self, other):
14411
    return not (self == other)
14412
 
14413
class getFlipkartlInventoryForItem_result:
14414
  """
14415
  Attributes:
14416
   - success
14417
  """
14418
 
14419
  thrift_spec = (
14420
    (0, TType.STRUCT, 'success', (FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec), None, ), # 0
14421
  )
14422
 
14423
  def __init__(self, success=None,):
14424
    self.success = success
14425
 
14426
  def read(self, iprot):
14427
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14428
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14429
      return
14430
    iprot.readStructBegin()
14431
    while True:
14432
      (fname, ftype, fid) = iprot.readFieldBegin()
14433
      if ftype == TType.STOP:
14434
        break
14435
      if fid == 0:
14436
        if ftype == TType.STRUCT:
14437
          self.success = FlipkartInventorySnapshot()
14438
          self.success.read(iprot)
14439
        else:
14440
          iprot.skip(ftype)
14441
      else:
14442
        iprot.skip(ftype)
14443
      iprot.readFieldEnd()
14444
    iprot.readStructEnd()
14445
 
14446
  def write(self, oprot):
14447
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14448
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14449
      return
14450
    oprot.writeStructBegin('getFlipkartlInventoryForItem_result')
14451
    if self.success is not None:
14452
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
14453
      self.success.write(oprot)
14454
      oprot.writeFieldEnd()
14455
    oprot.writeFieldStop()
14456
    oprot.writeStructEnd()
14457
 
14458
  def validate(self):
14459
    return
14460
 
14461
 
14462
  def __repr__(self):
14463
    L = ['%s=%r' % (key, value)
14464
      for key, value in self.__dict__.iteritems()]
14465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14466
 
14467
  def __eq__(self, other):
14468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14469
 
14470
  def __ne__(self, other):
14471
    return not (self == other)
10485 vikram.rag 14472
 
14473
class getStateMaster_args:
14474
 
14475
  thrift_spec = (
14476
  )
14477
 
14478
  def read(self, iprot):
14479
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14480
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14481
      return
14482
    iprot.readStructBegin()
14483
    while True:
14484
      (fname, ftype, fid) = iprot.readFieldBegin()
14485
      if ftype == TType.STOP:
14486
        break
14487
      else:
14488
        iprot.skip(ftype)
14489
      iprot.readFieldEnd()
14490
    iprot.readStructEnd()
14491
 
14492
  def write(self, oprot):
14493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14495
      return
14496
    oprot.writeStructBegin('getStateMaster_args')
14497
    oprot.writeFieldStop()
14498
    oprot.writeStructEnd()
14499
 
14500
  def validate(self):
14501
    return
14502
 
14503
 
14504
  def __repr__(self):
14505
    L = ['%s=%r' % (key, value)
14506
      for key, value in self.__dict__.iteritems()]
14507
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14508
 
14509
  def __eq__(self, other):
14510
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14511
 
14512
  def __ne__(self, other):
14513
    return not (self == other)
14514
 
14515
class getStateMaster_result:
14516
  """
14517
  Attributes:
14518
   - success
14519
  """
14520
 
14521
  thrift_spec = (
12280 amit.gupta 14522
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(StateInfo, StateInfo.thrift_spec)), None, ), # 0
10485 vikram.rag 14523
  )
14524
 
14525
  def __init__(self, success=None,):
14526
    self.success = success
14527
 
14528
  def read(self, iprot):
14529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14531
      return
14532
    iprot.readStructBegin()
14533
    while True:
14534
      (fname, ftype, fid) = iprot.readFieldBegin()
14535
      if ftype == TType.STOP:
14536
        break
14537
      if fid == 0:
14538
        if ftype == TType.MAP:
14539
          self.success = {}
11173 vikram.rag 14540
          (_ktype317, _vtype318, _size316 ) = iprot.readMapBegin() 
14541
          for _i320 in xrange(_size316):
14542
            _key321 = iprot.readI64();
12280 amit.gupta 14543
            _val322 = StateInfo()
14544
            _val322.read(iprot)
11173 vikram.rag 14545
            self.success[_key321] = _val322
10485 vikram.rag 14546
          iprot.readMapEnd()
14547
        else:
14548
          iprot.skip(ftype)
14549
      else:
14550
        iprot.skip(ftype)
14551
      iprot.readFieldEnd()
14552
    iprot.readStructEnd()
14553
 
14554
  def write(self, oprot):
14555
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14556
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14557
      return
14558
    oprot.writeStructBegin('getStateMaster_result')
14559
    if self.success is not None:
14560
      oprot.writeFieldBegin('success', TType.MAP, 0)
12280 amit.gupta 14561
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
11173 vikram.rag 14562
      for kiter323,viter324 in self.success.items():
14563
        oprot.writeI64(kiter323)
12280 amit.gupta 14564
        viter324.write(oprot)
10485 vikram.rag 14565
      oprot.writeMapEnd()
14566
      oprot.writeFieldEnd()
14567
    oprot.writeFieldStop()
14568
    oprot.writeStructEnd()
14569
 
14570
  def validate(self):
14571
    return
14572
 
14573
 
14574
  def __repr__(self):
14575
    L = ['%s=%r' % (key, value)
14576
      for key, value in self.__dict__.iteritems()]
14577
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14578
 
14579
  def __eq__(self, other):
14580
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14581
 
14582
  def __ne__(self, other):
14583
    return not (self == other)
10544 vikram.rag 14584
 
14585
class updateSnapdealStockAtEOD_args:
14586
  """
14587
  Attributes:
14588
   - allsnapdealstock
14589
  """
14590
 
14591
  thrift_spec = None
14592
  def __init__(self, allsnapdealstock=None,):
14593
    self.allsnapdealstock = allsnapdealstock
14594
 
14595
  def read(self, iprot):
14596
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14597
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14598
      return
14599
    iprot.readStructBegin()
14600
    while True:
14601
      (fname, ftype, fid) = iprot.readFieldBegin()
14602
      if ftype == TType.STOP:
14603
        break
14604
      if fid == -1:
14605
        if ftype == TType.LIST:
14606
          self.allsnapdealstock = []
11173 vikram.rag 14607
          (_etype328, _size325) = iprot.readListBegin()
14608
          for _i329 in xrange(_size325):
14609
            _elem330 = SnapdealStockAtEOD()
14610
            _elem330.read(iprot)
14611
            self.allsnapdealstock.append(_elem330)
10544 vikram.rag 14612
          iprot.readListEnd()
14613
        else:
14614
          iprot.skip(ftype)
14615
      else:
14616
        iprot.skip(ftype)
14617
      iprot.readFieldEnd()
14618
    iprot.readStructEnd()
14619
 
14620
  def write(self, oprot):
14621
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14622
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14623
      return
14624
    oprot.writeStructBegin('updateSnapdealStockAtEOD_args')
14625
    if self.allsnapdealstock is not None:
14626
      oprot.writeFieldBegin('allsnapdealstock', TType.LIST, -1)
14627
      oprot.writeListBegin(TType.STRUCT, len(self.allsnapdealstock))
11173 vikram.rag 14628
      for iter331 in self.allsnapdealstock:
14629
        iter331.write(oprot)
10544 vikram.rag 14630
      oprot.writeListEnd()
14631
      oprot.writeFieldEnd()
14632
    oprot.writeFieldStop()
14633
    oprot.writeStructEnd()
14634
 
14635
  def validate(self):
14636
    return
14637
 
14638
 
14639
  def __repr__(self):
14640
    L = ['%s=%r' % (key, value)
14641
      for key, value in self.__dict__.iteritems()]
14642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14643
 
14644
  def __eq__(self, other):
14645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14646
 
14647
  def __ne__(self, other):
14648
    return not (self == other)
14649
 
14650
class updateSnapdealStockAtEOD_result:
14651
 
14652
  thrift_spec = (
14653
  )
14654
 
14655
  def read(self, iprot):
14656
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14657
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14658
      return
14659
    iprot.readStructBegin()
14660
    while True:
14661
      (fname, ftype, fid) = iprot.readFieldBegin()
14662
      if ftype == TType.STOP:
14663
        break
14664
      else:
14665
        iprot.skip(ftype)
14666
      iprot.readFieldEnd()
14667
    iprot.readStructEnd()
14668
 
14669
  def write(self, oprot):
14670
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14671
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14672
      return
14673
    oprot.writeStructBegin('updateSnapdealStockAtEOD_result')
14674
    oprot.writeFieldStop()
14675
    oprot.writeStructEnd()
14676
 
14677
  def validate(self):
14678
    return
14679
 
14680
 
14681
  def __repr__(self):
14682
    L = ['%s=%r' % (key, value)
14683
      for key, value in self.__dict__.iteritems()]
14684
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14685
 
14686
  def __eq__(self, other):
14687
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14688
 
14689
  def __ne__(self, other):
14690
    return not (self == other)
14691
 
14692
class updateFlipkartStockAtEOD_args:
14693
  """
14694
  Attributes:
14695
   - allflipkartstock
14696
  """
14697
 
14698
  thrift_spec = None
14699
  def __init__(self, allflipkartstock=None,):
14700
    self.allflipkartstock = allflipkartstock
14701
 
14702
  def read(self, iprot):
14703
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14704
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14705
      return
14706
    iprot.readStructBegin()
14707
    while True:
14708
      (fname, ftype, fid) = iprot.readFieldBegin()
14709
      if ftype == TType.STOP:
14710
        break
14711
      if fid == -1:
14712
        if ftype == TType.LIST:
14713
          self.allflipkartstock = []
11173 vikram.rag 14714
          (_etype335, _size332) = iprot.readListBegin()
14715
          for _i336 in xrange(_size332):
14716
            _elem337 = FlipkartStockAtEOD()
14717
            _elem337.read(iprot)
14718
            self.allflipkartstock.append(_elem337)
10544 vikram.rag 14719
          iprot.readListEnd()
14720
        else:
14721
          iprot.skip(ftype)
14722
      else:
14723
        iprot.skip(ftype)
14724
      iprot.readFieldEnd()
14725
    iprot.readStructEnd()
14726
 
14727
  def write(self, oprot):
14728
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14729
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14730
      return
14731
    oprot.writeStructBegin('updateFlipkartStockAtEOD_args')
14732
    if self.allflipkartstock is not None:
14733
      oprot.writeFieldBegin('allflipkartstock', TType.LIST, -1)
14734
      oprot.writeListBegin(TType.STRUCT, len(self.allflipkartstock))
11173 vikram.rag 14735
      for iter338 in self.allflipkartstock:
14736
        iter338.write(oprot)
10544 vikram.rag 14737
      oprot.writeListEnd()
14738
      oprot.writeFieldEnd()
14739
    oprot.writeFieldStop()
14740
    oprot.writeStructEnd()
14741
 
14742
  def validate(self):
14743
    return
14744
 
14745
 
14746
  def __repr__(self):
14747
    L = ['%s=%r' % (key, value)
14748
      for key, value in self.__dict__.iteritems()]
14749
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14750
 
14751
  def __eq__(self, other):
14752
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14753
 
14754
  def __ne__(self, other):
14755
    return not (self == other)
14756
 
14757
class updateFlipkartStockAtEOD_result:
14758
 
14759
  thrift_spec = (
14760
  )
14761
 
14762
  def read(self, iprot):
14763
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14764
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14765
      return
14766
    iprot.readStructBegin()
14767
    while True:
14768
      (fname, ftype, fid) = iprot.readFieldBegin()
14769
      if ftype == TType.STOP:
14770
        break
14771
      else:
14772
        iprot.skip(ftype)
14773
      iprot.readFieldEnd()
14774
    iprot.readStructEnd()
14775
 
14776
  def write(self, oprot):
14777
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14778
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14779
      return
14780
    oprot.writeStructBegin('updateFlipkartStockAtEOD_result')
14781
    oprot.writeFieldStop()
14782
    oprot.writeStructEnd()
14783
 
14784
  def validate(self):
14785
    return
14786
 
14787
 
14788
  def __repr__(self):
14789
    L = ['%s=%r' % (key, value)
14790
      for key, value in self.__dict__.iteritems()]
14791
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14792
 
14793
  def __eq__(self, other):
14794
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14795
 
14796
  def __ne__(self, other):
14797
    return not (self == other)
12363 kshitij.so 14798
 
14799
class getWanNlcForSource_args:
14800
  """
14801
  Attributes:
14802
   - item_id
14803
   - source
14804
  """
14805
 
14806
  thrift_spec = (
14807
    None, # 0
14808
    (1, TType.I64, 'item_id', None, None, ), # 1
14809
    (2, TType.I64, 'source', None, None, ), # 2
14810
  )
14811
 
14812
  def __init__(self, item_id=None, source=None,):
14813
    self.item_id = item_id
14814
    self.source = source
14815
 
14816
  def read(self, iprot):
14817
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14818
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14819
      return
14820
    iprot.readStructBegin()
14821
    while True:
14822
      (fname, ftype, fid) = iprot.readFieldBegin()
14823
      if ftype == TType.STOP:
14824
        break
14825
      if fid == 1:
14826
        if ftype == TType.I64:
14827
          self.item_id = iprot.readI64();
14828
        else:
14829
          iprot.skip(ftype)
14830
      elif fid == 2:
14831
        if ftype == TType.I64:
14832
          self.source = iprot.readI64();
14833
        else:
14834
          iprot.skip(ftype)
14835
      else:
14836
        iprot.skip(ftype)
14837
      iprot.readFieldEnd()
14838
    iprot.readStructEnd()
14839
 
14840
  def write(self, oprot):
14841
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14842
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14843
      return
14844
    oprot.writeStructBegin('getWanNlcForSource_args')
14845
    if self.item_id is not None:
14846
      oprot.writeFieldBegin('item_id', TType.I64, 1)
14847
      oprot.writeI64(self.item_id)
14848
      oprot.writeFieldEnd()
14849
    if self.source is not None:
14850
      oprot.writeFieldBegin('source', TType.I64, 2)
14851
      oprot.writeI64(self.source)
14852
      oprot.writeFieldEnd()
14853
    oprot.writeFieldStop()
14854
    oprot.writeStructEnd()
14855
 
14856
  def validate(self):
14857
    return
14858
 
14859
 
14860
  def __repr__(self):
14861
    L = ['%s=%r' % (key, value)
14862
      for key, value in self.__dict__.iteritems()]
14863
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14864
 
14865
  def __eq__(self, other):
14866
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14867
 
14868
  def __ne__(self, other):
14869
    return not (self == other)
14870
 
14871
class getWanNlcForSource_result:
14872
  """
14873
  Attributes:
14874
   - success
14875
  """
14876
 
14877
  thrift_spec = (
14878
    (0, TType.DOUBLE, 'success', None, None, ), # 0
14879
  )
14880
 
14881
  def __init__(self, success=None,):
14882
    self.success = success
14883
 
14884
  def read(self, iprot):
14885
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14886
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14887
      return
14888
    iprot.readStructBegin()
14889
    while True:
14890
      (fname, ftype, fid) = iprot.readFieldBegin()
14891
      if ftype == TType.STOP:
14892
        break
14893
      if fid == 0:
14894
        if ftype == TType.DOUBLE:
14895
          self.success = iprot.readDouble();
14896
        else:
14897
          iprot.skip(ftype)
14898
      else:
14899
        iprot.skip(ftype)
14900
      iprot.readFieldEnd()
14901
    iprot.readStructEnd()
14902
 
14903
  def write(self, oprot):
14904
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14905
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14906
      return
14907
    oprot.writeStructBegin('getWanNlcForSource_result')
14908
    if self.success is not None:
14909
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
14910
      oprot.writeDouble(self.success)
14911
      oprot.writeFieldEnd()
14912
    oprot.writeFieldStop()
14913
    oprot.writeStructEnd()
14914
 
14915
  def validate(self):
14916
    return
14917
 
14918
 
14919
  def __repr__(self):
14920
    L = ['%s=%r' % (key, value)
14921
      for key, value in self.__dict__.iteritems()]
14922
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14923
 
14924
  def __eq__(self, other):
14925
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14926
 
14927
  def __ne__(self, other):
14928
    return not (self == other)
14929
 
14930
class getAllAvailableAmazonFbaItemInventory_args:
14931
 
14932
  thrift_spec = (
14933
  )
14934
 
14935
  def read(self, iprot):
14936
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14937
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14938
      return
14939
    iprot.readStructBegin()
14940
    while True:
14941
      (fname, ftype, fid) = iprot.readFieldBegin()
14942
      if ftype == TType.STOP:
14943
        break
14944
      else:
14945
        iprot.skip(ftype)
14946
      iprot.readFieldEnd()
14947
    iprot.readStructEnd()
14948
 
14949
  def write(self, oprot):
14950
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14951
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14952
      return
14953
    oprot.writeStructBegin('getAllAvailableAmazonFbaItemInventory_args')
14954
    oprot.writeFieldStop()
14955
    oprot.writeStructEnd()
14956
 
14957
  def validate(self):
14958
    return
14959
 
14960
 
14961
  def __repr__(self):
14962
    L = ['%s=%r' % (key, value)
14963
      for key, value in self.__dict__.iteritems()]
14964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14965
 
14966
  def __eq__(self, other):
14967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14968
 
14969
  def __ne__(self, other):
14970
    return not (self == other)
14971
 
14972
class getAllAvailableAmazonFbaItemInventory_result:
14973
  """
14974
  Attributes:
14975
   - success
14976
  """
14977
 
14978
  thrift_spec = (
14979
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
14980
  )
14981
 
14982
  def __init__(self, success=None,):
14983
    self.success = success
14984
 
14985
  def read(self, iprot):
14986
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14987
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14988
      return
14989
    iprot.readStructBegin()
14990
    while True:
14991
      (fname, ftype, fid) = iprot.readFieldBegin()
14992
      if ftype == TType.STOP:
14993
        break
14994
      if fid == 0:
14995
        if ftype == TType.LIST:
14996
          self.success = []
14997
          (_etype342, _size339) = iprot.readListBegin()
14998
          for _i343 in xrange(_size339):
14999
            _elem344 = AmazonFbaInventorySnapshot()
15000
            _elem344.read(iprot)
15001
            self.success.append(_elem344)
15002
          iprot.readListEnd()
15003
        else:
15004
          iprot.skip(ftype)
15005
      else:
15006
        iprot.skip(ftype)
15007
      iprot.readFieldEnd()
15008
    iprot.readStructEnd()
15009
 
15010
  def write(self, oprot):
15011
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15012
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15013
      return
15014
    oprot.writeStructBegin('getAllAvailableAmazonFbaItemInventory_result')
15015
    if self.success is not None:
15016
      oprot.writeFieldBegin('success', TType.LIST, 0)
15017
      oprot.writeListBegin(TType.STRUCT, len(self.success))
15018
      for iter345 in self.success:
15019
        iter345.write(oprot)
15020
      oprot.writeListEnd()
15021
      oprot.writeFieldEnd()
15022
    oprot.writeFieldStop()
15023
    oprot.writeStructEnd()
15024
 
15025
  def validate(self):
15026
    return
15027
 
15028
 
15029
  def __repr__(self):
15030
    L = ['%s=%r' % (key, value)
15031
      for key, value in self.__dict__.iteritems()]
15032
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15033
 
15034
  def __eq__(self, other):
15035
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15036
 
15037
  def __ne__(self, other):
15038
    return not (self == other)
17990 kshitij.so 15039
 
15040
class updateItemAvailabilityForItemIds_args:
15041
  """
15042
  Attributes:
15043
   - itemIds
15044
  """
15045
 
15046
  thrift_spec = (
15047
    None, # 0
15048
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
15049
  )
15050
 
15051
  def __init__(self, itemIds=None,):
15052
    self.itemIds = itemIds
15053
 
15054
  def read(self, iprot):
15055
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15056
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15057
      return
15058
    iprot.readStructBegin()
15059
    while True:
15060
      (fname, ftype, fid) = iprot.readFieldBegin()
15061
      if ftype == TType.STOP:
15062
        break
15063
      if fid == 1:
15064
        if ftype == TType.LIST:
15065
          self.itemIds = []
15066
          (_etype349, _size346) = iprot.readListBegin()
15067
          for _i350 in xrange(_size346):
15068
            _elem351 = iprot.readI64();
15069
            self.itemIds.append(_elem351)
15070
          iprot.readListEnd()
15071
        else:
15072
          iprot.skip(ftype)
15073
      else:
15074
        iprot.skip(ftype)
15075
      iprot.readFieldEnd()
15076
    iprot.readStructEnd()
15077
 
15078
  def write(self, oprot):
15079
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15080
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15081
      return
15082
    oprot.writeStructBegin('updateItemAvailabilityForItemIds_args')
15083
    if self.itemIds is not None:
15084
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
15085
      oprot.writeListBegin(TType.I64, len(self.itemIds))
15086
      for iter352 in self.itemIds:
15087
        oprot.writeI64(iter352)
15088
      oprot.writeListEnd()
15089
      oprot.writeFieldEnd()
15090
    oprot.writeFieldStop()
15091
    oprot.writeStructEnd()
15092
 
15093
  def validate(self):
15094
    return
15095
 
15096
 
15097
  def __repr__(self):
15098
    L = ['%s=%r' % (key, value)
15099
      for key, value in self.__dict__.iteritems()]
15100
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15101
 
15102
  def __eq__(self, other):
15103
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15104
 
15105
  def __ne__(self, other):
15106
    return not (self == other)
15107
 
15108
class updateItemAvailabilityForItemIds_result:
15109
  """
15110
  Attributes:
15111
   - success
15112
  """
15113
 
15114
  thrift_spec = (
15115
    (0, TType.BOOL, 'success', None, None, ), # 0
15116
  )
15117
 
15118
  def __init__(self, success=None,):
15119
    self.success = success
15120
 
15121
  def read(self, iprot):
15122
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15123
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15124
      return
15125
    iprot.readStructBegin()
15126
    while True:
15127
      (fname, ftype, fid) = iprot.readFieldBegin()
15128
      if ftype == TType.STOP:
15129
        break
15130
      if fid == 0:
15131
        if ftype == TType.BOOL:
15132
          self.success = iprot.readBool();
15133
        else:
15134
          iprot.skip(ftype)
15135
      else:
15136
        iprot.skip(ftype)
15137
      iprot.readFieldEnd()
15138
    iprot.readStructEnd()
15139
 
15140
  def write(self, oprot):
15141
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15142
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15143
      return
15144
    oprot.writeStructBegin('updateItemAvailabilityForItemIds_result')
15145
    if self.success is not None:
15146
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15147
      oprot.writeBool(self.success)
15148
      oprot.writeFieldEnd()
15149
    oprot.writeFieldStop()
15150
    oprot.writeStructEnd()
15151
 
15152
  def validate(self):
15153
    return
15154
 
15155
 
15156
  def __repr__(self):
15157
    L = ['%s=%r' % (key, value)
15158
      for key, value in self.__dict__.iteritems()]
15159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15160
 
15161
  def __eq__(self, other):
15162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15163
 
15164
  def __ne__(self, other):
15165
    return not (self == other)
19247 kshitij.so 15166
 
15167
class addVendorItemPricingInBulk_args:
15168
  """
15169
  Attributes:
15170
   - vendorItemPricingList
15171
  """
15172
 
15173
  thrift_spec = (
15174
    None, # 0
15175
    (1, TType.LIST, 'vendorItemPricingList', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 1
15176
  )
15177
 
15178
  def __init__(self, vendorItemPricingList=None,):
15179
    self.vendorItemPricingList = vendorItemPricingList
15180
 
15181
  def read(self, iprot):
15182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15184
      return
15185
    iprot.readStructBegin()
15186
    while True:
15187
      (fname, ftype, fid) = iprot.readFieldBegin()
15188
      if ftype == TType.STOP:
15189
        break
15190
      if fid == 1:
15191
        if ftype == TType.LIST:
15192
          self.vendorItemPricingList = []
15193
          (_etype356, _size353) = iprot.readListBegin()
15194
          for _i357 in xrange(_size353):
15195
            _elem358 = VendorItemPricing()
15196
            _elem358.read(iprot)
15197
            self.vendorItemPricingList.append(_elem358)
15198
          iprot.readListEnd()
15199
        else:
15200
          iprot.skip(ftype)
15201
      else:
15202
        iprot.skip(ftype)
15203
      iprot.readFieldEnd()
15204
    iprot.readStructEnd()
15205
 
15206
  def write(self, oprot):
15207
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15208
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15209
      return
15210
    oprot.writeStructBegin('addVendorItemPricingInBulk_args')
15211
    if self.vendorItemPricingList is not None:
15212
      oprot.writeFieldBegin('vendorItemPricingList', TType.LIST, 1)
15213
      oprot.writeListBegin(TType.STRUCT, len(self.vendorItemPricingList))
15214
      for iter359 in self.vendorItemPricingList:
15215
        iter359.write(oprot)
15216
      oprot.writeListEnd()
15217
      oprot.writeFieldEnd()
15218
    oprot.writeFieldStop()
15219
    oprot.writeStructEnd()
15220
 
15221
  def validate(self):
15222
    return
15223
 
15224
 
15225
  def __repr__(self):
15226
    L = ['%s=%r' % (key, value)
15227
      for key, value in self.__dict__.iteritems()]
15228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15229
 
15230
  def __eq__(self, other):
15231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15232
 
15233
  def __ne__(self, other):
15234
    return not (self == other)
15235
 
15236
class addVendorItemPricingInBulk_result:
15237
  """
15238
  Attributes:
15239
   - success
15240
  """
15241
 
15242
  thrift_spec = (
15243
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
15244
  )
15245
 
15246
  def __init__(self, success=None,):
15247
    self.success = success
15248
 
15249
  def read(self, iprot):
15250
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15251
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15252
      return
15253
    iprot.readStructBegin()
15254
    while True:
15255
      (fname, ftype, fid) = iprot.readFieldBegin()
15256
      if ftype == TType.STOP:
15257
        break
15258
      if fid == 0:
15259
        if ftype == TType.LIST:
15260
          self.success = []
15261
          (_etype363, _size360) = iprot.readListBegin()
15262
          for _i364 in xrange(_size360):
15263
            _elem365 = iprot.readI64();
15264
            self.success.append(_elem365)
15265
          iprot.readListEnd()
15266
        else:
15267
          iprot.skip(ftype)
15268
      else:
15269
        iprot.skip(ftype)
15270
      iprot.readFieldEnd()
15271
    iprot.readStructEnd()
15272
 
15273
  def write(self, oprot):
15274
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15275
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15276
      return
15277
    oprot.writeStructBegin('addVendorItemPricingInBulk_result')
15278
    if self.success is not None:
15279
      oprot.writeFieldBegin('success', TType.LIST, 0)
15280
      oprot.writeListBegin(TType.I64, len(self.success))
15281
      for iter366 in self.success:
15282
        oprot.writeI64(iter366)
15283
      oprot.writeListEnd()
15284
      oprot.writeFieldEnd()
15285
    oprot.writeFieldStop()
15286
    oprot.writeStructEnd()
15287
 
15288
  def validate(self):
15289
    return
15290
 
15291
 
15292
  def __repr__(self):
15293
    L = ['%s=%r' % (key, value)
15294
      for key, value in self.__dict__.iteritems()]
15295
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15296
 
15297
  def __eq__(self, other):
15298
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15299
 
15300
  def __ne__(self, other):
15301
    return not (self == other)
15302
 
15303
class addInventoryInBulk_args:
15304
  """
15305
  Attributes:
15306
   - bulkInventoryList
15307
  """
15308
 
15309
  thrift_spec = (
15310
    None, # 0
15311
    (1, TType.LIST, 'bulkInventoryList', (TType.STRUCT,(BulkAddInventory, BulkAddInventory.thrift_spec)), None, ), # 1
15312
  )
15313
 
15314
  def __init__(self, bulkInventoryList=None,):
15315
    self.bulkInventoryList = bulkInventoryList
15316
 
15317
  def read(self, iprot):
15318
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15319
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15320
      return
15321
    iprot.readStructBegin()
15322
    while True:
15323
      (fname, ftype, fid) = iprot.readFieldBegin()
15324
      if ftype == TType.STOP:
15325
        break
15326
      if fid == 1:
15327
        if ftype == TType.LIST:
15328
          self.bulkInventoryList = []
15329
          (_etype370, _size367) = iprot.readListBegin()
15330
          for _i371 in xrange(_size367):
15331
            _elem372 = BulkAddInventory()
15332
            _elem372.read(iprot)
15333
            self.bulkInventoryList.append(_elem372)
15334
          iprot.readListEnd()
15335
        else:
15336
          iprot.skip(ftype)
15337
      else:
15338
        iprot.skip(ftype)
15339
      iprot.readFieldEnd()
15340
    iprot.readStructEnd()
15341
 
15342
  def write(self, oprot):
15343
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15344
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15345
      return
15346
    oprot.writeStructBegin('addInventoryInBulk_args')
15347
    if self.bulkInventoryList is not None:
15348
      oprot.writeFieldBegin('bulkInventoryList', TType.LIST, 1)
15349
      oprot.writeListBegin(TType.STRUCT, len(self.bulkInventoryList))
15350
      for iter373 in self.bulkInventoryList:
15351
        iter373.write(oprot)
15352
      oprot.writeListEnd()
15353
      oprot.writeFieldEnd()
15354
    oprot.writeFieldStop()
15355
    oprot.writeStructEnd()
15356
 
15357
  def validate(self):
15358
    return
15359
 
15360
 
15361
  def __repr__(self):
15362
    L = ['%s=%r' % (key, value)
15363
      for key, value in self.__dict__.iteritems()]
15364
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15365
 
15366
  def __eq__(self, other):
15367
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15368
 
15369
  def __ne__(self, other):
15370
    return not (self == other)
15371
 
15372
class addInventoryInBulk_result:
15373
  """
15374
  Attributes:
15375
   - cex
15376
  """
15377
 
15378
  thrift_spec = (
15379
    None, # 0
15380
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
15381
  )
15382
 
15383
  def __init__(self, cex=None,):
15384
    self.cex = cex
15385
 
15386
  def read(self, iprot):
15387
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15388
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15389
      return
15390
    iprot.readStructBegin()
15391
    while True:
15392
      (fname, ftype, fid) = iprot.readFieldBegin()
15393
      if ftype == TType.STOP:
15394
        break
15395
      if fid == 1:
15396
        if ftype == TType.STRUCT:
15397
          self.cex = InventoryServiceException()
15398
          self.cex.read(iprot)
15399
        else:
15400
          iprot.skip(ftype)
15401
      else:
15402
        iprot.skip(ftype)
15403
      iprot.readFieldEnd()
15404
    iprot.readStructEnd()
15405
 
15406
  def write(self, oprot):
15407
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15408
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15409
      return
15410
    oprot.writeStructBegin('addInventoryInBulk_result')
15411
    if self.cex is not None:
15412
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
15413
      self.cex.write(oprot)
15414
      oprot.writeFieldEnd()
15415
    oprot.writeFieldStop()
15416
    oprot.writeStructEnd()
15417
 
15418
  def validate(self):
15419
    return
15420
 
15421
 
15422
  def __repr__(self):
15423
    L = ['%s=%r' % (key, value)
15424
      for key, value in self.__dict__.iteritems()]
15425
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15426
 
15427
  def __eq__(self, other):
15428
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15429
 
15430
  def __ne__(self, other):
15431
    return not (self == other)
19413 amit.gupta 15432
 
22717 amit.gupta 15433
class getFofoAvailability_args:
15434
  """
15435
  Attributes:
15436
   - itemIds
15437
  """
15438
 
15439
  thrift_spec = (
15440
    None, # 0
15441
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
15442
  )
15443
 
15444
  def __init__(self, itemIds=None,):
15445
    self.itemIds = itemIds
15446
 
15447
  def read(self, iprot):
15448
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15449
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15450
      return
15451
    iprot.readStructBegin()
15452
    while True:
15453
      (fname, ftype, fid) = iprot.readFieldBegin()
15454
      if ftype == TType.STOP:
15455
        break
15456
      if fid == 1:
15457
        if ftype == TType.LIST:
15458
          self.itemIds = []
15459
          (_etype377, _size374) = iprot.readListBegin()
15460
          for _i378 in xrange(_size374):
15461
            _elem379 = iprot.readI64();
15462
            self.itemIds.append(_elem379)
15463
          iprot.readListEnd()
15464
        else:
15465
          iprot.skip(ftype)
15466
      else:
15467
        iprot.skip(ftype)
15468
      iprot.readFieldEnd()
15469
    iprot.readStructEnd()
15470
 
15471
  def write(self, oprot):
15472
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15473
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15474
      return
15475
    oprot.writeStructBegin('getFofoAvailability_args')
15476
    if self.itemIds is not None:
15477
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
15478
      oprot.writeListBegin(TType.I64, len(self.itemIds))
15479
      for iter380 in self.itemIds:
15480
        oprot.writeI64(iter380)
15481
      oprot.writeListEnd()
15482
      oprot.writeFieldEnd()
15483
    oprot.writeFieldStop()
15484
    oprot.writeStructEnd()
15485
 
15486
  def validate(self):
15487
    return
15488
 
15489
 
15490
  def __repr__(self):
15491
    L = ['%s=%r' % (key, value)
15492
      for key, value in self.__dict__.iteritems()]
15493
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15494
 
15495
  def __eq__(self, other):
15496
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15497
 
15498
  def __ne__(self, other):
15499
    return not (self == other)
15500
 
15501
class getFofoAvailability_result:
15502
  """
15503
  Attributes:
15504
   - success
15505
  """
15506
 
15507
  thrift_spec = (
15508
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
15509
  )
15510
 
15511
  def __init__(self, success=None,):
15512
    self.success = success
15513
 
15514
  def read(self, iprot):
15515
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15516
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15517
      return
15518
    iprot.readStructBegin()
15519
    while True:
15520
      (fname, ftype, fid) = iprot.readFieldBegin()
15521
      if ftype == TType.STOP:
15522
        break
15523
      if fid == 0:
15524
        if ftype == TType.MAP:
15525
          self.success = {}
15526
          (_ktype382, _vtype383, _size381 ) = iprot.readMapBegin() 
15527
          for _i385 in xrange(_size381):
15528
            _key386 = iprot.readI64();
15529
            _val387 = iprot.readI64();
15530
            self.success[_key386] = _val387
15531
          iprot.readMapEnd()
15532
        else:
15533
          iprot.skip(ftype)
15534
      else:
15535
        iprot.skip(ftype)
15536
      iprot.readFieldEnd()
15537
    iprot.readStructEnd()
15538
 
15539
  def write(self, oprot):
15540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15542
      return
15543
    oprot.writeStructBegin('getFofoAvailability_result')
15544
    if self.success is not None:
15545
      oprot.writeFieldBegin('success', TType.MAP, 0)
15546
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
15547
      for kiter388,viter389 in self.success.items():
15548
        oprot.writeI64(kiter388)
15549
        oprot.writeI64(viter389)
15550
      oprot.writeMapEnd()
15551
      oprot.writeFieldEnd()
15552
    oprot.writeFieldStop()
15553
    oprot.writeStructEnd()
15554
 
15555
  def validate(self):
15556
    return
15557
 
15558
 
15559
  def __repr__(self):
15560
    L = ['%s=%r' % (key, value)
15561
      for key, value in self.__dict__.iteritems()]
15562
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15563
 
15564
  def __eq__(self, other):
15565
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15566
 
15567
  def __ne__(self, other):
15568
    return not (self == other)
15569
 
22721 amit.gupta 15570
class getFofoFulFillmentWarehouseMap_args:
15571
  """
15572
  Attributes:
15573
   - itemIds
15574
  """
15575
 
15576
  thrift_spec = (
15577
    None, # 0
15578
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
15579
  )
15580
 
15581
  def __init__(self, itemIds=None,):
15582
    self.itemIds = itemIds
15583
 
15584
  def read(self, iprot):
15585
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15586
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15587
      return
15588
    iprot.readStructBegin()
15589
    while True:
15590
      (fname, ftype, fid) = iprot.readFieldBegin()
15591
      if ftype == TType.STOP:
15592
        break
15593
      if fid == 1:
15594
        if ftype == TType.LIST:
15595
          self.itemIds = []
15596
          (_etype393, _size390) = iprot.readListBegin()
15597
          for _i394 in xrange(_size390):
15598
            _elem395 = iprot.readI64();
15599
            self.itemIds.append(_elem395)
15600
          iprot.readListEnd()
15601
        else:
15602
          iprot.skip(ftype)
15603
      else:
15604
        iprot.skip(ftype)
15605
      iprot.readFieldEnd()
15606
    iprot.readStructEnd()
15607
 
15608
  def write(self, oprot):
15609
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15610
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15611
      return
15612
    oprot.writeStructBegin('getFofoFulFillmentWarehouseMap_args')
15613
    if self.itemIds is not None:
15614
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
15615
      oprot.writeListBegin(TType.I64, len(self.itemIds))
15616
      for iter396 in self.itemIds:
15617
        oprot.writeI64(iter396)
15618
      oprot.writeListEnd()
15619
      oprot.writeFieldEnd()
15620
    oprot.writeFieldStop()
15621
    oprot.writeStructEnd()
15622
 
15623
  def validate(self):
15624
    return
15625
 
15626
 
15627
  def __repr__(self):
15628
    L = ['%s=%r' % (key, value)
15629
      for key, value in self.__dict__.iteritems()]
15630
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15631
 
15632
  def __eq__(self, other):
15633
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15634
 
15635
  def __ne__(self, other):
15636
    return not (self == other)
15637
 
15638
class getFofoFulFillmentWarehouseMap_result:
15639
  """
15640
  Attributes:
15641
   - success
15642
  """
15643
 
15644
  thrift_spec = (
15645
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
15646
  )
15647
 
15648
  def __init__(self, success=None,):
15649
    self.success = success
15650
 
15651
  def read(self, iprot):
15652
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15653
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15654
      return
15655
    iprot.readStructBegin()
15656
    while True:
15657
      (fname, ftype, fid) = iprot.readFieldBegin()
15658
      if ftype == TType.STOP:
15659
        break
15660
      if fid == 0:
15661
        if ftype == TType.MAP:
15662
          self.success = {}
15663
          (_ktype398, _vtype399, _size397 ) = iprot.readMapBegin() 
15664
          for _i401 in xrange(_size397):
15665
            _key402 = iprot.readI64();
15666
            _val403 = Warehouse()
15667
            _val403.read(iprot)
15668
            self.success[_key402] = _val403
15669
          iprot.readMapEnd()
15670
        else:
15671
          iprot.skip(ftype)
15672
      else:
15673
        iprot.skip(ftype)
15674
      iprot.readFieldEnd()
15675
    iprot.readStructEnd()
15676
 
15677
  def write(self, oprot):
15678
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15679
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15680
      return
15681
    oprot.writeStructBegin('getFofoFulFillmentWarehouseMap_result')
15682
    if self.success is not None:
15683
      oprot.writeFieldBegin('success', TType.MAP, 0)
15684
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
15685
      for kiter404,viter405 in self.success.items():
15686
        oprot.writeI64(kiter404)
15687
        viter405.write(oprot)
15688
      oprot.writeMapEnd()
15689
      oprot.writeFieldEnd()
15690
    oprot.writeFieldStop()
15691
    oprot.writeStructEnd()
15692
 
15693
  def validate(self):
15694
    return
15695
 
15696
 
15697
  def __repr__(self):
15698
    L = ['%s=%r' % (key, value)
15699
      for key, value in self.__dict__.iteritems()]
15700
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15701
 
15702
  def __eq__(self, other):
15703
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15704
 
15705
  def __ne__(self, other):
15706
    return not (self == other)
15707
 
19413 amit.gupta 15708
class getItemLocationAvailabilityCache_args:
15709
  """
15710
  Attributes:
15711
   - itemLocations
15712
  """
15713
 
15714
  thrift_spec = (
15715
    None, # 0
15716
    (1, TType.LIST, 'itemLocations', (TType.STRUCT,(ItemLocationAvailability, ItemLocationAvailability.thrift_spec)), None, ), # 1
15717
  )
15718
 
15719
  def __init__(self, itemLocations=None,):
15720
    self.itemLocations = itemLocations
15721
 
15722
  def read(self, iprot):
15723
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15724
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15725
      return
15726
    iprot.readStructBegin()
15727
    while True:
15728
      (fname, ftype, fid) = iprot.readFieldBegin()
15729
      if ftype == TType.STOP:
15730
        break
15731
      if fid == 1:
15732
        if ftype == TType.LIST:
15733
          self.itemLocations = []
22721 amit.gupta 15734
          (_etype409, _size406) = iprot.readListBegin()
15735
          for _i410 in xrange(_size406):
15736
            _elem411 = ItemLocationAvailability()
15737
            _elem411.read(iprot)
15738
            self.itemLocations.append(_elem411)
19413 amit.gupta 15739
          iprot.readListEnd()
15740
        else:
15741
          iprot.skip(ftype)
15742
      else:
15743
        iprot.skip(ftype)
15744
      iprot.readFieldEnd()
15745
    iprot.readStructEnd()
15746
 
15747
  def write(self, oprot):
15748
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15749
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15750
      return
15751
    oprot.writeStructBegin('getItemLocationAvailabilityCache_args')
15752
    if self.itemLocations is not None:
15753
      oprot.writeFieldBegin('itemLocations', TType.LIST, 1)
15754
      oprot.writeListBegin(TType.STRUCT, len(self.itemLocations))
22721 amit.gupta 15755
      for iter412 in self.itemLocations:
15756
        iter412.write(oprot)
19413 amit.gupta 15757
      oprot.writeListEnd()
15758
      oprot.writeFieldEnd()
15759
    oprot.writeFieldStop()
15760
    oprot.writeStructEnd()
15761
 
15762
  def validate(self):
15763
    return
15764
 
15765
 
15766
  def __repr__(self):
15767
    L = ['%s=%r' % (key, value)
15768
      for key, value in self.__dict__.iteritems()]
15769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15770
 
15771
  def __eq__(self, other):
15772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15773
 
15774
  def __ne__(self, other):
15775
    return not (self == other)
15776
 
15777
class getItemLocationAvailabilityCache_result:
15778
  """
15779
  Attributes:
15780
   - success
15781
  """
15782
 
15783
  thrift_spec = (
15784
    (0, TType.LIST, 'success', (TType.STRUCT,(ItemLocationAvailability, ItemLocationAvailability.thrift_spec)), None, ), # 0
15785
  )
15786
 
15787
  def __init__(self, success=None,):
15788
    self.success = success
15789
 
15790
  def read(self, iprot):
15791
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15792
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15793
      return
15794
    iprot.readStructBegin()
15795
    while True:
15796
      (fname, ftype, fid) = iprot.readFieldBegin()
15797
      if ftype == TType.STOP:
15798
        break
15799
      if fid == 0:
15800
        if ftype == TType.LIST:
15801
          self.success = []
22721 amit.gupta 15802
          (_etype416, _size413) = iprot.readListBegin()
15803
          for _i417 in xrange(_size413):
15804
            _elem418 = ItemLocationAvailability()
15805
            _elem418.read(iprot)
15806
            self.success.append(_elem418)
19413 amit.gupta 15807
          iprot.readListEnd()
15808
        else:
15809
          iprot.skip(ftype)
15810
      else:
15811
        iprot.skip(ftype)
15812
      iprot.readFieldEnd()
15813
    iprot.readStructEnd()
15814
 
15815
  def write(self, oprot):
15816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15818
      return
15819
    oprot.writeStructBegin('getItemLocationAvailabilityCache_result')
15820
    if self.success is not None:
15821
      oprot.writeFieldBegin('success', TType.LIST, 0)
15822
      oprot.writeListBegin(TType.STRUCT, len(self.success))
22721 amit.gupta 15823
      for iter419 in self.success:
15824
        iter419.write(oprot)
19413 amit.gupta 15825
      oprot.writeListEnd()
15826
      oprot.writeFieldEnd()
15827
    oprot.writeFieldStop()
15828
    oprot.writeStructEnd()
15829
 
15830
  def validate(self):
15831
    return
15832
 
15833
 
15834
  def __repr__(self):
15835
    L = ['%s=%r' % (key, value)
15836
      for key, value in self.__dict__.iteritems()]
15837
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15838
 
15839
  def __eq__(self, other):
15840
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15841
 
15842
  def __ne__(self, other):
15843
    return not (self == other)
15844
 
15845
class getItemLocationAvailabilityCacheByItemId_args:
15846
  """
15847
  Attributes:
15848
   - itemIds
15849
  """
15850
 
15851
  thrift_spec = (
15852
    None, # 0
15853
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
15854
  )
15855
 
15856
  def __init__(self, itemIds=None,):
15857
    self.itemIds = itemIds
15858
 
15859
  def read(self, iprot):
15860
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15861
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15862
      return
15863
    iprot.readStructBegin()
15864
    while True:
15865
      (fname, ftype, fid) = iprot.readFieldBegin()
15866
      if ftype == TType.STOP:
15867
        break
15868
      if fid == 1:
15869
        if ftype == TType.LIST:
15870
          self.itemIds = []
22721 amit.gupta 15871
          (_etype423, _size420) = iprot.readListBegin()
15872
          for _i424 in xrange(_size420):
15873
            _elem425 = iprot.readI64();
15874
            self.itemIds.append(_elem425)
19413 amit.gupta 15875
          iprot.readListEnd()
15876
        else:
15877
          iprot.skip(ftype)
15878
      else:
15879
        iprot.skip(ftype)
15880
      iprot.readFieldEnd()
15881
    iprot.readStructEnd()
15882
 
15883
  def write(self, oprot):
15884
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15885
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15886
      return
15887
    oprot.writeStructBegin('getItemLocationAvailabilityCacheByItemId_args')
15888
    if self.itemIds is not None:
15889
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
15890
      oprot.writeListBegin(TType.I64, len(self.itemIds))
22721 amit.gupta 15891
      for iter426 in self.itemIds:
15892
        oprot.writeI64(iter426)
19413 amit.gupta 15893
      oprot.writeListEnd()
15894
      oprot.writeFieldEnd()
15895
    oprot.writeFieldStop()
15896
    oprot.writeStructEnd()
15897
 
15898
  def validate(self):
15899
    return
15900
 
15901
 
15902
  def __repr__(self):
15903
    L = ['%s=%r' % (key, value)
15904
      for key, value in self.__dict__.iteritems()]
15905
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15906
 
15907
  def __eq__(self, other):
15908
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15909
 
15910
  def __ne__(self, other):
15911
    return not (self == other)
15912
 
15913
class getItemLocationAvailabilityCacheByItemId_result:
15914
  """
15915
  Attributes:
15916
   - success
15917
  """
15918
 
15919
  thrift_spec = (
15920
    (0, TType.LIST, 'success', (TType.STRUCT,(ItemLocationAvailability, ItemLocationAvailability.thrift_spec)), None, ), # 0
15921
  )
15922
 
15923
  def __init__(self, success=None,):
15924
    self.success = success
15925
 
15926
  def read(self, iprot):
15927
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15928
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15929
      return
15930
    iprot.readStructBegin()
15931
    while True:
15932
      (fname, ftype, fid) = iprot.readFieldBegin()
15933
      if ftype == TType.STOP:
15934
        break
15935
      if fid == 0:
15936
        if ftype == TType.LIST:
15937
          self.success = []
22721 amit.gupta 15938
          (_etype430, _size427) = iprot.readListBegin()
15939
          for _i431 in xrange(_size427):
15940
            _elem432 = ItemLocationAvailability()
15941
            _elem432.read(iprot)
15942
            self.success.append(_elem432)
19413 amit.gupta 15943
          iprot.readListEnd()
15944
        else:
15945
          iprot.skip(ftype)
15946
      else:
15947
        iprot.skip(ftype)
15948
      iprot.readFieldEnd()
15949
    iprot.readStructEnd()
15950
 
15951
  def write(self, oprot):
15952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15954
      return
15955
    oprot.writeStructBegin('getItemLocationAvailabilityCacheByItemId_result')
15956
    if self.success is not None:
15957
      oprot.writeFieldBegin('success', TType.LIST, 0)
15958
      oprot.writeListBegin(TType.STRUCT, len(self.success))
22721 amit.gupta 15959
      for iter433 in self.success:
15960
        iter433.write(oprot)
19413 amit.gupta 15961
      oprot.writeListEnd()
15962
      oprot.writeFieldEnd()
15963
    oprot.writeFieldStop()
15964
    oprot.writeStructEnd()
15965
 
15966
  def validate(self):
15967
    return
15968
 
15969
 
15970
  def __repr__(self):
15971
    L = ['%s=%r' % (key, value)
15972
      for key, value in self.__dict__.iteritems()]
15973
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15974
 
15975
  def __eq__(self, other):
15976
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15977
 
15978
  def __ne__(self, other):
15979
    return not (self == other)
15980
 
15981
class getItemPincodeAvailability_args:
15982
  """
15983
  Attributes:
19416 amit.gupta 15984
   - itempricing
19413 amit.gupta 15985
   - pincode
15986
  """
15987
 
15988
  thrift_spec = (
15989
    None, # 0
19416 amit.gupta 15990
    (1, TType.MAP, 'itempricing', (TType.I64,None,TType.I64,None), None, ), # 1
19413 amit.gupta 15991
    (2, TType.STRING, 'pincode', None, None, ), # 2
15992
  )
15993
 
19416 amit.gupta 15994
  def __init__(self, itempricing=None, pincode=None,):
15995
    self.itempricing = itempricing
19413 amit.gupta 15996
    self.pincode = pincode
15997
 
15998
  def read(self, iprot):
15999
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16000
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16001
      return
16002
    iprot.readStructBegin()
16003
    while True:
16004
      (fname, ftype, fid) = iprot.readFieldBegin()
16005
      if ftype == TType.STOP:
16006
        break
16007
      if fid == 1:
19416 amit.gupta 16008
        if ftype == TType.MAP:
16009
          self.itempricing = {}
22721 amit.gupta 16010
          (_ktype435, _vtype436, _size434 ) = iprot.readMapBegin() 
16011
          for _i438 in xrange(_size434):
16012
            _key439 = iprot.readI64();
16013
            _val440 = iprot.readI64();
16014
            self.itempricing[_key439] = _val440
19416 amit.gupta 16015
          iprot.readMapEnd()
19413 amit.gupta 16016
        else:
16017
          iprot.skip(ftype)
16018
      elif fid == 2:
16019
        if ftype == TType.STRING:
16020
          self.pincode = iprot.readString();
16021
        else:
16022
          iprot.skip(ftype)
16023
      else:
16024
        iprot.skip(ftype)
16025
      iprot.readFieldEnd()
16026
    iprot.readStructEnd()
16027
 
16028
  def write(self, oprot):
16029
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16030
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16031
      return
16032
    oprot.writeStructBegin('getItemPincodeAvailability_args')
19416 amit.gupta 16033
    if self.itempricing is not None:
16034
      oprot.writeFieldBegin('itempricing', TType.MAP, 1)
16035
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.itempricing))
22721 amit.gupta 16036
      for kiter441,viter442 in self.itempricing.items():
16037
        oprot.writeI64(kiter441)
16038
        oprot.writeI64(viter442)
19416 amit.gupta 16039
      oprot.writeMapEnd()
19413 amit.gupta 16040
      oprot.writeFieldEnd()
16041
    if self.pincode is not None:
16042
      oprot.writeFieldBegin('pincode', TType.STRING, 2)
16043
      oprot.writeString(self.pincode)
16044
      oprot.writeFieldEnd()
16045
    oprot.writeFieldStop()
16046
    oprot.writeStructEnd()
16047
 
16048
  def validate(self):
16049
    return
16050
 
16051
 
16052
  def __repr__(self):
16053
    L = ['%s=%r' % (key, value)
16054
      for key, value in self.__dict__.iteritems()]
16055
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16056
 
16057
  def __eq__(self, other):
16058
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16059
 
16060
  def __ne__(self, other):
16061
    return not (self == other)
16062
 
16063
class getItemPincodeAvailability_result:
16064
  """
16065
  Attributes:
16066
   - success
16067
  """
16068
 
16069
  thrift_spec = (
16070
    (0, TType.STRING, 'success', None, None, ), # 0
16071
  )
16072
 
16073
  def __init__(self, success=None,):
16074
    self.success = success
16075
 
16076
  def read(self, iprot):
16077
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16078
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16079
      return
16080
    iprot.readStructBegin()
16081
    while True:
16082
      (fname, ftype, fid) = iprot.readFieldBegin()
16083
      if ftype == TType.STOP:
16084
        break
16085
      if fid == 0:
16086
        if ftype == TType.STRING:
16087
          self.success = iprot.readString();
16088
        else:
16089
          iprot.skip(ftype)
16090
      else:
16091
        iprot.skip(ftype)
16092
      iprot.readFieldEnd()
16093
    iprot.readStructEnd()
16094
 
16095
  def write(self, oprot):
16096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16098
      return
16099
    oprot.writeStructBegin('getItemPincodeAvailability_result')
16100
    if self.success is not None:
16101
      oprot.writeFieldBegin('success', TType.STRING, 0)
16102
      oprot.writeString(self.success)
16103
      oprot.writeFieldEnd()
16104
    oprot.writeFieldStop()
16105
    oprot.writeStructEnd()
16106
 
16107
  def validate(self):
16108
    return
16109
 
16110
 
16111
  def __repr__(self):
16112
    L = ['%s=%r' % (key, value)
16113
      for key, value in self.__dict__.iteritems()]
16114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16115
 
16116
  def __eq__(self, other):
16117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16118
 
16119
  def __ne__(self, other):
16120
    return not (self == other)