Subversion Repositories SmartDukaan

Rev

Rev 11173 | Rev 12363 | 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
 
660
 
5944 mandeep.dh 661
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
662
  def __init__(self, iprot, oprot=None):
663
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
664
 
665
  def addWarehouse(self, warehouse):
666
    """
667
    Parameters:
668
     - warehouse
669
    """
670
    self.send_addWarehouse(warehouse)
671
    return self.recv_addWarehouse()
672
 
673
  def send_addWarehouse(self, warehouse):
674
    self._oprot.writeMessageBegin('addWarehouse', TMessageType.CALL, self._seqid)
675
    args = addWarehouse_args()
676
    args.warehouse = warehouse
677
    args.write(self._oprot)
678
    self._oprot.writeMessageEnd()
679
    self._oprot.trans.flush()
680
 
681
  def recv_addWarehouse(self, ):
682
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
683
    if mtype == TMessageType.EXCEPTION:
684
      x = TApplicationException()
685
      x.read(self._iprot)
686
      self._iprot.readMessageEnd()
687
      raise x
688
    result = addWarehouse_result()
689
    result.read(self._iprot)
690
    self._iprot.readMessageEnd()
691
    if result.success is not None:
692
      return result.success
693
    if result.cex is not None:
694
      raise result.cex
695
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
696
 
697
  def addVendor(self, vendor):
698
    """
699
    add a new vendor
700
 
701
    Parameters:
702
     - vendor
703
    """
704
    self.send_addVendor(vendor)
705
    return self.recv_addVendor()
706
 
707
  def send_addVendor(self, vendor):
708
    self._oprot.writeMessageBegin('addVendor', TMessageType.CALL, self._seqid)
709
    args = addVendor_args()
710
    args.vendor = vendor
711
    args.write(self._oprot)
712
    self._oprot.writeMessageEnd()
713
    self._oprot.trans.flush()
714
 
715
  def recv_addVendor(self, ):
716
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
717
    if mtype == TMessageType.EXCEPTION:
718
      x = TApplicationException()
719
      x.read(self._iprot)
720
      self._iprot.readMessageEnd()
721
      raise x
722
    result = addVendor_result()
723
    result.read(self._iprot)
724
    self._iprot.readMessageEnd()
725
    if result.success is not None:
726
      return result.success
727
    if result.cex is not None:
728
      raise result.cex
729
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
730
 
731
  def updateInventoryHistory(self, warehouse_id, timestamp, availability):
732
    """
733
    Stores the incremental warehouse updates of items.
734
 
735
    Parameters:
736
     - warehouse_id
737
     - timestamp
738
     - availability
739
    """
740
    self.send_updateInventoryHistory(warehouse_id, timestamp, availability)
741
    self.recv_updateInventoryHistory()
742
 
743
  def send_updateInventoryHistory(self, warehouse_id, timestamp, availability):
744
    self._oprot.writeMessageBegin('updateInventoryHistory', TMessageType.CALL, self._seqid)
745
    args = updateInventoryHistory_args()
746
    args.warehouse_id = warehouse_id
747
    args.timestamp = timestamp
748
    args.availability = availability
749
    args.write(self._oprot)
750
    self._oprot.writeMessageEnd()
751
    self._oprot.trans.flush()
752
 
753
  def recv_updateInventoryHistory(self, ):
754
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
755
    if mtype == TMessageType.EXCEPTION:
756
      x = TApplicationException()
757
      x.read(self._iprot)
758
      self._iprot.readMessageEnd()
759
      raise x
760
    result = updateInventoryHistory_result()
761
    result.read(self._iprot)
762
    self._iprot.readMessageEnd()
763
    if result.cex is not None:
764
      raise result.cex
765
    return
766
 
767
  def updateInventory(self, warehouse_id, timestamp, availability):
768
    """
769
    Stores the final inventory stocks of items.
770
 
771
    Parameters:
772
     - warehouse_id
773
     - timestamp
774
     - availability
775
    """
776
    self.send_updateInventory(warehouse_id, timestamp, availability)
777
    self.recv_updateInventory()
778
 
779
  def send_updateInventory(self, warehouse_id, timestamp, availability):
780
    self._oprot.writeMessageBegin('updateInventory', TMessageType.CALL, self._seqid)
781
    args = updateInventory_args()
782
    args.warehouse_id = warehouse_id
783
    args.timestamp = timestamp
784
    args.availability = availability
785
    args.write(self._oprot)
786
    self._oprot.writeMessageEnd()
787
    self._oprot.trans.flush()
788
 
789
  def recv_updateInventory(self, ):
790
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
791
    if mtype == TMessageType.EXCEPTION:
792
      x = TApplicationException()
793
      x.read(self._iprot)
794
      self._iprot.readMessageEnd()
795
      raise x
796
    result = updateInventory_result()
797
    result.read(self._iprot)
798
    self._iprot.readMessageEnd()
799
    if result.cex is not None:
800
      raise result.cex
801
    return
802
 
803
  def addInventory(self, itemId, warehouseId, quantity):
804
    """
805
    Add the inventory to existing stock.
806
 
807
    Parameters:
808
     - itemId
809
     - warehouseId
810
     - quantity
811
    """
812
    self.send_addInventory(itemId, warehouseId, quantity)
813
    self.recv_addInventory()
814
 
815
  def send_addInventory(self, itemId, warehouseId, quantity):
816
    self._oprot.writeMessageBegin('addInventory', TMessageType.CALL, self._seqid)
817
    args = addInventory_args()
818
    args.itemId = itemId
819
    args.warehouseId = warehouseId
820
    args.quantity = quantity
821
    args.write(self._oprot)
822
    self._oprot.writeMessageEnd()
823
    self._oprot.trans.flush()
824
 
825
  def recv_addInventory(self, ):
826
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
827
    if mtype == TMessageType.EXCEPTION:
828
      x = TApplicationException()
829
      x.read(self._iprot)
830
      self._iprot.readMessageEnd()
831
      raise x
832
    result = addInventory_result()
833
    result.read(self._iprot)
834
    self._iprot.readMessageEnd()
835
    if result.cex is not None:
836
      raise result.cex
837
    return
838
 
839
  def retireWarehouse(self, warehouse_id):
840
    """
841
    Parameters:
842
     - warehouse_id
843
    """
844
    self.send_retireWarehouse(warehouse_id)
845
    self.recv_retireWarehouse()
846
 
847
  def send_retireWarehouse(self, warehouse_id):
848
    self._oprot.writeMessageBegin('retireWarehouse', TMessageType.CALL, self._seqid)
849
    args = retireWarehouse_args()
850
    args.warehouse_id = warehouse_id
851
    args.write(self._oprot)
852
    self._oprot.writeMessageEnd()
853
    self._oprot.trans.flush()
854
 
855
  def recv_retireWarehouse(self, ):
856
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
857
    if mtype == TMessageType.EXCEPTION:
858
      x = TApplicationException()
859
      x.read(self._iprot)
860
      self._iprot.readMessageEnd()
861
      raise x
862
    result = retireWarehouse_result()
863
    result.read(self._iprot)
864
    self._iprot.readMessageEnd()
865
    if result.cex is not None:
866
      raise result.cex
867
    return
868
 
869
  def getItemInventoryByItemId(self, item_id):
870
    """
871
    Parameters:
872
     - item_id
873
    """
874
    self.send_getItemInventoryByItemId(item_id)
875
    return self.recv_getItemInventoryByItemId()
876
 
877
  def send_getItemInventoryByItemId(self, item_id):
878
    self._oprot.writeMessageBegin('getItemInventoryByItemId', TMessageType.CALL, self._seqid)
879
    args = getItemInventoryByItemId_args()
880
    args.item_id = item_id
881
    args.write(self._oprot)
882
    self._oprot.writeMessageEnd()
883
    self._oprot.trans.flush()
884
 
885
  def recv_getItemInventoryByItemId(self, ):
886
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
887
    if mtype == TMessageType.EXCEPTION:
888
      x = TApplicationException()
889
      x.read(self._iprot)
890
      self._iprot.readMessageEnd()
891
      raise x
892
    result = getItemInventoryByItemId_result()
893
    result.read(self._iprot)
894
    self._iprot.readMessageEnd()
895
    if result.success is not None:
896
      return result.success
897
    if result.cex is not None:
898
      raise result.cex
899
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
900
 
901
  def getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
902
    """
903
    Parameters:
904
     - warehouse_id
905
     - item_id
906
    """
907
    self.send_getItemAvailibilityAtWarehouse(warehouse_id, item_id)
908
    return self.recv_getItemAvailibilityAtWarehouse()
909
 
910
  def send_getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
911
    self._oprot.writeMessageBegin('getItemAvailibilityAtWarehouse', TMessageType.CALL, self._seqid)
912
    args = getItemAvailibilityAtWarehouse_args()
913
    args.warehouse_id = warehouse_id
914
    args.item_id = item_id
915
    args.write(self._oprot)
916
    self._oprot.writeMessageEnd()
917
    self._oprot.trans.flush()
918
 
919
  def recv_getItemAvailibilityAtWarehouse(self, ):
920
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
921
    if mtype == TMessageType.EXCEPTION:
922
      x = TApplicationException()
923
      x.read(self._iprot)
924
      self._iprot.readMessageEnd()
925
      raise x
926
    result = getItemAvailibilityAtWarehouse_result()
927
    result.read(self._iprot)
928
    self._iprot.readMessageEnd()
929
    if result.success is not None:
930
      return result.success
931
    if result.cex is not None:
932
      raise result.cex
933
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
934
 
5978 rajveer 935
  def getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 936
    """
937
    Determines the warehouse that should be used to fulfil an order for the given item.
938
    It first checks all the warehouses which are in the logistics location given by the
939
    warehouse_loc parameter. If none of the warehouses there have any inventory, then the
940
    preferred warehouse for the item is used.
941
 
942
    Returns an ordered list of size 4 with following elements in the given order:
943
    1. Id of the fulfillment warehouse which was finally picked up.
944
    2. Expected delay added by the category manager.
945
    3. Id of the billing warehouse which was finally picked up.
946
 
947
    Parameters:
948
     - itemId
5978 rajveer 949
     - sourceId
5944 mandeep.dh 950
    """
5978 rajveer 951
    self.send_getItemAvailabilityAtLocation(itemId, sourceId)
5944 mandeep.dh 952
    return self.recv_getItemAvailabilityAtLocation()
953
 
5978 rajveer 954
  def send_getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 955
    self._oprot.writeMessageBegin('getItemAvailabilityAtLocation', TMessageType.CALL, self._seqid)
956
    args = getItemAvailabilityAtLocation_args()
957
    args.itemId = itemId
5978 rajveer 958
    args.sourceId = sourceId
5944 mandeep.dh 959
    args.write(self._oprot)
960
    self._oprot.writeMessageEnd()
961
    self._oprot.trans.flush()
962
 
963
  def recv_getItemAvailabilityAtLocation(self, ):
964
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
965
    if mtype == TMessageType.EXCEPTION:
966
      x = TApplicationException()
967
      x.read(self._iprot)
968
      self._iprot.readMessageEnd()
969
      raise x
970
    result = getItemAvailabilityAtLocation_result()
971
    result.read(self._iprot)
972
    self._iprot.readMessageEnd()
973
    if result.success is not None:
974
      return result.success
975
    if result.isex is not None:
976
      raise result.isex
977
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
978
 
979
  def getAllWarehouses(self, isActive):
980
    """
981
    Parameters:
982
     - isActive
983
    """
984
    self.send_getAllWarehouses(isActive)
985
    return self.recv_getAllWarehouses()
986
 
987
  def send_getAllWarehouses(self, isActive):
988
    self._oprot.writeMessageBegin('getAllWarehouses', TMessageType.CALL, self._seqid)
989
    args = getAllWarehouses_args()
990
    args.isActive = isActive
991
    args.write(self._oprot)
992
    self._oprot.writeMessageEnd()
993
    self._oprot.trans.flush()
994
 
995
  def recv_getAllWarehouses(self, ):
996
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
997
    if mtype == TMessageType.EXCEPTION:
998
      x = TApplicationException()
999
      x.read(self._iprot)
1000
      self._iprot.readMessageEnd()
1001
      raise x
1002
    result = getAllWarehouses_result()
1003
    result.read(self._iprot)
1004
    self._iprot.readMessageEnd()
1005
    if result.success is not None:
1006
      return result.success
1007
    if result.cex is not None:
1008
      raise result.cex
1009
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
1010
 
1011
  def getWarehouse(self, warehouse_id):
1012
    """
1013
    Returns the warehouse with the given id.
1014
 
1015
    Parameters:
1016
     - warehouse_id
1017
    """
1018
    self.send_getWarehouse(warehouse_id)
1019
    return self.recv_getWarehouse()
1020
 
1021
  def send_getWarehouse(self, warehouse_id):
1022
    self._oprot.writeMessageBegin('getWarehouse', TMessageType.CALL, self._seqid)
1023
    args = getWarehouse_args()
1024
    args.warehouse_id = warehouse_id
1025
    args.write(self._oprot)
1026
    self._oprot.writeMessageEnd()
1027
    self._oprot.trans.flush()
1028
 
1029
  def recv_getWarehouse(self, ):
1030
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1031
    if mtype == TMessageType.EXCEPTION:
1032
      x = TApplicationException()
1033
      x.read(self._iprot)
1034
      self._iprot.readMessageEnd()
1035
      raise x
1036
    result = getWarehouse_result()
1037
    result.read(self._iprot)
1038
    self._iprot.readMessageEnd()
1039
    if result.success is not None:
1040
      return result.success
1041
    if result.cex is not None:
1042
      raise result.cex
1043
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
1044
 
1045
  def getAllItemsForWarehouse(self, warehouse_id):
1046
    """
1047
    Parameters:
1048
     - warehouse_id
1049
    """
1050
    self.send_getAllItemsForWarehouse(warehouse_id)
1051
    return self.recv_getAllItemsForWarehouse()
1052
 
1053
  def send_getAllItemsForWarehouse(self, warehouse_id):
1054
    self._oprot.writeMessageBegin('getAllItemsForWarehouse', TMessageType.CALL, self._seqid)
1055
    args = getAllItemsForWarehouse_args()
1056
    args.warehouse_id = warehouse_id
1057
    args.write(self._oprot)
1058
    self._oprot.writeMessageEnd()
1059
    self._oprot.trans.flush()
1060
 
1061
  def recv_getAllItemsForWarehouse(self, ):
1062
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1063
    if mtype == TMessageType.EXCEPTION:
1064
      x = TApplicationException()
1065
      x.read(self._iprot)
1066
      self._iprot.readMessageEnd()
1067
      raise x
1068
    result = getAllItemsForWarehouse_result()
1069
    result.read(self._iprot)
1070
    self._iprot.readMessageEnd()
1071
    if result.success is not None:
1072
      return result.success
1073
    if result.cex is not None:
1074
      raise result.cex
1075
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
1076
 
5966 rajveer 1077
  def isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
5944 mandeep.dh 1078
    """
5978 rajveer 1079
    Depending on reservation in the table, verify if we can bill this order or not.
5966 rajveer 1080
 
1081
    Parameters:
1082
     - itemId
1083
     - warehouseId
1084
     - sourceId
1085
     - orderId
1086
    """
1087
    self.send_isOrderBillable(itemId, warehouseId, sourceId, orderId)
1088
    return self.recv_isOrderBillable()
1089
 
1090
  def send_isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
1091
    self._oprot.writeMessageBegin('isOrderBillable', TMessageType.CALL, self._seqid)
1092
    args = isOrderBillable_args()
1093
    args.itemId = itemId
1094
    args.warehouseId = warehouseId
1095
    args.sourceId = sourceId
1096
    args.orderId = orderId
1097
    args.write(self._oprot)
1098
    self._oprot.writeMessageEnd()
1099
    self._oprot.trans.flush()
1100
 
1101
  def recv_isOrderBillable(self, ):
1102
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1103
    if mtype == TMessageType.EXCEPTION:
1104
      x = TApplicationException()
1105
      x.read(self._iprot)
1106
      self._iprot.readMessageEnd()
1107
      raise x
1108
    result = isOrderBillable_result()
1109
    result.read(self._iprot)
1110
    self._iprot.readMessageEnd()
1111
    if result.success is not None:
1112
      return result.success
1113
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
1114
 
1115
  def reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1116
    """
5944 mandeep.dh 1117
    Increases the reservation count for an item in a warehouse. Should always succeed normally.
1118
 
1119
    Parameters:
1120
     - itemId
1121
     - warehouseId
5966 rajveer 1122
     - sourceId
1123
     - orderId
1124
     - createdTimestamp
1125
     - promisedShippingTimestamp
5944 mandeep.dh 1126
     - quantity
1127
    """
5966 rajveer 1128
    self.send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
5944 mandeep.dh 1129
    return self.recv_reserveItemInWarehouse()
1130
 
5966 rajveer 1131
  def send_reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
5944 mandeep.dh 1132
    self._oprot.writeMessageBegin('reserveItemInWarehouse', TMessageType.CALL, self._seqid)
1133
    args = reserveItemInWarehouse_args()
1134
    args.itemId = itemId
1135
    args.warehouseId = warehouseId
5966 rajveer 1136
    args.sourceId = sourceId
1137
    args.orderId = orderId
1138
    args.createdTimestamp = createdTimestamp
1139
    args.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 1140
    args.quantity = quantity
1141
    args.write(self._oprot)
1142
    self._oprot.writeMessageEnd()
1143
    self._oprot.trans.flush()
1144
 
1145
  def recv_reserveItemInWarehouse(self, ):
1146
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1147
    if mtype == TMessageType.EXCEPTION:
1148
      x = TApplicationException()
1149
      x.read(self._iprot)
1150
      self._iprot.readMessageEnd()
1151
      raise x
1152
    result = reserveItemInWarehouse_result()
1153
    result.read(self._iprot)
1154
    self._iprot.readMessageEnd()
1155
    if result.success is not None:
1156
      return result.success
1157
    if result.cex is not None:
1158
      raise result.cex
1159
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
1160
 
7968 amar.kumar 1161
  def updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1162
    """
1163
    Updates the reservation for Order
1164
 
1165
    Parameters:
1166
     - itemId
1167
     - warehouseId
1168
     - sourceId
1169
     - orderId
1170
     - createdTimestamp
1171
     - promisedShippingTimestamp
1172
     - quantity
1173
    """
1174
    self.send_updateReservationForOrder(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
1175
    return self.recv_updateReservationForOrder()
1176
 
1177
  def send_updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1178
    self._oprot.writeMessageBegin('updateReservationForOrder', TMessageType.CALL, self._seqid)
1179
    args = updateReservationForOrder_args()
1180
    args.itemId = itemId
1181
    args.warehouseId = warehouseId
1182
    args.sourceId = sourceId
1183
    args.orderId = orderId
1184
    args.createdTimestamp = createdTimestamp
1185
    args.promisedShippingTimestamp = promisedShippingTimestamp
1186
    args.quantity = quantity
1187
    args.write(self._oprot)
1188
    self._oprot.writeMessageEnd()
1189
    self._oprot.trans.flush()
1190
 
1191
  def recv_updateReservationForOrder(self, ):
1192
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1193
    if mtype == TMessageType.EXCEPTION:
1194
      x = TApplicationException()
1195
      x.read(self._iprot)
1196
      self._iprot.readMessageEnd()
1197
      raise x
1198
    result = updateReservationForOrder_result()
1199
    result.read(self._iprot)
1200
    self._iprot.readMessageEnd()
1201
    if result.success is not None:
1202
      return result.success
1203
    if result.cex is not None:
1204
      raise result.cex
1205
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateReservationForOrder failed: unknown result");
1206
 
5966 rajveer 1207
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1208
    """
1209
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
1210
 
1211
    Parameters:
1212
     - itemId
1213
     - warehouseId
5966 rajveer 1214
     - sourceId
1215
     - orderId
5944 mandeep.dh 1216
     - quantity
1217
    """
5966 rajveer 1218
    self.send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity)
5944 mandeep.dh 1219
    return self.recv_reduceReservationCount()
1220
 
5966 rajveer 1221
  def send_reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1222
    self._oprot.writeMessageBegin('reduceReservationCount', TMessageType.CALL, self._seqid)
1223
    args = reduceReservationCount_args()
1224
    args.itemId = itemId
1225
    args.warehouseId = warehouseId
5966 rajveer 1226
    args.sourceId = sourceId
1227
    args.orderId = orderId
5944 mandeep.dh 1228
    args.quantity = quantity
1229
    args.write(self._oprot)
1230
    self._oprot.writeMessageEnd()
1231
    self._oprot.trans.flush()
1232
 
1233
  def recv_reduceReservationCount(self, ):
1234
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1235
    if mtype == TMessageType.EXCEPTION:
1236
      x = TApplicationException()
1237
      x.read(self._iprot)
1238
      self._iprot.readMessageEnd()
1239
      raise x
1240
    result = reduceReservationCount_result()
1241
    result.read(self._iprot)
1242
    self._iprot.readMessageEnd()
1243
    if result.success is not None:
1244
      return result.success
1245
    if result.cex is not None:
1246
      raise result.cex
1247
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
1248
 
1249
  def getItemPricing(self, itemId, vendorId):
1250
    """
1251
    Returns the pricing information of an item associated with the vendor of the given warehouse.
1252
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
1253
 
1254
    Parameters:
1255
     - itemId
1256
     - vendorId
1257
    """
1258
    self.send_getItemPricing(itemId, vendorId)
1259
    return self.recv_getItemPricing()
1260
 
1261
  def send_getItemPricing(self, itemId, vendorId):
1262
    self._oprot.writeMessageBegin('getItemPricing', TMessageType.CALL, self._seqid)
1263
    args = getItemPricing_args()
1264
    args.itemId = itemId
1265
    args.vendorId = vendorId
1266
    args.write(self._oprot)
1267
    self._oprot.writeMessageEnd()
1268
    self._oprot.trans.flush()
1269
 
1270
  def recv_getItemPricing(self, ):
1271
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1272
    if mtype == TMessageType.EXCEPTION:
1273
      x = TApplicationException()
1274
      x.read(self._iprot)
1275
      self._iprot.readMessageEnd()
1276
      raise x
1277
    result = getItemPricing_result()
1278
    result.read(self._iprot)
1279
    self._iprot.readMessageEnd()
1280
    if result.success is not None:
1281
      return result.success
1282
    if result.cex is not None:
1283
      raise result.cex
1284
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
1285
 
1286
  def getAllItemPricing(self, itemId):
1287
    """
1288
    Returns the list of vendor pricing information of an item.
1289
    Raises an exception if item not found corresponding to itemId
1290
 
1291
    Parameters:
1292
     - itemId
1293
    """
1294
    self.send_getAllItemPricing(itemId)
1295
    return self.recv_getAllItemPricing()
1296
 
1297
  def send_getAllItemPricing(self, itemId):
1298
    self._oprot.writeMessageBegin('getAllItemPricing', TMessageType.CALL, self._seqid)
1299
    args = getAllItemPricing_args()
1300
    args.itemId = itemId
1301
    args.write(self._oprot)
1302
    self._oprot.writeMessageEnd()
1303
    self._oprot.trans.flush()
1304
 
1305
  def recv_getAllItemPricing(self, ):
1306
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1307
    if mtype == TMessageType.EXCEPTION:
1308
      x = TApplicationException()
1309
      x.read(self._iprot)
1310
      self._iprot.readMessageEnd()
1311
      raise x
1312
    result = getAllItemPricing_result()
1313
    result.read(self._iprot)
1314
    self._iprot.readMessageEnd()
1315
    if result.success is not None:
1316
      return result.success
1317
    if result.cex is not None:
1318
      raise result.cex
1319
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
1320
 
1321
  def addVendorItemPricing(self, vendorItemPricing):
1322
    """
1323
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
1324
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
1325
 
1326
    Parameters:
1327
     - vendorItemPricing
1328
    """
1329
    self.send_addVendorItemPricing(vendorItemPricing)
1330
    self.recv_addVendorItemPricing()
1331
 
1332
  def send_addVendorItemPricing(self, vendorItemPricing):
1333
    self._oprot.writeMessageBegin('addVendorItemPricing', TMessageType.CALL, self._seqid)
1334
    args = addVendorItemPricing_args()
1335
    args.vendorItemPricing = vendorItemPricing
1336
    args.write(self._oprot)
1337
    self._oprot.writeMessageEnd()
1338
    self._oprot.trans.flush()
1339
 
1340
  def recv_addVendorItemPricing(self, ):
1341
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1342
    if mtype == TMessageType.EXCEPTION:
1343
      x = TApplicationException()
1344
      x.read(self._iprot)
1345
      self._iprot.readMessageEnd()
1346
      raise x
1347
    result = addVendorItemPricing_result()
1348
    result.read(self._iprot)
1349
    self._iprot.readMessageEnd()
1350
    if result.cex is not None:
1351
      raise result.cex
1352
    return
1353
 
1354
  def getVendor(self, vendorId):
1355
    """
1356
    Returns a vendor given its id
1357
 
1358
    Parameters:
1359
     - vendorId
1360
    """
1361
    self.send_getVendor(vendorId)
1362
    return self.recv_getVendor()
1363
 
1364
  def send_getVendor(self, vendorId):
1365
    self._oprot.writeMessageBegin('getVendor', TMessageType.CALL, self._seqid)
1366
    args = getVendor_args()
1367
    args.vendorId = vendorId
1368
    args.write(self._oprot)
1369
    self._oprot.writeMessageEnd()
1370
    self._oprot.trans.flush()
1371
 
1372
  def recv_getVendor(self, ):
1373
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1374
    if mtype == TMessageType.EXCEPTION:
1375
      x = TApplicationException()
1376
      x.read(self._iprot)
1377
      self._iprot.readMessageEnd()
1378
      raise x
1379
    result = getVendor_result()
1380
    result.read(self._iprot)
1381
    self._iprot.readMessageEnd()
1382
    if result.success is not None:
1383
      return result.success
1384
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
1385
 
1386
  def getAllVendors(self, ):
1387
    """
1388
    Return list of all vendors
1389
    """
1390
    self.send_getAllVendors()
1391
    return self.recv_getAllVendors()
1392
 
1393
  def send_getAllVendors(self, ):
1394
    self._oprot.writeMessageBegin('getAllVendors', TMessageType.CALL, self._seqid)
1395
    args = getAllVendors_args()
1396
    args.write(self._oprot)
1397
    self._oprot.writeMessageEnd()
1398
    self._oprot.trans.flush()
1399
 
1400
  def recv_getAllVendors(self, ):
1401
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1402
    if mtype == TMessageType.EXCEPTION:
1403
      x = TApplicationException()
1404
      x.read(self._iprot)
1405
      self._iprot.readMessageEnd()
1406
      raise x
1407
    result = getAllVendors_result()
1408
    result.read(self._iprot)
1409
    self._iprot.readMessageEnd()
1410
    if result.success is not None:
1411
      return result.success
1412
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1413
 
1414
  def addVendorItemMapping(self, key, vendorItemMapping):
1415
    """
1416
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
1417
 
1418
    Parameters:
1419
     - key
1420
     - vendorItemMapping
1421
    """
1422
    self.send_addVendorItemMapping(key, vendorItemMapping)
1423
    self.recv_addVendorItemMapping()
1424
 
1425
  def send_addVendorItemMapping(self, key, vendorItemMapping):
1426
    self._oprot.writeMessageBegin('addVendorItemMapping', TMessageType.CALL, self._seqid)
1427
    args = addVendorItemMapping_args()
1428
    args.key = key
1429
    args.vendorItemMapping = vendorItemMapping
1430
    args.write(self._oprot)
1431
    self._oprot.writeMessageEnd()
1432
    self._oprot.trans.flush()
1433
 
1434
  def recv_addVendorItemMapping(self, ):
1435
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1436
    if mtype == TMessageType.EXCEPTION:
1437
      x = TApplicationException()
1438
      x.read(self._iprot)
1439
      self._iprot.readMessageEnd()
1440
      raise x
1441
    result = addVendorItemMapping_result()
1442
    result.read(self._iprot)
1443
    self._iprot.readMessageEnd()
1444
    if result.cex is not None:
1445
      raise result.cex
1446
    return
1447
 
1448
  def getVendorItemMappings(self, itemId):
1449
    """
1450
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
1451
    Raises an exception if item not found corresponding to itemId
1452
 
1453
    Parameters:
1454
     - itemId
1455
    """
1456
    self.send_getVendorItemMappings(itemId)
1457
    return self.recv_getVendorItemMappings()
1458
 
1459
  def send_getVendorItemMappings(self, itemId):
1460
    self._oprot.writeMessageBegin('getVendorItemMappings', TMessageType.CALL, self._seqid)
1461
    args = getVendorItemMappings_args()
1462
    args.itemId = itemId
1463
    args.write(self._oprot)
1464
    self._oprot.writeMessageEnd()
1465
    self._oprot.trans.flush()
1466
 
1467
  def recv_getVendorItemMappings(self, ):
1468
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1469
    if mtype == TMessageType.EXCEPTION:
1470
      x = TApplicationException()
1471
      x.read(self._iprot)
1472
      self._iprot.readMessageEnd()
1473
      raise x
1474
    result = getVendorItemMappings_result()
1475
    result.read(self._iprot)
1476
    self._iprot.readMessageEnd()
1477
    if result.success is not None:
1478
      return result.success
1479
    if result.cex is not None:
1480
      raise result.cex
1481
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
1482
 
1483
  def getPendingOrdersInventory(self, vendorid):
1484
    """
1485
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
1486
 
1487
    Parameters:
1488
     - vendorid
1489
    """
1490
    self.send_getPendingOrdersInventory(vendorid)
1491
    return self.recv_getPendingOrdersInventory()
1492
 
1493
  def send_getPendingOrdersInventory(self, vendorid):
1494
    self._oprot.writeMessageBegin('getPendingOrdersInventory', TMessageType.CALL, self._seqid)
1495
    args = getPendingOrdersInventory_args()
1496
    args.vendorid = vendorid
1497
    args.write(self._oprot)
1498
    self._oprot.writeMessageEnd()
1499
    self._oprot.trans.flush()
1500
 
1501
  def recv_getPendingOrdersInventory(self, ):
1502
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1503
    if mtype == TMessageType.EXCEPTION:
1504
      x = TApplicationException()
1505
      x.read(self._iprot)
1506
      self._iprot.readMessageEnd()
1507
      raise x
1508
    result = getPendingOrdersInventory_result()
1509
    result.read(self._iprot)
1510
    self._iprot.readMessageEnd()
1511
    if result.success is not None:
1512
      return result.success
1513
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1514
 
1515
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1516
    """
1517
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
1518
    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
1519
    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
1520
       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
1521
       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
1522
 
1523
    Parameters:
1524
     - warehouseType
1525
     - inventoryType
1526
     - vendorId
1527
     - billingWarehouseId
1528
     - shippingWarehouseId
1529
    """
1530
    self.send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId)
1531
    return self.recv_getWarehouses()
1532
 
1533
  def send_getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1534
    self._oprot.writeMessageBegin('getWarehouses', TMessageType.CALL, self._seqid)
1535
    args = getWarehouses_args()
1536
    args.warehouseType = warehouseType
1537
    args.inventoryType = inventoryType
1538
    args.vendorId = vendorId
1539
    args.billingWarehouseId = billingWarehouseId
1540
    args.shippingWarehouseId = shippingWarehouseId
1541
    args.write(self._oprot)
1542
    self._oprot.writeMessageEnd()
1543
    self._oprot.trans.flush()
1544
 
1545
  def recv_getWarehouses(self, ):
1546
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1547
    if mtype == TMessageType.EXCEPTION:
1548
      x = TApplicationException()
1549
      x.read(self._iprot)
1550
      self._iprot.readMessageEnd()
1551
      raise x
1552
    result = getWarehouses_result()
1553
    result.read(self._iprot)
1554
    self._iprot.readMessageEnd()
1555
    if result.success is not None:
1556
      return result.success
1557
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1558
 
1559
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1560
    """
1561
    Resets availability of an item to the quantity mentioned in a warehouse.
1562
 
1563
    Parameters:
1564
     - itemKey
1565
     - vendorId
1566
     - quantity
1567
     - warehouseId
1568
    """
1569
    self.send_resetAvailability(itemKey, vendorId, quantity, warehouseId)
1570
    self.recv_resetAvailability()
1571
 
1572
  def send_resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1573
    self._oprot.writeMessageBegin('resetAvailability', TMessageType.CALL, self._seqid)
1574
    args = resetAvailability_args()
1575
    args.itemKey = itemKey
1576
    args.vendorId = vendorId
1577
    args.quantity = quantity
1578
    args.warehouseId = warehouseId
1579
    args.write(self._oprot)
1580
    self._oprot.writeMessageEnd()
1581
    self._oprot.trans.flush()
1582
 
1583
  def recv_resetAvailability(self, ):
1584
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1585
    if mtype == TMessageType.EXCEPTION:
1586
      x = TApplicationException()
1587
      x.read(self._iprot)
1588
      self._iprot.readMessageEnd()
1589
      raise x
1590
    result = resetAvailability_result()
1591
    result.read(self._iprot)
1592
    self._iprot.readMessageEnd()
1593
    if result.cex is not None:
1594
      raise result.cex
1595
    return
1596
 
1597
  def resetAvailabilityForWarehouse(self, warehouseId):
1598
    """
1599
    Resets availability of a warehouse to zero.
1600
 
1601
    Parameters:
1602
     - warehouseId
1603
    """
1604
    self.send_resetAvailabilityForWarehouse(warehouseId)
1605
    self.recv_resetAvailabilityForWarehouse()
1606
 
1607
  def send_resetAvailabilityForWarehouse(self, warehouseId):
1608
    self._oprot.writeMessageBegin('resetAvailabilityForWarehouse', TMessageType.CALL, self._seqid)
1609
    args = resetAvailabilityForWarehouse_args()
1610
    args.warehouseId = warehouseId
1611
    args.write(self._oprot)
1612
    self._oprot.writeMessageEnd()
1613
    self._oprot.trans.flush()
1614
 
1615
  def recv_resetAvailabilityForWarehouse(self, ):
1616
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1617
    if mtype == TMessageType.EXCEPTION:
1618
      x = TApplicationException()
1619
      x.read(self._iprot)
1620
      self._iprot.readMessageEnd()
1621
      raise x
1622
    result = resetAvailabilityForWarehouse_result()
1623
    result.read(self._iprot)
1624
    self._iprot.readMessageEnd()
1625
    if result.cex is not None:
1626
      raise result.cex
1627
    return
1628
 
1629
  def getItemKeysToBeProcessed(self, warehouseId):
1630
    """
1631
    Returns the list of item keys which need to be processed for a given warehouse.
1632
    This is currently used by Support application to send item keys whose inventory needs
1633
    to be updated from PLB
1634
 
1635
    Parameters:
1636
     - warehouseId
1637
    """
1638
    self.send_getItemKeysToBeProcessed(warehouseId)
1639
    return self.recv_getItemKeysToBeProcessed()
1640
 
1641
  def send_getItemKeysToBeProcessed(self, warehouseId):
1642
    self._oprot.writeMessageBegin('getItemKeysToBeProcessed', TMessageType.CALL, self._seqid)
1643
    args = getItemKeysToBeProcessed_args()
1644
    args.warehouseId = warehouseId
1645
    args.write(self._oprot)
1646
    self._oprot.writeMessageEnd()
1647
    self._oprot.trans.flush()
1648
 
1649
  def recv_getItemKeysToBeProcessed(self, ):
1650
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1651
    if mtype == TMessageType.EXCEPTION:
1652
      x = TApplicationException()
1653
      x.read(self._iprot)
1654
      self._iprot.readMessageEnd()
1655
      raise x
1656
    result = getItemKeysToBeProcessed_result()
1657
    result.read(self._iprot)
1658
    self._iprot.readMessageEnd()
1659
    if result.success is not None:
1660
      return result.success
1661
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1662
 
1663
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1664
    """
1665
    Marks/Deletes missed inventory updates for a given key and warehouse.
1666
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
1667
 
1668
    Parameters:
1669
     - itemKey
1670
     - warehouseId
1671
    """
1672
    self.send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId)
1673
    self.recv_markMissedInventoryUpdatesAsProcessed()
1674
 
1675
  def send_markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1676
    self._oprot.writeMessageBegin('markMissedInventoryUpdatesAsProcessed', TMessageType.CALL, self._seqid)
1677
    args = markMissedInventoryUpdatesAsProcessed_args()
1678
    args.itemKey = itemKey
1679
    args.warehouseId = warehouseId
1680
    args.write(self._oprot)
1681
    self._oprot.writeMessageEnd()
1682
    self._oprot.trans.flush()
1683
 
1684
  def recv_markMissedInventoryUpdatesAsProcessed(self, ):
1685
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1686
    if mtype == TMessageType.EXCEPTION:
1687
      x = TApplicationException()
1688
      x.read(self._iprot)
1689
      self._iprot.readMessageEnd()
1690
      raise x
1691
    result = markMissedInventoryUpdatesAsProcessed_result()
1692
    result.read(self._iprot)
1693
    self._iprot.readMessageEnd()
1694
    return
1695
 
1696
  def getIgnoredItemKeys(self, ):
1697
    """
1698
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
1699
    and the timestamp from where alert was raised.
1700
    """
1701
    self.send_getIgnoredItemKeys()
1702
    return self.recv_getIgnoredItemKeys()
1703
 
1704
  def send_getIgnoredItemKeys(self, ):
1705
    self._oprot.writeMessageBegin('getIgnoredItemKeys', TMessageType.CALL, self._seqid)
1706
    args = getIgnoredItemKeys_args()
1707
    args.write(self._oprot)
1708
    self._oprot.writeMessageEnd()
1709
    self._oprot.trans.flush()
1710
 
1711
  def recv_getIgnoredItemKeys(self, ):
1712
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1713
    if mtype == TMessageType.EXCEPTION:
1714
      x = TApplicationException()
1715
      x.read(self._iprot)
1716
      self._iprot.readMessageEnd()
1717
      raise x
1718
    result = getIgnoredItemKeys_result()
1719
    result.read(self._iprot)
1720
    self._iprot.readMessageEnd()
1721
    if result.success is not None:
1722
      return result.success
1723
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1724
 
1725
  def addBadInventory(self, itemId, warehouseId, quantity):
1726
    """
1727
    Add the BAD type inventory to existing stock.
1728
 
1729
    Parameters:
1730
     - itemId
1731
     - warehouseId
1732
     - quantity
1733
    """
1734
    self.send_addBadInventory(itemId, warehouseId, quantity)
1735
    self.recv_addBadInventory()
1736
 
1737
  def send_addBadInventory(self, itemId, warehouseId, quantity):
1738
    self._oprot.writeMessageBegin('addBadInventory', TMessageType.CALL, self._seqid)
1739
    args = addBadInventory_args()
1740
    args.itemId = itemId
1741
    args.warehouseId = warehouseId
1742
    args.quantity = quantity
1743
    args.write(self._oprot)
1744
    self._oprot.writeMessageEnd()
1745
    self._oprot.trans.flush()
1746
 
1747
  def recv_addBadInventory(self, ):
1748
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1749
    if mtype == TMessageType.EXCEPTION:
1750
      x = TApplicationException()
1751
      x.read(self._iprot)
1752
      self._iprot.readMessageEnd()
1753
      raise x
1754
    result = addBadInventory_result()
1755
    result.read(self._iprot)
1756
    self._iprot.readMessageEnd()
1757
    if result.cex is not None:
1758
      raise result.cex
1759
    return
1760
 
1761
  def getShippingLocations(self, ):
1762
    """
1763
    Returns all shipping locations
1764
    """
1765
    self.send_getShippingLocations()
1766
    return self.recv_getShippingLocations()
1767
 
1768
  def send_getShippingLocations(self, ):
1769
    self._oprot.writeMessageBegin('getShippingLocations', TMessageType.CALL, self._seqid)
1770
    args = getShippingLocations_args()
1771
    args.write(self._oprot)
1772
    self._oprot.writeMessageEnd()
1773
    self._oprot.trans.flush()
1774
 
1775
  def recv_getShippingLocations(self, ):
1776
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1777
    if mtype == TMessageType.EXCEPTION:
1778
      x = TApplicationException()
1779
      x.read(self._iprot)
1780
      self._iprot.readMessageEnd()
1781
      raise x
1782
    result = getShippingLocations_result()
1783
    result.read(self._iprot)
1784
    self._iprot.readMessageEnd()
1785
    if result.success is not None:
1786
      return result.success
1787
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1788
 
1789
  def getAllVendorItemMappings(self, ):
1790
    """
1791
    Fetches all the vendor item mappings present.
1792
    """
1793
    self.send_getAllVendorItemMappings()
1794
    return self.recv_getAllVendorItemMappings()
1795
 
1796
  def send_getAllVendorItemMappings(self, ):
1797
    self._oprot.writeMessageBegin('getAllVendorItemMappings', TMessageType.CALL, self._seqid)
1798
    args = getAllVendorItemMappings_args()
1799
    args.write(self._oprot)
1800
    self._oprot.writeMessageEnd()
1801
    self._oprot.trans.flush()
1802
 
1803
  def recv_getAllVendorItemMappings(self, ):
1804
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1805
    if mtype == TMessageType.EXCEPTION:
1806
      x = TApplicationException()
1807
      x.read(self._iprot)
1808
      self._iprot.readMessageEnd()
1809
      raise x
1810
    result = getAllVendorItemMappings_result()
1811
    result.read(self._iprot)
1812
    self._iprot.readMessageEnd()
1813
    if result.success is not None:
1814
      return result.success
1815
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1816
 
1817
  def getInventorySnapshot(self, warehouseId):
1818
    """
1819
    Gets items' inventory for a warehouse
1820
    If warehouse is passed as zero, items' inventory across all warehouses is sent
1821
 
1822
    Parameters:
1823
     - warehouseId
1824
    """
1825
    self.send_getInventorySnapshot(warehouseId)
1826
    return self.recv_getInventorySnapshot()
1827
 
1828
  def send_getInventorySnapshot(self, warehouseId):
1829
    self._oprot.writeMessageBegin('getInventorySnapshot', TMessageType.CALL, self._seqid)
1830
    args = getInventorySnapshot_args()
1831
    args.warehouseId = warehouseId
1832
    args.write(self._oprot)
1833
    self._oprot.writeMessageEnd()
1834
    self._oprot.trans.flush()
1835
 
1836
  def recv_getInventorySnapshot(self, ):
1837
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1838
    if mtype == TMessageType.EXCEPTION:
1839
      x = TApplicationException()
1840
      x.read(self._iprot)
1841
      self._iprot.readMessageEnd()
1842
      raise x
1843
    result = getInventorySnapshot_result()
1844
    result.read(self._iprot)
1845
    self._iprot.readMessageEnd()
1846
    if result.success is not None:
1847
      return result.success
1848
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1849
 
1850
  def clearItemAvailabilityCache(self, ):
1851
    """
1852
    Clear item availability cache.
1853
    """
1854
    self.send_clearItemAvailabilityCache()
1855
    self.recv_clearItemAvailabilityCache()
1856
 
1857
  def send_clearItemAvailabilityCache(self, ):
1858
    self._oprot.writeMessageBegin('clearItemAvailabilityCache', TMessageType.CALL, self._seqid)
1859
    args = clearItemAvailabilityCache_args()
1860
    args.write(self._oprot)
1861
    self._oprot.writeMessageEnd()
1862
    self._oprot.trans.flush()
1863
 
1864
  def recv_clearItemAvailabilityCache(self, ):
1865
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1866
    if mtype == TMessageType.EXCEPTION:
1867
      x = TApplicationException()
1868
      x.read(self._iprot)
1869
      self._iprot.readMessageEnd()
1870
      raise x
1871
    result = clearItemAvailabilityCache_result()
1872
    result.read(self._iprot)
1873
    self._iprot.readMessageEnd()
1874
    return
1875
 
1876
  def updateVendorString(self, warehouseId, vendorString):
1877
    """
1878
    Parameters:
1879
     - warehouseId
1880
     - vendorString
1881
    """
1882
    self.send_updateVendorString(warehouseId, vendorString)
1883
    self.recv_updateVendorString()
1884
 
1885
  def send_updateVendorString(self, warehouseId, vendorString):
1886
    self._oprot.writeMessageBegin('updateVendorString', TMessageType.CALL, self._seqid)
1887
    args = updateVendorString_args()
1888
    args.warehouseId = warehouseId
1889
    args.vendorString = vendorString
1890
    args.write(self._oprot)
1891
    self._oprot.writeMessageEnd()
1892
    self._oprot.trans.flush()
1893
 
1894
  def recv_updateVendorString(self, ):
1895
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1896
    if mtype == TMessageType.EXCEPTION:
1897
      x = TApplicationException()
1898
      x.read(self._iprot)
1899
      self._iprot.readMessageEnd()
1900
      raise x
1901
    result = updateVendorString_result()
1902
    result.read(self._iprot)
1903
    self._iprot.readMessageEnd()
1904
    return
1905
 
6096 amit.gupta 1906
  def clearItemAvailabilityCacheForItem(self, item_id):
1907
    """
1908
    Parameters:
1909
     - item_id
1910
    """
1911
    self.send_clearItemAvailabilityCacheForItem(item_id)
1912
    self.recv_clearItemAvailabilityCacheForItem()
5944 mandeep.dh 1913
 
6096 amit.gupta 1914
  def send_clearItemAvailabilityCacheForItem(self, item_id):
1915
    self._oprot.writeMessageBegin('clearItemAvailabilityCacheForItem', TMessageType.CALL, self._seqid)
1916
    args = clearItemAvailabilityCacheForItem_args()
1917
    args.item_id = item_id
1918
    args.write(self._oprot)
1919
    self._oprot.writeMessageEnd()
1920
    self._oprot.trans.flush()
1921
 
1922
  def recv_clearItemAvailabilityCacheForItem(self, ):
1923
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1924
    if mtype == TMessageType.EXCEPTION:
1925
      x = TApplicationException()
1926
      x.read(self._iprot)
1927
      self._iprot.readMessageEnd()
1928
      raise x
1929
    result = clearItemAvailabilityCacheForItem_result()
1930
    result.read(self._iprot)
1931
    self._iprot.readMessageEnd()
1932
    return
1933
 
7718 amar.kumar 1934
  def getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1935
    """
1936
    Parameters:
1937
     - vendorId
7718 amar.kumar 1938
     - billingWarehouseId
6467 amar.kumar 1939
    """
7718 amar.kumar 1940
    self.send_getOurWarehouseIdForVendor(vendorId, billingWarehouseId)
6467 amar.kumar 1941
    return self.recv_getOurWarehouseIdForVendor()
6096 amit.gupta 1942
 
7718 amar.kumar 1943
  def send_getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1944
    self._oprot.writeMessageBegin('getOurWarehouseIdForVendor', TMessageType.CALL, self._seqid)
1945
    args = getOurWarehouseIdForVendor_args()
1946
    args.vendorId = vendorId
7718 amar.kumar 1947
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 1948
    args.write(self._oprot)
1949
    self._oprot.writeMessageEnd()
1950
    self._oprot.trans.flush()
1951
 
1952
  def recv_getOurWarehouseIdForVendor(self, ):
1953
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1954
    if mtype == TMessageType.EXCEPTION:
1955
      x = TApplicationException()
1956
      x.read(self._iprot)
1957
      self._iprot.readMessageEnd()
1958
      raise x
1959
    result = getOurWarehouseIdForVendor_result()
1960
    result.read(self._iprot)
1961
    self._iprot.readMessageEnd()
1962
    if result.success is not None:
1963
      return result.success
1964
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1965
 
6484 amar.kumar 1966
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1967
    """
1968
    Parameters:
1969
     - item_ids
1970
    """
1971
    self.send_getItemAvailabilitiesAtOurWarehouses(item_ids)
1972
    return self.recv_getItemAvailabilitiesAtOurWarehouses()
6467 amar.kumar 1973
 
6484 amar.kumar 1974
  def send_getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1975
    self._oprot.writeMessageBegin('getItemAvailabilitiesAtOurWarehouses', TMessageType.CALL, self._seqid)
1976
    args = getItemAvailabilitiesAtOurWarehouses_args()
1977
    args.item_ids = item_ids
1978
    args.write(self._oprot)
1979
    self._oprot.writeMessageEnd()
1980
    self._oprot.trans.flush()
1981
 
1982
  def recv_getItemAvailabilitiesAtOurWarehouses(self, ):
1983
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1984
    if mtype == TMessageType.EXCEPTION:
1985
      x = TApplicationException()
1986
      x.read(self._iprot)
1987
      self._iprot.readMessageEnd()
1988
      raise x
1989
    result = getItemAvailabilitiesAtOurWarehouses_result()
1990
    result.read(self._iprot)
1991
    self._iprot.readMessageEnd()
1992
    if result.success is not None:
1993
      return result.success
1994
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
1995
 
6531 vikram.rag 1996
  def getMonitoredWarehouseForVendors(self, vendorIds):
1997
    """
1998
    Parameters:
1999
     - vendorIds
2000
    """
2001
    self.send_getMonitoredWarehouseForVendors(vendorIds)
2002
    return self.recv_getMonitoredWarehouseForVendors()
6484 amar.kumar 2003
 
6531 vikram.rag 2004
  def send_getMonitoredWarehouseForVendors(self, vendorIds):
2005
    self._oprot.writeMessageBegin('getMonitoredWarehouseForVendors', TMessageType.CALL, self._seqid)
2006
    args = getMonitoredWarehouseForVendors_args()
2007
    args.vendorIds = vendorIds
2008
    args.write(self._oprot)
2009
    self._oprot.writeMessageEnd()
2010
    self._oprot.trans.flush()
2011
 
2012
  def recv_getMonitoredWarehouseForVendors(self, ):
2013
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2014
    if mtype == TMessageType.EXCEPTION:
2015
      x = TApplicationException()
2016
      x.read(self._iprot)
2017
      self._iprot.readMessageEnd()
2018
      raise x
2019
    result = getMonitoredWarehouseForVendors_result()
2020
    result.read(self._iprot)
2021
    self._iprot.readMessageEnd()
2022
    if result.success is not None:
2023
      return result.success
2024
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
2025
 
2026
  def getIgnoredWarehouseidsAndItemids(self, ):
2027
    self.send_getIgnoredWarehouseidsAndItemids()
2028
    return self.recv_getIgnoredWarehouseidsAndItemids()
2029
 
2030
  def send_getIgnoredWarehouseidsAndItemids(self, ):
2031
    self._oprot.writeMessageBegin('getIgnoredWarehouseidsAndItemids', TMessageType.CALL, self._seqid)
2032
    args = getIgnoredWarehouseidsAndItemids_args()
2033
    args.write(self._oprot)
2034
    self._oprot.writeMessageEnd()
2035
    self._oprot.trans.flush()
2036
 
2037
  def recv_getIgnoredWarehouseidsAndItemids(self, ):
2038
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2039
    if mtype == TMessageType.EXCEPTION:
2040
      x = TApplicationException()
2041
      x.read(self._iprot)
2042
      self._iprot.readMessageEnd()
2043
      raise x
2044
    result = getIgnoredWarehouseidsAndItemids_result()
2045
    result.read(self._iprot)
2046
    self._iprot.readMessageEnd()
2047
    if result.success is not None:
2048
      return result.success
2049
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
2050
 
2051
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2052
    """
2053
    Parameters:
2054
     - item_id
2055
     - warehouse_id
2056
    """
2057
    self.send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id)
2058
    return self.recv_insertItemtoIgnoreInventoryUpdatelist()
2059
 
2060
  def send_insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2061
    self._oprot.writeMessageBegin('insertItemtoIgnoreInventoryUpdatelist', TMessageType.CALL, self._seqid)
2062
    args = insertItemtoIgnoreInventoryUpdatelist_args()
2063
    args.item_id = item_id
2064
    args.warehouse_id = warehouse_id
2065
    args.write(self._oprot)
2066
    self._oprot.writeMessageEnd()
2067
    self._oprot.trans.flush()
2068
 
2069
  def recv_insertItemtoIgnoreInventoryUpdatelist(self, ):
2070
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2071
    if mtype == TMessageType.EXCEPTION:
2072
      x = TApplicationException()
2073
      x.read(self._iprot)
2074
      self._iprot.readMessageEnd()
2075
      raise x
2076
    result = insertItemtoIgnoreInventoryUpdatelist_result()
2077
    result.read(self._iprot)
2078
    self._iprot.readMessageEnd()
2079
    if result.success is not None:
2080
      return result.success
2081
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
2082
 
2083
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2084
    """
2085
    Parameters:
2086
     - item_id
2087
     - warehouse_id
2088
    """
2089
    self.send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id)
2090
    return self.recv_deleteItemFromIgnoredInventoryUpdateList()
2091
 
2092
  def send_deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2093
    self._oprot.writeMessageBegin('deleteItemFromIgnoredInventoryUpdateList', TMessageType.CALL, self._seqid)
2094
    args = deleteItemFromIgnoredInventoryUpdateList_args()
2095
    args.item_id = item_id
2096
    args.warehouse_id = warehouse_id
2097
    args.write(self._oprot)
2098
    self._oprot.writeMessageEnd()
2099
    self._oprot.trans.flush()
2100
 
2101
  def recv_deleteItemFromIgnoredInventoryUpdateList(self, ):
2102
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2103
    if mtype == TMessageType.EXCEPTION:
2104
      x = TApplicationException()
2105
      x.read(self._iprot)
2106
      self._iprot.readMessageEnd()
2107
      raise x
2108
    result = deleteItemFromIgnoredInventoryUpdateList_result()
2109
    result.read(self._iprot)
2110
    self._iprot.readMessageEnd()
2111
    if result.success is not None:
2112
      return result.success
2113
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
2114
 
2115
  def getAllIgnoredInventoryupdateItemsCount(self, ):
2116
    self.send_getAllIgnoredInventoryupdateItemsCount()
2117
    return self.recv_getAllIgnoredInventoryupdateItemsCount()
2118
 
2119
  def send_getAllIgnoredInventoryupdateItemsCount(self, ):
2120
    self._oprot.writeMessageBegin('getAllIgnoredInventoryupdateItemsCount', TMessageType.CALL, self._seqid)
2121
    args = getAllIgnoredInventoryupdateItemsCount_args()
2122
    args.write(self._oprot)
2123
    self._oprot.writeMessageEnd()
2124
    self._oprot.trans.flush()
2125
 
2126
  def recv_getAllIgnoredInventoryupdateItemsCount(self, ):
2127
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2128
    if mtype == TMessageType.EXCEPTION:
2129
      x = TApplicationException()
2130
      x.read(self._iprot)
2131
      self._iprot.readMessageEnd()
2132
      raise x
2133
    result = getAllIgnoredInventoryupdateItemsCount_result()
2134
    result.read(self._iprot)
2135
    self._iprot.readMessageEnd()
2136
    if result.success is not None:
2137
      return result.success
2138
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
2139
 
2140
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
2141
    """
2142
    Parameters:
2143
     - offset
2144
     - limit
2145
    """
2146
    self.send_getIgnoredInventoryUpdateItemids(offset, limit)
2147
    return self.recv_getIgnoredInventoryUpdateItemids()
2148
 
2149
  def send_getIgnoredInventoryUpdateItemids(self, offset, limit):
2150
    self._oprot.writeMessageBegin('getIgnoredInventoryUpdateItemids', TMessageType.CALL, self._seqid)
2151
    args = getIgnoredInventoryUpdateItemids_args()
2152
    args.offset = offset
2153
    args.limit = limit
2154
    args.write(self._oprot)
2155
    self._oprot.writeMessageEnd()
2156
    self._oprot.trans.flush()
2157
 
2158
  def recv_getIgnoredInventoryUpdateItemids(self, ):
2159
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2160
    if mtype == TMessageType.EXCEPTION:
2161
      x = TApplicationException()
2162
      x.read(self._iprot)
2163
      self._iprot.readMessageEnd()
2164
      raise x
2165
    result = getIgnoredInventoryUpdateItemids_result()
2166
    result.read(self._iprot)
2167
    self._iprot.readMessageEnd()
2168
    if result.success is not None:
2169
      return result.success
2170
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
2171
 
6821 amar.kumar 2172
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2173
    """
2174
    Parameters:
2175
     - item_id
2176
     - numOfDaysStock
2177
     - minStockLevel
2178
    """
2179
    self.send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel)
2180
    self.recv_updateItemStockPurchaseParams()
6531 vikram.rag 2181
 
6821 amar.kumar 2182
  def send_updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2183
    self._oprot.writeMessageBegin('updateItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2184
    args = updateItemStockPurchaseParams_args()
2185
    args.item_id = item_id
2186
    args.numOfDaysStock = numOfDaysStock
2187
    args.minStockLevel = minStockLevel
2188
    args.write(self._oprot)
2189
    self._oprot.writeMessageEnd()
2190
    self._oprot.trans.flush()
2191
 
2192
  def recv_updateItemStockPurchaseParams(self, ):
2193
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2194
    if mtype == TMessageType.EXCEPTION:
2195
      x = TApplicationException()
2196
      x.read(self._iprot)
2197
      self._iprot.readMessageEnd()
2198
      raise x
2199
    result = updateItemStockPurchaseParams_result()
2200
    result.read(self._iprot)
2201
    self._iprot.readMessageEnd()
2202
    return
2203
 
2204
  def getItemStockPurchaseParams(self, itemId):
2205
    """
2206
    Parameters:
2207
     - itemId
2208
    """
2209
    self.send_getItemStockPurchaseParams(itemId)
2210
    return self.recv_getItemStockPurchaseParams()
2211
 
2212
  def send_getItemStockPurchaseParams(self, itemId):
2213
    self._oprot.writeMessageBegin('getItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2214
    args = getItemStockPurchaseParams_args()
2215
    args.itemId = itemId
2216
    args.write(self._oprot)
2217
    self._oprot.writeMessageEnd()
2218
    self._oprot.trans.flush()
2219
 
2220
  def recv_getItemStockPurchaseParams(self, ):
2221
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2222
    if mtype == TMessageType.EXCEPTION:
2223
      x = TApplicationException()
2224
      x.read(self._iprot)
2225
      self._iprot.readMessageEnd()
2226
      raise x
2227
    result = getItemStockPurchaseParams_result()
2228
    result.read(self._iprot)
2229
    self._iprot.readMessageEnd()
2230
    if result.success is not None:
2231
      return result.success
2232
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
2233
 
2234
  def addOosStatusForItem(self, oosStatusMap, date):
2235
    """
2236
    Parameters:
2237
     - oosStatusMap
2238
     - date
2239
    """
2240
    self.send_addOosStatusForItem(oosStatusMap, date)
2241
    self.recv_addOosStatusForItem()
2242
 
2243
  def send_addOosStatusForItem(self, oosStatusMap, date):
2244
    self._oprot.writeMessageBegin('addOosStatusForItem', TMessageType.CALL, self._seqid)
2245
    args = addOosStatusForItem_args()
2246
    args.oosStatusMap = oosStatusMap
2247
    args.date = date
2248
    args.write(self._oprot)
2249
    self._oprot.writeMessageEnd()
2250
    self._oprot.trans.flush()
2251
 
2252
  def recv_addOosStatusForItem(self, ):
2253
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2254
    if mtype == TMessageType.EXCEPTION:
2255
      x = TApplicationException()
2256
      x.read(self._iprot)
2257
      self._iprot.readMessageEnd()
2258
      raise x
2259
    result = addOosStatusForItem_result()
2260
    result.read(self._iprot)
2261
    self._iprot.readMessageEnd()
2262
    return
2263
 
9762 amar.kumar 2264
  def getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2265
    """
2266
    Parameters:
2267
     - itemId
9762 amar.kumar 2268
     - sourceId
6832 amar.kumar 2269
     - days
2270
    """
9762 amar.kumar 2271
    self.send_getOosStatusesForXDaysForItem(itemId, sourceId, days)
6832 amar.kumar 2272
    return self.recv_getOosStatusesForXDaysForItem()
6821 amar.kumar 2273
 
9762 amar.kumar 2274
  def send_getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2275
    self._oprot.writeMessageBegin('getOosStatusesForXDaysForItem', TMessageType.CALL, self._seqid)
2276
    args = getOosStatusesForXDaysForItem_args()
2277
    args.itemId = itemId
9762 amar.kumar 2278
    args.sourceId = sourceId
6832 amar.kumar 2279
    args.days = days
2280
    args.write(self._oprot)
2281
    self._oprot.writeMessageEnd()
2282
    self._oprot.trans.flush()
2283
 
2284
  def recv_getOosStatusesForXDaysForItem(self, ):
2285
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2286
    if mtype == TMessageType.EXCEPTION:
2287
      x = TApplicationException()
2288
      x.read(self._iprot)
2289
      self._iprot.readMessageEnd()
2290
      raise x
2291
    result = getOosStatusesForXDaysForItem_result()
2292
    result.read(self._iprot)
2293
    self._iprot.readMessageEnd()
2294
    if result.success is not None:
2295
      return result.success
2296
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
2297
 
10126 amar.kumar 2298
  def getOosStatusesForXDays(self, sourceId, days):
2299
    """
2300
    Parameters:
2301
     - sourceId
2302
     - days
2303
    """
2304
    self.send_getOosStatusesForXDays(sourceId, days)
2305
    return self.recv_getOosStatusesForXDays()
2306
 
2307
  def send_getOosStatusesForXDays(self, sourceId, days):
2308
    self._oprot.writeMessageBegin('getOosStatusesForXDays', TMessageType.CALL, self._seqid)
2309
    args = getOosStatusesForXDays_args()
2310
    args.sourceId = sourceId
2311
    args.days = days
2312
    args.write(self._oprot)
2313
    self._oprot.writeMessageEnd()
2314
    self._oprot.trans.flush()
2315
 
2316
  def recv_getOosStatusesForXDays(self, ):
2317
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2318
    if mtype == TMessageType.EXCEPTION:
2319
      x = TApplicationException()
2320
      x.read(self._iprot)
2321
      self._iprot.readMessageEnd()
2322
      raise x
2323
    result = getOosStatusesForXDays_result()
2324
    result.read(self._iprot)
2325
    self._iprot.readMessageEnd()
2326
    if result.success is not None:
2327
      return result.success
2328
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDays failed: unknown result");
2329
 
2330
  def getAllVendorItemPricing(self, itemId, vendorId):
2331
    """
2332
    Parameters:
2333
     - itemId
2334
     - vendorId
2335
    """
2336
    self.send_getAllVendorItemPricing(itemId, vendorId)
2337
    return self.recv_getAllVendorItemPricing()
2338
 
2339
  def send_getAllVendorItemPricing(self, itemId, vendorId):
2340
    self._oprot.writeMessageBegin('getAllVendorItemPricing', TMessageType.CALL, self._seqid)
2341
    args = getAllVendorItemPricing_args()
2342
    args.itemId = itemId
2343
    args.vendorId = vendorId
2344
    args.write(self._oprot)
2345
    self._oprot.writeMessageEnd()
2346
    self._oprot.trans.flush()
2347
 
2348
  def recv_getAllVendorItemPricing(self, ):
2349
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2350
    if mtype == TMessageType.EXCEPTION:
2351
      x = TApplicationException()
2352
      x.read(self._iprot)
2353
      self._iprot.readMessageEnd()
2354
      raise x
2355
    result = getAllVendorItemPricing_result()
2356
    result.read(self._iprot)
2357
    self._iprot.readMessageEnd()
2358
    if result.success is not None:
2359
      return result.success
2360
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemPricing failed: unknown result");
2361
 
6857 amar.kumar 2362
  def getNonZeroItemStockPurchaseParams(self, ):
2363
    self.send_getNonZeroItemStockPurchaseParams()
2364
    return self.recv_getNonZeroItemStockPurchaseParams()
6832 amar.kumar 2365
 
6857 amar.kumar 2366
  def send_getNonZeroItemStockPurchaseParams(self, ):
2367
    self._oprot.writeMessageBegin('getNonZeroItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2368
    args = getNonZeroItemStockPurchaseParams_args()
2369
    args.write(self._oprot)
2370
    self._oprot.writeMessageEnd()
2371
    self._oprot.trans.flush()
2372
 
2373
  def recv_getNonZeroItemStockPurchaseParams(self, ):
2374
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2375
    if mtype == TMessageType.EXCEPTION:
2376
      x = TApplicationException()
2377
      x.read(self._iprot)
2378
      self._iprot.readMessageEnd()
2379
      raise x
2380
    result = getNonZeroItemStockPurchaseParams_result()
2381
    result.read(self._iprot)
2382
    self._iprot.readMessageEnd()
2383
    if result.success is not None:
2384
      return result.success
2385
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
2386
 
7149 amar.kumar 2387
  def getBillableInventoryAndPendingOrders(self, ):
2388
    """
2389
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
2390
    """
2391
    self.send_getBillableInventoryAndPendingOrders()
2392
    return self.recv_getBillableInventoryAndPendingOrders()
6857 amar.kumar 2393
 
7149 amar.kumar 2394
  def send_getBillableInventoryAndPendingOrders(self, ):
2395
    self._oprot.writeMessageBegin('getBillableInventoryAndPendingOrders', TMessageType.CALL, self._seqid)
2396
    args = getBillableInventoryAndPendingOrders_args()
2397
    args.write(self._oprot)
2398
    self._oprot.writeMessageEnd()
2399
    self._oprot.trans.flush()
2400
 
2401
  def recv_getBillableInventoryAndPendingOrders(self, ):
2402
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2403
    if mtype == TMessageType.EXCEPTION:
2404
      x = TApplicationException()
2405
      x.read(self._iprot)
2406
      self._iprot.readMessageEnd()
2407
      raise x
2408
    result = getBillableInventoryAndPendingOrders_result()
2409
    result.read(self._iprot)
2410
    self._iprot.readMessageEnd()
2411
    if result.success is not None:
2412
      return result.success
2413
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
2414
 
7281 kshitij.so 2415
  def getWarehouseName(self, warehouse_id):
2416
    """
2417
    Parameters:
2418
     - warehouse_id
2419
    """
2420
    self.send_getWarehouseName(warehouse_id)
2421
    return self.recv_getWarehouseName()
7149 amar.kumar 2422
 
7281 kshitij.so 2423
  def send_getWarehouseName(self, warehouse_id):
2424
    self._oprot.writeMessageBegin('getWarehouseName', TMessageType.CALL, self._seqid)
2425
    args = getWarehouseName_args()
2426
    args.warehouse_id = warehouse_id
2427
    args.write(self._oprot)
2428
    self._oprot.writeMessageEnd()
2429
    self._oprot.trans.flush()
2430
 
2431
  def recv_getWarehouseName(self, ):
2432
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2433
    if mtype == TMessageType.EXCEPTION:
2434
      x = TApplicationException()
2435
      x.read(self._iprot)
2436
      self._iprot.readMessageEnd()
2437
      raise x
2438
    result = getWarehouseName_result()
2439
    result.read(self._iprot)
2440
    self._iprot.readMessageEnd()
2441
    if result.success is not None:
2442
      return result.success
2443
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseName failed: unknown result");
2444
 
2445
  def getAmazonInventoryForItem(self, item_id):
2446
    """
2447
    Parameters:
2448
     - item_id
2449
    """
2450
    self.send_getAmazonInventoryForItem(item_id)
2451
    return self.recv_getAmazonInventoryForItem()
2452
 
2453
  def send_getAmazonInventoryForItem(self, item_id):
2454
    self._oprot.writeMessageBegin('getAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2455
    args = getAmazonInventoryForItem_args()
2456
    args.item_id = item_id
2457
    args.write(self._oprot)
2458
    self._oprot.writeMessageEnd()
2459
    self._oprot.trans.flush()
2460
 
2461
  def recv_getAmazonInventoryForItem(self, ):
2462
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2463
    if mtype == TMessageType.EXCEPTION:
2464
      x = TApplicationException()
2465
      x.read(self._iprot)
2466
      self._iprot.readMessageEnd()
2467
      raise x
2468
    result = getAmazonInventoryForItem_result()
2469
    result.read(self._iprot)
2470
    self._iprot.readMessageEnd()
2471
    if result.success is not None:
2472
      return result.success
2473
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonInventoryForItem failed: unknown result");
2474
 
2475
  def getAllAmazonInventory(self, ):
2476
    self.send_getAllAmazonInventory()
2477
    return self.recv_getAllAmazonInventory()
2478
 
2479
  def send_getAllAmazonInventory(self, ):
2480
    self._oprot.writeMessageBegin('getAllAmazonInventory', TMessageType.CALL, self._seqid)
2481
    args = getAllAmazonInventory_args()
2482
    args.write(self._oprot)
2483
    self._oprot.writeMessageEnd()
2484
    self._oprot.trans.flush()
2485
 
2486
  def recv_getAllAmazonInventory(self, ):
2487
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2488
    if mtype == TMessageType.EXCEPTION:
2489
      x = TApplicationException()
2490
      x.read(self._iprot)
2491
      self._iprot.readMessageEnd()
2492
      raise x
2493
    result = getAllAmazonInventory_result()
2494
    result.read(self._iprot)
2495
    self._iprot.readMessageEnd()
2496
    if result.success is not None:
2497
      return result.success
2498
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonInventory failed: unknown result");
2499
 
10450 vikram.rag 2500
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot, time):
7281 kshitij.so 2501
    """
2502
    Parameters:
2503
     - amazonInventorySnapshot
10450 vikram.rag 2504
     - time
7281 kshitij.so 2505
    """
10450 vikram.rag 2506
    self.send_addOrUpdateAmazonInventoryForItem(amazonInventorySnapshot, time)
7281 kshitij.so 2507
    self.recv_addOrUpdateAmazonInventoryForItem()
2508
 
10450 vikram.rag 2509
  def send_addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot, time):
7281 kshitij.so 2510
    self._oprot.writeMessageBegin('addOrUpdateAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2511
    args = addOrUpdateAmazonInventoryForItem_args()
2512
    args.amazonInventorySnapshot = amazonInventorySnapshot
10450 vikram.rag 2513
    args.time = time
7281 kshitij.so 2514
    args.write(self._oprot)
2515
    self._oprot.writeMessageEnd()
2516
    self._oprot.trans.flush()
2517
 
2518
  def recv_addOrUpdateAmazonInventoryForItem(self, ):
2519
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2520
    if mtype == TMessageType.EXCEPTION:
2521
      x = TApplicationException()
2522
      x.read(self._iprot)
2523
      self._iprot.readMessageEnd()
2524
      raise x
2525
    result = addOrUpdateAmazonInventoryForItem_result()
2526
    result.read(self._iprot)
2527
    self._iprot.readMessageEnd()
2528
    return
2529
 
7972 amar.kumar 2530
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
2531
    """
2532
    Parameters:
2533
     - itemId
2534
     - numberOfDays
2535
    """
2536
    self.send_getLastNdaySaleForItem(itemId, numberOfDays)
2537
    return self.recv_getLastNdaySaleForItem()
7281 kshitij.so 2538
 
7972 amar.kumar 2539
  def send_getLastNdaySaleForItem(self, itemId, numberOfDays):
2540
    self._oprot.writeMessageBegin('getLastNdaySaleForItem', TMessageType.CALL, self._seqid)
2541
    args = getLastNdaySaleForItem_args()
2542
    args.itemId = itemId
2543
    args.numberOfDays = numberOfDays
2544
    args.write(self._oprot)
2545
    self._oprot.writeMessageEnd()
2546
    self._oprot.trans.flush()
2547
 
2548
  def recv_getLastNdaySaleForItem(self, ):
2549
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2550
    if mtype == TMessageType.EXCEPTION:
2551
      x = TApplicationException()
2552
      x.read(self._iprot)
2553
      self._iprot.readMessageEnd()
2554
      raise x
2555
    result = getLastNdaySaleForItem_result()
2556
    result.read(self._iprot)
2557
    self._iprot.readMessageEnd()
2558
    if result.success is not None:
2559
      return result.success
2560
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastNdaySaleForItem failed: unknown result");
2561
 
8282 kshitij.so 2562
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2563
    """
2564
    Parameters:
2565
     - amazonfbainventorysnapshot
2566
    """
2567
    self.send_addOrUpdateAmazonFbaInventory(amazonfbainventorysnapshot)
2568
    self.recv_addOrUpdateAmazonFbaInventory()
2569
 
2570
  def send_addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2571
    self._oprot.writeMessageBegin('addOrUpdateAmazonFbaInventory', TMessageType.CALL, self._seqid)
2572
    args = addOrUpdateAmazonFbaInventory_args()
2573
    args.amazonfbainventorysnapshot = amazonfbainventorysnapshot
2574
    args.write(self._oprot)
2575
    self._oprot.writeMessageEnd()
2576
    self._oprot.trans.flush()
2577
 
2578
  def recv_addOrUpdateAmazonFbaInventory(self, ):
2579
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2580
    if mtype == TMessageType.EXCEPTION:
2581
      x = TApplicationException()
2582
      x.read(self._iprot)
2583
      self._iprot.readMessageEnd()
2584
      raise x
2585
    result = addOrUpdateAmazonFbaInventory_result()
2586
    result.read(self._iprot)
2587
    self._iprot.readMessageEnd()
2588
    return
2589
 
8182 amar.kumar 2590
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2591
    """
2592
    Parameters:
2593
     - itemId
2594
     - warehouseId
2595
     - holdQuantity
2596
     - source
2597
    """
2598
    self.send_addUpdateHoldInventory(itemId, warehouseId, holdQuantity, source)
2599
    self.recv_addUpdateHoldInventory()
7972 amar.kumar 2600
 
8182 amar.kumar 2601
  def send_addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2602
    self._oprot.writeMessageBegin('addUpdateHoldInventory', TMessageType.CALL, self._seqid)
2603
    args = addUpdateHoldInventory_args()
2604
    args.itemId = itemId
2605
    args.warehouseId = warehouseId
2606
    args.holdQuantity = holdQuantity
2607
    args.source = source
2608
    args.write(self._oprot)
2609
    self._oprot.writeMessageEnd()
2610
    self._oprot.trans.flush()
2611
 
2612
  def recv_addUpdateHoldInventory(self, ):
2613
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2614
    if mtype == TMessageType.EXCEPTION:
2615
      x = TApplicationException()
2616
      x.read(self._iprot)
2617
      self._iprot.readMessageEnd()
2618
      raise x
2619
    result = addUpdateHoldInventory_result()
2620
    result.read(self._iprot)
2621
    self._iprot.readMessageEnd()
9762 amar.kumar 2622
    if result.cex is not None:
2623
      raise result.cex
8182 amar.kumar 2624
    return
2625
 
8282 kshitij.so 2626
  def getAmazonFbaItemInventory(self, itemId):
2627
    """
2628
    Parameters:
2629
     - itemId
2630
    """
2631
    self.send_getAmazonFbaItemInventory(itemId)
2632
    return self.recv_getAmazonFbaItemInventory()
8182 amar.kumar 2633
 
8282 kshitij.so 2634
  def send_getAmazonFbaItemInventory(self, itemId):
2635
    self._oprot.writeMessageBegin('getAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2636
    args = getAmazonFbaItemInventory_args()
2637
    args.itemId = itemId
2638
    args.write(self._oprot)
2639
    self._oprot.writeMessageEnd()
2640
    self._oprot.trans.flush()
2641
 
2642
  def recv_getAmazonFbaItemInventory(self, ):
2643
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2644
    if mtype == TMessageType.EXCEPTION:
2645
      x = TApplicationException()
2646
      x.read(self._iprot)
2647
      self._iprot.readMessageEnd()
2648
      raise x
2649
    result = getAmazonFbaItemInventory_result()
2650
    result.read(self._iprot)
2651
    self._iprot.readMessageEnd()
2652
    if result.success is not None:
2653
      return result.success
2654
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonFbaItemInventory failed: unknown result");
2655
 
8363 vikram.rag 2656
  def getAllAmazonFbaItemInventory(self, ):
2657
    self.send_getAllAmazonFbaItemInventory()
2658
    return self.recv_getAllAmazonFbaItemInventory()
8282 kshitij.so 2659
 
8363 vikram.rag 2660
  def send_getAllAmazonFbaItemInventory(self, ):
2661
    self._oprot.writeMessageBegin('getAllAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2662
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 2663
    args.write(self._oprot)
2664
    self._oprot.writeMessageEnd()
2665
    self._oprot.trans.flush()
2666
 
8363 vikram.rag 2667
  def recv_getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 2668
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2669
    if mtype == TMessageType.EXCEPTION:
2670
      x = TApplicationException()
2671
      x.read(self._iprot)
2672
      self._iprot.readMessageEnd()
2673
      raise x
8363 vikram.rag 2674
    result = getAllAmazonFbaItemInventory_result()
8282 kshitij.so 2675
    result.read(self._iprot)
2676
    self._iprot.readMessageEnd()
2677
    if result.success is not None:
2678
      return result.success
8363 vikram.rag 2679
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonFbaItemInventory failed: unknown result");
8282 kshitij.so 2680
 
8363 vikram.rag 2681
  def getOursGoodWarehouseIdsForLocation(self, state_id):
2682
    """
2683
    Parameters:
2684
     - state_id
2685
    """
2686
    self.send_getOursGoodWarehouseIdsForLocation(state_id)
2687
    return self.recv_getOursGoodWarehouseIdsForLocation()
8282 kshitij.so 2688
 
8363 vikram.rag 2689
  def send_getOursGoodWarehouseIdsForLocation(self, state_id):
2690
    self._oprot.writeMessageBegin('getOursGoodWarehouseIdsForLocation', TMessageType.CALL, self._seqid)
2691
    args = getOursGoodWarehouseIdsForLocation_args()
2692
    args.state_id = state_id
2693
    args.write(self._oprot)
2694
    self._oprot.writeMessageEnd()
2695
    self._oprot.trans.flush()
2696
 
2697
  def recv_getOursGoodWarehouseIdsForLocation(self, ):
2698
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2699
    if mtype == TMessageType.EXCEPTION:
2700
      x = TApplicationException()
2701
      x.read(self._iprot)
2702
      self._iprot.readMessageEnd()
2703
      raise x
2704
    result = getOursGoodWarehouseIdsForLocation_result()
2705
    result.read(self._iprot)
2706
    self._iprot.readMessageEnd()
2707
    if result.success is not None:
2708
      return result.success
2709
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOursGoodWarehouseIdsForLocation failed: unknown result");
2710
 
8955 vikram.rag 2711
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2712
    """
2713
    Parameters:
2714
     - id
2715
     - warehouse_id
2716
     - source
2717
    """
2718
    self.send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(id, warehouse_id, source)
2719
    return self.recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource()
8363 vikram.rag 2720
 
8955 vikram.rag 2721
  def send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2722
    self._oprot.writeMessageBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource', TMessageType.CALL, self._seqid)
2723
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
2724
    args.id = id
2725
    args.warehouse_id = warehouse_id
2726
    args.source = source
2727
    args.write(self._oprot)
2728
    self._oprot.writeMessageEnd()
2729
    self._oprot.trans.flush()
2730
 
2731
  def recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, ):
2732
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2733
    if mtype == TMessageType.EXCEPTION:
2734
      x = TApplicationException()
2735
      x.read(self._iprot)
2736
      self._iprot.readMessageEnd()
2737
      raise x
2738
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
2739
    result.read(self._iprot)
2740
    self._iprot.readMessageEnd()
2741
    if result.success is not None:
2742
      return result.success
2743
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetailForItemForWarehouseIdExceptSource failed: unknown result");
2744
 
9404 vikram.rag 2745
  def getSnapdealInventoryForItem(self, item_id):
2746
    """
2747
    Parameters:
2748
     - item_id
2749
    """
2750
    self.send_getSnapdealInventoryForItem(item_id)
2751
    return self.recv_getSnapdealInventoryForItem()
8955 vikram.rag 2752
 
9404 vikram.rag 2753
  def send_getSnapdealInventoryForItem(self, item_id):
2754
    self._oprot.writeMessageBegin('getSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2755
    args = getSnapdealInventoryForItem_args()
2756
    args.item_id = item_id
2757
    args.write(self._oprot)
2758
    self._oprot.writeMessageEnd()
2759
    self._oprot.trans.flush()
2760
 
2761
  def recv_getSnapdealInventoryForItem(self, ):
2762
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2763
    if mtype == TMessageType.EXCEPTION:
2764
      x = TApplicationException()
2765
      x.read(self._iprot)
2766
      self._iprot.readMessageEnd()
2767
      raise x
2768
    result = getSnapdealInventoryForItem_result()
2769
    result.read(self._iprot)
2770
    self._iprot.readMessageEnd()
2771
    if result.success is not None:
2772
      return result.success
2773
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventoryForItem failed: unknown result");
2774
 
2775
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2776
    """
2777
    Parameters:
2778
     - snapdealinventoryitem
2779
    """
2780
    self.send_addOrUpdateSnapdealInventoryForItem(snapdealinventoryitem)
2781
    self.recv_addOrUpdateSnapdealInventoryForItem()
2782
 
2783
  def send_addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2784
    self._oprot.writeMessageBegin('addOrUpdateSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2785
    args = addOrUpdateSnapdealInventoryForItem_args()
2786
    args.snapdealinventoryitem = snapdealinventoryitem
2787
    args.write(self._oprot)
2788
    self._oprot.writeMessageEnd()
2789
    self._oprot.trans.flush()
2790
 
2791
  def recv_addOrUpdateSnapdealInventoryForItem(self, ):
2792
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2793
    if mtype == TMessageType.EXCEPTION:
2794
      x = TApplicationException()
2795
      x.read(self._iprot)
2796
      self._iprot.readMessageEnd()
2797
      raise x
2798
    result = addOrUpdateSnapdealInventoryForItem_result()
2799
    result.read(self._iprot)
2800
    self._iprot.readMessageEnd()
2801
    return
2802
 
2803
  def getNlcForWarehouse(self, warehouse_id, item_id):
2804
    """
2805
    Parameters:
2806
     - warehouse_id
2807
     - item_id
2808
    """
2809
    self.send_getNlcForWarehouse(warehouse_id, item_id)
2810
    return self.recv_getNlcForWarehouse()
2811
 
2812
  def send_getNlcForWarehouse(self, warehouse_id, item_id):
2813
    self._oprot.writeMessageBegin('getNlcForWarehouse', TMessageType.CALL, self._seqid)
2814
    args = getNlcForWarehouse_args()
2815
    args.warehouse_id = warehouse_id
2816
    args.item_id = item_id
2817
    args.write(self._oprot)
2818
    self._oprot.writeMessageEnd()
2819
    self._oprot.trans.flush()
2820
 
2821
  def recv_getNlcForWarehouse(self, ):
2822
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2823
    if mtype == TMessageType.EXCEPTION:
2824
      x = TApplicationException()
2825
      x.read(self._iprot)
2826
      self._iprot.readMessageEnd()
2827
      raise x
2828
    result = getNlcForWarehouse_result()
2829
    result.read(self._iprot)
2830
    self._iprot.readMessageEnd()
2831
    if result.success is not None:
2832
      return result.success
2833
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
2834
 
9640 amar.kumar 2835
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
2836
    """
2837
    Parameters:
2838
     - item_id
2839
     - warehouse_id
2840
    """
2841
    self.send_getHeldInventoryMapForItem(item_id, warehouse_id)
2842
    return self.recv_getHeldInventoryMapForItem()
2843
 
2844
  def send_getHeldInventoryMapForItem(self, item_id, warehouse_id):
2845
    self._oprot.writeMessageBegin('getHeldInventoryMapForItem', TMessageType.CALL, self._seqid)
2846
    args = getHeldInventoryMapForItem_args()
2847
    args.item_id = item_id
2848
    args.warehouse_id = warehouse_id
2849
    args.write(self._oprot)
2850
    self._oprot.writeMessageEnd()
2851
    self._oprot.trans.flush()
2852
 
2853
  def recv_getHeldInventoryMapForItem(self, ):
2854
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2855
    if mtype == TMessageType.EXCEPTION:
2856
      x = TApplicationException()
2857
      x.read(self._iprot)
2858
      self._iprot.readMessageEnd()
2859
      raise x
2860
    result = getHeldInventoryMapForItem_result()
2861
    result.read(self._iprot)
2862
    self._iprot.readMessageEnd()
2863
    if result.success is not None:
2864
      return result.success
2865
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHeldInventoryMapForItem failed: unknown result");
2866
 
9495 vikram.rag 2867
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2868
    """
2869
    Parameters:
2870
     - allamazonfbainventorysnapshot
2871
    """
2872
    self.send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot)
2873
    self.recv_addOrUpdateAllAmazonFbaInventory()
9404 vikram.rag 2874
 
9495 vikram.rag 2875
  def send_addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2876
    self._oprot.writeMessageBegin('addOrUpdateAllAmazonFbaInventory', TMessageType.CALL, self._seqid)
2877
    args = addOrUpdateAllAmazonFbaInventory_args()
2878
    args.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 2879
    args.write(self._oprot)
2880
    self._oprot.writeMessageEnd()
2881
    self._oprot.trans.flush()
2882
 
9495 vikram.rag 2883
  def recv_addOrUpdateAllAmazonFbaInventory(self, ):
9456 vikram.rag 2884
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2885
    if mtype == TMessageType.EXCEPTION:
2886
      x = TApplicationException()
2887
      x.read(self._iprot)
2888
      self._iprot.readMessageEnd()
2889
      raise x
9495 vikram.rag 2890
    result = addOrUpdateAllAmazonFbaInventory_result()
9456 vikram.rag 2891
    result.read(self._iprot)
2892
    self._iprot.readMessageEnd()
9495 vikram.rag 2893
    return
9456 vikram.rag 2894
 
9495 vikram.rag 2895
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
9482 vikram.rag 2896
    """
2897
    Parameters:
9495 vikram.rag 2898
     - allsnapdealinventorysnapshot
9482 vikram.rag 2899
    """
9495 vikram.rag 2900
    self.send_addOrUpdateAllSnapdealInventory(allsnapdealinventorysnapshot)
2901
    self.recv_addOrUpdateAllSnapdealInventory()
9456 vikram.rag 2902
 
9495 vikram.rag 2903
  def send_addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
2904
    self._oprot.writeMessageBegin('addOrUpdateAllSnapdealInventory', TMessageType.CALL, self._seqid)
2905
    args = addOrUpdateAllSnapdealInventory_args()
2906
    args.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 2907
    args.write(self._oprot)
2908
    self._oprot.writeMessageEnd()
2909
    self._oprot.trans.flush()
2910
 
9495 vikram.rag 2911
  def recv_addOrUpdateAllSnapdealInventory(self, ):
9482 vikram.rag 2912
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2913
    if mtype == TMessageType.EXCEPTION:
2914
      x = TApplicationException()
2915
      x.read(self._iprot)
2916
      self._iprot.readMessageEnd()
2917
      raise x
9495 vikram.rag 2918
    result = addOrUpdateAllSnapdealInventory_result()
9482 vikram.rag 2919
    result.read(self._iprot)
2920
    self._iprot.readMessageEnd()
2921
    return
2922
 
9495 vikram.rag 2923
  def getSnapdealInventorySnapshot(self, ):
2924
    self.send_getSnapdealInventorySnapshot()
2925
    return self.recv_getSnapdealInventorySnapshot()
9482 vikram.rag 2926
 
9495 vikram.rag 2927
  def send_getSnapdealInventorySnapshot(self, ):
2928
    self._oprot.writeMessageBegin('getSnapdealInventorySnapshot', TMessageType.CALL, self._seqid)
2929
    args = getSnapdealInventorySnapshot_args()
2930
    args.write(self._oprot)
2931
    self._oprot.writeMessageEnd()
2932
    self._oprot.trans.flush()
2933
 
2934
  def recv_getSnapdealInventorySnapshot(self, ):
2935
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2936
    if mtype == TMessageType.EXCEPTION:
2937
      x = TApplicationException()
2938
      x.read(self._iprot)
2939
      self._iprot.readMessageEnd()
2940
      raise x
2941
    result = getSnapdealInventorySnapshot_result()
2942
    result.read(self._iprot)
2943
    self._iprot.readMessageEnd()
2944
    if result.success is not None:
2945
      return result.success
2946
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventorySnapshot failed: unknown result");
2947
 
9761 amar.kumar 2948
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
2949
    """
2950
    Parameters:
2951
     - itemId
2952
     - warehouseId
2953
     - source
2954
    """
2955
    self.send_getHoldInventoryDetails(itemId, warehouseId, source)
2956
    return self.recv_getHoldInventoryDetails()
9495 vikram.rag 2957
 
9761 amar.kumar 2958
  def send_getHoldInventoryDetails(self, itemId, warehouseId, source):
2959
    self._oprot.writeMessageBegin('getHoldInventoryDetails', TMessageType.CALL, self._seqid)
2960
    args = getHoldInventoryDetails_args()
2961
    args.itemId = itemId
2962
    args.warehouseId = warehouseId
2963
    args.source = source
2964
    args.write(self._oprot)
2965
    self._oprot.writeMessageEnd()
2966
    self._oprot.trans.flush()
2967
 
2968
  def recv_getHoldInventoryDetails(self, ):
2969
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2970
    if mtype == TMessageType.EXCEPTION:
2971
      x = TApplicationException()
2972
      x.read(self._iprot)
2973
      self._iprot.readMessageEnd()
2974
      raise x
2975
    result = getHoldInventoryDetails_result()
2976
    result.read(self._iprot)
2977
    self._iprot.readMessageEnd()
2978
    if result.success is not None:
2979
      return result.success
2980
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetails failed: unknown result");
2981
 
10450 vikram.rag 2982
  def addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot, time):
10050 vikram.rag 2983
    """
2984
    Parameters:
2985
     - flipkartInventorySnapshot
10450 vikram.rag 2986
     - time
10050 vikram.rag 2987
    """
10450 vikram.rag 2988
    self.send_addOrUpdateFlipkartInventorySnapshot(flipkartInventorySnapshot, time)
10050 vikram.rag 2989
    self.recv_addOrUpdateFlipkartInventorySnapshot()
9761 amar.kumar 2990
 
10450 vikram.rag 2991
  def send_addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot, time):
10050 vikram.rag 2992
    self._oprot.writeMessageBegin('addOrUpdateFlipkartInventorySnapshot', TMessageType.CALL, self._seqid)
2993
    args = addOrUpdateFlipkartInventorySnapshot_args()
2994
    args.flipkartInventorySnapshot = flipkartInventorySnapshot
10450 vikram.rag 2995
    args.time = time
10050 vikram.rag 2996
    args.write(self._oprot)
2997
    self._oprot.writeMessageEnd()
2998
    self._oprot.trans.flush()
2999
 
3000
  def recv_addOrUpdateFlipkartInventorySnapshot(self, ):
3001
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3002
    if mtype == TMessageType.EXCEPTION:
3003
      x = TApplicationException()
3004
      x.read(self._iprot)
3005
      self._iprot.readMessageEnd()
3006
      raise x
3007
    result = addOrUpdateFlipkartInventorySnapshot_result()
3008
    result.read(self._iprot)
3009
    self._iprot.readMessageEnd()
3010
    return
3011
 
3012
  def getFlipkartInventorySnapshot(self, ):
3013
    self.send_getFlipkartInventorySnapshot()
3014
    return self.recv_getFlipkartInventorySnapshot()
3015
 
3016
  def send_getFlipkartInventorySnapshot(self, ):
3017
    self._oprot.writeMessageBegin('getFlipkartInventorySnapshot', TMessageType.CALL, self._seqid)
3018
    args = getFlipkartInventorySnapshot_args()
3019
    args.write(self._oprot)
3020
    self._oprot.writeMessageEnd()
3021
    self._oprot.trans.flush()
3022
 
3023
  def recv_getFlipkartInventorySnapshot(self, ):
3024
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3025
    if mtype == TMessageType.EXCEPTION:
3026
      x = TApplicationException()
3027
      x.read(self._iprot)
3028
      self._iprot.readMessageEnd()
3029
      raise x
3030
    result = getFlipkartInventorySnapshot_result()
3031
    result.read(self._iprot)
3032
    self._iprot.readMessageEnd()
3033
    if result.success is not None:
3034
      return result.success
3035
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartInventorySnapshot failed: unknown result");
3036
 
10097 kshitij.so 3037
  def getFlipkartlInventoryForItem(self, item_id):
3038
    """
3039
    Parameters:
3040
     - item_id
3041
    """
3042
    self.send_getFlipkartlInventoryForItem(item_id)
3043
    return self.recv_getFlipkartlInventoryForItem()
10050 vikram.rag 3044
 
10097 kshitij.so 3045
  def send_getFlipkartlInventoryForItem(self, item_id):
3046
    self._oprot.writeMessageBegin('getFlipkartlInventoryForItem', TMessageType.CALL, self._seqid)
3047
    args = getFlipkartlInventoryForItem_args()
3048
    args.item_id = item_id
3049
    args.write(self._oprot)
3050
    self._oprot.writeMessageEnd()
3051
    self._oprot.trans.flush()
3052
 
3053
  def recv_getFlipkartlInventoryForItem(self, ):
3054
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3055
    if mtype == TMessageType.EXCEPTION:
3056
      x = TApplicationException()
3057
      x.read(self._iprot)
3058
      self._iprot.readMessageEnd()
3059
      raise x
3060
    result = getFlipkartlInventoryForItem_result()
3061
    result.read(self._iprot)
3062
    self._iprot.readMessageEnd()
3063
    if result.success is not None:
3064
      return result.success
3065
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartlInventoryForItem failed: unknown result");
3066
 
10485 vikram.rag 3067
  def getStateMaster(self, ):
3068
    self.send_getStateMaster()
3069
    return self.recv_getStateMaster()
10097 kshitij.so 3070
 
10485 vikram.rag 3071
  def send_getStateMaster(self, ):
3072
    self._oprot.writeMessageBegin('getStateMaster', TMessageType.CALL, self._seqid)
3073
    args = getStateMaster_args()
3074
    args.write(self._oprot)
3075
    self._oprot.writeMessageEnd()
3076
    self._oprot.trans.flush()
3077
 
3078
  def recv_getStateMaster(self, ):
3079
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3080
    if mtype == TMessageType.EXCEPTION:
3081
      x = TApplicationException()
3082
      x.read(self._iprot)
3083
      self._iprot.readMessageEnd()
3084
      raise x
3085
    result = getStateMaster_result()
3086
    result.read(self._iprot)
3087
    self._iprot.readMessageEnd()
3088
    if result.success is not None:
3089
      return result.success
3090
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStateMaster failed: unknown result");
3091
 
10544 vikram.rag 3092
  def updateSnapdealStockAtEOD(self, allsnapdealstock):
3093
    """
3094
    Parameters:
3095
     - allsnapdealstock
3096
    """
3097
    self.send_updateSnapdealStockAtEOD(allsnapdealstock)
3098
    self.recv_updateSnapdealStockAtEOD()
10485 vikram.rag 3099
 
10544 vikram.rag 3100
  def send_updateSnapdealStockAtEOD(self, allsnapdealstock):
3101
    self._oprot.writeMessageBegin('updateSnapdealStockAtEOD', TMessageType.CALL, self._seqid)
3102
    args = updateSnapdealStockAtEOD_args()
3103
    args.allsnapdealstock = allsnapdealstock
3104
    args.write(self._oprot)
3105
    self._oprot.writeMessageEnd()
3106
    self._oprot.trans.flush()
3107
 
3108
  def recv_updateSnapdealStockAtEOD(self, ):
3109
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3110
    if mtype == TMessageType.EXCEPTION:
3111
      x = TApplicationException()
3112
      x.read(self._iprot)
3113
      self._iprot.readMessageEnd()
3114
      raise x
3115
    result = updateSnapdealStockAtEOD_result()
3116
    result.read(self._iprot)
3117
    self._iprot.readMessageEnd()
3118
    return
3119
 
3120
  def updateFlipkartStockAtEOD(self, allflipkartstock):
3121
    """
3122
    Parameters:
3123
     - allflipkartstock
3124
    """
3125
    self.send_updateFlipkartStockAtEOD(allflipkartstock)
3126
    self.recv_updateFlipkartStockAtEOD()
3127
 
3128
  def send_updateFlipkartStockAtEOD(self, allflipkartstock):
3129
    self._oprot.writeMessageBegin('updateFlipkartStockAtEOD', TMessageType.CALL, self._seqid)
3130
    args = updateFlipkartStockAtEOD_args()
3131
    args.allflipkartstock = allflipkartstock
3132
    args.write(self._oprot)
3133
    self._oprot.writeMessageEnd()
3134
    self._oprot.trans.flush()
3135
 
3136
  def recv_updateFlipkartStockAtEOD(self, ):
3137
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3138
    if mtype == TMessageType.EXCEPTION:
3139
      x = TApplicationException()
3140
      x.read(self._iprot)
3141
      self._iprot.readMessageEnd()
3142
      raise x
3143
    result = updateFlipkartStockAtEOD_result()
3144
    result.read(self._iprot)
3145
    self._iprot.readMessageEnd()
3146
    return
3147
 
3148
 
5944 mandeep.dh 3149
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3150
  def __init__(self, handler):
3151
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3152
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
3153
    self._processMap["addVendor"] = Processor.process_addVendor
3154
    self._processMap["updateInventoryHistory"] = Processor.process_updateInventoryHistory
3155
    self._processMap["updateInventory"] = Processor.process_updateInventory
3156
    self._processMap["addInventory"] = Processor.process_addInventory
3157
    self._processMap["retireWarehouse"] = Processor.process_retireWarehouse
3158
    self._processMap["getItemInventoryByItemId"] = Processor.process_getItemInventoryByItemId
3159
    self._processMap["getItemAvailibilityAtWarehouse"] = Processor.process_getItemAvailibilityAtWarehouse
3160
    self._processMap["getItemAvailabilityAtLocation"] = Processor.process_getItemAvailabilityAtLocation
3161
    self._processMap["getAllWarehouses"] = Processor.process_getAllWarehouses
3162
    self._processMap["getWarehouse"] = Processor.process_getWarehouse
3163
    self._processMap["getAllItemsForWarehouse"] = Processor.process_getAllItemsForWarehouse
5966 rajveer 3164
    self._processMap["isOrderBillable"] = Processor.process_isOrderBillable
5944 mandeep.dh 3165
    self._processMap["reserveItemInWarehouse"] = Processor.process_reserveItemInWarehouse
7968 amar.kumar 3166
    self._processMap["updateReservationForOrder"] = Processor.process_updateReservationForOrder
5944 mandeep.dh 3167
    self._processMap["reduceReservationCount"] = Processor.process_reduceReservationCount
3168
    self._processMap["getItemPricing"] = Processor.process_getItemPricing
3169
    self._processMap["getAllItemPricing"] = Processor.process_getAllItemPricing
3170
    self._processMap["addVendorItemPricing"] = Processor.process_addVendorItemPricing
3171
    self._processMap["getVendor"] = Processor.process_getVendor
3172
    self._processMap["getAllVendors"] = Processor.process_getAllVendors
3173
    self._processMap["addVendorItemMapping"] = Processor.process_addVendorItemMapping
3174
    self._processMap["getVendorItemMappings"] = Processor.process_getVendorItemMappings
3175
    self._processMap["getPendingOrdersInventory"] = Processor.process_getPendingOrdersInventory
3176
    self._processMap["getWarehouses"] = Processor.process_getWarehouses
3177
    self._processMap["resetAvailability"] = Processor.process_resetAvailability
3178
    self._processMap["resetAvailabilityForWarehouse"] = Processor.process_resetAvailabilityForWarehouse
3179
    self._processMap["getItemKeysToBeProcessed"] = Processor.process_getItemKeysToBeProcessed
3180
    self._processMap["markMissedInventoryUpdatesAsProcessed"] = Processor.process_markMissedInventoryUpdatesAsProcessed
3181
    self._processMap["getIgnoredItemKeys"] = Processor.process_getIgnoredItemKeys
3182
    self._processMap["addBadInventory"] = Processor.process_addBadInventory
3183
    self._processMap["getShippingLocations"] = Processor.process_getShippingLocations
3184
    self._processMap["getAllVendorItemMappings"] = Processor.process_getAllVendorItemMappings
3185
    self._processMap["getInventorySnapshot"] = Processor.process_getInventorySnapshot
3186
    self._processMap["clearItemAvailabilityCache"] = Processor.process_clearItemAvailabilityCache
3187
    self._processMap["updateVendorString"] = Processor.process_updateVendorString
6096 amit.gupta 3188
    self._processMap["clearItemAvailabilityCacheForItem"] = Processor.process_clearItemAvailabilityCacheForItem
6467 amar.kumar 3189
    self._processMap["getOurWarehouseIdForVendor"] = Processor.process_getOurWarehouseIdForVendor
6484 amar.kumar 3190
    self._processMap["getItemAvailabilitiesAtOurWarehouses"] = Processor.process_getItemAvailabilitiesAtOurWarehouses
6531 vikram.rag 3191
    self._processMap["getMonitoredWarehouseForVendors"] = Processor.process_getMonitoredWarehouseForVendors
3192
    self._processMap["getIgnoredWarehouseidsAndItemids"] = Processor.process_getIgnoredWarehouseidsAndItemids
3193
    self._processMap["insertItemtoIgnoreInventoryUpdatelist"] = Processor.process_insertItemtoIgnoreInventoryUpdatelist
3194
    self._processMap["deleteItemFromIgnoredInventoryUpdateList"] = Processor.process_deleteItemFromIgnoredInventoryUpdateList
3195
    self._processMap["getAllIgnoredInventoryupdateItemsCount"] = Processor.process_getAllIgnoredInventoryupdateItemsCount
3196
    self._processMap["getIgnoredInventoryUpdateItemids"] = Processor.process_getIgnoredInventoryUpdateItemids
6821 amar.kumar 3197
    self._processMap["updateItemStockPurchaseParams"] = Processor.process_updateItemStockPurchaseParams
3198
    self._processMap["getItemStockPurchaseParams"] = Processor.process_getItemStockPurchaseParams
3199
    self._processMap["addOosStatusForItem"] = Processor.process_addOosStatusForItem
6832 amar.kumar 3200
    self._processMap["getOosStatusesForXDaysForItem"] = Processor.process_getOosStatusesForXDaysForItem
10126 amar.kumar 3201
    self._processMap["getOosStatusesForXDays"] = Processor.process_getOosStatusesForXDays
3202
    self._processMap["getAllVendorItemPricing"] = Processor.process_getAllVendorItemPricing
6857 amar.kumar 3203
    self._processMap["getNonZeroItemStockPurchaseParams"] = Processor.process_getNonZeroItemStockPurchaseParams
7149 amar.kumar 3204
    self._processMap["getBillableInventoryAndPendingOrders"] = Processor.process_getBillableInventoryAndPendingOrders
7281 kshitij.so 3205
    self._processMap["getWarehouseName"] = Processor.process_getWarehouseName
3206
    self._processMap["getAmazonInventoryForItem"] = Processor.process_getAmazonInventoryForItem
3207
    self._processMap["getAllAmazonInventory"] = Processor.process_getAllAmazonInventory
3208
    self._processMap["addOrUpdateAmazonInventoryForItem"] = Processor.process_addOrUpdateAmazonInventoryForItem
7972 amar.kumar 3209
    self._processMap["getLastNdaySaleForItem"] = Processor.process_getLastNdaySaleForItem
8282 kshitij.so 3210
    self._processMap["addOrUpdateAmazonFbaInventory"] = Processor.process_addOrUpdateAmazonFbaInventory
8182 amar.kumar 3211
    self._processMap["addUpdateHoldInventory"] = Processor.process_addUpdateHoldInventory
8282 kshitij.so 3212
    self._processMap["getAmazonFbaItemInventory"] = Processor.process_getAmazonFbaItemInventory
8363 vikram.rag 3213
    self._processMap["getAllAmazonFbaItemInventory"] = Processor.process_getAllAmazonFbaItemInventory
3214
    self._processMap["getOursGoodWarehouseIdsForLocation"] = Processor.process_getOursGoodWarehouseIdsForLocation
8955 vikram.rag 3215
    self._processMap["getHoldInventoryDetailForItemForWarehouseIdExceptSource"] = Processor.process_getHoldInventoryDetailForItemForWarehouseIdExceptSource
9404 vikram.rag 3216
    self._processMap["getSnapdealInventoryForItem"] = Processor.process_getSnapdealInventoryForItem
3217
    self._processMap["addOrUpdateSnapdealInventoryForItem"] = Processor.process_addOrUpdateSnapdealInventoryForItem
3218
    self._processMap["getNlcForWarehouse"] = Processor.process_getNlcForWarehouse
9640 amar.kumar 3219
    self._processMap["getHeldInventoryMapForItem"] = Processor.process_getHeldInventoryMapForItem
9482 vikram.rag 3220
    self._processMap["addOrUpdateAllAmazonFbaInventory"] = Processor.process_addOrUpdateAllAmazonFbaInventory
9495 vikram.rag 3221
    self._processMap["addOrUpdateAllSnapdealInventory"] = Processor.process_addOrUpdateAllSnapdealInventory
3222
    self._processMap["getSnapdealInventorySnapshot"] = Processor.process_getSnapdealInventorySnapshot
9761 amar.kumar 3223
    self._processMap["getHoldInventoryDetails"] = Processor.process_getHoldInventoryDetails
10050 vikram.rag 3224
    self._processMap["addOrUpdateFlipkartInventorySnapshot"] = Processor.process_addOrUpdateFlipkartInventorySnapshot
3225
    self._processMap["getFlipkartInventorySnapshot"] = Processor.process_getFlipkartInventorySnapshot
10097 kshitij.so 3226
    self._processMap["getFlipkartlInventoryForItem"] = Processor.process_getFlipkartlInventoryForItem
10485 vikram.rag 3227
    self._processMap["getStateMaster"] = Processor.process_getStateMaster
10544 vikram.rag 3228
    self._processMap["updateSnapdealStockAtEOD"] = Processor.process_updateSnapdealStockAtEOD
3229
    self._processMap["updateFlipkartStockAtEOD"] = Processor.process_updateFlipkartStockAtEOD
5944 mandeep.dh 3230
 
3231
  def process(self, iprot, oprot):
3232
    (name, type, seqid) = iprot.readMessageBegin()
3233
    if name not in self._processMap:
3234
      iprot.skip(TType.STRUCT)
3235
      iprot.readMessageEnd()
3236
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3237
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3238
      x.write(oprot)
3239
      oprot.writeMessageEnd()
3240
      oprot.trans.flush()
3241
      return
3242
    else:
3243
      self._processMap[name](self, seqid, iprot, oprot)
3244
    return True
3245
 
3246
  def process_addWarehouse(self, seqid, iprot, oprot):
3247
    args = addWarehouse_args()
3248
    args.read(iprot)
3249
    iprot.readMessageEnd()
3250
    result = addWarehouse_result()
3251
    try:
3252
      result.success = self._handler.addWarehouse(args.warehouse)
3253
    except InventoryServiceException, cex:
3254
      result.cex = cex
3255
    oprot.writeMessageBegin("addWarehouse", TMessageType.REPLY, seqid)
3256
    result.write(oprot)
3257
    oprot.writeMessageEnd()
3258
    oprot.trans.flush()
3259
 
3260
  def process_addVendor(self, seqid, iprot, oprot):
3261
    args = addVendor_args()
3262
    args.read(iprot)
3263
    iprot.readMessageEnd()
3264
    result = addVendor_result()
3265
    try:
3266
      result.success = self._handler.addVendor(args.vendor)
3267
    except InventoryServiceException, cex:
3268
      result.cex = cex
3269
    oprot.writeMessageBegin("addVendor", TMessageType.REPLY, seqid)
3270
    result.write(oprot)
3271
    oprot.writeMessageEnd()
3272
    oprot.trans.flush()
3273
 
3274
  def process_updateInventoryHistory(self, seqid, iprot, oprot):
3275
    args = updateInventoryHistory_args()
3276
    args.read(iprot)
3277
    iprot.readMessageEnd()
3278
    result = updateInventoryHistory_result()
3279
    try:
3280
      self._handler.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability)
3281
    except InventoryServiceException, cex:
3282
      result.cex = cex
3283
    oprot.writeMessageBegin("updateInventoryHistory", TMessageType.REPLY, seqid)
3284
    result.write(oprot)
3285
    oprot.writeMessageEnd()
3286
    oprot.trans.flush()
3287
 
3288
  def process_updateInventory(self, seqid, iprot, oprot):
3289
    args = updateInventory_args()
3290
    args.read(iprot)
3291
    iprot.readMessageEnd()
3292
    result = updateInventory_result()
3293
    try:
3294
      self._handler.updateInventory(args.warehouse_id, args.timestamp, args.availability)
3295
    except InventoryServiceException, cex:
3296
      result.cex = cex
3297
    oprot.writeMessageBegin("updateInventory", TMessageType.REPLY, seqid)
3298
    result.write(oprot)
3299
    oprot.writeMessageEnd()
3300
    oprot.trans.flush()
3301
 
3302
  def process_addInventory(self, seqid, iprot, oprot):
3303
    args = addInventory_args()
3304
    args.read(iprot)
3305
    iprot.readMessageEnd()
3306
    result = addInventory_result()
3307
    try:
3308
      self._handler.addInventory(args.itemId, args.warehouseId, args.quantity)
3309
    except InventoryServiceException, cex:
3310
      result.cex = cex
3311
    oprot.writeMessageBegin("addInventory", TMessageType.REPLY, seqid)
3312
    result.write(oprot)
3313
    oprot.writeMessageEnd()
3314
    oprot.trans.flush()
3315
 
3316
  def process_retireWarehouse(self, seqid, iprot, oprot):
3317
    args = retireWarehouse_args()
3318
    args.read(iprot)
3319
    iprot.readMessageEnd()
3320
    result = retireWarehouse_result()
3321
    try:
3322
      self._handler.retireWarehouse(args.warehouse_id)
3323
    except InventoryServiceException, cex:
3324
      result.cex = cex
3325
    oprot.writeMessageBegin("retireWarehouse", TMessageType.REPLY, seqid)
3326
    result.write(oprot)
3327
    oprot.writeMessageEnd()
3328
    oprot.trans.flush()
3329
 
3330
  def process_getItemInventoryByItemId(self, seqid, iprot, oprot):
3331
    args = getItemInventoryByItemId_args()
3332
    args.read(iprot)
3333
    iprot.readMessageEnd()
3334
    result = getItemInventoryByItemId_result()
3335
    try:
3336
      result.success = self._handler.getItemInventoryByItemId(args.item_id)
3337
    except InventoryServiceException, cex:
3338
      result.cex = cex
3339
    oprot.writeMessageBegin("getItemInventoryByItemId", TMessageType.REPLY, seqid)
3340
    result.write(oprot)
3341
    oprot.writeMessageEnd()
3342
    oprot.trans.flush()
3343
 
3344
  def process_getItemAvailibilityAtWarehouse(self, seqid, iprot, oprot):
3345
    args = getItemAvailibilityAtWarehouse_args()
3346
    args.read(iprot)
3347
    iprot.readMessageEnd()
3348
    result = getItemAvailibilityAtWarehouse_result()
3349
    try:
3350
      result.success = self._handler.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id)
3351
    except InventoryServiceException, cex:
3352
      result.cex = cex
3353
    oprot.writeMessageBegin("getItemAvailibilityAtWarehouse", TMessageType.REPLY, seqid)
3354
    result.write(oprot)
3355
    oprot.writeMessageEnd()
3356
    oprot.trans.flush()
3357
 
3358
  def process_getItemAvailabilityAtLocation(self, seqid, iprot, oprot):
3359
    args = getItemAvailabilityAtLocation_args()
3360
    args.read(iprot)
3361
    iprot.readMessageEnd()
3362
    result = getItemAvailabilityAtLocation_result()
3363
    try:
5978 rajveer 3364
      result.success = self._handler.getItemAvailabilityAtLocation(args.itemId, args.sourceId)
5944 mandeep.dh 3365
    except InventoryServiceException, isex:
3366
      result.isex = isex
3367
    oprot.writeMessageBegin("getItemAvailabilityAtLocation", TMessageType.REPLY, seqid)
3368
    result.write(oprot)
3369
    oprot.writeMessageEnd()
3370
    oprot.trans.flush()
3371
 
3372
  def process_getAllWarehouses(self, seqid, iprot, oprot):
3373
    args = getAllWarehouses_args()
3374
    args.read(iprot)
3375
    iprot.readMessageEnd()
3376
    result = getAllWarehouses_result()
3377
    try:
3378
      result.success = self._handler.getAllWarehouses(args.isActive)
3379
    except InventoryServiceException, cex:
3380
      result.cex = cex
3381
    oprot.writeMessageBegin("getAllWarehouses", TMessageType.REPLY, seqid)
3382
    result.write(oprot)
3383
    oprot.writeMessageEnd()
3384
    oprot.trans.flush()
3385
 
3386
  def process_getWarehouse(self, seqid, iprot, oprot):
3387
    args = getWarehouse_args()
3388
    args.read(iprot)
3389
    iprot.readMessageEnd()
3390
    result = getWarehouse_result()
3391
    try:
3392
      result.success = self._handler.getWarehouse(args.warehouse_id)
3393
    except InventoryServiceException, cex:
3394
      result.cex = cex
3395
    oprot.writeMessageBegin("getWarehouse", TMessageType.REPLY, seqid)
3396
    result.write(oprot)
3397
    oprot.writeMessageEnd()
3398
    oprot.trans.flush()
3399
 
3400
  def process_getAllItemsForWarehouse(self, seqid, iprot, oprot):
3401
    args = getAllItemsForWarehouse_args()
3402
    args.read(iprot)
3403
    iprot.readMessageEnd()
3404
    result = getAllItemsForWarehouse_result()
3405
    try:
3406
      result.success = self._handler.getAllItemsForWarehouse(args.warehouse_id)
3407
    except InventoryServiceException, cex:
3408
      result.cex = cex
3409
    oprot.writeMessageBegin("getAllItemsForWarehouse", TMessageType.REPLY, seqid)
3410
    result.write(oprot)
3411
    oprot.writeMessageEnd()
3412
    oprot.trans.flush()
3413
 
5966 rajveer 3414
  def process_isOrderBillable(self, seqid, iprot, oprot):
3415
    args = isOrderBillable_args()
3416
    args.read(iprot)
3417
    iprot.readMessageEnd()
3418
    result = isOrderBillable_result()
3419
    result.success = self._handler.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId)
3420
    oprot.writeMessageBegin("isOrderBillable", TMessageType.REPLY, seqid)
3421
    result.write(oprot)
3422
    oprot.writeMessageEnd()
3423
    oprot.trans.flush()
3424
 
5944 mandeep.dh 3425
  def process_reserveItemInWarehouse(self, seqid, iprot, oprot):
3426
    args = reserveItemInWarehouse_args()
3427
    args.read(iprot)
3428
    iprot.readMessageEnd()
3429
    result = reserveItemInWarehouse_result()
3430
    try:
5966 rajveer 3431
      result.success = self._handler.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
5944 mandeep.dh 3432
    except InventoryServiceException, cex:
3433
      result.cex = cex
3434
    oprot.writeMessageBegin("reserveItemInWarehouse", TMessageType.REPLY, seqid)
3435
    result.write(oprot)
3436
    oprot.writeMessageEnd()
3437
    oprot.trans.flush()
3438
 
7968 amar.kumar 3439
  def process_updateReservationForOrder(self, seqid, iprot, oprot):
3440
    args = updateReservationForOrder_args()
3441
    args.read(iprot)
3442
    iprot.readMessageEnd()
3443
    result = updateReservationForOrder_result()
3444
    try:
3445
      result.success = self._handler.updateReservationForOrder(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
3446
    except InventoryServiceException, cex:
3447
      result.cex = cex
3448
    oprot.writeMessageBegin("updateReservationForOrder", TMessageType.REPLY, seqid)
3449
    result.write(oprot)
3450
    oprot.writeMessageEnd()
3451
    oprot.trans.flush()
3452
 
5944 mandeep.dh 3453
  def process_reduceReservationCount(self, seqid, iprot, oprot):
3454
    args = reduceReservationCount_args()
3455
    args.read(iprot)
3456
    iprot.readMessageEnd()
3457
    result = reduceReservationCount_result()
3458
    try:
5966 rajveer 3459
      result.success = self._handler.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity)
5944 mandeep.dh 3460
    except InventoryServiceException, cex:
3461
      result.cex = cex
3462
    oprot.writeMessageBegin("reduceReservationCount", TMessageType.REPLY, seqid)
3463
    result.write(oprot)
3464
    oprot.writeMessageEnd()
3465
    oprot.trans.flush()
3466
 
3467
  def process_getItemPricing(self, seqid, iprot, oprot):
3468
    args = getItemPricing_args()
3469
    args.read(iprot)
3470
    iprot.readMessageEnd()
3471
    result = getItemPricing_result()
3472
    try:
3473
      result.success = self._handler.getItemPricing(args.itemId, args.vendorId)
3474
    except InventoryServiceException, cex:
3475
      result.cex = cex
3476
    oprot.writeMessageBegin("getItemPricing", TMessageType.REPLY, seqid)
3477
    result.write(oprot)
3478
    oprot.writeMessageEnd()
3479
    oprot.trans.flush()
3480
 
3481
  def process_getAllItemPricing(self, seqid, iprot, oprot):
3482
    args = getAllItemPricing_args()
3483
    args.read(iprot)
3484
    iprot.readMessageEnd()
3485
    result = getAllItemPricing_result()
3486
    try:
3487
      result.success = self._handler.getAllItemPricing(args.itemId)
3488
    except InventoryServiceException, cex:
3489
      result.cex = cex
3490
    oprot.writeMessageBegin("getAllItemPricing", TMessageType.REPLY, seqid)
3491
    result.write(oprot)
3492
    oprot.writeMessageEnd()
3493
    oprot.trans.flush()
3494
 
3495
  def process_addVendorItemPricing(self, seqid, iprot, oprot):
3496
    args = addVendorItemPricing_args()
3497
    args.read(iprot)
3498
    iprot.readMessageEnd()
3499
    result = addVendorItemPricing_result()
3500
    try:
3501
      self._handler.addVendorItemPricing(args.vendorItemPricing)
3502
    except InventoryServiceException, cex:
3503
      result.cex = cex
3504
    oprot.writeMessageBegin("addVendorItemPricing", TMessageType.REPLY, seqid)
3505
    result.write(oprot)
3506
    oprot.writeMessageEnd()
3507
    oprot.trans.flush()
3508
 
3509
  def process_getVendor(self, seqid, iprot, oprot):
3510
    args = getVendor_args()
3511
    args.read(iprot)
3512
    iprot.readMessageEnd()
3513
    result = getVendor_result()
3514
    result.success = self._handler.getVendor(args.vendorId)
3515
    oprot.writeMessageBegin("getVendor", TMessageType.REPLY, seqid)
3516
    result.write(oprot)
3517
    oprot.writeMessageEnd()
3518
    oprot.trans.flush()
3519
 
3520
  def process_getAllVendors(self, seqid, iprot, oprot):
3521
    args = getAllVendors_args()
3522
    args.read(iprot)
3523
    iprot.readMessageEnd()
3524
    result = getAllVendors_result()
3525
    result.success = self._handler.getAllVendors()
3526
    oprot.writeMessageBegin("getAllVendors", TMessageType.REPLY, seqid)
3527
    result.write(oprot)
3528
    oprot.writeMessageEnd()
3529
    oprot.trans.flush()
3530
 
3531
  def process_addVendorItemMapping(self, seqid, iprot, oprot):
3532
    args = addVendorItemMapping_args()
3533
    args.read(iprot)
3534
    iprot.readMessageEnd()
3535
    result = addVendorItemMapping_result()
3536
    try:
3537
      self._handler.addVendorItemMapping(args.key, args.vendorItemMapping)
3538
    except InventoryServiceException, cex:
3539
      result.cex = cex
3540
    oprot.writeMessageBegin("addVendorItemMapping", TMessageType.REPLY, seqid)
3541
    result.write(oprot)
3542
    oprot.writeMessageEnd()
3543
    oprot.trans.flush()
3544
 
3545
  def process_getVendorItemMappings(self, seqid, iprot, oprot):
3546
    args = getVendorItemMappings_args()
3547
    args.read(iprot)
3548
    iprot.readMessageEnd()
3549
    result = getVendorItemMappings_result()
3550
    try:
3551
      result.success = self._handler.getVendorItemMappings(args.itemId)
3552
    except InventoryServiceException, cex:
3553
      result.cex = cex
3554
    oprot.writeMessageBegin("getVendorItemMappings", TMessageType.REPLY, seqid)
3555
    result.write(oprot)
3556
    oprot.writeMessageEnd()
3557
    oprot.trans.flush()
3558
 
3559
  def process_getPendingOrdersInventory(self, seqid, iprot, oprot):
3560
    args = getPendingOrdersInventory_args()
3561
    args.read(iprot)
3562
    iprot.readMessageEnd()
3563
    result = getPendingOrdersInventory_result()
3564
    result.success = self._handler.getPendingOrdersInventory(args.vendorid)
3565
    oprot.writeMessageBegin("getPendingOrdersInventory", TMessageType.REPLY, seqid)
3566
    result.write(oprot)
3567
    oprot.writeMessageEnd()
3568
    oprot.trans.flush()
3569
 
3570
  def process_getWarehouses(self, seqid, iprot, oprot):
3571
    args = getWarehouses_args()
3572
    args.read(iprot)
3573
    iprot.readMessageEnd()
3574
    result = getWarehouses_result()
3575
    result.success = self._handler.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId)
3576
    oprot.writeMessageBegin("getWarehouses", TMessageType.REPLY, seqid)
3577
    result.write(oprot)
3578
    oprot.writeMessageEnd()
3579
    oprot.trans.flush()
3580
 
3581
  def process_resetAvailability(self, seqid, iprot, oprot):
3582
    args = resetAvailability_args()
3583
    args.read(iprot)
3584
    iprot.readMessageEnd()
3585
    result = resetAvailability_result()
3586
    try:
3587
      self._handler.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId)
3588
    except InventoryServiceException, cex:
3589
      result.cex = cex
3590
    oprot.writeMessageBegin("resetAvailability", TMessageType.REPLY, seqid)
3591
    result.write(oprot)
3592
    oprot.writeMessageEnd()
3593
    oprot.trans.flush()
3594
 
3595
  def process_resetAvailabilityForWarehouse(self, seqid, iprot, oprot):
3596
    args = resetAvailabilityForWarehouse_args()
3597
    args.read(iprot)
3598
    iprot.readMessageEnd()
3599
    result = resetAvailabilityForWarehouse_result()
3600
    try:
3601
      self._handler.resetAvailabilityForWarehouse(args.warehouseId)
3602
    except InventoryServiceException, cex:
3603
      result.cex = cex
3604
    oprot.writeMessageBegin("resetAvailabilityForWarehouse", TMessageType.REPLY, seqid)
3605
    result.write(oprot)
3606
    oprot.writeMessageEnd()
3607
    oprot.trans.flush()
3608
 
3609
  def process_getItemKeysToBeProcessed(self, seqid, iprot, oprot):
3610
    args = getItemKeysToBeProcessed_args()
3611
    args.read(iprot)
3612
    iprot.readMessageEnd()
3613
    result = getItemKeysToBeProcessed_result()
3614
    result.success = self._handler.getItemKeysToBeProcessed(args.warehouseId)
3615
    oprot.writeMessageBegin("getItemKeysToBeProcessed", TMessageType.REPLY, seqid)
3616
    result.write(oprot)
3617
    oprot.writeMessageEnd()
3618
    oprot.trans.flush()
3619
 
3620
  def process_markMissedInventoryUpdatesAsProcessed(self, seqid, iprot, oprot):
3621
    args = markMissedInventoryUpdatesAsProcessed_args()
3622
    args.read(iprot)
3623
    iprot.readMessageEnd()
3624
    result = markMissedInventoryUpdatesAsProcessed_result()
3625
    self._handler.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId)
3626
    oprot.writeMessageBegin("markMissedInventoryUpdatesAsProcessed", TMessageType.REPLY, seqid)
3627
    result.write(oprot)
3628
    oprot.writeMessageEnd()
3629
    oprot.trans.flush()
3630
 
3631
  def process_getIgnoredItemKeys(self, seqid, iprot, oprot):
3632
    args = getIgnoredItemKeys_args()
3633
    args.read(iprot)
3634
    iprot.readMessageEnd()
3635
    result = getIgnoredItemKeys_result()
3636
    result.success = self._handler.getIgnoredItemKeys()
3637
    oprot.writeMessageBegin("getIgnoredItemKeys", TMessageType.REPLY, seqid)
3638
    result.write(oprot)
3639
    oprot.writeMessageEnd()
3640
    oprot.trans.flush()
3641
 
3642
  def process_addBadInventory(self, seqid, iprot, oprot):
3643
    args = addBadInventory_args()
3644
    args.read(iprot)
3645
    iprot.readMessageEnd()
3646
    result = addBadInventory_result()
3647
    try:
3648
      self._handler.addBadInventory(args.itemId, args.warehouseId, args.quantity)
3649
    except InventoryServiceException, cex:
3650
      result.cex = cex
3651
    oprot.writeMessageBegin("addBadInventory", TMessageType.REPLY, seqid)
3652
    result.write(oprot)
3653
    oprot.writeMessageEnd()
3654
    oprot.trans.flush()
3655
 
3656
  def process_getShippingLocations(self, seqid, iprot, oprot):
3657
    args = getShippingLocations_args()
3658
    args.read(iprot)
3659
    iprot.readMessageEnd()
3660
    result = getShippingLocations_result()
3661
    result.success = self._handler.getShippingLocations()
3662
    oprot.writeMessageBegin("getShippingLocations", TMessageType.REPLY, seqid)
3663
    result.write(oprot)
3664
    oprot.writeMessageEnd()
3665
    oprot.trans.flush()
3666
 
3667
  def process_getAllVendorItemMappings(self, seqid, iprot, oprot):
3668
    args = getAllVendorItemMappings_args()
3669
    args.read(iprot)
3670
    iprot.readMessageEnd()
3671
    result = getAllVendorItemMappings_result()
3672
    result.success = self._handler.getAllVendorItemMappings()
3673
    oprot.writeMessageBegin("getAllVendorItemMappings", TMessageType.REPLY, seqid)
3674
    result.write(oprot)
3675
    oprot.writeMessageEnd()
3676
    oprot.trans.flush()
3677
 
3678
  def process_getInventorySnapshot(self, seqid, iprot, oprot):
3679
    args = getInventorySnapshot_args()
3680
    args.read(iprot)
3681
    iprot.readMessageEnd()
3682
    result = getInventorySnapshot_result()
3683
    result.success = self._handler.getInventorySnapshot(args.warehouseId)
3684
    oprot.writeMessageBegin("getInventorySnapshot", TMessageType.REPLY, seqid)
3685
    result.write(oprot)
3686
    oprot.writeMessageEnd()
3687
    oprot.trans.flush()
3688
 
3689
  def process_clearItemAvailabilityCache(self, seqid, iprot, oprot):
3690
    args = clearItemAvailabilityCache_args()
3691
    args.read(iprot)
3692
    iprot.readMessageEnd()
3693
    result = clearItemAvailabilityCache_result()
3694
    self._handler.clearItemAvailabilityCache()
3695
    oprot.writeMessageBegin("clearItemAvailabilityCache", TMessageType.REPLY, seqid)
3696
    result.write(oprot)
3697
    oprot.writeMessageEnd()
3698
    oprot.trans.flush()
3699
 
3700
  def process_updateVendorString(self, seqid, iprot, oprot):
3701
    args = updateVendorString_args()
3702
    args.read(iprot)
3703
    iprot.readMessageEnd()
3704
    result = updateVendorString_result()
3705
    self._handler.updateVendorString(args.warehouseId, args.vendorString)
3706
    oprot.writeMessageBegin("updateVendorString", TMessageType.REPLY, seqid)
3707
    result.write(oprot)
3708
    oprot.writeMessageEnd()
3709
    oprot.trans.flush()
3710
 
6096 amit.gupta 3711
  def process_clearItemAvailabilityCacheForItem(self, seqid, iprot, oprot):
3712
    args = clearItemAvailabilityCacheForItem_args()
3713
    args.read(iprot)
3714
    iprot.readMessageEnd()
3715
    result = clearItemAvailabilityCacheForItem_result()
3716
    self._handler.clearItemAvailabilityCacheForItem(args.item_id)
3717
    oprot.writeMessageBegin("clearItemAvailabilityCacheForItem", TMessageType.REPLY, seqid)
3718
    result.write(oprot)
3719
    oprot.writeMessageEnd()
3720
    oprot.trans.flush()
5944 mandeep.dh 3721
 
6467 amar.kumar 3722
  def process_getOurWarehouseIdForVendor(self, seqid, iprot, oprot):
3723
    args = getOurWarehouseIdForVendor_args()
3724
    args.read(iprot)
3725
    iprot.readMessageEnd()
3726
    result = getOurWarehouseIdForVendor_result()
7718 amar.kumar 3727
    result.success = self._handler.getOurWarehouseIdForVendor(args.vendorId, args.billingWarehouseId)
6467 amar.kumar 3728
    oprot.writeMessageBegin("getOurWarehouseIdForVendor", TMessageType.REPLY, seqid)
3729
    result.write(oprot)
3730
    oprot.writeMessageEnd()
3731
    oprot.trans.flush()
6096 amit.gupta 3732
 
6484 amar.kumar 3733
  def process_getItemAvailabilitiesAtOurWarehouses(self, seqid, iprot, oprot):
3734
    args = getItemAvailabilitiesAtOurWarehouses_args()
3735
    args.read(iprot)
3736
    iprot.readMessageEnd()
3737
    result = getItemAvailabilitiesAtOurWarehouses_result()
3738
    result.success = self._handler.getItemAvailabilitiesAtOurWarehouses(args.item_ids)
3739
    oprot.writeMessageBegin("getItemAvailabilitiesAtOurWarehouses", TMessageType.REPLY, seqid)
3740
    result.write(oprot)
3741
    oprot.writeMessageEnd()
3742
    oprot.trans.flush()
6467 amar.kumar 3743
 
6531 vikram.rag 3744
  def process_getMonitoredWarehouseForVendors(self, seqid, iprot, oprot):
3745
    args = getMonitoredWarehouseForVendors_args()
3746
    args.read(iprot)
3747
    iprot.readMessageEnd()
3748
    result = getMonitoredWarehouseForVendors_result()
3749
    result.success = self._handler.getMonitoredWarehouseForVendors(args.vendorIds)
3750
    oprot.writeMessageBegin("getMonitoredWarehouseForVendors", TMessageType.REPLY, seqid)
3751
    result.write(oprot)
3752
    oprot.writeMessageEnd()
3753
    oprot.trans.flush()
6484 amar.kumar 3754
 
6531 vikram.rag 3755
  def process_getIgnoredWarehouseidsAndItemids(self, seqid, iprot, oprot):
3756
    args = getIgnoredWarehouseidsAndItemids_args()
3757
    args.read(iprot)
3758
    iprot.readMessageEnd()
3759
    result = getIgnoredWarehouseidsAndItemids_result()
3760
    result.success = self._handler.getIgnoredWarehouseidsAndItemids()
3761
    oprot.writeMessageBegin("getIgnoredWarehouseidsAndItemids", TMessageType.REPLY, seqid)
3762
    result.write(oprot)
3763
    oprot.writeMessageEnd()
3764
    oprot.trans.flush()
3765
 
3766
  def process_insertItemtoIgnoreInventoryUpdatelist(self, seqid, iprot, oprot):
3767
    args = insertItemtoIgnoreInventoryUpdatelist_args()
3768
    args.read(iprot)
3769
    iprot.readMessageEnd()
3770
    result = insertItemtoIgnoreInventoryUpdatelist_result()
3771
    result.success = self._handler.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id)
3772
    oprot.writeMessageBegin("insertItemtoIgnoreInventoryUpdatelist", TMessageType.REPLY, seqid)
3773
    result.write(oprot)
3774
    oprot.writeMessageEnd()
3775
    oprot.trans.flush()
3776
 
3777
  def process_deleteItemFromIgnoredInventoryUpdateList(self, seqid, iprot, oprot):
3778
    args = deleteItemFromIgnoredInventoryUpdateList_args()
3779
    args.read(iprot)
3780
    iprot.readMessageEnd()
3781
    result = deleteItemFromIgnoredInventoryUpdateList_result()
3782
    result.success = self._handler.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id)
3783
    oprot.writeMessageBegin("deleteItemFromIgnoredInventoryUpdateList", TMessageType.REPLY, seqid)
3784
    result.write(oprot)
3785
    oprot.writeMessageEnd()
3786
    oprot.trans.flush()
3787
 
3788
  def process_getAllIgnoredInventoryupdateItemsCount(self, seqid, iprot, oprot):
3789
    args = getAllIgnoredInventoryupdateItemsCount_args()
3790
    args.read(iprot)
3791
    iprot.readMessageEnd()
3792
    result = getAllIgnoredInventoryupdateItemsCount_result()
3793
    result.success = self._handler.getAllIgnoredInventoryupdateItemsCount()
3794
    oprot.writeMessageBegin("getAllIgnoredInventoryupdateItemsCount", TMessageType.REPLY, seqid)
3795
    result.write(oprot)
3796
    oprot.writeMessageEnd()
3797
    oprot.trans.flush()
3798
 
3799
  def process_getIgnoredInventoryUpdateItemids(self, seqid, iprot, oprot):
3800
    args = getIgnoredInventoryUpdateItemids_args()
3801
    args.read(iprot)
3802
    iprot.readMessageEnd()
3803
    result = getIgnoredInventoryUpdateItemids_result()
3804
    result.success = self._handler.getIgnoredInventoryUpdateItemids(args.offset, args.limit)
3805
    oprot.writeMessageBegin("getIgnoredInventoryUpdateItemids", TMessageType.REPLY, seqid)
3806
    result.write(oprot)
3807
    oprot.writeMessageEnd()
3808
    oprot.trans.flush()
3809
 
6821 amar.kumar 3810
  def process_updateItemStockPurchaseParams(self, seqid, iprot, oprot):
3811
    args = updateItemStockPurchaseParams_args()
3812
    args.read(iprot)
3813
    iprot.readMessageEnd()
3814
    result = updateItemStockPurchaseParams_result()
3815
    self._handler.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel)
3816
    oprot.writeMessageBegin("updateItemStockPurchaseParams", TMessageType.REPLY, seqid)
3817
    result.write(oprot)
3818
    oprot.writeMessageEnd()
3819
    oprot.trans.flush()
6531 vikram.rag 3820
 
6821 amar.kumar 3821
  def process_getItemStockPurchaseParams(self, seqid, iprot, oprot):
3822
    args = getItemStockPurchaseParams_args()
3823
    args.read(iprot)
3824
    iprot.readMessageEnd()
3825
    result = getItemStockPurchaseParams_result()
3826
    result.success = self._handler.getItemStockPurchaseParams(args.itemId)
3827
    oprot.writeMessageBegin("getItemStockPurchaseParams", TMessageType.REPLY, seqid)
3828
    result.write(oprot)
3829
    oprot.writeMessageEnd()
3830
    oprot.trans.flush()
3831
 
3832
  def process_addOosStatusForItem(self, seqid, iprot, oprot):
3833
    args = addOosStatusForItem_args()
3834
    args.read(iprot)
3835
    iprot.readMessageEnd()
3836
    result = addOosStatusForItem_result()
3837
    self._handler.addOosStatusForItem(args.oosStatusMap, args.date)
3838
    oprot.writeMessageBegin("addOosStatusForItem", TMessageType.REPLY, seqid)
3839
    result.write(oprot)
3840
    oprot.writeMessageEnd()
3841
    oprot.trans.flush()
3842
 
6832 amar.kumar 3843
  def process_getOosStatusesForXDaysForItem(self, seqid, iprot, oprot):
3844
    args = getOosStatusesForXDaysForItem_args()
3845
    args.read(iprot)
3846
    iprot.readMessageEnd()
3847
    result = getOosStatusesForXDaysForItem_result()
9762 amar.kumar 3848
    result.success = self._handler.getOosStatusesForXDaysForItem(args.itemId, args.sourceId, args.days)
6832 amar.kumar 3849
    oprot.writeMessageBegin("getOosStatusesForXDaysForItem", TMessageType.REPLY, seqid)
3850
    result.write(oprot)
3851
    oprot.writeMessageEnd()
3852
    oprot.trans.flush()
6821 amar.kumar 3853
 
10126 amar.kumar 3854
  def process_getOosStatusesForXDays(self, seqid, iprot, oprot):
3855
    args = getOosStatusesForXDays_args()
3856
    args.read(iprot)
3857
    iprot.readMessageEnd()
3858
    result = getOosStatusesForXDays_result()
3859
    result.success = self._handler.getOosStatusesForXDays(args.sourceId, args.days)
3860
    oprot.writeMessageBegin("getOosStatusesForXDays", TMessageType.REPLY, seqid)
3861
    result.write(oprot)
3862
    oprot.writeMessageEnd()
3863
    oprot.trans.flush()
3864
 
3865
  def process_getAllVendorItemPricing(self, seqid, iprot, oprot):
3866
    args = getAllVendorItemPricing_args()
3867
    args.read(iprot)
3868
    iprot.readMessageEnd()
3869
    result = getAllVendorItemPricing_result()
3870
    result.success = self._handler.getAllVendorItemPricing(args.itemId, args.vendorId)
3871
    oprot.writeMessageBegin("getAllVendorItemPricing", TMessageType.REPLY, seqid)
3872
    result.write(oprot)
3873
    oprot.writeMessageEnd()
3874
    oprot.trans.flush()
3875
 
6857 amar.kumar 3876
  def process_getNonZeroItemStockPurchaseParams(self, seqid, iprot, oprot):
3877
    args = getNonZeroItemStockPurchaseParams_args()
3878
    args.read(iprot)
3879
    iprot.readMessageEnd()
3880
    result = getNonZeroItemStockPurchaseParams_result()
3881
    result.success = self._handler.getNonZeroItemStockPurchaseParams()
3882
    oprot.writeMessageBegin("getNonZeroItemStockPurchaseParams", TMessageType.REPLY, seqid)
3883
    result.write(oprot)
3884
    oprot.writeMessageEnd()
3885
    oprot.trans.flush()
6832 amar.kumar 3886
 
7149 amar.kumar 3887
  def process_getBillableInventoryAndPendingOrders(self, seqid, iprot, oprot):
3888
    args = getBillableInventoryAndPendingOrders_args()
3889
    args.read(iprot)
3890
    iprot.readMessageEnd()
3891
    result = getBillableInventoryAndPendingOrders_result()
3892
    result.success = self._handler.getBillableInventoryAndPendingOrders()
3893
    oprot.writeMessageBegin("getBillableInventoryAndPendingOrders", TMessageType.REPLY, seqid)
3894
    result.write(oprot)
3895
    oprot.writeMessageEnd()
3896
    oprot.trans.flush()
6857 amar.kumar 3897
 
7281 kshitij.so 3898
  def process_getWarehouseName(self, seqid, iprot, oprot):
3899
    args = getWarehouseName_args()
3900
    args.read(iprot)
3901
    iprot.readMessageEnd()
3902
    result = getWarehouseName_result()
3903
    result.success = self._handler.getWarehouseName(args.warehouse_id)
3904
    oprot.writeMessageBegin("getWarehouseName", TMessageType.REPLY, seqid)
3905
    result.write(oprot)
3906
    oprot.writeMessageEnd()
3907
    oprot.trans.flush()
7149 amar.kumar 3908
 
7281 kshitij.so 3909
  def process_getAmazonInventoryForItem(self, seqid, iprot, oprot):
3910
    args = getAmazonInventoryForItem_args()
3911
    args.read(iprot)
3912
    iprot.readMessageEnd()
3913
    result = getAmazonInventoryForItem_result()
3914
    result.success = self._handler.getAmazonInventoryForItem(args.item_id)
3915
    oprot.writeMessageBegin("getAmazonInventoryForItem", TMessageType.REPLY, seqid)
3916
    result.write(oprot)
3917
    oprot.writeMessageEnd()
3918
    oprot.trans.flush()
3919
 
3920
  def process_getAllAmazonInventory(self, seqid, iprot, oprot):
3921
    args = getAllAmazonInventory_args()
3922
    args.read(iprot)
3923
    iprot.readMessageEnd()
3924
    result = getAllAmazonInventory_result()
3925
    result.success = self._handler.getAllAmazonInventory()
3926
    oprot.writeMessageBegin("getAllAmazonInventory", TMessageType.REPLY, seqid)
3927
    result.write(oprot)
3928
    oprot.writeMessageEnd()
3929
    oprot.trans.flush()
3930
 
3931
  def process_addOrUpdateAmazonInventoryForItem(self, seqid, iprot, oprot):
3932
    args = addOrUpdateAmazonInventoryForItem_args()
3933
    args.read(iprot)
3934
    iprot.readMessageEnd()
3935
    result = addOrUpdateAmazonInventoryForItem_result()
10450 vikram.rag 3936
    self._handler.addOrUpdateAmazonInventoryForItem(args.amazonInventorySnapshot, args.time)
7281 kshitij.so 3937
    oprot.writeMessageBegin("addOrUpdateAmazonInventoryForItem", TMessageType.REPLY, seqid)
3938
    result.write(oprot)
3939
    oprot.writeMessageEnd()
3940
    oprot.trans.flush()
3941
 
7972 amar.kumar 3942
  def process_getLastNdaySaleForItem(self, seqid, iprot, oprot):
3943
    args = getLastNdaySaleForItem_args()
3944
    args.read(iprot)
3945
    iprot.readMessageEnd()
3946
    result = getLastNdaySaleForItem_result()
3947
    result.success = self._handler.getLastNdaySaleForItem(args.itemId, args.numberOfDays)
3948
    oprot.writeMessageBegin("getLastNdaySaleForItem", TMessageType.REPLY, seqid)
3949
    result.write(oprot)
3950
    oprot.writeMessageEnd()
3951
    oprot.trans.flush()
7281 kshitij.so 3952
 
8282 kshitij.so 3953
  def process_addOrUpdateAmazonFbaInventory(self, seqid, iprot, oprot):
3954
    args = addOrUpdateAmazonFbaInventory_args()
3955
    args.read(iprot)
3956
    iprot.readMessageEnd()
3957
    result = addOrUpdateAmazonFbaInventory_result()
3958
    self._handler.addOrUpdateAmazonFbaInventory(args.amazonfbainventorysnapshot)
3959
    oprot.writeMessageBegin("addOrUpdateAmazonFbaInventory", TMessageType.REPLY, seqid)
3960
    result.write(oprot)
3961
    oprot.writeMessageEnd()
3962
    oprot.trans.flush()
3963
 
8182 amar.kumar 3964
  def process_addUpdateHoldInventory(self, seqid, iprot, oprot):
3965
    args = addUpdateHoldInventory_args()
3966
    args.read(iprot)
3967
    iprot.readMessageEnd()
3968
    result = addUpdateHoldInventory_result()
9762 amar.kumar 3969
    try:
3970
      self._handler.addUpdateHoldInventory(args.itemId, args.warehouseId, args.holdQuantity, args.source)
3971
    except InventoryServiceException, cex:
3972
      result.cex = cex
8182 amar.kumar 3973
    oprot.writeMessageBegin("addUpdateHoldInventory", TMessageType.REPLY, seqid)
3974
    result.write(oprot)
3975
    oprot.writeMessageEnd()
3976
    oprot.trans.flush()
7972 amar.kumar 3977
 
8282 kshitij.so 3978
  def process_getAmazonFbaItemInventory(self, seqid, iprot, oprot):
3979
    args = getAmazonFbaItemInventory_args()
3980
    args.read(iprot)
3981
    iprot.readMessageEnd()
3982
    result = getAmazonFbaItemInventory_result()
3983
    result.success = self._handler.getAmazonFbaItemInventory(args.itemId)
3984
    oprot.writeMessageBegin("getAmazonFbaItemInventory", TMessageType.REPLY, seqid)
3985
    result.write(oprot)
3986
    oprot.writeMessageEnd()
3987
    oprot.trans.flush()
8182 amar.kumar 3988
 
8363 vikram.rag 3989
  def process_getAllAmazonFbaItemInventory(self, seqid, iprot, oprot):
3990
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 3991
    args.read(iprot)
3992
    iprot.readMessageEnd()
8363 vikram.rag 3993
    result = getAllAmazonFbaItemInventory_result()
3994
    result.success = self._handler.getAllAmazonFbaItemInventory()
3995
    oprot.writeMessageBegin("getAllAmazonFbaItemInventory", TMessageType.REPLY, seqid)
8282 kshitij.so 3996
    result.write(oprot)
3997
    oprot.writeMessageEnd()
3998
    oprot.trans.flush()
3999
 
8363 vikram.rag 4000
  def process_getOursGoodWarehouseIdsForLocation(self, seqid, iprot, oprot):
4001
    args = getOursGoodWarehouseIdsForLocation_args()
4002
    args.read(iprot)
4003
    iprot.readMessageEnd()
4004
    result = getOursGoodWarehouseIdsForLocation_result()
4005
    result.success = self._handler.getOursGoodWarehouseIdsForLocation(args.state_id)
4006
    oprot.writeMessageBegin("getOursGoodWarehouseIdsForLocation", TMessageType.REPLY, seqid)
4007
    result.write(oprot)
4008
    oprot.writeMessageEnd()
4009
    oprot.trans.flush()
8282 kshitij.so 4010
 
8955 vikram.rag 4011
  def process_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, seqid, iprot, oprot):
4012
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
4013
    args.read(iprot)
4014
    iprot.readMessageEnd()
4015
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
4016
    result.success = self._handler.getHoldInventoryDetailForItemForWarehouseIdExceptSource(args.id, args.warehouse_id, args.source)
4017
    oprot.writeMessageBegin("getHoldInventoryDetailForItemForWarehouseIdExceptSource", TMessageType.REPLY, seqid)
4018
    result.write(oprot)
4019
    oprot.writeMessageEnd()
4020
    oprot.trans.flush()
8363 vikram.rag 4021
 
9404 vikram.rag 4022
  def process_getSnapdealInventoryForItem(self, seqid, iprot, oprot):
4023
    args = getSnapdealInventoryForItem_args()
4024
    args.read(iprot)
4025
    iprot.readMessageEnd()
4026
    result = getSnapdealInventoryForItem_result()
4027
    result.success = self._handler.getSnapdealInventoryForItem(args.item_id)
4028
    oprot.writeMessageBegin("getSnapdealInventoryForItem", TMessageType.REPLY, seqid)
4029
    result.write(oprot)
4030
    oprot.writeMessageEnd()
4031
    oprot.trans.flush()
8955 vikram.rag 4032
 
9404 vikram.rag 4033
  def process_addOrUpdateSnapdealInventoryForItem(self, seqid, iprot, oprot):
4034
    args = addOrUpdateSnapdealInventoryForItem_args()
4035
    args.read(iprot)
4036
    iprot.readMessageEnd()
4037
    result = addOrUpdateSnapdealInventoryForItem_result()
4038
    self._handler.addOrUpdateSnapdealInventoryForItem(args.snapdealinventoryitem)
4039
    oprot.writeMessageBegin("addOrUpdateSnapdealInventoryForItem", TMessageType.REPLY, seqid)
4040
    result.write(oprot)
4041
    oprot.writeMessageEnd()
4042
    oprot.trans.flush()
4043
 
4044
  def process_getNlcForWarehouse(self, seqid, iprot, oprot):
4045
    args = getNlcForWarehouse_args()
4046
    args.read(iprot)
4047
    iprot.readMessageEnd()
4048
    result = getNlcForWarehouse_result()
4049
    result.success = self._handler.getNlcForWarehouse(args.warehouse_id, args.item_id)
4050
    oprot.writeMessageBegin("getNlcForWarehouse", TMessageType.REPLY, seqid)
4051
    result.write(oprot)
4052
    oprot.writeMessageEnd()
4053
    oprot.trans.flush()
4054
 
9640 amar.kumar 4055
  def process_getHeldInventoryMapForItem(self, seqid, iprot, oprot):
4056
    args = getHeldInventoryMapForItem_args()
4057
    args.read(iprot)
4058
    iprot.readMessageEnd()
4059
    result = getHeldInventoryMapForItem_result()
4060
    result.success = self._handler.getHeldInventoryMapForItem(args.item_id, args.warehouse_id)
4061
    oprot.writeMessageBegin("getHeldInventoryMapForItem", TMessageType.REPLY, seqid)
4062
    result.write(oprot)
4063
    oprot.writeMessageEnd()
4064
    oprot.trans.flush()
4065
 
9495 vikram.rag 4066
  def process_addOrUpdateAllAmazonFbaInventory(self, seqid, iprot, oprot):
4067
    args = addOrUpdateAllAmazonFbaInventory_args()
9456 vikram.rag 4068
    args.read(iprot)
4069
    iprot.readMessageEnd()
9495 vikram.rag 4070
    result = addOrUpdateAllAmazonFbaInventory_result()
4071
    self._handler.addOrUpdateAllAmazonFbaInventory(args.allamazonfbainventorysnapshot)
4072
    oprot.writeMessageBegin("addOrUpdateAllAmazonFbaInventory", TMessageType.REPLY, seqid)
9456 vikram.rag 4073
    result.write(oprot)
4074
    oprot.writeMessageEnd()
4075
    oprot.trans.flush()
9404 vikram.rag 4076
 
9495 vikram.rag 4077
  def process_addOrUpdateAllSnapdealInventory(self, seqid, iprot, oprot):
4078
    args = addOrUpdateAllSnapdealInventory_args()
9482 vikram.rag 4079
    args.read(iprot)
4080
    iprot.readMessageEnd()
9495 vikram.rag 4081
    result = addOrUpdateAllSnapdealInventory_result()
4082
    self._handler.addOrUpdateAllSnapdealInventory(args.allsnapdealinventorysnapshot)
4083
    oprot.writeMessageBegin("addOrUpdateAllSnapdealInventory", TMessageType.REPLY, seqid)
9482 vikram.rag 4084
    result.write(oprot)
4085
    oprot.writeMessageEnd()
4086
    oprot.trans.flush()
9456 vikram.rag 4087
 
9495 vikram.rag 4088
  def process_getSnapdealInventorySnapshot(self, seqid, iprot, oprot):
4089
    args = getSnapdealInventorySnapshot_args()
4090
    args.read(iprot)
4091
    iprot.readMessageEnd()
4092
    result = getSnapdealInventorySnapshot_result()
4093
    result.success = self._handler.getSnapdealInventorySnapshot()
4094
    oprot.writeMessageBegin("getSnapdealInventorySnapshot", TMessageType.REPLY, seqid)
4095
    result.write(oprot)
4096
    oprot.writeMessageEnd()
4097
    oprot.trans.flush()
9482 vikram.rag 4098
 
9761 amar.kumar 4099
  def process_getHoldInventoryDetails(self, seqid, iprot, oprot):
4100
    args = getHoldInventoryDetails_args()
4101
    args.read(iprot)
4102
    iprot.readMessageEnd()
4103
    result = getHoldInventoryDetails_result()
4104
    result.success = self._handler.getHoldInventoryDetails(args.itemId, args.warehouseId, args.source)
4105
    oprot.writeMessageBegin("getHoldInventoryDetails", TMessageType.REPLY, seqid)
4106
    result.write(oprot)
4107
    oprot.writeMessageEnd()
4108
    oprot.trans.flush()
9495 vikram.rag 4109
 
10050 vikram.rag 4110
  def process_addOrUpdateFlipkartInventorySnapshot(self, seqid, iprot, oprot):
4111
    args = addOrUpdateFlipkartInventorySnapshot_args()
4112
    args.read(iprot)
4113
    iprot.readMessageEnd()
4114
    result = addOrUpdateFlipkartInventorySnapshot_result()
10450 vikram.rag 4115
    self._handler.addOrUpdateFlipkartInventorySnapshot(args.flipkartInventorySnapshot, args.time)
10050 vikram.rag 4116
    oprot.writeMessageBegin("addOrUpdateFlipkartInventorySnapshot", TMessageType.REPLY, seqid)
4117
    result.write(oprot)
4118
    oprot.writeMessageEnd()
4119
    oprot.trans.flush()
9761 amar.kumar 4120
 
10050 vikram.rag 4121
  def process_getFlipkartInventorySnapshot(self, seqid, iprot, oprot):
4122
    args = getFlipkartInventorySnapshot_args()
4123
    args.read(iprot)
4124
    iprot.readMessageEnd()
4125
    result = getFlipkartInventorySnapshot_result()
4126
    result.success = self._handler.getFlipkartInventorySnapshot()
4127
    oprot.writeMessageBegin("getFlipkartInventorySnapshot", TMessageType.REPLY, seqid)
4128
    result.write(oprot)
4129
    oprot.writeMessageEnd()
4130
    oprot.trans.flush()
4131
 
10097 kshitij.so 4132
  def process_getFlipkartlInventoryForItem(self, seqid, iprot, oprot):
4133
    args = getFlipkartlInventoryForItem_args()
4134
    args.read(iprot)
4135
    iprot.readMessageEnd()
4136
    result = getFlipkartlInventoryForItem_result()
4137
    result.success = self._handler.getFlipkartlInventoryForItem(args.item_id)
4138
    oprot.writeMessageBegin("getFlipkartlInventoryForItem", TMessageType.REPLY, seqid)
4139
    result.write(oprot)
4140
    oprot.writeMessageEnd()
4141
    oprot.trans.flush()
10050 vikram.rag 4142
 
10485 vikram.rag 4143
  def process_getStateMaster(self, seqid, iprot, oprot):
4144
    args = getStateMaster_args()
4145
    args.read(iprot)
4146
    iprot.readMessageEnd()
4147
    result = getStateMaster_result()
4148
    result.success = self._handler.getStateMaster()
4149
    oprot.writeMessageBegin("getStateMaster", TMessageType.REPLY, seqid)
4150
    result.write(oprot)
4151
    oprot.writeMessageEnd()
4152
    oprot.trans.flush()
10097 kshitij.so 4153
 
10544 vikram.rag 4154
  def process_updateSnapdealStockAtEOD(self, seqid, iprot, oprot):
4155
    args = updateSnapdealStockAtEOD_args()
4156
    args.read(iprot)
4157
    iprot.readMessageEnd()
4158
    result = updateSnapdealStockAtEOD_result()
4159
    self._handler.updateSnapdealStockAtEOD(args.allsnapdealstock)
4160
    oprot.writeMessageBegin("updateSnapdealStockAtEOD", TMessageType.REPLY, seqid)
4161
    result.write(oprot)
4162
    oprot.writeMessageEnd()
4163
    oprot.trans.flush()
10485 vikram.rag 4164
 
10544 vikram.rag 4165
  def process_updateFlipkartStockAtEOD(self, seqid, iprot, oprot):
4166
    args = updateFlipkartStockAtEOD_args()
4167
    args.read(iprot)
4168
    iprot.readMessageEnd()
4169
    result = updateFlipkartStockAtEOD_result()
4170
    self._handler.updateFlipkartStockAtEOD(args.allflipkartstock)
4171
    oprot.writeMessageBegin("updateFlipkartStockAtEOD", TMessageType.REPLY, seqid)
4172
    result.write(oprot)
4173
    oprot.writeMessageEnd()
4174
    oprot.trans.flush()
4175
 
4176
 
5944 mandeep.dh 4177
# HELPER FUNCTIONS AND STRUCTURES
4178
 
4179
class addWarehouse_args:
4180
  """
4181
  Attributes:
4182
   - warehouse
4183
  """
4184
 
4185
  thrift_spec = (
4186
    None, # 0
4187
    (1, TType.STRUCT, 'warehouse', (Warehouse, Warehouse.thrift_spec), None, ), # 1
4188
  )
4189
 
4190
  def __init__(self, warehouse=None,):
4191
    self.warehouse = warehouse
4192
 
4193
  def read(self, iprot):
4194
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4195
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4196
      return
4197
    iprot.readStructBegin()
4198
    while True:
4199
      (fname, ftype, fid) = iprot.readFieldBegin()
4200
      if ftype == TType.STOP:
4201
        break
4202
      if fid == 1:
4203
        if ftype == TType.STRUCT:
4204
          self.warehouse = Warehouse()
4205
          self.warehouse.read(iprot)
4206
        else:
4207
          iprot.skip(ftype)
4208
      else:
4209
        iprot.skip(ftype)
4210
      iprot.readFieldEnd()
4211
    iprot.readStructEnd()
4212
 
4213
  def write(self, oprot):
4214
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4215
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4216
      return
4217
    oprot.writeStructBegin('addWarehouse_args')
4218
    if self.warehouse is not None:
4219
      oprot.writeFieldBegin('warehouse', TType.STRUCT, 1)
4220
      self.warehouse.write(oprot)
4221
      oprot.writeFieldEnd()
4222
    oprot.writeFieldStop()
4223
    oprot.writeStructEnd()
4224
 
4225
  def validate(self):
4226
    return
4227
 
4228
 
4229
  def __repr__(self):
4230
    L = ['%s=%r' % (key, value)
4231
      for key, value in self.__dict__.iteritems()]
4232
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4233
 
4234
  def __eq__(self, other):
4235
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4236
 
4237
  def __ne__(self, other):
4238
    return not (self == other)
4239
 
4240
class addWarehouse_result:
4241
  """
4242
  Attributes:
4243
   - success
4244
   - cex
4245
  """
4246
 
4247
  thrift_spec = (
4248
    (0, TType.I64, 'success', None, None, ), # 0
4249
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4250
  )
4251
 
4252
  def __init__(self, success=None, cex=None,):
4253
    self.success = success
4254
    self.cex = cex
4255
 
4256
  def read(self, iprot):
4257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4259
      return
4260
    iprot.readStructBegin()
4261
    while True:
4262
      (fname, ftype, fid) = iprot.readFieldBegin()
4263
      if ftype == TType.STOP:
4264
        break
4265
      if fid == 0:
4266
        if ftype == TType.I64:
4267
          self.success = iprot.readI64();
4268
        else:
4269
          iprot.skip(ftype)
4270
      elif fid == 1:
4271
        if ftype == TType.STRUCT:
4272
          self.cex = InventoryServiceException()
4273
          self.cex.read(iprot)
4274
        else:
4275
          iprot.skip(ftype)
4276
      else:
4277
        iprot.skip(ftype)
4278
      iprot.readFieldEnd()
4279
    iprot.readStructEnd()
4280
 
4281
  def write(self, oprot):
4282
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4283
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4284
      return
4285
    oprot.writeStructBegin('addWarehouse_result')
4286
    if self.success is not None:
4287
      oprot.writeFieldBegin('success', TType.I64, 0)
4288
      oprot.writeI64(self.success)
4289
      oprot.writeFieldEnd()
4290
    if self.cex is not None:
4291
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4292
      self.cex.write(oprot)
4293
      oprot.writeFieldEnd()
4294
    oprot.writeFieldStop()
4295
    oprot.writeStructEnd()
4296
 
4297
  def validate(self):
4298
    return
4299
 
4300
 
4301
  def __repr__(self):
4302
    L = ['%s=%r' % (key, value)
4303
      for key, value in self.__dict__.iteritems()]
4304
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4305
 
4306
  def __eq__(self, other):
4307
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4308
 
4309
  def __ne__(self, other):
4310
    return not (self == other)
4311
 
4312
class addVendor_args:
4313
  """
4314
  Attributes:
4315
   - vendor
4316
  """
4317
 
4318
  thrift_spec = (
4319
    None, # 0
4320
    (1, TType.STRUCT, 'vendor', (Vendor, Vendor.thrift_spec), None, ), # 1
4321
  )
4322
 
4323
  def __init__(self, vendor=None,):
4324
    self.vendor = vendor
4325
 
4326
  def read(self, iprot):
4327
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4328
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4329
      return
4330
    iprot.readStructBegin()
4331
    while True:
4332
      (fname, ftype, fid) = iprot.readFieldBegin()
4333
      if ftype == TType.STOP:
4334
        break
4335
      if fid == 1:
4336
        if ftype == TType.STRUCT:
4337
          self.vendor = Vendor()
4338
          self.vendor.read(iprot)
4339
        else:
4340
          iprot.skip(ftype)
4341
      else:
4342
        iprot.skip(ftype)
4343
      iprot.readFieldEnd()
4344
    iprot.readStructEnd()
4345
 
4346
  def write(self, oprot):
4347
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4348
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4349
      return
4350
    oprot.writeStructBegin('addVendor_args')
4351
    if self.vendor is not None:
4352
      oprot.writeFieldBegin('vendor', TType.STRUCT, 1)
4353
      self.vendor.write(oprot)
4354
      oprot.writeFieldEnd()
4355
    oprot.writeFieldStop()
4356
    oprot.writeStructEnd()
4357
 
4358
  def validate(self):
4359
    return
4360
 
4361
 
4362
  def __repr__(self):
4363
    L = ['%s=%r' % (key, value)
4364
      for key, value in self.__dict__.iteritems()]
4365
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4366
 
4367
  def __eq__(self, other):
4368
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4369
 
4370
  def __ne__(self, other):
4371
    return not (self == other)
4372
 
4373
class addVendor_result:
4374
  """
4375
  Attributes:
4376
   - success
4377
   - cex
4378
  """
4379
 
4380
  thrift_spec = (
4381
    (0, TType.I64, 'success', None, None, ), # 0
4382
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4383
  )
4384
 
4385
  def __init__(self, success=None, cex=None,):
4386
    self.success = success
4387
    self.cex = cex
4388
 
4389
  def read(self, iprot):
4390
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4391
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4392
      return
4393
    iprot.readStructBegin()
4394
    while True:
4395
      (fname, ftype, fid) = iprot.readFieldBegin()
4396
      if ftype == TType.STOP:
4397
        break
4398
      if fid == 0:
4399
        if ftype == TType.I64:
4400
          self.success = iprot.readI64();
4401
        else:
4402
          iprot.skip(ftype)
4403
      elif fid == 1:
4404
        if ftype == TType.STRUCT:
4405
          self.cex = InventoryServiceException()
4406
          self.cex.read(iprot)
4407
        else:
4408
          iprot.skip(ftype)
4409
      else:
4410
        iprot.skip(ftype)
4411
      iprot.readFieldEnd()
4412
    iprot.readStructEnd()
4413
 
4414
  def write(self, oprot):
4415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4417
      return
4418
    oprot.writeStructBegin('addVendor_result')
4419
    if self.success is not None:
4420
      oprot.writeFieldBegin('success', TType.I64, 0)
4421
      oprot.writeI64(self.success)
4422
      oprot.writeFieldEnd()
4423
    if self.cex is not None:
4424
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4425
      self.cex.write(oprot)
4426
      oprot.writeFieldEnd()
4427
    oprot.writeFieldStop()
4428
    oprot.writeStructEnd()
4429
 
4430
  def validate(self):
4431
    return
4432
 
4433
 
4434
  def __repr__(self):
4435
    L = ['%s=%r' % (key, value)
4436
      for key, value in self.__dict__.iteritems()]
4437
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4438
 
4439
  def __eq__(self, other):
4440
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4441
 
4442
  def __ne__(self, other):
4443
    return not (self == other)
4444
 
4445
class updateInventoryHistory_args:
4446
  """
4447
  Attributes:
4448
   - warehouse_id
4449
   - timestamp
4450
   - availability
4451
  """
4452
 
4453
  thrift_spec = (
4454
    None, # 0
4455
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4456
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4457
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4458
  )
4459
 
4460
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4461
    self.warehouse_id = warehouse_id
4462
    self.timestamp = timestamp
4463
    self.availability = availability
4464
 
4465
  def read(self, iprot):
4466
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4467
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4468
      return
4469
    iprot.readStructBegin()
4470
    while True:
4471
      (fname, ftype, fid) = iprot.readFieldBegin()
4472
      if ftype == TType.STOP:
4473
        break
4474
      if fid == 1:
4475
        if ftype == TType.I64:
4476
          self.warehouse_id = iprot.readI64();
4477
        else:
4478
          iprot.skip(ftype)
4479
      elif fid == 2:
4480
        if ftype == TType.STRING:
4481
          self.timestamp = iprot.readString();
4482
        else:
4483
          iprot.skip(ftype)
4484
      elif fid == 3:
4485
        if ftype == TType.MAP:
4486
          self.availability = {}
8182 amar.kumar 4487
          (_ktype28, _vtype29, _size27 ) = iprot.readMapBegin() 
4488
          for _i31 in xrange(_size27):
4489
            _key32 = iprot.readString();
4490
            _val33 = iprot.readI64();
4491
            self.availability[_key32] = _val33
5944 mandeep.dh 4492
          iprot.readMapEnd()
4493
        else:
4494
          iprot.skip(ftype)
4495
      else:
4496
        iprot.skip(ftype)
4497
      iprot.readFieldEnd()
4498
    iprot.readStructEnd()
4499
 
4500
  def write(self, oprot):
4501
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4502
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4503
      return
4504
    oprot.writeStructBegin('updateInventoryHistory_args')
4505
    if self.warehouse_id is not None:
4506
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4507
      oprot.writeI64(self.warehouse_id)
4508
      oprot.writeFieldEnd()
4509
    if self.timestamp is not None:
4510
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4511
      oprot.writeString(self.timestamp)
4512
      oprot.writeFieldEnd()
4513
    if self.availability is not None:
4514
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4515
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4516
      for kiter34,viter35 in self.availability.items():
4517
        oprot.writeString(kiter34)
4518
        oprot.writeI64(viter35)
5944 mandeep.dh 4519
      oprot.writeMapEnd()
4520
      oprot.writeFieldEnd()
4521
    oprot.writeFieldStop()
4522
    oprot.writeStructEnd()
4523
 
4524
  def validate(self):
4525
    return
4526
 
4527
 
4528
  def __repr__(self):
4529
    L = ['%s=%r' % (key, value)
4530
      for key, value in self.__dict__.iteritems()]
4531
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4532
 
4533
  def __eq__(self, other):
4534
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4535
 
4536
  def __ne__(self, other):
4537
    return not (self == other)
4538
 
4539
class updateInventoryHistory_result:
4540
  """
4541
  Attributes:
4542
   - cex
4543
  """
4544
 
4545
  thrift_spec = (
4546
    None, # 0
4547
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4548
  )
4549
 
4550
  def __init__(self, cex=None,):
4551
    self.cex = cex
4552
 
4553
  def read(self, iprot):
4554
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4555
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4556
      return
4557
    iprot.readStructBegin()
4558
    while True:
4559
      (fname, ftype, fid) = iprot.readFieldBegin()
4560
      if ftype == TType.STOP:
4561
        break
4562
      if fid == 1:
4563
        if ftype == TType.STRUCT:
4564
          self.cex = InventoryServiceException()
4565
          self.cex.read(iprot)
4566
        else:
4567
          iprot.skip(ftype)
4568
      else:
4569
        iprot.skip(ftype)
4570
      iprot.readFieldEnd()
4571
    iprot.readStructEnd()
4572
 
4573
  def write(self, oprot):
4574
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4575
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4576
      return
4577
    oprot.writeStructBegin('updateInventoryHistory_result')
4578
    if self.cex is not None:
4579
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4580
      self.cex.write(oprot)
4581
      oprot.writeFieldEnd()
4582
    oprot.writeFieldStop()
4583
    oprot.writeStructEnd()
4584
 
4585
  def validate(self):
4586
    return
4587
 
4588
 
4589
  def __repr__(self):
4590
    L = ['%s=%r' % (key, value)
4591
      for key, value in self.__dict__.iteritems()]
4592
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4593
 
4594
  def __eq__(self, other):
4595
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4596
 
4597
  def __ne__(self, other):
4598
    return not (self == other)
4599
 
4600
class updateInventory_args:
4601
  """
4602
  Attributes:
4603
   - warehouse_id
4604
   - timestamp
4605
   - availability
4606
  """
4607
 
4608
  thrift_spec = (
4609
    None, # 0
4610
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4611
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4612
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4613
  )
4614
 
4615
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4616
    self.warehouse_id = warehouse_id
4617
    self.timestamp = timestamp
4618
    self.availability = availability
4619
 
4620
  def read(self, iprot):
4621
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4622
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4623
      return
4624
    iprot.readStructBegin()
4625
    while True:
4626
      (fname, ftype, fid) = iprot.readFieldBegin()
4627
      if ftype == TType.STOP:
4628
        break
4629
      if fid == 1:
4630
        if ftype == TType.I64:
4631
          self.warehouse_id = iprot.readI64();
4632
        else:
4633
          iprot.skip(ftype)
4634
      elif fid == 2:
4635
        if ftype == TType.STRING:
4636
          self.timestamp = iprot.readString();
4637
        else:
4638
          iprot.skip(ftype)
4639
      elif fid == 3:
4640
        if ftype == TType.MAP:
4641
          self.availability = {}
8182 amar.kumar 4642
          (_ktype37, _vtype38, _size36 ) = iprot.readMapBegin() 
4643
          for _i40 in xrange(_size36):
4644
            _key41 = iprot.readString();
4645
            _val42 = iprot.readI64();
4646
            self.availability[_key41] = _val42
5944 mandeep.dh 4647
          iprot.readMapEnd()
4648
        else:
4649
          iprot.skip(ftype)
4650
      else:
4651
        iprot.skip(ftype)
4652
      iprot.readFieldEnd()
4653
    iprot.readStructEnd()
4654
 
4655
  def write(self, oprot):
4656
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4657
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4658
      return
4659
    oprot.writeStructBegin('updateInventory_args')
4660
    if self.warehouse_id is not None:
4661
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4662
      oprot.writeI64(self.warehouse_id)
4663
      oprot.writeFieldEnd()
4664
    if self.timestamp is not None:
4665
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4666
      oprot.writeString(self.timestamp)
4667
      oprot.writeFieldEnd()
4668
    if self.availability is not None:
4669
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4670
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4671
      for kiter43,viter44 in self.availability.items():
4672
        oprot.writeString(kiter43)
4673
        oprot.writeI64(viter44)
5944 mandeep.dh 4674
      oprot.writeMapEnd()
4675
      oprot.writeFieldEnd()
4676
    oprot.writeFieldStop()
4677
    oprot.writeStructEnd()
4678
 
4679
  def validate(self):
4680
    return
4681
 
4682
 
4683
  def __repr__(self):
4684
    L = ['%s=%r' % (key, value)
4685
      for key, value in self.__dict__.iteritems()]
4686
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4687
 
4688
  def __eq__(self, other):
4689
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4690
 
4691
  def __ne__(self, other):
4692
    return not (self == other)
4693
 
4694
class updateInventory_result:
4695
  """
4696
  Attributes:
4697
   - cex
4698
  """
4699
 
4700
  thrift_spec = (
4701
    None, # 0
4702
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4703
  )
4704
 
4705
  def __init__(self, cex=None,):
4706
    self.cex = cex
4707
 
4708
  def read(self, iprot):
4709
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4710
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4711
      return
4712
    iprot.readStructBegin()
4713
    while True:
4714
      (fname, ftype, fid) = iprot.readFieldBegin()
4715
      if ftype == TType.STOP:
4716
        break
4717
      if fid == 1:
4718
        if ftype == TType.STRUCT:
4719
          self.cex = InventoryServiceException()
4720
          self.cex.read(iprot)
4721
        else:
4722
          iprot.skip(ftype)
4723
      else:
4724
        iprot.skip(ftype)
4725
      iprot.readFieldEnd()
4726
    iprot.readStructEnd()
4727
 
4728
  def write(self, oprot):
4729
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4730
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4731
      return
4732
    oprot.writeStructBegin('updateInventory_result')
4733
    if self.cex is not None:
4734
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4735
      self.cex.write(oprot)
4736
      oprot.writeFieldEnd()
4737
    oprot.writeFieldStop()
4738
    oprot.writeStructEnd()
4739
 
4740
  def validate(self):
4741
    return
4742
 
4743
 
4744
  def __repr__(self):
4745
    L = ['%s=%r' % (key, value)
4746
      for key, value in self.__dict__.iteritems()]
4747
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4748
 
4749
  def __eq__(self, other):
4750
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4751
 
4752
  def __ne__(self, other):
4753
    return not (self == other)
4754
 
4755
class addInventory_args:
4756
  """
4757
  Attributes:
4758
   - itemId
4759
   - warehouseId
4760
   - quantity
4761
  """
4762
 
4763
  thrift_spec = (
4764
    None, # 0
4765
    (1, TType.I64, 'itemId', None, None, ), # 1
4766
    (2, TType.I64, 'warehouseId', None, None, ), # 2
4767
    (3, TType.I64, 'quantity', None, None, ), # 3
4768
  )
4769
 
4770
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
4771
    self.itemId = itemId
4772
    self.warehouseId = warehouseId
4773
    self.quantity = quantity
4774
 
4775
  def read(self, iprot):
4776
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4777
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4778
      return
4779
    iprot.readStructBegin()
4780
    while True:
4781
      (fname, ftype, fid) = iprot.readFieldBegin()
4782
      if ftype == TType.STOP:
4783
        break
4784
      if fid == 1:
4785
        if ftype == TType.I64:
4786
          self.itemId = iprot.readI64();
4787
        else:
4788
          iprot.skip(ftype)
4789
      elif fid == 2:
4790
        if ftype == TType.I64:
4791
          self.warehouseId = iprot.readI64();
4792
        else:
4793
          iprot.skip(ftype)
4794
      elif fid == 3:
4795
        if ftype == TType.I64:
4796
          self.quantity = iprot.readI64();
4797
        else:
4798
          iprot.skip(ftype)
4799
      else:
4800
        iprot.skip(ftype)
4801
      iprot.readFieldEnd()
4802
    iprot.readStructEnd()
4803
 
4804
  def write(self, oprot):
4805
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4806
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4807
      return
4808
    oprot.writeStructBegin('addInventory_args')
4809
    if self.itemId is not None:
4810
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4811
      oprot.writeI64(self.itemId)
4812
      oprot.writeFieldEnd()
4813
    if self.warehouseId is not None:
4814
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
4815
      oprot.writeI64(self.warehouseId)
4816
      oprot.writeFieldEnd()
4817
    if self.quantity is not None:
4818
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4819
      oprot.writeI64(self.quantity)
4820
      oprot.writeFieldEnd()
4821
    oprot.writeFieldStop()
4822
    oprot.writeStructEnd()
4823
 
4824
  def validate(self):
4825
    return
4826
 
4827
 
4828
  def __repr__(self):
4829
    L = ['%s=%r' % (key, value)
4830
      for key, value in self.__dict__.iteritems()]
4831
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4832
 
4833
  def __eq__(self, other):
4834
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4835
 
4836
  def __ne__(self, other):
4837
    return not (self == other)
4838
 
4839
class addInventory_result:
4840
  """
4841
  Attributes:
4842
   - cex
4843
  """
4844
 
4845
  thrift_spec = (
4846
    None, # 0
4847
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4848
  )
4849
 
4850
  def __init__(self, cex=None,):
4851
    self.cex = cex
4852
 
4853
  def read(self, iprot):
4854
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4855
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4856
      return
4857
    iprot.readStructBegin()
4858
    while True:
4859
      (fname, ftype, fid) = iprot.readFieldBegin()
4860
      if ftype == TType.STOP:
4861
        break
4862
      if fid == 1:
4863
        if ftype == TType.STRUCT:
4864
          self.cex = InventoryServiceException()
4865
          self.cex.read(iprot)
4866
        else:
4867
          iprot.skip(ftype)
4868
      else:
4869
        iprot.skip(ftype)
4870
      iprot.readFieldEnd()
4871
    iprot.readStructEnd()
4872
 
4873
  def write(self, oprot):
4874
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4875
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4876
      return
4877
    oprot.writeStructBegin('addInventory_result')
4878
    if self.cex is not None:
4879
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4880
      self.cex.write(oprot)
4881
      oprot.writeFieldEnd()
4882
    oprot.writeFieldStop()
4883
    oprot.writeStructEnd()
4884
 
4885
  def validate(self):
4886
    return
4887
 
4888
 
4889
  def __repr__(self):
4890
    L = ['%s=%r' % (key, value)
4891
      for key, value in self.__dict__.iteritems()]
4892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4893
 
4894
  def __eq__(self, other):
4895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4896
 
4897
  def __ne__(self, other):
4898
    return not (self == other)
4899
 
4900
class retireWarehouse_args:
4901
  """
4902
  Attributes:
4903
   - warehouse_id
4904
  """
4905
 
4906
  thrift_spec = (
4907
    None, # 0
4908
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4909
  )
4910
 
4911
  def __init__(self, warehouse_id=None,):
4912
    self.warehouse_id = warehouse_id
4913
 
4914
  def read(self, iprot):
4915
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4916
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4917
      return
4918
    iprot.readStructBegin()
4919
    while True:
4920
      (fname, ftype, fid) = iprot.readFieldBegin()
4921
      if ftype == TType.STOP:
4922
        break
4923
      if fid == 1:
4924
        if ftype == TType.I64:
4925
          self.warehouse_id = iprot.readI64();
4926
        else:
4927
          iprot.skip(ftype)
4928
      else:
4929
        iprot.skip(ftype)
4930
      iprot.readFieldEnd()
4931
    iprot.readStructEnd()
4932
 
4933
  def write(self, oprot):
4934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4936
      return
4937
    oprot.writeStructBegin('retireWarehouse_args')
4938
    if self.warehouse_id is not None:
4939
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4940
      oprot.writeI64(self.warehouse_id)
4941
      oprot.writeFieldEnd()
4942
    oprot.writeFieldStop()
4943
    oprot.writeStructEnd()
4944
 
4945
  def validate(self):
4946
    return
4947
 
4948
 
4949
  def __repr__(self):
4950
    L = ['%s=%r' % (key, value)
4951
      for key, value in self.__dict__.iteritems()]
4952
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4953
 
4954
  def __eq__(self, other):
4955
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4956
 
4957
  def __ne__(self, other):
4958
    return not (self == other)
4959
 
4960
class retireWarehouse_result:
4961
  """
4962
  Attributes:
4963
   - cex
4964
  """
4965
 
4966
  thrift_spec = (
4967
    None, # 0
4968
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4969
  )
4970
 
4971
  def __init__(self, cex=None,):
4972
    self.cex = cex
4973
 
4974
  def read(self, iprot):
4975
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4976
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4977
      return
4978
    iprot.readStructBegin()
4979
    while True:
4980
      (fname, ftype, fid) = iprot.readFieldBegin()
4981
      if ftype == TType.STOP:
4982
        break
4983
      if fid == 1:
4984
        if ftype == TType.STRUCT:
4985
          self.cex = InventoryServiceException()
4986
          self.cex.read(iprot)
4987
        else:
4988
          iprot.skip(ftype)
4989
      else:
4990
        iprot.skip(ftype)
4991
      iprot.readFieldEnd()
4992
    iprot.readStructEnd()
4993
 
4994
  def write(self, oprot):
4995
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4996
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4997
      return
4998
    oprot.writeStructBegin('retireWarehouse_result')
4999
    if self.cex is not None:
5000
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5001
      self.cex.write(oprot)
5002
      oprot.writeFieldEnd()
5003
    oprot.writeFieldStop()
5004
    oprot.writeStructEnd()
5005
 
5006
  def validate(self):
5007
    return
5008
 
5009
 
5010
  def __repr__(self):
5011
    L = ['%s=%r' % (key, value)
5012
      for key, value in self.__dict__.iteritems()]
5013
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5014
 
5015
  def __eq__(self, other):
5016
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5017
 
5018
  def __ne__(self, other):
5019
    return not (self == other)
5020
 
5021
class getItemInventoryByItemId_args:
5022
  """
5023
  Attributes:
5024
   - item_id
5025
  """
5026
 
5027
  thrift_spec = (
5028
    None, # 0
5029
    (1, TType.I64, 'item_id', None, None, ), # 1
5030
  )
5031
 
5032
  def __init__(self, item_id=None,):
5033
    self.item_id = item_id
5034
 
5035
  def read(self, iprot):
5036
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5037
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5038
      return
5039
    iprot.readStructBegin()
5040
    while True:
5041
      (fname, ftype, fid) = iprot.readFieldBegin()
5042
      if ftype == TType.STOP:
5043
        break
5044
      if fid == 1:
5045
        if ftype == TType.I64:
5046
          self.item_id = iprot.readI64();
5047
        else:
5048
          iprot.skip(ftype)
5049
      else:
5050
        iprot.skip(ftype)
5051
      iprot.readFieldEnd()
5052
    iprot.readStructEnd()
5053
 
5054
  def write(self, oprot):
5055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5057
      return
5058
    oprot.writeStructBegin('getItemInventoryByItemId_args')
5059
    if self.item_id is not None:
5060
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5061
      oprot.writeI64(self.item_id)
5062
      oprot.writeFieldEnd()
5063
    oprot.writeFieldStop()
5064
    oprot.writeStructEnd()
5065
 
5066
  def validate(self):
5067
    return
5068
 
5069
 
5070
  def __repr__(self):
5071
    L = ['%s=%r' % (key, value)
5072
      for key, value in self.__dict__.iteritems()]
5073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5074
 
5075
  def __eq__(self, other):
5076
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5077
 
5078
  def __ne__(self, other):
5079
    return not (self == other)
5080
 
5081
class getItemInventoryByItemId_result:
5082
  """
5083
  Attributes:
5084
   - success
5085
   - cex
5086
  """
5087
 
5088
  thrift_spec = (
5089
    (0, TType.STRUCT, 'success', (ItemInventory, ItemInventory.thrift_spec), None, ), # 0
5090
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5091
  )
5092
 
5093
  def __init__(self, success=None, cex=None,):
5094
    self.success = success
5095
    self.cex = cex
5096
 
5097
  def read(self, iprot):
5098
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5099
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5100
      return
5101
    iprot.readStructBegin()
5102
    while True:
5103
      (fname, ftype, fid) = iprot.readFieldBegin()
5104
      if ftype == TType.STOP:
5105
        break
5106
      if fid == 0:
5107
        if ftype == TType.STRUCT:
5108
          self.success = ItemInventory()
5109
          self.success.read(iprot)
5110
        else:
5111
          iprot.skip(ftype)
5112
      elif fid == 1:
5113
        if ftype == TType.STRUCT:
5114
          self.cex = InventoryServiceException()
5115
          self.cex.read(iprot)
5116
        else:
5117
          iprot.skip(ftype)
5118
      else:
5119
        iprot.skip(ftype)
5120
      iprot.readFieldEnd()
5121
    iprot.readStructEnd()
5122
 
5123
  def write(self, oprot):
5124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5126
      return
5127
    oprot.writeStructBegin('getItemInventoryByItemId_result')
5128
    if self.success is not None:
5129
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5130
      self.success.write(oprot)
5131
      oprot.writeFieldEnd()
5132
    if self.cex is not None:
5133
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5134
      self.cex.write(oprot)
5135
      oprot.writeFieldEnd()
5136
    oprot.writeFieldStop()
5137
    oprot.writeStructEnd()
5138
 
5139
  def validate(self):
5140
    return
5141
 
5142
 
5143
  def __repr__(self):
5144
    L = ['%s=%r' % (key, value)
5145
      for key, value in self.__dict__.iteritems()]
5146
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5147
 
5148
  def __eq__(self, other):
5149
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5150
 
5151
  def __ne__(self, other):
5152
    return not (self == other)
5153
 
5154
class getItemAvailibilityAtWarehouse_args:
5155
  """
5156
  Attributes:
5157
   - warehouse_id
5158
   - item_id
5159
  """
5160
 
5161
  thrift_spec = (
5162
    None, # 0
5163
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5164
    (2, TType.I64, 'item_id', None, None, ), # 2
5165
  )
5166
 
5167
  def __init__(self, warehouse_id=None, item_id=None,):
5168
    self.warehouse_id = warehouse_id
5169
    self.item_id = item_id
5170
 
5171
  def read(self, iprot):
5172
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5173
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5174
      return
5175
    iprot.readStructBegin()
5176
    while True:
5177
      (fname, ftype, fid) = iprot.readFieldBegin()
5178
      if ftype == TType.STOP:
5179
        break
5180
      if fid == 1:
5181
        if ftype == TType.I64:
5182
          self.warehouse_id = iprot.readI64();
5183
        else:
5184
          iprot.skip(ftype)
5185
      elif fid == 2:
5186
        if ftype == TType.I64:
5187
          self.item_id = iprot.readI64();
5188
        else:
5189
          iprot.skip(ftype)
5190
      else:
5191
        iprot.skip(ftype)
5192
      iprot.readFieldEnd()
5193
    iprot.readStructEnd()
5194
 
5195
  def write(self, oprot):
5196
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5197
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5198
      return
5199
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_args')
5200
    if self.warehouse_id is not None:
5201
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5202
      oprot.writeI64(self.warehouse_id)
5203
      oprot.writeFieldEnd()
5204
    if self.item_id is not None:
5205
      oprot.writeFieldBegin('item_id', TType.I64, 2)
5206
      oprot.writeI64(self.item_id)
5207
      oprot.writeFieldEnd()
5208
    oprot.writeFieldStop()
5209
    oprot.writeStructEnd()
5210
 
5211
  def validate(self):
5212
    return
5213
 
5214
 
5215
  def __repr__(self):
5216
    L = ['%s=%r' % (key, value)
5217
      for key, value in self.__dict__.iteritems()]
5218
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5219
 
5220
  def __eq__(self, other):
5221
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5222
 
5223
  def __ne__(self, other):
5224
    return not (self == other)
5225
 
5226
class getItemAvailibilityAtWarehouse_result:
5227
  """
5228
  Attributes:
5229
   - success
5230
   - cex
5231
  """
5232
 
5233
  thrift_spec = (
5234
    (0, TType.I64, 'success', None, None, ), # 0
5235
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5236
  )
5237
 
5238
  def __init__(self, success=None, cex=None,):
5239
    self.success = success
5240
    self.cex = cex
5241
 
5242
  def read(self, iprot):
5243
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5244
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5245
      return
5246
    iprot.readStructBegin()
5247
    while True:
5248
      (fname, ftype, fid) = iprot.readFieldBegin()
5249
      if ftype == TType.STOP:
5250
        break
5251
      if fid == 0:
5252
        if ftype == TType.I64:
5253
          self.success = iprot.readI64();
5254
        else:
5255
          iprot.skip(ftype)
5256
      elif fid == 1:
5257
        if ftype == TType.STRUCT:
5258
          self.cex = InventoryServiceException()
5259
          self.cex.read(iprot)
5260
        else:
5261
          iprot.skip(ftype)
5262
      else:
5263
        iprot.skip(ftype)
5264
      iprot.readFieldEnd()
5265
    iprot.readStructEnd()
5266
 
5267
  def write(self, oprot):
5268
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5269
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5270
      return
5271
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_result')
5272
    if self.success is not None:
5273
      oprot.writeFieldBegin('success', TType.I64, 0)
5274
      oprot.writeI64(self.success)
5275
      oprot.writeFieldEnd()
5276
    if self.cex is not None:
5277
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5278
      self.cex.write(oprot)
5279
      oprot.writeFieldEnd()
5280
    oprot.writeFieldStop()
5281
    oprot.writeStructEnd()
5282
 
5283
  def validate(self):
5284
    return
5285
 
5286
 
5287
  def __repr__(self):
5288
    L = ['%s=%r' % (key, value)
5289
      for key, value in self.__dict__.iteritems()]
5290
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5291
 
5292
  def __eq__(self, other):
5293
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5294
 
5295
  def __ne__(self, other):
5296
    return not (self == other)
5297
 
5298
class getItemAvailabilityAtLocation_args:
5299
  """
5300
  Attributes:
5301
   - itemId
5978 rajveer 5302
   - sourceId
5944 mandeep.dh 5303
  """
5304
 
5305
  thrift_spec = (
5306
    None, # 0
5307
    (1, TType.I64, 'itemId', None, None, ), # 1
5978 rajveer 5308
    (2, TType.I64, 'sourceId', None, None, ), # 2
5944 mandeep.dh 5309
  )
5310
 
5978 rajveer 5311
  def __init__(self, itemId=None, sourceId=None,):
5944 mandeep.dh 5312
    self.itemId = itemId
5978 rajveer 5313
    self.sourceId = sourceId
5944 mandeep.dh 5314
 
5315
  def read(self, iprot):
5316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5318
      return
5319
    iprot.readStructBegin()
5320
    while True:
5321
      (fname, ftype, fid) = iprot.readFieldBegin()
5322
      if ftype == TType.STOP:
5323
        break
5324
      if fid == 1:
5325
        if ftype == TType.I64:
5326
          self.itemId = iprot.readI64();
5327
        else:
5328
          iprot.skip(ftype)
5978 rajveer 5329
      elif fid == 2:
5330
        if ftype == TType.I64:
5331
          self.sourceId = iprot.readI64();
5332
        else:
5333
          iprot.skip(ftype)
5944 mandeep.dh 5334
      else:
5335
        iprot.skip(ftype)
5336
      iprot.readFieldEnd()
5337
    iprot.readStructEnd()
5338
 
5339
  def write(self, oprot):
5340
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5341
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5342
      return
5343
    oprot.writeStructBegin('getItemAvailabilityAtLocation_args')
5344
    if self.itemId is not None:
5345
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5346
      oprot.writeI64(self.itemId)
5347
      oprot.writeFieldEnd()
5978 rajveer 5348
    if self.sourceId is not None:
5349
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
5350
      oprot.writeI64(self.sourceId)
5351
      oprot.writeFieldEnd()
5944 mandeep.dh 5352
    oprot.writeFieldStop()
5353
    oprot.writeStructEnd()
5354
 
5355
  def validate(self):
5356
    return
5357
 
5358
 
5359
  def __repr__(self):
5360
    L = ['%s=%r' % (key, value)
5361
      for key, value in self.__dict__.iteritems()]
5362
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5363
 
5364
  def __eq__(self, other):
5365
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5366
 
5367
  def __ne__(self, other):
5368
    return not (self == other)
5369
 
5370
class getItemAvailabilityAtLocation_result:
5371
  """
5372
  Attributes:
5373
   - success
5374
   - isex
5375
  """
5376
 
5377
  thrift_spec = (
5378
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5379
    (1, TType.STRUCT, 'isex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5380
  )
5381
 
5382
  def __init__(self, success=None, isex=None,):
5383
    self.success = success
5384
    self.isex = isex
5385
 
5386
  def read(self, iprot):
5387
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5388
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5389
      return
5390
    iprot.readStructBegin()
5391
    while True:
5392
      (fname, ftype, fid) = iprot.readFieldBegin()
5393
      if ftype == TType.STOP:
5394
        break
5395
      if fid == 0:
5396
        if ftype == TType.LIST:
5397
          self.success = []
8182 amar.kumar 5398
          (_etype48, _size45) = iprot.readListBegin()
5399
          for _i49 in xrange(_size45):
5400
            _elem50 = iprot.readI64();
5401
            self.success.append(_elem50)
5944 mandeep.dh 5402
          iprot.readListEnd()
5403
        else:
5404
          iprot.skip(ftype)
5405
      elif fid == 1:
5406
        if ftype == TType.STRUCT:
5407
          self.isex = InventoryServiceException()
5408
          self.isex.read(iprot)
5409
        else:
5410
          iprot.skip(ftype)
5411
      else:
5412
        iprot.skip(ftype)
5413
      iprot.readFieldEnd()
5414
    iprot.readStructEnd()
5415
 
5416
  def write(self, oprot):
5417
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5418
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5419
      return
5420
    oprot.writeStructBegin('getItemAvailabilityAtLocation_result')
5421
    if self.success is not None:
5422
      oprot.writeFieldBegin('success', TType.LIST, 0)
5423
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5424
      for iter51 in self.success:
5425
        oprot.writeI64(iter51)
5944 mandeep.dh 5426
      oprot.writeListEnd()
5427
      oprot.writeFieldEnd()
5428
    if self.isex is not None:
5429
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
5430
      self.isex.write(oprot)
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 getAllWarehouses_args:
5451
  """
5452
  Attributes:
5453
   - isActive
5454
  """
5455
 
5456
  thrift_spec = (
5457
    None, # 0
5458
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5459
  )
5460
 
5461
  def __init__(self, isActive=None,):
5462
    self.isActive = isActive
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.BOOL:
5475
          self.isActive = iprot.readBool();
5476
        else:
5477
          iprot.skip(ftype)
5478
      else:
5479
        iprot.skip(ftype)
5480
      iprot.readFieldEnd()
5481
    iprot.readStructEnd()
5482
 
5483
  def write(self, oprot):
5484
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5485
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5486
      return
5487
    oprot.writeStructBegin('getAllWarehouses_args')
5488
    if self.isActive is not None:
5489
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5490
      oprot.writeBool(self.isActive)
5491
      oprot.writeFieldEnd()
5492
    oprot.writeFieldStop()
5493
    oprot.writeStructEnd()
5494
 
5495
  def validate(self):
5496
    return
5497
 
5498
 
5499
  def __repr__(self):
5500
    L = ['%s=%r' % (key, value)
5501
      for key, value in self.__dict__.iteritems()]
5502
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5503
 
5504
  def __eq__(self, other):
5505
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5506
 
5507
  def __ne__(self, other):
5508
    return not (self == other)
5509
 
5510
class getAllWarehouses_result:
5511
  """
5512
  Attributes:
5513
   - success
5514
   - cex
5515
  """
5516
 
5517
  thrift_spec = (
5518
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
5519
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5520
  )
5521
 
5522
  def __init__(self, success=None, cex=None,):
5523
    self.success = success
5524
    self.cex = cex
5525
 
5526
  def read(self, iprot):
5527
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5528
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5529
      return
5530
    iprot.readStructBegin()
5531
    while True:
5532
      (fname, ftype, fid) = iprot.readFieldBegin()
5533
      if ftype == TType.STOP:
5534
        break
5535
      if fid == 0:
5536
        if ftype == TType.LIST:
5537
          self.success = []
8182 amar.kumar 5538
          (_etype55, _size52) = iprot.readListBegin()
5539
          for _i56 in xrange(_size52):
5540
            _elem57 = Warehouse()
5541
            _elem57.read(iprot)
5542
            self.success.append(_elem57)
5944 mandeep.dh 5543
          iprot.readListEnd()
5544
        else:
5545
          iprot.skip(ftype)
5546
      elif fid == 1:
5547
        if ftype == TType.STRUCT:
5548
          self.cex = InventoryServiceException()
5549
          self.cex.read(iprot)
5550
        else:
5551
          iprot.skip(ftype)
5552
      else:
5553
        iprot.skip(ftype)
5554
      iprot.readFieldEnd()
5555
    iprot.readStructEnd()
5556
 
5557
  def write(self, oprot):
5558
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5559
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5560
      return
5561
    oprot.writeStructBegin('getAllWarehouses_result')
5562
    if self.success is not None:
5563
      oprot.writeFieldBegin('success', TType.LIST, 0)
5564
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 5565
      for iter58 in self.success:
5566
        iter58.write(oprot)
5944 mandeep.dh 5567
      oprot.writeListEnd()
5568
      oprot.writeFieldEnd()
5569
    if self.cex is not None:
5570
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5571
      self.cex.write(oprot)
5572
      oprot.writeFieldEnd()
5573
    oprot.writeFieldStop()
5574
    oprot.writeStructEnd()
5575
 
5576
  def validate(self):
5577
    return
5578
 
5579
 
5580
  def __repr__(self):
5581
    L = ['%s=%r' % (key, value)
5582
      for key, value in self.__dict__.iteritems()]
5583
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5584
 
5585
  def __eq__(self, other):
5586
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5587
 
5588
  def __ne__(self, other):
5589
    return not (self == other)
5590
 
5591
class getWarehouse_args:
5592
  """
5593
  Attributes:
5594
   - warehouse_id
5595
  """
5596
 
5597
  thrift_spec = (
5598
    None, # 0
5599
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5600
  )
5601
 
5602
  def __init__(self, warehouse_id=None,):
5603
    self.warehouse_id = warehouse_id
5604
 
5605
  def read(self, iprot):
5606
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5607
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5608
      return
5609
    iprot.readStructBegin()
5610
    while True:
5611
      (fname, ftype, fid) = iprot.readFieldBegin()
5612
      if ftype == TType.STOP:
5613
        break
5614
      if fid == 1:
5615
        if ftype == TType.I64:
5616
          self.warehouse_id = iprot.readI64();
5617
        else:
5618
          iprot.skip(ftype)
5619
      else:
5620
        iprot.skip(ftype)
5621
      iprot.readFieldEnd()
5622
    iprot.readStructEnd()
5623
 
5624
  def write(self, oprot):
5625
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5626
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5627
      return
5628
    oprot.writeStructBegin('getWarehouse_args')
5629
    if self.warehouse_id is not None:
5630
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5631
      oprot.writeI64(self.warehouse_id)
5632
      oprot.writeFieldEnd()
5633
    oprot.writeFieldStop()
5634
    oprot.writeStructEnd()
5635
 
5636
  def validate(self):
5637
    return
5638
 
5639
 
5640
  def __repr__(self):
5641
    L = ['%s=%r' % (key, value)
5642
      for key, value in self.__dict__.iteritems()]
5643
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5644
 
5645
  def __eq__(self, other):
5646
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5647
 
5648
  def __ne__(self, other):
5649
    return not (self == other)
5650
 
5651
class getWarehouse_result:
5652
  """
5653
  Attributes:
5654
   - success
5655
   - cex
5656
  """
5657
 
5658
  thrift_spec = (
5659
    (0, TType.STRUCT, 'success', (Warehouse, Warehouse.thrift_spec), None, ), # 0
5660
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5661
  )
5662
 
5663
  def __init__(self, success=None, cex=None,):
5664
    self.success = success
5665
    self.cex = cex
5666
 
5667
  def read(self, iprot):
5668
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5669
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5670
      return
5671
    iprot.readStructBegin()
5672
    while True:
5673
      (fname, ftype, fid) = iprot.readFieldBegin()
5674
      if ftype == TType.STOP:
5675
        break
5676
      if fid == 0:
5677
        if ftype == TType.STRUCT:
5678
          self.success = Warehouse()
5679
          self.success.read(iprot)
5680
        else:
5681
          iprot.skip(ftype)
5682
      elif fid == 1:
5683
        if ftype == TType.STRUCT:
5684
          self.cex = InventoryServiceException()
5685
          self.cex.read(iprot)
5686
        else:
5687
          iprot.skip(ftype)
5688
      else:
5689
        iprot.skip(ftype)
5690
      iprot.readFieldEnd()
5691
    iprot.readStructEnd()
5692
 
5693
  def write(self, oprot):
5694
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5695
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5696
      return
5697
    oprot.writeStructBegin('getWarehouse_result')
5698
    if self.success is not None:
5699
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5700
      self.success.write(oprot)
5701
      oprot.writeFieldEnd()
5702
    if self.cex is not None:
5703
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5704
      self.cex.write(oprot)
5705
      oprot.writeFieldEnd()
5706
    oprot.writeFieldStop()
5707
    oprot.writeStructEnd()
5708
 
5709
  def validate(self):
5710
    return
5711
 
5712
 
5713
  def __repr__(self):
5714
    L = ['%s=%r' % (key, value)
5715
      for key, value in self.__dict__.iteritems()]
5716
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5717
 
5718
  def __eq__(self, other):
5719
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5720
 
5721
  def __ne__(self, other):
5722
    return not (self == other)
5723
 
5724
class getAllItemsForWarehouse_args:
5725
  """
5726
  Attributes:
5727
   - warehouse_id
5728
  """
5729
 
5730
  thrift_spec = (
5731
    None, # 0
5732
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5733
  )
5734
 
5735
  def __init__(self, warehouse_id=None,):
5736
    self.warehouse_id = warehouse_id
5737
 
5738
  def read(self, iprot):
5739
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5740
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5741
      return
5742
    iprot.readStructBegin()
5743
    while True:
5744
      (fname, ftype, fid) = iprot.readFieldBegin()
5745
      if ftype == TType.STOP:
5746
        break
5747
      if fid == 1:
5748
        if ftype == TType.I64:
5749
          self.warehouse_id = iprot.readI64();
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('getAllItemsForWarehouse_args')
5762
    if self.warehouse_id is not None:
5763
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5764
      oprot.writeI64(self.warehouse_id)
5765
      oprot.writeFieldEnd()
5766
    oprot.writeFieldStop()
5767
    oprot.writeStructEnd()
5768
 
5769
  def validate(self):
5770
    return
5771
 
5772
 
5773
  def __repr__(self):
5774
    L = ['%s=%r' % (key, value)
5775
      for key, value in self.__dict__.iteritems()]
5776
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5777
 
5778
  def __eq__(self, other):
5779
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5780
 
5781
  def __ne__(self, other):
5782
    return not (self == other)
5783
 
5784
class getAllItemsForWarehouse_result:
5785
  """
5786
  Attributes:
5787
   - success
5788
   - cex
5789
  """
5790
 
5791
  thrift_spec = (
5792
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5793
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5794
  )
5795
 
5796
  def __init__(self, success=None, cex=None,):
5797
    self.success = success
5798
    self.cex = cex
5799
 
5800
  def read(self, iprot):
5801
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5802
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5803
      return
5804
    iprot.readStructBegin()
5805
    while True:
5806
      (fname, ftype, fid) = iprot.readFieldBegin()
5807
      if ftype == TType.STOP:
5808
        break
5809
      if fid == 0:
5810
        if ftype == TType.LIST:
5811
          self.success = []
8182 amar.kumar 5812
          (_etype62, _size59) = iprot.readListBegin()
5813
          for _i63 in xrange(_size59):
5814
            _elem64 = iprot.readI64();
5815
            self.success.append(_elem64)
5944 mandeep.dh 5816
          iprot.readListEnd()
5817
        else:
5818
          iprot.skip(ftype)
5819
      elif fid == 1:
5820
        if ftype == TType.STRUCT:
5821
          self.cex = InventoryServiceException()
5822
          self.cex.read(iprot)
5823
        else:
5824
          iprot.skip(ftype)
5825
      else:
5826
        iprot.skip(ftype)
5827
      iprot.readFieldEnd()
5828
    iprot.readStructEnd()
5829
 
5830
  def write(self, oprot):
5831
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5832
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5833
      return
5834
    oprot.writeStructBegin('getAllItemsForWarehouse_result')
5835
    if self.success is not None:
5836
      oprot.writeFieldBegin('success', TType.LIST, 0)
5837
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5838
      for iter65 in self.success:
5839
        oprot.writeI64(iter65)
5944 mandeep.dh 5840
      oprot.writeListEnd()
5841
      oprot.writeFieldEnd()
5842
    if self.cex is not None:
5843
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5844
      self.cex.write(oprot)
5845
      oprot.writeFieldEnd()
5846
    oprot.writeFieldStop()
5847
    oprot.writeStructEnd()
5848
 
5849
  def validate(self):
5850
    return
5851
 
5852
 
5853
  def __repr__(self):
5854
    L = ['%s=%r' % (key, value)
5855
      for key, value in self.__dict__.iteritems()]
5856
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5857
 
5858
  def __eq__(self, other):
5859
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5860
 
5861
  def __ne__(self, other):
5862
    return not (self == other)
5863
 
5966 rajveer 5864
class isOrderBillable_args:
5865
  """
5866
  Attributes:
5867
   - itemId
5868
   - warehouseId
5869
   - sourceId
5870
   - orderId
5871
  """
5872
 
5873
  thrift_spec = (
5874
    None, # 0
5875
    (1, TType.I64, 'itemId', None, None, ), # 1
5876
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5877
    (3, TType.I64, 'sourceId', None, None, ), # 3
5878
    (4, TType.I64, 'orderId', None, None, ), # 4
5879
  )
5880
 
5881
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None,):
5882
    self.itemId = itemId
5883
    self.warehouseId = warehouseId
5884
    self.sourceId = sourceId
5885
    self.orderId = orderId
5886
 
5887
  def read(self, iprot):
5888
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5889
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5890
      return
5891
    iprot.readStructBegin()
5892
    while True:
5893
      (fname, ftype, fid) = iprot.readFieldBegin()
5894
      if ftype == TType.STOP:
5895
        break
5896
      if fid == 1:
5897
        if ftype == TType.I64:
5898
          self.itemId = iprot.readI64();
5899
        else:
5900
          iprot.skip(ftype)
5901
      elif fid == 2:
5902
        if ftype == TType.I64:
5903
          self.warehouseId = iprot.readI64();
5904
        else:
5905
          iprot.skip(ftype)
5906
      elif fid == 3:
5907
        if ftype == TType.I64:
5908
          self.sourceId = iprot.readI64();
5909
        else:
5910
          iprot.skip(ftype)
5911
      elif fid == 4:
5912
        if ftype == TType.I64:
5913
          self.orderId = iprot.readI64();
5914
        else:
5915
          iprot.skip(ftype)
5916
      else:
5917
        iprot.skip(ftype)
5918
      iprot.readFieldEnd()
5919
    iprot.readStructEnd()
5920
 
5921
  def write(self, oprot):
5922
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5923
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5924
      return
5925
    oprot.writeStructBegin('isOrderBillable_args')
5926
    if self.itemId is not None:
5927
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5928
      oprot.writeI64(self.itemId)
5929
      oprot.writeFieldEnd()
5930
    if self.warehouseId is not None:
5931
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5932
      oprot.writeI64(self.warehouseId)
5933
      oprot.writeFieldEnd()
5934
    if self.sourceId is not None:
5935
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
5936
      oprot.writeI64(self.sourceId)
5937
      oprot.writeFieldEnd()
5938
    if self.orderId is not None:
5939
      oprot.writeFieldBegin('orderId', TType.I64, 4)
5940
      oprot.writeI64(self.orderId)
5941
      oprot.writeFieldEnd()
5942
    oprot.writeFieldStop()
5943
    oprot.writeStructEnd()
5944
 
5945
  def validate(self):
5946
    return
5947
 
5948
 
5949
  def __repr__(self):
5950
    L = ['%s=%r' % (key, value)
5951
      for key, value in self.__dict__.iteritems()]
5952
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5953
 
5954
  def __eq__(self, other):
5955
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5956
 
5957
  def __ne__(self, other):
5958
    return not (self == other)
5959
 
5960
class isOrderBillable_result:
5961
  """
5962
  Attributes:
5963
   - success
5964
  """
5965
 
5966
  thrift_spec = (
5967
    (0, TType.BOOL, 'success', None, None, ), # 0
5968
  )
5969
 
5970
  def __init__(self, success=None,):
5971
    self.success = success
5972
 
5973
  def read(self, iprot):
5974
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5975
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5976
      return
5977
    iprot.readStructBegin()
5978
    while True:
5979
      (fname, ftype, fid) = iprot.readFieldBegin()
5980
      if ftype == TType.STOP:
5981
        break
5982
      if fid == 0:
5983
        if ftype == TType.BOOL:
5984
          self.success = iprot.readBool();
5985
        else:
5986
          iprot.skip(ftype)
5987
      else:
5988
        iprot.skip(ftype)
5989
      iprot.readFieldEnd()
5990
    iprot.readStructEnd()
5991
 
5992
  def write(self, oprot):
5993
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5994
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5995
      return
5996
    oprot.writeStructBegin('isOrderBillable_result')
5997
    if self.success is not None:
5998
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5999
      oprot.writeBool(self.success)
6000
      oprot.writeFieldEnd()
6001
    oprot.writeFieldStop()
6002
    oprot.writeStructEnd()
6003
 
6004
  def validate(self):
6005
    return
6006
 
6007
 
6008
  def __repr__(self):
6009
    L = ['%s=%r' % (key, value)
6010
      for key, value in self.__dict__.iteritems()]
6011
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6012
 
6013
  def __eq__(self, other):
6014
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6015
 
6016
  def __ne__(self, other):
6017
    return not (self == other)
6018
 
5944 mandeep.dh 6019
class reserveItemInWarehouse_args:
6020
  """
6021
  Attributes:
6022
   - itemId
6023
   - warehouseId
5966 rajveer 6024
   - sourceId
6025
   - orderId
6026
   - createdTimestamp
6027
   - promisedShippingTimestamp
5944 mandeep.dh 6028
   - quantity
6029
  """
6030
 
6031
  thrift_spec = (
6032
    None, # 0
6033
    (1, TType.I64, 'itemId', None, None, ), # 1
6034
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 6035
    (3, TType.I64, 'sourceId', None, None, ), # 3
6036
    (4, TType.I64, 'orderId', None, None, ), # 4
6037
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
6038
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
6039
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
5944 mandeep.dh 6040
  )
6041
 
5966 rajveer 6042
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
5944 mandeep.dh 6043
    self.itemId = itemId
6044
    self.warehouseId = warehouseId
5966 rajveer 6045
    self.sourceId = sourceId
6046
    self.orderId = orderId
6047
    self.createdTimestamp = createdTimestamp
6048
    self.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 6049
    self.quantity = quantity
6050
 
6051
  def read(self, iprot):
6052
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6053
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6054
      return
6055
    iprot.readStructBegin()
6056
    while True:
6057
      (fname, ftype, fid) = iprot.readFieldBegin()
6058
      if ftype == TType.STOP:
6059
        break
6060
      if fid == 1:
6061
        if ftype == TType.I64:
6062
          self.itemId = iprot.readI64();
6063
        else:
6064
          iprot.skip(ftype)
6065
      elif fid == 2:
6066
        if ftype == TType.I64:
6067
          self.warehouseId = iprot.readI64();
6068
        else:
6069
          iprot.skip(ftype)
6070
      elif fid == 3:
5966 rajveer 6071
        if ftype == TType.I64:
6072
          self.sourceId = iprot.readI64();
6073
        else:
6074
          iprot.skip(ftype)
6075
      elif fid == 4:
6076
        if ftype == TType.I64:
6077
          self.orderId = iprot.readI64();
6078
        else:
6079
          iprot.skip(ftype)
6080
      elif fid == 5:
6081
        if ftype == TType.I64:
6082
          self.createdTimestamp = iprot.readI64();
6083
        else:
6084
          iprot.skip(ftype)
6085
      elif fid == 6:
6086
        if ftype == TType.I64:
6087
          self.promisedShippingTimestamp = iprot.readI64();
6088
        else:
6089
          iprot.skip(ftype)
6090
      elif fid == 7:
5944 mandeep.dh 6091
        if ftype == TType.DOUBLE:
6092
          self.quantity = iprot.readDouble();
6093
        else:
6094
          iprot.skip(ftype)
6095
      else:
6096
        iprot.skip(ftype)
6097
      iprot.readFieldEnd()
6098
    iprot.readStructEnd()
6099
 
6100
  def write(self, oprot):
6101
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6102
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6103
      return
6104
    oprot.writeStructBegin('reserveItemInWarehouse_args')
6105
    if self.itemId is not None:
6106
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6107
      oprot.writeI64(self.itemId)
6108
      oprot.writeFieldEnd()
6109
    if self.warehouseId is not None:
6110
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6111
      oprot.writeI64(self.warehouseId)
6112
      oprot.writeFieldEnd()
5966 rajveer 6113
    if self.sourceId is not None:
6114
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6115
      oprot.writeI64(self.sourceId)
6116
      oprot.writeFieldEnd()
6117
    if self.orderId is not None:
6118
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6119
      oprot.writeI64(self.orderId)
6120
      oprot.writeFieldEnd()
6121
    if self.createdTimestamp is not None:
6122
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
6123
      oprot.writeI64(self.createdTimestamp)
6124
      oprot.writeFieldEnd()
6125
    if self.promisedShippingTimestamp is not None:
6126
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
6127
      oprot.writeI64(self.promisedShippingTimestamp)
6128
      oprot.writeFieldEnd()
5944 mandeep.dh 6129
    if self.quantity is not None:
5966 rajveer 6130
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
5944 mandeep.dh 6131
      oprot.writeDouble(self.quantity)
6132
      oprot.writeFieldEnd()
6133
    oprot.writeFieldStop()
6134
    oprot.writeStructEnd()
6135
 
6136
  def validate(self):
6137
    return
6138
 
6139
 
6140
  def __repr__(self):
6141
    L = ['%s=%r' % (key, value)
6142
      for key, value in self.__dict__.iteritems()]
6143
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6144
 
6145
  def __eq__(self, other):
6146
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6147
 
6148
  def __ne__(self, other):
6149
    return not (self == other)
6150
 
6151
class reserveItemInWarehouse_result:
6152
  """
6153
  Attributes:
6154
   - success
6155
   - cex
6156
  """
6157
 
6158
  thrift_spec = (
6159
    (0, TType.BOOL, 'success', None, None, ), # 0
6160
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6161
  )
6162
 
6163
  def __init__(self, success=None, cex=None,):
6164
    self.success = success
6165
    self.cex = cex
6166
 
6167
  def read(self, iprot):
6168
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6169
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6170
      return
6171
    iprot.readStructBegin()
6172
    while True:
6173
      (fname, ftype, fid) = iprot.readFieldBegin()
6174
      if ftype == TType.STOP:
6175
        break
6176
      if fid == 0:
6177
        if ftype == TType.BOOL:
6178
          self.success = iprot.readBool();
6179
        else:
6180
          iprot.skip(ftype)
6181
      elif fid == 1:
6182
        if ftype == TType.STRUCT:
6183
          self.cex = InventoryServiceException()
6184
          self.cex.read(iprot)
6185
        else:
6186
          iprot.skip(ftype)
6187
      else:
6188
        iprot.skip(ftype)
6189
      iprot.readFieldEnd()
6190
    iprot.readStructEnd()
6191
 
6192
  def write(self, oprot):
6193
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6194
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6195
      return
6196
    oprot.writeStructBegin('reserveItemInWarehouse_result')
6197
    if self.success is not None:
6198
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6199
      oprot.writeBool(self.success)
6200
      oprot.writeFieldEnd()
6201
    if self.cex is not None:
6202
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6203
      self.cex.write(oprot)
6204
      oprot.writeFieldEnd()
6205
    oprot.writeFieldStop()
6206
    oprot.writeStructEnd()
6207
 
6208
  def validate(self):
6209
    return
6210
 
6211
 
6212
  def __repr__(self):
6213
    L = ['%s=%r' % (key, value)
6214
      for key, value in self.__dict__.iteritems()]
6215
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6216
 
6217
  def __eq__(self, other):
6218
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6219
 
6220
  def __ne__(self, other):
6221
    return not (self == other)
6222
 
7968 amar.kumar 6223
class updateReservationForOrder_args:
6224
  """
6225
  Attributes:
6226
   - itemId
6227
   - warehouseId
6228
   - sourceId
6229
   - orderId
6230
   - createdTimestamp
6231
   - promisedShippingTimestamp
6232
   - quantity
6233
  """
6234
 
6235
  thrift_spec = (
6236
    None, # 0
6237
    (1, TType.I64, 'itemId', None, None, ), # 1
6238
    (2, TType.I64, 'warehouseId', None, None, ), # 2
6239
    (3, TType.I64, 'sourceId', None, None, ), # 3
6240
    (4, TType.I64, 'orderId', None, None, ), # 4
6241
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
6242
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
6243
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
6244
  )
6245
 
6246
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
6247
    self.itemId = itemId
6248
    self.warehouseId = warehouseId
6249
    self.sourceId = sourceId
6250
    self.orderId = orderId
6251
    self.createdTimestamp = createdTimestamp
6252
    self.promisedShippingTimestamp = promisedShippingTimestamp
6253
    self.quantity = quantity
6254
 
6255
  def read(self, iprot):
6256
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6257
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6258
      return
6259
    iprot.readStructBegin()
6260
    while True:
6261
      (fname, ftype, fid) = iprot.readFieldBegin()
6262
      if ftype == TType.STOP:
6263
        break
6264
      if fid == 1:
6265
        if ftype == TType.I64:
6266
          self.itemId = iprot.readI64();
6267
        else:
6268
          iprot.skip(ftype)
6269
      elif fid == 2:
6270
        if ftype == TType.I64:
6271
          self.warehouseId = iprot.readI64();
6272
        else:
6273
          iprot.skip(ftype)
6274
      elif fid == 3:
6275
        if ftype == TType.I64:
6276
          self.sourceId = iprot.readI64();
6277
        else:
6278
          iprot.skip(ftype)
6279
      elif fid == 4:
6280
        if ftype == TType.I64:
6281
          self.orderId = iprot.readI64();
6282
        else:
6283
          iprot.skip(ftype)
6284
      elif fid == 5:
6285
        if ftype == TType.I64:
6286
          self.createdTimestamp = iprot.readI64();
6287
        else:
6288
          iprot.skip(ftype)
6289
      elif fid == 6:
6290
        if ftype == TType.I64:
6291
          self.promisedShippingTimestamp = iprot.readI64();
6292
        else:
6293
          iprot.skip(ftype)
6294
      elif fid == 7:
6295
        if ftype == TType.DOUBLE:
6296
          self.quantity = iprot.readDouble();
6297
        else:
6298
          iprot.skip(ftype)
6299
      else:
6300
        iprot.skip(ftype)
6301
      iprot.readFieldEnd()
6302
    iprot.readStructEnd()
6303
 
6304
  def write(self, oprot):
6305
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6306
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6307
      return
6308
    oprot.writeStructBegin('updateReservationForOrder_args')
6309
    if self.itemId is not None:
6310
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6311
      oprot.writeI64(self.itemId)
6312
      oprot.writeFieldEnd()
6313
    if self.warehouseId is not None:
6314
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6315
      oprot.writeI64(self.warehouseId)
6316
      oprot.writeFieldEnd()
6317
    if self.sourceId is not None:
6318
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6319
      oprot.writeI64(self.sourceId)
6320
      oprot.writeFieldEnd()
6321
    if self.orderId is not None:
6322
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6323
      oprot.writeI64(self.orderId)
6324
      oprot.writeFieldEnd()
6325
    if self.createdTimestamp is not None:
6326
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
6327
      oprot.writeI64(self.createdTimestamp)
6328
      oprot.writeFieldEnd()
6329
    if self.promisedShippingTimestamp is not None:
6330
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
6331
      oprot.writeI64(self.promisedShippingTimestamp)
6332
      oprot.writeFieldEnd()
6333
    if self.quantity is not None:
6334
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
6335
      oprot.writeDouble(self.quantity)
6336
      oprot.writeFieldEnd()
6337
    oprot.writeFieldStop()
6338
    oprot.writeStructEnd()
6339
 
6340
  def validate(self):
6341
    return
6342
 
6343
 
6344
  def __repr__(self):
6345
    L = ['%s=%r' % (key, value)
6346
      for key, value in self.__dict__.iteritems()]
6347
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6348
 
6349
  def __eq__(self, other):
6350
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6351
 
6352
  def __ne__(self, other):
6353
    return not (self == other)
6354
 
6355
class updateReservationForOrder_result:
6356
  """
6357
  Attributes:
6358
   - success
6359
   - cex
6360
  """
6361
 
6362
  thrift_spec = (
6363
    (0, TType.BOOL, 'success', None, None, ), # 0
6364
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6365
  )
6366
 
6367
  def __init__(self, success=None, cex=None,):
6368
    self.success = success
6369
    self.cex = cex
6370
 
6371
  def read(self, iprot):
6372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6374
      return
6375
    iprot.readStructBegin()
6376
    while True:
6377
      (fname, ftype, fid) = iprot.readFieldBegin()
6378
      if ftype == TType.STOP:
6379
        break
6380
      if fid == 0:
6381
        if ftype == TType.BOOL:
6382
          self.success = iprot.readBool();
6383
        else:
6384
          iprot.skip(ftype)
6385
      elif fid == 1:
6386
        if ftype == TType.STRUCT:
6387
          self.cex = InventoryServiceException()
6388
          self.cex.read(iprot)
6389
        else:
6390
          iprot.skip(ftype)
6391
      else:
6392
        iprot.skip(ftype)
6393
      iprot.readFieldEnd()
6394
    iprot.readStructEnd()
6395
 
6396
  def write(self, oprot):
6397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6399
      return
6400
    oprot.writeStructBegin('updateReservationForOrder_result')
6401
    if self.success is not None:
6402
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6403
      oprot.writeBool(self.success)
6404
      oprot.writeFieldEnd()
6405
    if self.cex is not None:
6406
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6407
      self.cex.write(oprot)
6408
      oprot.writeFieldEnd()
6409
    oprot.writeFieldStop()
6410
    oprot.writeStructEnd()
6411
 
6412
  def validate(self):
6413
    return
6414
 
6415
 
6416
  def __repr__(self):
6417
    L = ['%s=%r' % (key, value)
6418
      for key, value in self.__dict__.iteritems()]
6419
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6420
 
6421
  def __eq__(self, other):
6422
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6423
 
6424
  def __ne__(self, other):
6425
    return not (self == other)
6426
 
5944 mandeep.dh 6427
class reduceReservationCount_args:
6428
  """
6429
  Attributes:
6430
   - itemId
6431
   - warehouseId
5966 rajveer 6432
   - sourceId
6433
   - orderId
5944 mandeep.dh 6434
   - quantity
6435
  """
6436
 
6437
  thrift_spec = (
6438
    None, # 0
6439
    (1, TType.I64, 'itemId', None, None, ), # 1
6440
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 6441
    (3, TType.I64, 'sourceId', None, None, ), # 3
6442
    (4, TType.I64, 'orderId', None, None, ), # 4
6443
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
5944 mandeep.dh 6444
  )
6445
 
5966 rajveer 6446
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, quantity=None,):
5944 mandeep.dh 6447
    self.itemId = itemId
6448
    self.warehouseId = warehouseId
5966 rajveer 6449
    self.sourceId = sourceId
6450
    self.orderId = orderId
5944 mandeep.dh 6451
    self.quantity = quantity
6452
 
6453
  def read(self, iprot):
6454
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6455
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6456
      return
6457
    iprot.readStructBegin()
6458
    while True:
6459
      (fname, ftype, fid) = iprot.readFieldBegin()
6460
      if ftype == TType.STOP:
6461
        break
6462
      if fid == 1:
6463
        if ftype == TType.I64:
6464
          self.itemId = iprot.readI64();
6465
        else:
6466
          iprot.skip(ftype)
6467
      elif fid == 2:
6468
        if ftype == TType.I64:
6469
          self.warehouseId = iprot.readI64();
6470
        else:
6471
          iprot.skip(ftype)
6472
      elif fid == 3:
5966 rajveer 6473
        if ftype == TType.I64:
6474
          self.sourceId = iprot.readI64();
6475
        else:
6476
          iprot.skip(ftype)
6477
      elif fid == 4:
6478
        if ftype == TType.I64:
6479
          self.orderId = iprot.readI64();
6480
        else:
6481
          iprot.skip(ftype)
6482
      elif fid == 5:
5944 mandeep.dh 6483
        if ftype == TType.DOUBLE:
6484
          self.quantity = iprot.readDouble();
6485
        else:
6486
          iprot.skip(ftype)
6487
      else:
6488
        iprot.skip(ftype)
6489
      iprot.readFieldEnd()
6490
    iprot.readStructEnd()
6491
 
6492
  def write(self, oprot):
6493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6495
      return
6496
    oprot.writeStructBegin('reduceReservationCount_args')
6497
    if self.itemId is not None:
6498
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6499
      oprot.writeI64(self.itemId)
6500
      oprot.writeFieldEnd()
6501
    if self.warehouseId is not None:
6502
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6503
      oprot.writeI64(self.warehouseId)
6504
      oprot.writeFieldEnd()
5966 rajveer 6505
    if self.sourceId is not None:
6506
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6507
      oprot.writeI64(self.sourceId)
6508
      oprot.writeFieldEnd()
6509
    if self.orderId is not None:
6510
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6511
      oprot.writeI64(self.orderId)
6512
      oprot.writeFieldEnd()
5944 mandeep.dh 6513
    if self.quantity is not None:
5966 rajveer 6514
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
5944 mandeep.dh 6515
      oprot.writeDouble(self.quantity)
6516
      oprot.writeFieldEnd()
6517
    oprot.writeFieldStop()
6518
    oprot.writeStructEnd()
6519
 
6520
  def validate(self):
6521
    return
6522
 
6523
 
6524
  def __repr__(self):
6525
    L = ['%s=%r' % (key, value)
6526
      for key, value in self.__dict__.iteritems()]
6527
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6528
 
6529
  def __eq__(self, other):
6530
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6531
 
6532
  def __ne__(self, other):
6533
    return not (self == other)
6534
 
6535
class reduceReservationCount_result:
6536
  """
6537
  Attributes:
6538
   - success
6539
   - cex
6540
  """
6541
 
6542
  thrift_spec = (
6543
    (0, TType.BOOL, 'success', None, None, ), # 0
6544
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6545
  )
6546
 
6547
  def __init__(self, success=None, cex=None,):
6548
    self.success = success
6549
    self.cex = cex
6550
 
6551
  def read(self, iprot):
6552
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6553
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6554
      return
6555
    iprot.readStructBegin()
6556
    while True:
6557
      (fname, ftype, fid) = iprot.readFieldBegin()
6558
      if ftype == TType.STOP:
6559
        break
6560
      if fid == 0:
6561
        if ftype == TType.BOOL:
6562
          self.success = iprot.readBool();
6563
        else:
6564
          iprot.skip(ftype)
6565
      elif fid == 1:
6566
        if ftype == TType.STRUCT:
6567
          self.cex = InventoryServiceException()
6568
          self.cex.read(iprot)
6569
        else:
6570
          iprot.skip(ftype)
6571
      else:
6572
        iprot.skip(ftype)
6573
      iprot.readFieldEnd()
6574
    iprot.readStructEnd()
6575
 
6576
  def write(self, oprot):
6577
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6578
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6579
      return
6580
    oprot.writeStructBegin('reduceReservationCount_result')
6581
    if self.success is not None:
6582
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6583
      oprot.writeBool(self.success)
6584
      oprot.writeFieldEnd()
6585
    if self.cex is not None:
6586
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6587
      self.cex.write(oprot)
6588
      oprot.writeFieldEnd()
6589
    oprot.writeFieldStop()
6590
    oprot.writeStructEnd()
6591
 
6592
  def validate(self):
6593
    return
6594
 
6595
 
6596
  def __repr__(self):
6597
    L = ['%s=%r' % (key, value)
6598
      for key, value in self.__dict__.iteritems()]
6599
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6600
 
6601
  def __eq__(self, other):
6602
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6603
 
6604
  def __ne__(self, other):
6605
    return not (self == other)
6606
 
6607
class getItemPricing_args:
6608
  """
6609
  Attributes:
6610
   - itemId
6611
   - vendorId
6612
  """
6613
 
6614
  thrift_spec = (
6615
    None, # 0
6616
    (1, TType.I64, 'itemId', None, None, ), # 1
6617
    (2, TType.I64, 'vendorId', None, None, ), # 2
6618
  )
6619
 
6620
  def __init__(self, itemId=None, vendorId=None,):
6621
    self.itemId = itemId
6622
    self.vendorId = vendorId
6623
 
6624
  def read(self, iprot):
6625
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6626
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6627
      return
6628
    iprot.readStructBegin()
6629
    while True:
6630
      (fname, ftype, fid) = iprot.readFieldBegin()
6631
      if ftype == TType.STOP:
6632
        break
6633
      if fid == 1:
6634
        if ftype == TType.I64:
6635
          self.itemId = iprot.readI64();
6636
        else:
6637
          iprot.skip(ftype)
6638
      elif fid == 2:
6639
        if ftype == TType.I64:
6640
          self.vendorId = iprot.readI64();
6641
        else:
6642
          iprot.skip(ftype)
6643
      else:
6644
        iprot.skip(ftype)
6645
      iprot.readFieldEnd()
6646
    iprot.readStructEnd()
6647
 
6648
  def write(self, oprot):
6649
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6650
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6651
      return
6652
    oprot.writeStructBegin('getItemPricing_args')
6653
    if self.itemId is not None:
6654
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6655
      oprot.writeI64(self.itemId)
6656
      oprot.writeFieldEnd()
6657
    if self.vendorId is not None:
6658
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6659
      oprot.writeI64(self.vendorId)
6660
      oprot.writeFieldEnd()
6661
    oprot.writeFieldStop()
6662
    oprot.writeStructEnd()
6663
 
6664
  def validate(self):
6665
    return
6666
 
6667
 
6668
  def __repr__(self):
6669
    L = ['%s=%r' % (key, value)
6670
      for key, value in self.__dict__.iteritems()]
6671
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6672
 
6673
  def __eq__(self, other):
6674
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6675
 
6676
  def __ne__(self, other):
6677
    return not (self == other)
6678
 
6679
class getItemPricing_result:
6680
  """
6681
  Attributes:
6682
   - success
6683
   - cex
6684
  """
6685
 
6686
  thrift_spec = (
6687
    (0, TType.STRUCT, 'success', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 0
6688
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6689
  )
6690
 
6691
  def __init__(self, success=None, cex=None,):
6692
    self.success = success
6693
    self.cex = cex
6694
 
6695
  def read(self, iprot):
6696
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6697
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6698
      return
6699
    iprot.readStructBegin()
6700
    while True:
6701
      (fname, ftype, fid) = iprot.readFieldBegin()
6702
      if ftype == TType.STOP:
6703
        break
6704
      if fid == 0:
6705
        if ftype == TType.STRUCT:
6706
          self.success = VendorItemPricing()
6707
          self.success.read(iprot)
6708
        else:
6709
          iprot.skip(ftype)
6710
      elif fid == 1:
6711
        if ftype == TType.STRUCT:
6712
          self.cex = InventoryServiceException()
6713
          self.cex.read(iprot)
6714
        else:
6715
          iprot.skip(ftype)
6716
      else:
6717
        iprot.skip(ftype)
6718
      iprot.readFieldEnd()
6719
    iprot.readStructEnd()
6720
 
6721
  def write(self, oprot):
6722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6724
      return
6725
    oprot.writeStructBegin('getItemPricing_result')
6726
    if self.success is not None:
6727
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6728
      self.success.write(oprot)
6729
      oprot.writeFieldEnd()
6730
    if self.cex is not None:
6731
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6732
      self.cex.write(oprot)
6733
      oprot.writeFieldEnd()
6734
    oprot.writeFieldStop()
6735
    oprot.writeStructEnd()
6736
 
6737
  def validate(self):
6738
    return
6739
 
6740
 
6741
  def __repr__(self):
6742
    L = ['%s=%r' % (key, value)
6743
      for key, value in self.__dict__.iteritems()]
6744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6745
 
6746
  def __eq__(self, other):
6747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6748
 
6749
  def __ne__(self, other):
6750
    return not (self == other)
6751
 
6752
class getAllItemPricing_args:
6753
  """
6754
  Attributes:
6755
   - itemId
6756
  """
6757
 
6758
  thrift_spec = (
6759
    None, # 0
6760
    (1, TType.I64, 'itemId', None, None, ), # 1
6761
  )
6762
 
6763
  def __init__(self, itemId=None,):
6764
    self.itemId = itemId
6765
 
6766
  def read(self, iprot):
6767
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6768
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6769
      return
6770
    iprot.readStructBegin()
6771
    while True:
6772
      (fname, ftype, fid) = iprot.readFieldBegin()
6773
      if ftype == TType.STOP:
6774
        break
6775
      if fid == 1:
6776
        if ftype == TType.I64:
6777
          self.itemId = iprot.readI64();
6778
        else:
6779
          iprot.skip(ftype)
6780
      else:
6781
        iprot.skip(ftype)
6782
      iprot.readFieldEnd()
6783
    iprot.readStructEnd()
6784
 
6785
  def write(self, oprot):
6786
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6787
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6788
      return
6789
    oprot.writeStructBegin('getAllItemPricing_args')
6790
    if self.itemId is not None:
6791
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6792
      oprot.writeI64(self.itemId)
6793
      oprot.writeFieldEnd()
6794
    oprot.writeFieldStop()
6795
    oprot.writeStructEnd()
6796
 
6797
  def validate(self):
6798
    return
6799
 
6800
 
6801
  def __repr__(self):
6802
    L = ['%s=%r' % (key, value)
6803
      for key, value in self.__dict__.iteritems()]
6804
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6805
 
6806
  def __eq__(self, other):
6807
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6808
 
6809
  def __ne__(self, other):
6810
    return not (self == other)
6811
 
6812
class getAllItemPricing_result:
6813
  """
6814
  Attributes:
6815
   - success
6816
   - cex
6817
  """
6818
 
6819
  thrift_spec = (
6820
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
6821
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6822
  )
6823
 
6824
  def __init__(self, success=None, cex=None,):
6825
    self.success = success
6826
    self.cex = cex
6827
 
6828
  def read(self, iprot):
6829
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6830
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6831
      return
6832
    iprot.readStructBegin()
6833
    while True:
6834
      (fname, ftype, fid) = iprot.readFieldBegin()
6835
      if ftype == TType.STOP:
6836
        break
6837
      if fid == 0:
6838
        if ftype == TType.LIST:
6839
          self.success = []
8182 amar.kumar 6840
          (_etype69, _size66) = iprot.readListBegin()
6841
          for _i70 in xrange(_size66):
6842
            _elem71 = VendorItemPricing()
6843
            _elem71.read(iprot)
6844
            self.success.append(_elem71)
5944 mandeep.dh 6845
          iprot.readListEnd()
6846
        else:
6847
          iprot.skip(ftype)
6848
      elif fid == 1:
6849
        if ftype == TType.STRUCT:
6850
          self.cex = InventoryServiceException()
6851
          self.cex.read(iprot)
6852
        else:
6853
          iprot.skip(ftype)
6854
      else:
6855
        iprot.skip(ftype)
6856
      iprot.readFieldEnd()
6857
    iprot.readStructEnd()
6858
 
6859
  def write(self, oprot):
6860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6862
      return
6863
    oprot.writeStructBegin('getAllItemPricing_result')
6864
    if self.success is not None:
6865
      oprot.writeFieldBegin('success', TType.LIST, 0)
6866
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 6867
      for iter72 in self.success:
6868
        iter72.write(oprot)
5944 mandeep.dh 6869
      oprot.writeListEnd()
6870
      oprot.writeFieldEnd()
6871
    if self.cex is not None:
6872
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6873
      self.cex.write(oprot)
6874
      oprot.writeFieldEnd()
6875
    oprot.writeFieldStop()
6876
    oprot.writeStructEnd()
6877
 
6878
  def validate(self):
6879
    return
6880
 
6881
 
6882
  def __repr__(self):
6883
    L = ['%s=%r' % (key, value)
6884
      for key, value in self.__dict__.iteritems()]
6885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6886
 
6887
  def __eq__(self, other):
6888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6889
 
6890
  def __ne__(self, other):
6891
    return not (self == other)
6892
 
6893
class addVendorItemPricing_args:
6894
  """
6895
  Attributes:
6896
   - vendorItemPricing
6897
  """
6898
 
6899
  thrift_spec = (
6900
    None, # 0
6901
    (1, TType.STRUCT, 'vendorItemPricing', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 1
6902
  )
6903
 
6904
  def __init__(self, vendorItemPricing=None,):
6905
    self.vendorItemPricing = vendorItemPricing
6906
 
6907
  def read(self, iprot):
6908
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6909
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6910
      return
6911
    iprot.readStructBegin()
6912
    while True:
6913
      (fname, ftype, fid) = iprot.readFieldBegin()
6914
      if ftype == TType.STOP:
6915
        break
6916
      if fid == 1:
6917
        if ftype == TType.STRUCT:
6918
          self.vendorItemPricing = VendorItemPricing()
6919
          self.vendorItemPricing.read(iprot)
6920
        else:
6921
          iprot.skip(ftype)
6922
      else:
6923
        iprot.skip(ftype)
6924
      iprot.readFieldEnd()
6925
    iprot.readStructEnd()
6926
 
6927
  def write(self, oprot):
6928
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6929
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6930
      return
6931
    oprot.writeStructBegin('addVendorItemPricing_args')
6932
    if self.vendorItemPricing is not None:
6933
      oprot.writeFieldBegin('vendorItemPricing', TType.STRUCT, 1)
6934
      self.vendorItemPricing.write(oprot)
6935
      oprot.writeFieldEnd()
6936
    oprot.writeFieldStop()
6937
    oprot.writeStructEnd()
6938
 
6939
  def validate(self):
6940
    return
6941
 
6942
 
6943
  def __repr__(self):
6944
    L = ['%s=%r' % (key, value)
6945
      for key, value in self.__dict__.iteritems()]
6946
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6947
 
6948
  def __eq__(self, other):
6949
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6950
 
6951
  def __ne__(self, other):
6952
    return not (self == other)
6953
 
6954
class addVendorItemPricing_result:
6955
  """
6956
  Attributes:
6957
   - cex
6958
  """
6959
 
6960
  thrift_spec = (
6961
    None, # 0
6962
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6963
  )
6964
 
6965
  def __init__(self, cex=None,):
6966
    self.cex = cex
6967
 
6968
  def read(self, iprot):
6969
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6970
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6971
      return
6972
    iprot.readStructBegin()
6973
    while True:
6974
      (fname, ftype, fid) = iprot.readFieldBegin()
6975
      if ftype == TType.STOP:
6976
        break
6977
      if fid == 1:
6978
        if ftype == TType.STRUCT:
6979
          self.cex = InventoryServiceException()
6980
          self.cex.read(iprot)
6981
        else:
6982
          iprot.skip(ftype)
6983
      else:
6984
        iprot.skip(ftype)
6985
      iprot.readFieldEnd()
6986
    iprot.readStructEnd()
6987
 
6988
  def write(self, oprot):
6989
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6990
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6991
      return
6992
    oprot.writeStructBegin('addVendorItemPricing_result')
6993
    if self.cex is not None:
6994
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6995
      self.cex.write(oprot)
6996
      oprot.writeFieldEnd()
6997
    oprot.writeFieldStop()
6998
    oprot.writeStructEnd()
6999
 
7000
  def validate(self):
7001
    return
7002
 
7003
 
7004
  def __repr__(self):
7005
    L = ['%s=%r' % (key, value)
7006
      for key, value in self.__dict__.iteritems()]
7007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7008
 
7009
  def __eq__(self, other):
7010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7011
 
7012
  def __ne__(self, other):
7013
    return not (self == other)
7014
 
7015
class getVendor_args:
7016
  """
7017
  Attributes:
7018
   - vendorId
7019
  """
7020
 
7021
  thrift_spec = (
7022
    None, # 0
7023
    (1, TType.I64, 'vendorId', None, None, ), # 1
7024
  )
7025
 
7026
  def __init__(self, vendorId=None,):
7027
    self.vendorId = vendorId
7028
 
7029
  def read(self, iprot):
7030
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7031
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7032
      return
7033
    iprot.readStructBegin()
7034
    while True:
7035
      (fname, ftype, fid) = iprot.readFieldBegin()
7036
      if ftype == TType.STOP:
7037
        break
7038
      if fid == 1:
7039
        if ftype == TType.I64:
7040
          self.vendorId = iprot.readI64();
7041
        else:
7042
          iprot.skip(ftype)
7043
      else:
7044
        iprot.skip(ftype)
7045
      iprot.readFieldEnd()
7046
    iprot.readStructEnd()
7047
 
7048
  def write(self, oprot):
7049
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7050
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7051
      return
7052
    oprot.writeStructBegin('getVendor_args')
7053
    if self.vendorId is not None:
7054
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
7055
      oprot.writeI64(self.vendorId)
7056
      oprot.writeFieldEnd()
7057
    oprot.writeFieldStop()
7058
    oprot.writeStructEnd()
7059
 
7060
  def validate(self):
7061
    return
7062
 
7063
 
7064
  def __repr__(self):
7065
    L = ['%s=%r' % (key, value)
7066
      for key, value in self.__dict__.iteritems()]
7067
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7068
 
7069
  def __eq__(self, other):
7070
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7071
 
7072
  def __ne__(self, other):
7073
    return not (self == other)
7074
 
7075
class getVendor_result:
7076
  """
7077
  Attributes:
7078
   - success
7079
  """
7080
 
7081
  thrift_spec = (
7082
    (0, TType.STRUCT, 'success', (Vendor, Vendor.thrift_spec), None, ), # 0
7083
  )
7084
 
7085
  def __init__(self, success=None,):
7086
    self.success = success
7087
 
7088
  def read(self, iprot):
7089
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7090
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7091
      return
7092
    iprot.readStructBegin()
7093
    while True:
7094
      (fname, ftype, fid) = iprot.readFieldBegin()
7095
      if ftype == TType.STOP:
7096
        break
7097
      if fid == 0:
7098
        if ftype == TType.STRUCT:
7099
          self.success = Vendor()
7100
          self.success.read(iprot)
7101
        else:
7102
          iprot.skip(ftype)
7103
      else:
7104
        iprot.skip(ftype)
7105
      iprot.readFieldEnd()
7106
    iprot.readStructEnd()
7107
 
7108
  def write(self, oprot):
7109
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7110
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7111
      return
7112
    oprot.writeStructBegin('getVendor_result')
7113
    if self.success is not None:
7114
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7115
      self.success.write(oprot)
7116
      oprot.writeFieldEnd()
7117
    oprot.writeFieldStop()
7118
    oprot.writeStructEnd()
7119
 
7120
  def validate(self):
7121
    return
7122
 
7123
 
7124
  def __repr__(self):
7125
    L = ['%s=%r' % (key, value)
7126
      for key, value in self.__dict__.iteritems()]
7127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7128
 
7129
  def __eq__(self, other):
7130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7131
 
7132
  def __ne__(self, other):
7133
    return not (self == other)
7134
 
7135
class getAllVendors_args:
7136
 
7137
  thrift_spec = (
7138
  )
7139
 
7140
  def read(self, iprot):
7141
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7142
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7143
      return
7144
    iprot.readStructBegin()
7145
    while True:
7146
      (fname, ftype, fid) = iprot.readFieldBegin()
7147
      if ftype == TType.STOP:
7148
        break
7149
      else:
7150
        iprot.skip(ftype)
7151
      iprot.readFieldEnd()
7152
    iprot.readStructEnd()
7153
 
7154
  def write(self, oprot):
7155
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7156
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7157
      return
7158
    oprot.writeStructBegin('getAllVendors_args')
7159
    oprot.writeFieldStop()
7160
    oprot.writeStructEnd()
7161
 
7162
  def validate(self):
7163
    return
7164
 
7165
 
7166
  def __repr__(self):
7167
    L = ['%s=%r' % (key, value)
7168
      for key, value in self.__dict__.iteritems()]
7169
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7170
 
7171
  def __eq__(self, other):
7172
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7173
 
7174
  def __ne__(self, other):
7175
    return not (self == other)
7176
 
7177
class getAllVendors_result:
7178
  """
7179
  Attributes:
7180
   - success
7181
  """
7182
 
7183
  thrift_spec = (
7184
    (0, TType.LIST, 'success', (TType.STRUCT,(Vendor, Vendor.thrift_spec)), None, ), # 0
7185
  )
7186
 
7187
  def __init__(self, success=None,):
7188
    self.success = success
7189
 
7190
  def read(self, iprot):
7191
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7192
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7193
      return
7194
    iprot.readStructBegin()
7195
    while True:
7196
      (fname, ftype, fid) = iprot.readFieldBegin()
7197
      if ftype == TType.STOP:
7198
        break
7199
      if fid == 0:
7200
        if ftype == TType.LIST:
7201
          self.success = []
8182 amar.kumar 7202
          (_etype76, _size73) = iprot.readListBegin()
7203
          for _i77 in xrange(_size73):
7204
            _elem78 = Vendor()
7205
            _elem78.read(iprot)
7206
            self.success.append(_elem78)
5944 mandeep.dh 7207
          iprot.readListEnd()
7208
        else:
7209
          iprot.skip(ftype)
7210
      else:
7211
        iprot.skip(ftype)
7212
      iprot.readFieldEnd()
7213
    iprot.readStructEnd()
7214
 
7215
  def write(self, oprot):
7216
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7217
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7218
      return
7219
    oprot.writeStructBegin('getAllVendors_result')
7220
    if self.success is not None:
7221
      oprot.writeFieldBegin('success', TType.LIST, 0)
7222
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7223
      for iter79 in self.success:
7224
        iter79.write(oprot)
5944 mandeep.dh 7225
      oprot.writeListEnd()
7226
      oprot.writeFieldEnd()
7227
    oprot.writeFieldStop()
7228
    oprot.writeStructEnd()
7229
 
7230
  def validate(self):
7231
    return
7232
 
7233
 
7234
  def __repr__(self):
7235
    L = ['%s=%r' % (key, value)
7236
      for key, value in self.__dict__.iteritems()]
7237
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7238
 
7239
  def __eq__(self, other):
7240
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7241
 
7242
  def __ne__(self, other):
7243
    return not (self == other)
7244
 
7245
class addVendorItemMapping_args:
7246
  """
7247
  Attributes:
7248
   - key
7249
   - vendorItemMapping
7250
  """
7251
 
7252
  thrift_spec = (
7253
    None, # 0
7254
    (1, TType.STRING, 'key', None, None, ), # 1
7255
    (2, TType.STRUCT, 'vendorItemMapping', (VendorItemMapping, VendorItemMapping.thrift_spec), None, ), # 2
7256
  )
7257
 
7258
  def __init__(self, key=None, vendorItemMapping=None,):
7259
    self.key = key
7260
    self.vendorItemMapping = vendorItemMapping
7261
 
7262
  def read(self, iprot):
7263
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7264
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7265
      return
7266
    iprot.readStructBegin()
7267
    while True:
7268
      (fname, ftype, fid) = iprot.readFieldBegin()
7269
      if ftype == TType.STOP:
7270
        break
7271
      if fid == 1:
7272
        if ftype == TType.STRING:
7273
          self.key = iprot.readString();
7274
        else:
7275
          iprot.skip(ftype)
7276
      elif fid == 2:
7277
        if ftype == TType.STRUCT:
7278
          self.vendorItemMapping = VendorItemMapping()
7279
          self.vendorItemMapping.read(iprot)
7280
        else:
7281
          iprot.skip(ftype)
7282
      else:
7283
        iprot.skip(ftype)
7284
      iprot.readFieldEnd()
7285
    iprot.readStructEnd()
7286
 
7287
  def write(self, oprot):
7288
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7289
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7290
      return
7291
    oprot.writeStructBegin('addVendorItemMapping_args')
7292
    if self.key is not None:
7293
      oprot.writeFieldBegin('key', TType.STRING, 1)
7294
      oprot.writeString(self.key)
7295
      oprot.writeFieldEnd()
7296
    if self.vendorItemMapping is not None:
7297
      oprot.writeFieldBegin('vendorItemMapping', TType.STRUCT, 2)
7298
      self.vendorItemMapping.write(oprot)
7299
      oprot.writeFieldEnd()
7300
    oprot.writeFieldStop()
7301
    oprot.writeStructEnd()
7302
 
7303
  def validate(self):
7304
    return
7305
 
7306
 
7307
  def __repr__(self):
7308
    L = ['%s=%r' % (key, value)
7309
      for key, value in self.__dict__.iteritems()]
7310
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7311
 
7312
  def __eq__(self, other):
7313
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7314
 
7315
  def __ne__(self, other):
7316
    return not (self == other)
7317
 
7318
class addVendorItemMapping_result:
7319
  """
7320
  Attributes:
7321
   - cex
7322
  """
7323
 
7324
  thrift_spec = (
7325
    None, # 0
7326
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7327
  )
7328
 
7329
  def __init__(self, cex=None,):
7330
    self.cex = cex
7331
 
7332
  def read(self, iprot):
7333
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7334
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7335
      return
7336
    iprot.readStructBegin()
7337
    while True:
7338
      (fname, ftype, fid) = iprot.readFieldBegin()
7339
      if ftype == TType.STOP:
7340
        break
7341
      if fid == 1:
7342
        if ftype == TType.STRUCT:
7343
          self.cex = InventoryServiceException()
7344
          self.cex.read(iprot)
7345
        else:
7346
          iprot.skip(ftype)
7347
      else:
7348
        iprot.skip(ftype)
7349
      iprot.readFieldEnd()
7350
    iprot.readStructEnd()
7351
 
7352
  def write(self, oprot):
7353
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7354
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7355
      return
7356
    oprot.writeStructBegin('addVendorItemMapping_result')
7357
    if self.cex is not None:
7358
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7359
      self.cex.write(oprot)
7360
      oprot.writeFieldEnd()
7361
    oprot.writeFieldStop()
7362
    oprot.writeStructEnd()
7363
 
7364
  def validate(self):
7365
    return
7366
 
7367
 
7368
  def __repr__(self):
7369
    L = ['%s=%r' % (key, value)
7370
      for key, value in self.__dict__.iteritems()]
7371
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7372
 
7373
  def __eq__(self, other):
7374
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7375
 
7376
  def __ne__(self, other):
7377
    return not (self == other)
7378
 
7379
class getVendorItemMappings_args:
7380
  """
7381
  Attributes:
7382
   - itemId
7383
  """
7384
 
7385
  thrift_spec = (
7386
    None, # 0
7387
    (1, TType.I64, 'itemId', None, None, ), # 1
7388
  )
7389
 
7390
  def __init__(self, itemId=None,):
7391
    self.itemId = itemId
7392
 
7393
  def read(self, iprot):
7394
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7395
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7396
      return
7397
    iprot.readStructBegin()
7398
    while True:
7399
      (fname, ftype, fid) = iprot.readFieldBegin()
7400
      if ftype == TType.STOP:
7401
        break
7402
      if fid == 1:
7403
        if ftype == TType.I64:
7404
          self.itemId = iprot.readI64();
7405
        else:
7406
          iprot.skip(ftype)
7407
      else:
7408
        iprot.skip(ftype)
7409
      iprot.readFieldEnd()
7410
    iprot.readStructEnd()
7411
 
7412
  def write(self, oprot):
7413
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7414
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7415
      return
7416
    oprot.writeStructBegin('getVendorItemMappings_args')
7417
    if self.itemId is not None:
7418
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7419
      oprot.writeI64(self.itemId)
7420
      oprot.writeFieldEnd()
7421
    oprot.writeFieldStop()
7422
    oprot.writeStructEnd()
7423
 
7424
  def validate(self):
7425
    return
7426
 
7427
 
7428
  def __repr__(self):
7429
    L = ['%s=%r' % (key, value)
7430
      for key, value in self.__dict__.iteritems()]
7431
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7432
 
7433
  def __eq__(self, other):
7434
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7435
 
7436
  def __ne__(self, other):
7437
    return not (self == other)
7438
 
7439
class getVendorItemMappings_result:
7440
  """
7441
  Attributes:
7442
   - success
7443
   - cex
7444
  """
7445
 
7446
  thrift_spec = (
7447
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
7448
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7449
  )
7450
 
7451
  def __init__(self, success=None, cex=None,):
7452
    self.success = success
7453
    self.cex = cex
7454
 
7455
  def read(self, iprot):
7456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7458
      return
7459
    iprot.readStructBegin()
7460
    while True:
7461
      (fname, ftype, fid) = iprot.readFieldBegin()
7462
      if ftype == TType.STOP:
7463
        break
7464
      if fid == 0:
7465
        if ftype == TType.LIST:
7466
          self.success = []
8182 amar.kumar 7467
          (_etype83, _size80) = iprot.readListBegin()
7468
          for _i84 in xrange(_size80):
7469
            _elem85 = VendorItemMapping()
7470
            _elem85.read(iprot)
7471
            self.success.append(_elem85)
5944 mandeep.dh 7472
          iprot.readListEnd()
7473
        else:
7474
          iprot.skip(ftype)
7475
      elif fid == 1:
7476
        if ftype == TType.STRUCT:
7477
          self.cex = InventoryServiceException()
7478
          self.cex.read(iprot)
7479
        else:
7480
          iprot.skip(ftype)
7481
      else:
7482
        iprot.skip(ftype)
7483
      iprot.readFieldEnd()
7484
    iprot.readStructEnd()
7485
 
7486
  def write(self, oprot):
7487
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7488
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7489
      return
7490
    oprot.writeStructBegin('getVendorItemMappings_result')
7491
    if self.success is not None:
7492
      oprot.writeFieldBegin('success', TType.LIST, 0)
7493
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7494
      for iter86 in self.success:
7495
        iter86.write(oprot)
5944 mandeep.dh 7496
      oprot.writeListEnd()
7497
      oprot.writeFieldEnd()
7498
    if self.cex is not None:
7499
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7500
      self.cex.write(oprot)
7501
      oprot.writeFieldEnd()
7502
    oprot.writeFieldStop()
7503
    oprot.writeStructEnd()
7504
 
7505
  def validate(self):
7506
    return
7507
 
7508
 
7509
  def __repr__(self):
7510
    L = ['%s=%r' % (key, value)
7511
      for key, value in self.__dict__.iteritems()]
7512
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7513
 
7514
  def __eq__(self, other):
7515
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7516
 
7517
  def __ne__(self, other):
7518
    return not (self == other)
7519
 
7520
class getPendingOrdersInventory_args:
7521
  """
7522
  Attributes:
7523
   - vendorid
7524
  """
7525
 
7526
  thrift_spec = (
7527
    None, # 0
7528
    (1, TType.I64, 'vendorid', None, None, ), # 1
7529
  )
7530
 
7531
  def __init__(self, vendorid=None,):
7532
    self.vendorid = vendorid
7533
 
7534
  def read(self, iprot):
7535
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7536
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7537
      return
7538
    iprot.readStructBegin()
7539
    while True:
7540
      (fname, ftype, fid) = iprot.readFieldBegin()
7541
      if ftype == TType.STOP:
7542
        break
7543
      if fid == 1:
7544
        if ftype == TType.I64:
7545
          self.vendorid = iprot.readI64();
7546
        else:
7547
          iprot.skip(ftype)
7548
      else:
7549
        iprot.skip(ftype)
7550
      iprot.readFieldEnd()
7551
    iprot.readStructEnd()
7552
 
7553
  def write(self, oprot):
7554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7556
      return
7557
    oprot.writeStructBegin('getPendingOrdersInventory_args')
7558
    if self.vendorid is not None:
7559
      oprot.writeFieldBegin('vendorid', TType.I64, 1)
7560
      oprot.writeI64(self.vendorid)
7561
      oprot.writeFieldEnd()
7562
    oprot.writeFieldStop()
7563
    oprot.writeStructEnd()
7564
 
7565
  def validate(self):
7566
    return
7567
 
7568
 
7569
  def __repr__(self):
7570
    L = ['%s=%r' % (key, value)
7571
      for key, value in self.__dict__.iteritems()]
7572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7573
 
7574
  def __eq__(self, other):
7575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7576
 
7577
  def __ne__(self, other):
7578
    return not (self == other)
7579
 
7580
class getPendingOrdersInventory_result:
7581
  """
7582
  Attributes:
7583
   - success
7584
  """
7585
 
7586
  thrift_spec = (
7587
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
7588
  )
7589
 
7590
  def __init__(self, success=None,):
7591
    self.success = success
7592
 
7593
  def read(self, iprot):
7594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7596
      return
7597
    iprot.readStructBegin()
7598
    while True:
7599
      (fname, ftype, fid) = iprot.readFieldBegin()
7600
      if ftype == TType.STOP:
7601
        break
7602
      if fid == 0:
7603
        if ftype == TType.LIST:
7604
          self.success = []
8182 amar.kumar 7605
          (_etype90, _size87) = iprot.readListBegin()
7606
          for _i91 in xrange(_size87):
7607
            _elem92 = AvailableAndReservedStock()
7608
            _elem92.read(iprot)
7609
            self.success.append(_elem92)
5944 mandeep.dh 7610
          iprot.readListEnd()
7611
        else:
7612
          iprot.skip(ftype)
7613
      else:
7614
        iprot.skip(ftype)
7615
      iprot.readFieldEnd()
7616
    iprot.readStructEnd()
7617
 
7618
  def write(self, oprot):
7619
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7620
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7621
      return
7622
    oprot.writeStructBegin('getPendingOrdersInventory_result')
7623
    if self.success is not None:
7624
      oprot.writeFieldBegin('success', TType.LIST, 0)
7625
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7626
      for iter93 in self.success:
7627
        iter93.write(oprot)
5944 mandeep.dh 7628
      oprot.writeListEnd()
7629
      oprot.writeFieldEnd()
7630
    oprot.writeFieldStop()
7631
    oprot.writeStructEnd()
7632
 
7633
  def validate(self):
7634
    return
7635
 
7636
 
7637
  def __repr__(self):
7638
    L = ['%s=%r' % (key, value)
7639
      for key, value in self.__dict__.iteritems()]
7640
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7641
 
7642
  def __eq__(self, other):
7643
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7644
 
7645
  def __ne__(self, other):
7646
    return not (self == other)
7647
 
7648
class getWarehouses_args:
7649
  """
7650
  Attributes:
7651
   - warehouseType
7652
   - inventoryType
7653
   - vendorId
7654
   - billingWarehouseId
7655
   - shippingWarehouseId
7656
  """
7657
 
7658
  thrift_spec = (
7659
    None, # 0
7660
    (1, TType.I32, 'warehouseType', None, None, ), # 1
7661
    (2, TType.I32, 'inventoryType', None, None, ), # 2
7662
    (3, TType.I64, 'vendorId', None, None, ), # 3
7663
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
7664
    (5, TType.I64, 'shippingWarehouseId', None, None, ), # 5
7665
  )
7666
 
7667
  def __init__(self, warehouseType=None, inventoryType=None, vendorId=None, billingWarehouseId=None, shippingWarehouseId=None,):
7668
    self.warehouseType = warehouseType
7669
    self.inventoryType = inventoryType
7670
    self.vendorId = vendorId
7671
    self.billingWarehouseId = billingWarehouseId
7672
    self.shippingWarehouseId = shippingWarehouseId
7673
 
7674
  def read(self, iprot):
7675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7677
      return
7678
    iprot.readStructBegin()
7679
    while True:
7680
      (fname, ftype, fid) = iprot.readFieldBegin()
7681
      if ftype == TType.STOP:
7682
        break
7683
      if fid == 1:
7684
        if ftype == TType.I32:
7685
          self.warehouseType = iprot.readI32();
7686
        else:
7687
          iprot.skip(ftype)
7688
      elif fid == 2:
7689
        if ftype == TType.I32:
7690
          self.inventoryType = iprot.readI32();
7691
        else:
7692
          iprot.skip(ftype)
7693
      elif fid == 3:
7694
        if ftype == TType.I64:
7695
          self.vendorId = iprot.readI64();
7696
        else:
7697
          iprot.skip(ftype)
7698
      elif fid == 4:
7699
        if ftype == TType.I64:
7700
          self.billingWarehouseId = iprot.readI64();
7701
        else:
7702
          iprot.skip(ftype)
7703
      elif fid == 5:
7704
        if ftype == TType.I64:
7705
          self.shippingWarehouseId = iprot.readI64();
7706
        else:
7707
          iprot.skip(ftype)
7708
      else:
7709
        iprot.skip(ftype)
7710
      iprot.readFieldEnd()
7711
    iprot.readStructEnd()
7712
 
7713
  def write(self, oprot):
7714
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7715
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7716
      return
7717
    oprot.writeStructBegin('getWarehouses_args')
7718
    if self.warehouseType is not None:
7719
      oprot.writeFieldBegin('warehouseType', TType.I32, 1)
7720
      oprot.writeI32(self.warehouseType)
7721
      oprot.writeFieldEnd()
7722
    if self.inventoryType is not None:
7723
      oprot.writeFieldBegin('inventoryType', TType.I32, 2)
7724
      oprot.writeI32(self.inventoryType)
7725
      oprot.writeFieldEnd()
7726
    if self.vendorId is not None:
7727
      oprot.writeFieldBegin('vendorId', TType.I64, 3)
7728
      oprot.writeI64(self.vendorId)
7729
      oprot.writeFieldEnd()
7730
    if self.billingWarehouseId is not None:
7731
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
7732
      oprot.writeI64(self.billingWarehouseId)
7733
      oprot.writeFieldEnd()
7734
    if self.shippingWarehouseId is not None:
7735
      oprot.writeFieldBegin('shippingWarehouseId', TType.I64, 5)
7736
      oprot.writeI64(self.shippingWarehouseId)
7737
      oprot.writeFieldEnd()
7738
    oprot.writeFieldStop()
7739
    oprot.writeStructEnd()
7740
 
7741
  def validate(self):
7742
    return
7743
 
7744
 
7745
  def __repr__(self):
7746
    L = ['%s=%r' % (key, value)
7747
      for key, value in self.__dict__.iteritems()]
7748
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7749
 
7750
  def __eq__(self, other):
7751
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7752
 
7753
  def __ne__(self, other):
7754
    return not (self == other)
7755
 
7756
class getWarehouses_result:
7757
  """
7758
  Attributes:
7759
   - success
7760
  """
7761
 
7762
  thrift_spec = (
7763
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
7764
  )
7765
 
7766
  def __init__(self, success=None,):
7767
    self.success = success
7768
 
7769
  def read(self, iprot):
7770
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7771
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7772
      return
7773
    iprot.readStructBegin()
7774
    while True:
7775
      (fname, ftype, fid) = iprot.readFieldBegin()
7776
      if ftype == TType.STOP:
7777
        break
7778
      if fid == 0:
7779
        if ftype == TType.LIST:
7780
          self.success = []
8182 amar.kumar 7781
          (_etype97, _size94) = iprot.readListBegin()
7782
          for _i98 in xrange(_size94):
7783
            _elem99 = Warehouse()
7784
            _elem99.read(iprot)
7785
            self.success.append(_elem99)
5944 mandeep.dh 7786
          iprot.readListEnd()
7787
        else:
7788
          iprot.skip(ftype)
7789
      else:
7790
        iprot.skip(ftype)
7791
      iprot.readFieldEnd()
7792
    iprot.readStructEnd()
7793
 
7794
  def write(self, oprot):
7795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7797
      return
7798
    oprot.writeStructBegin('getWarehouses_result')
7799
    if self.success is not None:
7800
      oprot.writeFieldBegin('success', TType.LIST, 0)
7801
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7802
      for iter100 in self.success:
7803
        iter100.write(oprot)
5944 mandeep.dh 7804
      oprot.writeListEnd()
7805
      oprot.writeFieldEnd()
7806
    oprot.writeFieldStop()
7807
    oprot.writeStructEnd()
7808
 
7809
  def validate(self):
7810
    return
7811
 
7812
 
7813
  def __repr__(self):
7814
    L = ['%s=%r' % (key, value)
7815
      for key, value in self.__dict__.iteritems()]
7816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7817
 
7818
  def __eq__(self, other):
7819
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7820
 
7821
  def __ne__(self, other):
7822
    return not (self == other)
7823
 
7824
class resetAvailability_args:
7825
  """
7826
  Attributes:
7827
   - itemKey
7828
   - vendorId
7829
   - quantity
7830
   - warehouseId
7831
  """
7832
 
7833
  thrift_spec = (
7834
    None, # 0
7835
    (1, TType.STRING, 'itemKey', None, None, ), # 1
7836
    (2, TType.I64, 'vendorId', None, None, ), # 2
7837
    (3, TType.I64, 'quantity', None, None, ), # 3
7838
    (4, TType.I64, 'warehouseId', None, None, ), # 4
7839
  )
7840
 
7841
  def __init__(self, itemKey=None, vendorId=None, quantity=None, warehouseId=None,):
7842
    self.itemKey = itemKey
7843
    self.vendorId = vendorId
7844
    self.quantity = quantity
7845
    self.warehouseId = warehouseId
7846
 
7847
  def read(self, iprot):
7848
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7849
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7850
      return
7851
    iprot.readStructBegin()
7852
    while True:
7853
      (fname, ftype, fid) = iprot.readFieldBegin()
7854
      if ftype == TType.STOP:
7855
        break
7856
      if fid == 1:
7857
        if ftype == TType.STRING:
7858
          self.itemKey = iprot.readString();
7859
        else:
7860
          iprot.skip(ftype)
7861
      elif fid == 2:
7862
        if ftype == TType.I64:
7863
          self.vendorId = iprot.readI64();
7864
        else:
7865
          iprot.skip(ftype)
7866
      elif fid == 3:
7867
        if ftype == TType.I64:
7868
          self.quantity = iprot.readI64();
7869
        else:
7870
          iprot.skip(ftype)
7871
      elif fid == 4:
7872
        if ftype == TType.I64:
7873
          self.warehouseId = iprot.readI64();
7874
        else:
7875
          iprot.skip(ftype)
7876
      else:
7877
        iprot.skip(ftype)
7878
      iprot.readFieldEnd()
7879
    iprot.readStructEnd()
7880
 
7881
  def write(self, oprot):
7882
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7883
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7884
      return
7885
    oprot.writeStructBegin('resetAvailability_args')
7886
    if self.itemKey is not None:
7887
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
7888
      oprot.writeString(self.itemKey)
7889
      oprot.writeFieldEnd()
7890
    if self.vendorId is not None:
7891
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
7892
      oprot.writeI64(self.vendorId)
7893
      oprot.writeFieldEnd()
7894
    if self.quantity is not None:
7895
      oprot.writeFieldBegin('quantity', TType.I64, 3)
7896
      oprot.writeI64(self.quantity)
7897
      oprot.writeFieldEnd()
7898
    if self.warehouseId is not None:
7899
      oprot.writeFieldBegin('warehouseId', TType.I64, 4)
7900
      oprot.writeI64(self.warehouseId)
7901
      oprot.writeFieldEnd()
7902
    oprot.writeFieldStop()
7903
    oprot.writeStructEnd()
7904
 
7905
  def validate(self):
7906
    return
7907
 
7908
 
7909
  def __repr__(self):
7910
    L = ['%s=%r' % (key, value)
7911
      for key, value in self.__dict__.iteritems()]
7912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7913
 
7914
  def __eq__(self, other):
7915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7916
 
7917
  def __ne__(self, other):
7918
    return not (self == other)
7919
 
7920
class resetAvailability_result:
7921
  """
7922
  Attributes:
7923
   - cex
7924
  """
7925
 
7926
  thrift_spec = (
7927
    None, # 0
7928
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7929
  )
7930
 
7931
  def __init__(self, cex=None,):
7932
    self.cex = cex
7933
 
7934
  def read(self, iprot):
7935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7937
      return
7938
    iprot.readStructBegin()
7939
    while True:
7940
      (fname, ftype, fid) = iprot.readFieldBegin()
7941
      if ftype == TType.STOP:
7942
        break
7943
      if fid == 1:
7944
        if ftype == TType.STRUCT:
7945
          self.cex = InventoryServiceException()
7946
          self.cex.read(iprot)
7947
        else:
7948
          iprot.skip(ftype)
7949
      else:
7950
        iprot.skip(ftype)
7951
      iprot.readFieldEnd()
7952
    iprot.readStructEnd()
7953
 
7954
  def write(self, oprot):
7955
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7956
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7957
      return
7958
    oprot.writeStructBegin('resetAvailability_result')
7959
    if self.cex is not None:
7960
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7961
      self.cex.write(oprot)
7962
      oprot.writeFieldEnd()
7963
    oprot.writeFieldStop()
7964
    oprot.writeStructEnd()
7965
 
7966
  def validate(self):
7967
    return
7968
 
7969
 
7970
  def __repr__(self):
7971
    L = ['%s=%r' % (key, value)
7972
      for key, value in self.__dict__.iteritems()]
7973
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7974
 
7975
  def __eq__(self, other):
7976
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7977
 
7978
  def __ne__(self, other):
7979
    return not (self == other)
7980
 
7981
class resetAvailabilityForWarehouse_args:
7982
  """
7983
  Attributes:
7984
   - warehouseId
7985
  """
7986
 
7987
  thrift_spec = (
7988
    None, # 0
7989
    (1, TType.I64, 'warehouseId', None, None, ), # 1
7990
  )
7991
 
7992
  def __init__(self, warehouseId=None,):
7993
    self.warehouseId = warehouseId
7994
 
7995
  def read(self, iprot):
7996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7998
      return
7999
    iprot.readStructBegin()
8000
    while True:
8001
      (fname, ftype, fid) = iprot.readFieldBegin()
8002
      if ftype == TType.STOP:
8003
        break
8004
      if fid == 1:
8005
        if ftype == TType.I64:
8006
          self.warehouseId = iprot.readI64();
8007
        else:
8008
          iprot.skip(ftype)
8009
      else:
8010
        iprot.skip(ftype)
8011
      iprot.readFieldEnd()
8012
    iprot.readStructEnd()
8013
 
8014
  def write(self, oprot):
8015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8017
      return
8018
    oprot.writeStructBegin('resetAvailabilityForWarehouse_args')
8019
    if self.warehouseId is not None:
8020
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8021
      oprot.writeI64(self.warehouseId)
8022
      oprot.writeFieldEnd()
8023
    oprot.writeFieldStop()
8024
    oprot.writeStructEnd()
8025
 
8026
  def validate(self):
8027
    return
8028
 
8029
 
8030
  def __repr__(self):
8031
    L = ['%s=%r' % (key, value)
8032
      for key, value in self.__dict__.iteritems()]
8033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8034
 
8035
  def __eq__(self, other):
8036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8037
 
8038
  def __ne__(self, other):
8039
    return not (self == other)
8040
 
8041
class resetAvailabilityForWarehouse_result:
8042
  """
8043
  Attributes:
8044
   - cex
8045
  """
8046
 
8047
  thrift_spec = (
8048
    None, # 0
8049
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8050
  )
8051
 
8052
  def __init__(self, cex=None,):
8053
    self.cex = cex
8054
 
8055
  def read(self, iprot):
8056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8058
      return
8059
    iprot.readStructBegin()
8060
    while True:
8061
      (fname, ftype, fid) = iprot.readFieldBegin()
8062
      if ftype == TType.STOP:
8063
        break
8064
      if fid == 1:
8065
        if ftype == TType.STRUCT:
8066
          self.cex = InventoryServiceException()
8067
          self.cex.read(iprot)
8068
        else:
8069
          iprot.skip(ftype)
8070
      else:
8071
        iprot.skip(ftype)
8072
      iprot.readFieldEnd()
8073
    iprot.readStructEnd()
8074
 
8075
  def write(self, oprot):
8076
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8077
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8078
      return
8079
    oprot.writeStructBegin('resetAvailabilityForWarehouse_result')
8080
    if self.cex is not None:
8081
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8082
      self.cex.write(oprot)
8083
      oprot.writeFieldEnd()
8084
    oprot.writeFieldStop()
8085
    oprot.writeStructEnd()
8086
 
8087
  def validate(self):
8088
    return
8089
 
8090
 
8091
  def __repr__(self):
8092
    L = ['%s=%r' % (key, value)
8093
      for key, value in self.__dict__.iteritems()]
8094
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8095
 
8096
  def __eq__(self, other):
8097
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8098
 
8099
  def __ne__(self, other):
8100
    return not (self == other)
8101
 
8102
class getItemKeysToBeProcessed_args:
8103
  """
8104
  Attributes:
8105
   - warehouseId
8106
  """
8107
 
8108
  thrift_spec = (
8109
    None, # 0
8110
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8111
  )
8112
 
8113
  def __init__(self, warehouseId=None,):
8114
    self.warehouseId = warehouseId
8115
 
8116
  def read(self, iprot):
8117
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8118
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8119
      return
8120
    iprot.readStructBegin()
8121
    while True:
8122
      (fname, ftype, fid) = iprot.readFieldBegin()
8123
      if ftype == TType.STOP:
8124
        break
8125
      if fid == 1:
8126
        if ftype == TType.I64:
8127
          self.warehouseId = iprot.readI64();
8128
        else:
8129
          iprot.skip(ftype)
8130
      else:
8131
        iprot.skip(ftype)
8132
      iprot.readFieldEnd()
8133
    iprot.readStructEnd()
8134
 
8135
  def write(self, oprot):
8136
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8137
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8138
      return
8139
    oprot.writeStructBegin('getItemKeysToBeProcessed_args')
8140
    if self.warehouseId is not None:
8141
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8142
      oprot.writeI64(self.warehouseId)
8143
      oprot.writeFieldEnd()
8144
    oprot.writeFieldStop()
8145
    oprot.writeStructEnd()
8146
 
8147
  def validate(self):
8148
    return
8149
 
8150
 
8151
  def __repr__(self):
8152
    L = ['%s=%r' % (key, value)
8153
      for key, value in self.__dict__.iteritems()]
8154
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8155
 
8156
  def __eq__(self, other):
8157
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8158
 
8159
  def __ne__(self, other):
8160
    return not (self == other)
8161
 
8162
class getItemKeysToBeProcessed_result:
8163
  """
8164
  Attributes:
8165
   - success
8166
  """
8167
 
8168
  thrift_spec = (
8169
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
8170
  )
8171
 
8172
  def __init__(self, success=None,):
8173
    self.success = success
8174
 
8175
  def read(self, iprot):
8176
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8177
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8178
      return
8179
    iprot.readStructBegin()
8180
    while True:
8181
      (fname, ftype, fid) = iprot.readFieldBegin()
8182
      if ftype == TType.STOP:
8183
        break
8184
      if fid == 0:
8185
        if ftype == TType.LIST:
8186
          self.success = []
8182 amar.kumar 8187
          (_etype104, _size101) = iprot.readListBegin()
8188
          for _i105 in xrange(_size101):
8189
            _elem106 = iprot.readString();
8190
            self.success.append(_elem106)
5944 mandeep.dh 8191
          iprot.readListEnd()
8192
        else:
8193
          iprot.skip(ftype)
8194
      else:
8195
        iprot.skip(ftype)
8196
      iprot.readFieldEnd()
8197
    iprot.readStructEnd()
8198
 
8199
  def write(self, oprot):
8200
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8201
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8202
      return
8203
    oprot.writeStructBegin('getItemKeysToBeProcessed_result')
8204
    if self.success is not None:
8205
      oprot.writeFieldBegin('success', TType.LIST, 0)
8206
      oprot.writeListBegin(TType.STRING, len(self.success))
8182 amar.kumar 8207
      for iter107 in self.success:
8208
        oprot.writeString(iter107)
5944 mandeep.dh 8209
      oprot.writeListEnd()
8210
      oprot.writeFieldEnd()
8211
    oprot.writeFieldStop()
8212
    oprot.writeStructEnd()
8213
 
8214
  def validate(self):
8215
    return
8216
 
8217
 
8218
  def __repr__(self):
8219
    L = ['%s=%r' % (key, value)
8220
      for key, value in self.__dict__.iteritems()]
8221
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8222
 
8223
  def __eq__(self, other):
8224
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8225
 
8226
  def __ne__(self, other):
8227
    return not (self == other)
8228
 
8229
class markMissedInventoryUpdatesAsProcessed_args:
8230
  """
8231
  Attributes:
8232
   - itemKey
8233
   - warehouseId
8234
  """
8235
 
8236
  thrift_spec = (
8237
    None, # 0
8238
    (1, TType.STRING, 'itemKey', None, None, ), # 1
8239
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8240
  )
8241
 
8242
  def __init__(self, itemKey=None, warehouseId=None,):
8243
    self.itemKey = itemKey
8244
    self.warehouseId = warehouseId
8245
 
8246
  def read(self, iprot):
8247
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8248
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8249
      return
8250
    iprot.readStructBegin()
8251
    while True:
8252
      (fname, ftype, fid) = iprot.readFieldBegin()
8253
      if ftype == TType.STOP:
8254
        break
8255
      if fid == 1:
8256
        if ftype == TType.STRING:
8257
          self.itemKey = iprot.readString();
8258
        else:
8259
          iprot.skip(ftype)
8260
      elif fid == 2:
8261
        if ftype == TType.I64:
8262
          self.warehouseId = iprot.readI64();
8263
        else:
8264
          iprot.skip(ftype)
8265
      else:
8266
        iprot.skip(ftype)
8267
      iprot.readFieldEnd()
8268
    iprot.readStructEnd()
8269
 
8270
  def write(self, oprot):
8271
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8272
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8273
      return
8274
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_args')
8275
    if self.itemKey is not None:
8276
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
8277
      oprot.writeString(self.itemKey)
8278
      oprot.writeFieldEnd()
8279
    if self.warehouseId is not None:
8280
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8281
      oprot.writeI64(self.warehouseId)
8282
      oprot.writeFieldEnd()
8283
    oprot.writeFieldStop()
8284
    oprot.writeStructEnd()
8285
 
8286
  def validate(self):
8287
    return
8288
 
8289
 
8290
  def __repr__(self):
8291
    L = ['%s=%r' % (key, value)
8292
      for key, value in self.__dict__.iteritems()]
8293
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8294
 
8295
  def __eq__(self, other):
8296
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8297
 
8298
  def __ne__(self, other):
8299
    return not (self == other)
8300
 
8301
class markMissedInventoryUpdatesAsProcessed_result:
8302
 
8303
  thrift_spec = (
8304
  )
8305
 
8306
  def read(self, iprot):
8307
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8308
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8309
      return
8310
    iprot.readStructBegin()
8311
    while True:
8312
      (fname, ftype, fid) = iprot.readFieldBegin()
8313
      if ftype == TType.STOP:
8314
        break
8315
      else:
8316
        iprot.skip(ftype)
8317
      iprot.readFieldEnd()
8318
    iprot.readStructEnd()
8319
 
8320
  def write(self, oprot):
8321
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8322
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8323
      return
8324
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_result')
8325
    oprot.writeFieldStop()
8326
    oprot.writeStructEnd()
8327
 
8328
  def validate(self):
8329
    return
8330
 
8331
 
8332
  def __repr__(self):
8333
    L = ['%s=%r' % (key, value)
8334
      for key, value in self.__dict__.iteritems()]
8335
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8336
 
8337
  def __eq__(self, other):
8338
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8339
 
8340
  def __ne__(self, other):
8341
    return not (self == other)
8342
 
8343
class getIgnoredItemKeys_args:
8344
 
8345
  thrift_spec = (
8346
  )
8347
 
8348
  def read(self, iprot):
8349
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8350
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8351
      return
8352
    iprot.readStructBegin()
8353
    while True:
8354
      (fname, ftype, fid) = iprot.readFieldBegin()
8355
      if ftype == TType.STOP:
8356
        break
8357
      else:
8358
        iprot.skip(ftype)
8359
      iprot.readFieldEnd()
8360
    iprot.readStructEnd()
8361
 
8362
  def write(self, oprot):
8363
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8364
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8365
      return
8366
    oprot.writeStructBegin('getIgnoredItemKeys_args')
8367
    oprot.writeFieldStop()
8368
    oprot.writeStructEnd()
8369
 
8370
  def validate(self):
8371
    return
8372
 
8373
 
8374
  def __repr__(self):
8375
    L = ['%s=%r' % (key, value)
8376
      for key, value in self.__dict__.iteritems()]
8377
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8378
 
8379
  def __eq__(self, other):
8380
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8381
 
8382
  def __ne__(self, other):
8383
    return not (self == other)
8384
 
8385
class getIgnoredItemKeys_result:
8386
  """
8387
  Attributes:
8388
   - success
8389
  """
8390
 
8391
  thrift_spec = (
8392
    (0, TType.MAP, 'success', (TType.STRING,None,TType.MAP,(TType.I64,None,TType.I64,None)), None, ), # 0
8393
  )
8394
 
8395
  def __init__(self, success=None,):
8396
    self.success = success
8397
 
8398
  def read(self, iprot):
8399
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8400
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8401
      return
8402
    iprot.readStructBegin()
8403
    while True:
8404
      (fname, ftype, fid) = iprot.readFieldBegin()
8405
      if ftype == TType.STOP:
8406
        break
8407
      if fid == 0:
8408
        if ftype == TType.MAP:
8409
          self.success = {}
8182 amar.kumar 8410
          (_ktype109, _vtype110, _size108 ) = iprot.readMapBegin() 
8411
          for _i112 in xrange(_size108):
8412
            _key113 = iprot.readString();
8413
            _val114 = {}
8414
            (_ktype116, _vtype117, _size115 ) = iprot.readMapBegin() 
8415
            for _i119 in xrange(_size115):
8416
              _key120 = iprot.readI64();
8417
              _val121 = iprot.readI64();
8418
              _val114[_key120] = _val121
5944 mandeep.dh 8419
            iprot.readMapEnd()
8182 amar.kumar 8420
            self.success[_key113] = _val114
5944 mandeep.dh 8421
          iprot.readMapEnd()
8422
        else:
8423
          iprot.skip(ftype)
8424
      else:
8425
        iprot.skip(ftype)
8426
      iprot.readFieldEnd()
8427
    iprot.readStructEnd()
8428
 
8429
  def write(self, oprot):
8430
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8431
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8432
      return
8433
    oprot.writeStructBegin('getIgnoredItemKeys_result')
8434
    if self.success is not None:
8435
      oprot.writeFieldBegin('success', TType.MAP, 0)
8436
      oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.success))
8182 amar.kumar 8437
      for kiter122,viter123 in self.success.items():
8438
        oprot.writeString(kiter122)
8439
        oprot.writeMapBegin(TType.I64, TType.I64, len(viter123))
8440
        for kiter124,viter125 in viter123.items():
8441
          oprot.writeI64(kiter124)
8442
          oprot.writeI64(viter125)
5944 mandeep.dh 8443
        oprot.writeMapEnd()
8444
      oprot.writeMapEnd()
8445
      oprot.writeFieldEnd()
8446
    oprot.writeFieldStop()
8447
    oprot.writeStructEnd()
8448
 
8449
  def validate(self):
8450
    return
8451
 
8452
 
8453
  def __repr__(self):
8454
    L = ['%s=%r' % (key, value)
8455
      for key, value in self.__dict__.iteritems()]
8456
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8457
 
8458
  def __eq__(self, other):
8459
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8460
 
8461
  def __ne__(self, other):
8462
    return not (self == other)
8463
 
8464
class addBadInventory_args:
8465
  """
8466
  Attributes:
8467
   - itemId
8468
   - warehouseId
8469
   - quantity
8470
  """
8471
 
8472
  thrift_spec = (
8473
    None, # 0
8474
    (1, TType.I64, 'itemId', None, None, ), # 1
8475
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8476
    (3, TType.I64, 'quantity', None, None, ), # 3
8477
  )
8478
 
8479
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
8480
    self.itemId = itemId
8481
    self.warehouseId = warehouseId
8482
    self.quantity = quantity
8483
 
8484
  def read(self, iprot):
8485
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8486
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8487
      return
8488
    iprot.readStructBegin()
8489
    while True:
8490
      (fname, ftype, fid) = iprot.readFieldBegin()
8491
      if ftype == TType.STOP:
8492
        break
8493
      if fid == 1:
8494
        if ftype == TType.I64:
8495
          self.itemId = iprot.readI64();
8496
        else:
8497
          iprot.skip(ftype)
8498
      elif fid == 2:
8499
        if ftype == TType.I64:
8500
          self.warehouseId = iprot.readI64();
8501
        else:
8502
          iprot.skip(ftype)
8503
      elif fid == 3:
8504
        if ftype == TType.I64:
8505
          self.quantity = iprot.readI64();
8506
        else:
8507
          iprot.skip(ftype)
8508
      else:
8509
        iprot.skip(ftype)
8510
      iprot.readFieldEnd()
8511
    iprot.readStructEnd()
8512
 
8513
  def write(self, oprot):
8514
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8515
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8516
      return
8517
    oprot.writeStructBegin('addBadInventory_args')
8518
    if self.itemId is not None:
8519
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8520
      oprot.writeI64(self.itemId)
8521
      oprot.writeFieldEnd()
8522
    if self.warehouseId is not None:
8523
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8524
      oprot.writeI64(self.warehouseId)
8525
      oprot.writeFieldEnd()
8526
    if self.quantity is not None:
8527
      oprot.writeFieldBegin('quantity', TType.I64, 3)
8528
      oprot.writeI64(self.quantity)
8529
      oprot.writeFieldEnd()
8530
    oprot.writeFieldStop()
8531
    oprot.writeStructEnd()
8532
 
8533
  def validate(self):
8534
    return
8535
 
8536
 
8537
  def __repr__(self):
8538
    L = ['%s=%r' % (key, value)
8539
      for key, value in self.__dict__.iteritems()]
8540
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8541
 
8542
  def __eq__(self, other):
8543
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8544
 
8545
  def __ne__(self, other):
8546
    return not (self == other)
8547
 
8548
class addBadInventory_result:
8549
  """
8550
  Attributes:
8551
   - cex
8552
  """
8553
 
8554
  thrift_spec = (
8555
    None, # 0
8556
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8557
  )
8558
 
8559
  def __init__(self, cex=None,):
8560
    self.cex = cex
8561
 
8562
  def read(self, iprot):
8563
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8564
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8565
      return
8566
    iprot.readStructBegin()
8567
    while True:
8568
      (fname, ftype, fid) = iprot.readFieldBegin()
8569
      if ftype == TType.STOP:
8570
        break
8571
      if fid == 1:
8572
        if ftype == TType.STRUCT:
8573
          self.cex = InventoryServiceException()
8574
          self.cex.read(iprot)
8575
        else:
8576
          iprot.skip(ftype)
8577
      else:
8578
        iprot.skip(ftype)
8579
      iprot.readFieldEnd()
8580
    iprot.readStructEnd()
8581
 
8582
  def write(self, oprot):
8583
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8584
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8585
      return
8586
    oprot.writeStructBegin('addBadInventory_result')
8587
    if self.cex is not None:
8588
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8589
      self.cex.write(oprot)
8590
      oprot.writeFieldEnd()
8591
    oprot.writeFieldStop()
8592
    oprot.writeStructEnd()
8593
 
8594
  def validate(self):
8595
    return
8596
 
8597
 
8598
  def __repr__(self):
8599
    L = ['%s=%r' % (key, value)
8600
      for key, value in self.__dict__.iteritems()]
8601
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8602
 
8603
  def __eq__(self, other):
8604
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8605
 
8606
  def __ne__(self, other):
8607
    return not (self == other)
8608
 
8609
class getShippingLocations_args:
8610
 
8611
  thrift_spec = (
8612
  )
8613
 
8614
  def read(self, iprot):
8615
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8616
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8617
      return
8618
    iprot.readStructBegin()
8619
    while True:
8620
      (fname, ftype, fid) = iprot.readFieldBegin()
8621
      if ftype == TType.STOP:
8622
        break
8623
      else:
8624
        iprot.skip(ftype)
8625
      iprot.readFieldEnd()
8626
    iprot.readStructEnd()
8627
 
8628
  def write(self, oprot):
8629
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8630
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8631
      return
8632
    oprot.writeStructBegin('getShippingLocations_args')
8633
    oprot.writeFieldStop()
8634
    oprot.writeStructEnd()
8635
 
8636
  def validate(self):
8637
    return
8638
 
8639
 
8640
  def __repr__(self):
8641
    L = ['%s=%r' % (key, value)
8642
      for key, value in self.__dict__.iteritems()]
8643
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8644
 
8645
  def __eq__(self, other):
8646
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8647
 
8648
  def __ne__(self, other):
8649
    return not (self == other)
8650
 
8651
class getShippingLocations_result:
8652
  """
8653
  Attributes:
8654
   - success
8655
  """
8656
 
8657
  thrift_spec = (
8658
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
8659
  )
8660
 
8661
  def __init__(self, success=None,):
8662
    self.success = success
8663
 
8664
  def read(self, iprot):
8665
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8666
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8667
      return
8668
    iprot.readStructBegin()
8669
    while True:
8670
      (fname, ftype, fid) = iprot.readFieldBegin()
8671
      if ftype == TType.STOP:
8672
        break
8673
      if fid == 0:
8674
        if ftype == TType.LIST:
8675
          self.success = []
8182 amar.kumar 8676
          (_etype129, _size126) = iprot.readListBegin()
8677
          for _i130 in xrange(_size126):
8678
            _elem131 = Warehouse()
8679
            _elem131.read(iprot)
8680
            self.success.append(_elem131)
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('getShippingLocations_result')
8694
    if self.success is not None:
8695
      oprot.writeFieldBegin('success', TType.LIST, 0)
8696
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8697
      for iter132 in self.success:
8698
        iter132.write(oprot)
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 getAllVendorItemMappings_args:
8720
 
8721
  thrift_spec = (
8722
  )
8723
 
8724
  def read(self, iprot):
8725
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8726
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8727
      return
8728
    iprot.readStructBegin()
8729
    while True:
8730
      (fname, ftype, fid) = iprot.readFieldBegin()
8731
      if ftype == TType.STOP:
8732
        break
8733
      else:
8734
        iprot.skip(ftype)
8735
      iprot.readFieldEnd()
8736
    iprot.readStructEnd()
8737
 
8738
  def write(self, oprot):
8739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8741
      return
8742
    oprot.writeStructBegin('getAllVendorItemMappings_args')
8743
    oprot.writeFieldStop()
8744
    oprot.writeStructEnd()
8745
 
8746
  def validate(self):
8747
    return
8748
 
8749
 
8750
  def __repr__(self):
8751
    L = ['%s=%r' % (key, value)
8752
      for key, value in self.__dict__.iteritems()]
8753
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8754
 
8755
  def __eq__(self, other):
8756
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8757
 
8758
  def __ne__(self, other):
8759
    return not (self == other)
8760
 
8761
class getAllVendorItemMappings_result:
8762
  """
8763
  Attributes:
8764
   - success
8765
  """
8766
 
8767
  thrift_spec = (
8768
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
8769
  )
8770
 
8771
  def __init__(self, success=None,):
8772
    self.success = success
8773
 
8774
  def read(self, iprot):
8775
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8776
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8777
      return
8778
    iprot.readStructBegin()
8779
    while True:
8780
      (fname, ftype, fid) = iprot.readFieldBegin()
8781
      if ftype == TType.STOP:
8782
        break
8783
      if fid == 0:
8784
        if ftype == TType.LIST:
8785
          self.success = []
8182 amar.kumar 8786
          (_etype136, _size133) = iprot.readListBegin()
8787
          for _i137 in xrange(_size133):
8788
            _elem138 = VendorItemMapping()
8789
            _elem138.read(iprot)
8790
            self.success.append(_elem138)
5944 mandeep.dh 8791
          iprot.readListEnd()
8792
        else:
8793
          iprot.skip(ftype)
8794
      else:
8795
        iprot.skip(ftype)
8796
      iprot.readFieldEnd()
8797
    iprot.readStructEnd()
8798
 
8799
  def write(self, oprot):
8800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8802
      return
8803
    oprot.writeStructBegin('getAllVendorItemMappings_result')
8804
    if self.success is not None:
8805
      oprot.writeFieldBegin('success', TType.LIST, 0)
8806
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8807
      for iter139 in self.success:
8808
        iter139.write(oprot)
5944 mandeep.dh 8809
      oprot.writeListEnd()
8810
      oprot.writeFieldEnd()
8811
    oprot.writeFieldStop()
8812
    oprot.writeStructEnd()
8813
 
8814
  def validate(self):
8815
    return
8816
 
8817
 
8818
  def __repr__(self):
8819
    L = ['%s=%r' % (key, value)
8820
      for key, value in self.__dict__.iteritems()]
8821
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8822
 
8823
  def __eq__(self, other):
8824
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8825
 
8826
  def __ne__(self, other):
8827
    return not (self == other)
8828
 
8829
class getInventorySnapshot_args:
8830
  """
8831
  Attributes:
8832
   - warehouseId
8833
  """
8834
 
8835
  thrift_spec = (
8836
    None, # 0
8837
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8838
  )
8839
 
8840
  def __init__(self, warehouseId=None,):
8841
    self.warehouseId = warehouseId
8842
 
8843
  def read(self, iprot):
8844
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8845
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8846
      return
8847
    iprot.readStructBegin()
8848
    while True:
8849
      (fname, ftype, fid) = iprot.readFieldBegin()
8850
      if ftype == TType.STOP:
8851
        break
8852
      if fid == 1:
8853
        if ftype == TType.I64:
8854
          self.warehouseId = iprot.readI64();
8855
        else:
8856
          iprot.skip(ftype)
8857
      else:
8858
        iprot.skip(ftype)
8859
      iprot.readFieldEnd()
8860
    iprot.readStructEnd()
8861
 
8862
  def write(self, oprot):
8863
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8864
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8865
      return
8866
    oprot.writeStructBegin('getInventorySnapshot_args')
8867
    if self.warehouseId is not None:
8868
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8869
      oprot.writeI64(self.warehouseId)
8870
      oprot.writeFieldEnd()
8871
    oprot.writeFieldStop()
8872
    oprot.writeStructEnd()
8873
 
8874
  def validate(self):
8875
    return
8876
 
8877
 
8878
  def __repr__(self):
8879
    L = ['%s=%r' % (key, value)
8880
      for key, value in self.__dict__.iteritems()]
8881
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8882
 
8883
  def __eq__(self, other):
8884
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8885
 
8886
  def __ne__(self, other):
8887
    return not (self == other)
8888
 
8889
class getInventorySnapshot_result:
8890
  """
8891
  Attributes:
8892
   - success
8893
  """
8894
 
8895
  thrift_spec = (
8896
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ItemInventory, ItemInventory.thrift_spec)), None, ), # 0
8897
  )
8898
 
8899
  def __init__(self, success=None,):
8900
    self.success = success
8901
 
8902
  def read(self, iprot):
8903
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8904
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8905
      return
8906
    iprot.readStructBegin()
8907
    while True:
8908
      (fname, ftype, fid) = iprot.readFieldBegin()
8909
      if ftype == TType.STOP:
8910
        break
8911
      if fid == 0:
8912
        if ftype == TType.MAP:
8913
          self.success = {}
8182 amar.kumar 8914
          (_ktype141, _vtype142, _size140 ) = iprot.readMapBegin() 
8915
          for _i144 in xrange(_size140):
8916
            _key145 = iprot.readI64();
8917
            _val146 = ItemInventory()
8918
            _val146.read(iprot)
8919
            self.success[_key145] = _val146
5944 mandeep.dh 8920
          iprot.readMapEnd()
8921
        else:
8922
          iprot.skip(ftype)
8923
      else:
8924
        iprot.skip(ftype)
8925
      iprot.readFieldEnd()
8926
    iprot.readStructEnd()
8927
 
8928
  def write(self, oprot):
8929
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8930
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8931
      return
8932
    oprot.writeStructBegin('getInventorySnapshot_result')
8933
    if self.success is not None:
8934
      oprot.writeFieldBegin('success', TType.MAP, 0)
8935
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
8182 amar.kumar 8936
      for kiter147,viter148 in self.success.items():
8937
        oprot.writeI64(kiter147)
8938
        viter148.write(oprot)
5944 mandeep.dh 8939
      oprot.writeMapEnd()
8940
      oprot.writeFieldEnd()
8941
    oprot.writeFieldStop()
8942
    oprot.writeStructEnd()
8943
 
8944
  def validate(self):
8945
    return
8946
 
8947
 
8948
  def __repr__(self):
8949
    L = ['%s=%r' % (key, value)
8950
      for key, value in self.__dict__.iteritems()]
8951
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8952
 
8953
  def __eq__(self, other):
8954
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8955
 
8956
  def __ne__(self, other):
8957
    return not (self == other)
8958
 
8959
class clearItemAvailabilityCache_args:
8960
 
8961
  thrift_spec = (
8962
  )
8963
 
8964
  def read(self, iprot):
8965
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8966
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8967
      return
8968
    iprot.readStructBegin()
8969
    while True:
8970
      (fname, ftype, fid) = iprot.readFieldBegin()
8971
      if ftype == TType.STOP:
8972
        break
8973
      else:
8974
        iprot.skip(ftype)
8975
      iprot.readFieldEnd()
8976
    iprot.readStructEnd()
8977
 
8978
  def write(self, oprot):
8979
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8980
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8981
      return
8982
    oprot.writeStructBegin('clearItemAvailabilityCache_args')
8983
    oprot.writeFieldStop()
8984
    oprot.writeStructEnd()
8985
 
8986
  def validate(self):
8987
    return
8988
 
8989
 
8990
  def __repr__(self):
8991
    L = ['%s=%r' % (key, value)
8992
      for key, value in self.__dict__.iteritems()]
8993
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8994
 
8995
  def __eq__(self, other):
8996
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8997
 
8998
  def __ne__(self, other):
8999
    return not (self == other)
9000
 
9001
class clearItemAvailabilityCache_result:
9002
 
9003
  thrift_spec = (
9004
  )
9005
 
9006
  def read(self, iprot):
9007
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9008
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9009
      return
9010
    iprot.readStructBegin()
9011
    while True:
9012
      (fname, ftype, fid) = iprot.readFieldBegin()
9013
      if ftype == TType.STOP:
9014
        break
9015
      else:
9016
        iprot.skip(ftype)
9017
      iprot.readFieldEnd()
9018
    iprot.readStructEnd()
9019
 
9020
  def write(self, oprot):
9021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9023
      return
9024
    oprot.writeStructBegin('clearItemAvailabilityCache_result')
9025
    oprot.writeFieldStop()
9026
    oprot.writeStructEnd()
9027
 
9028
  def validate(self):
9029
    return
9030
 
9031
 
9032
  def __repr__(self):
9033
    L = ['%s=%r' % (key, value)
9034
      for key, value in self.__dict__.iteritems()]
9035
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9036
 
9037
  def __eq__(self, other):
9038
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9039
 
9040
  def __ne__(self, other):
9041
    return not (self == other)
9042
 
9043
class updateVendorString_args:
9044
  """
9045
  Attributes:
9046
   - warehouseId
9047
   - vendorString
9048
  """
9049
 
9050
  thrift_spec = (
9051
    None, # 0
9052
    (1, TType.I64, 'warehouseId', None, None, ), # 1
9053
    (2, TType.STRING, 'vendorString', None, None, ), # 2
9054
  )
9055
 
9056
  def __init__(self, warehouseId=None, vendorString=None,):
9057
    self.warehouseId = warehouseId
9058
    self.vendorString = vendorString
9059
 
9060
  def read(self, iprot):
9061
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9062
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9063
      return
9064
    iprot.readStructBegin()
9065
    while True:
9066
      (fname, ftype, fid) = iprot.readFieldBegin()
9067
      if ftype == TType.STOP:
9068
        break
9069
      if fid == 1:
9070
        if ftype == TType.I64:
9071
          self.warehouseId = iprot.readI64();
9072
        else:
9073
          iprot.skip(ftype)
9074
      elif fid == 2:
9075
        if ftype == TType.STRING:
9076
          self.vendorString = iprot.readString();
9077
        else:
9078
          iprot.skip(ftype)
9079
      else:
9080
        iprot.skip(ftype)
9081
      iprot.readFieldEnd()
9082
    iprot.readStructEnd()
9083
 
9084
  def write(self, oprot):
9085
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9086
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9087
      return
9088
    oprot.writeStructBegin('updateVendorString_args')
9089
    if self.warehouseId is not None:
9090
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9091
      oprot.writeI64(self.warehouseId)
9092
      oprot.writeFieldEnd()
9093
    if self.vendorString is not None:
9094
      oprot.writeFieldBegin('vendorString', TType.STRING, 2)
9095
      oprot.writeString(self.vendorString)
9096
      oprot.writeFieldEnd()
9097
    oprot.writeFieldStop()
9098
    oprot.writeStructEnd()
9099
 
9100
  def validate(self):
9101
    return
9102
 
9103
 
9104
  def __repr__(self):
9105
    L = ['%s=%r' % (key, value)
9106
      for key, value in self.__dict__.iteritems()]
9107
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9108
 
9109
  def __eq__(self, other):
9110
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9111
 
9112
  def __ne__(self, other):
9113
    return not (self == other)
9114
 
9115
class updateVendorString_result:
9116
 
9117
  thrift_spec = (
9118
  )
9119
 
9120
  def read(self, iprot):
9121
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9122
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9123
      return
9124
    iprot.readStructBegin()
9125
    while True:
9126
      (fname, ftype, fid) = iprot.readFieldBegin()
9127
      if ftype == TType.STOP:
9128
        break
9129
      else:
9130
        iprot.skip(ftype)
9131
      iprot.readFieldEnd()
9132
    iprot.readStructEnd()
9133
 
9134
  def write(self, oprot):
9135
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9136
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9137
      return
9138
    oprot.writeStructBegin('updateVendorString_result')
9139
    oprot.writeFieldStop()
9140
    oprot.writeStructEnd()
9141
 
9142
  def validate(self):
9143
    return
9144
 
9145
 
9146
  def __repr__(self):
9147
    L = ['%s=%r' % (key, value)
9148
      for key, value in self.__dict__.iteritems()]
9149
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9150
 
9151
  def __eq__(self, other):
9152
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9153
 
9154
  def __ne__(self, other):
9155
    return not (self == other)
6096 amit.gupta 9156
 
9157
class clearItemAvailabilityCacheForItem_args:
9158
  """
9159
  Attributes:
9160
   - item_id
9161
  """
9162
 
9163
  thrift_spec = (
9164
    None, # 0
9165
    (1, TType.I64, 'item_id', None, None, ), # 1
9166
  )
9167
 
9168
  def __init__(self, item_id=None,):
9169
    self.item_id = item_id
9170
 
9171
  def read(self, iprot):
9172
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9173
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9174
      return
9175
    iprot.readStructBegin()
9176
    while True:
9177
      (fname, ftype, fid) = iprot.readFieldBegin()
9178
      if ftype == TType.STOP:
9179
        break
9180
      if fid == 1:
9181
        if ftype == TType.I64:
9182
          self.item_id = iprot.readI64();
9183
        else:
9184
          iprot.skip(ftype)
9185
      else:
9186
        iprot.skip(ftype)
9187
      iprot.readFieldEnd()
9188
    iprot.readStructEnd()
9189
 
9190
  def write(self, oprot):
9191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9193
      return
9194
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_args')
9195
    if self.item_id is not None:
9196
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9197
      oprot.writeI64(self.item_id)
9198
      oprot.writeFieldEnd()
9199
    oprot.writeFieldStop()
9200
    oprot.writeStructEnd()
9201
 
9202
  def validate(self):
9203
    return
9204
 
9205
 
9206
  def __repr__(self):
9207
    L = ['%s=%r' % (key, value)
9208
      for key, value in self.__dict__.iteritems()]
9209
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9210
 
9211
  def __eq__(self, other):
9212
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9213
 
9214
  def __ne__(self, other):
9215
    return not (self == other)
9216
 
9217
class clearItemAvailabilityCacheForItem_result:
9218
 
9219
  thrift_spec = (
9220
  )
9221
 
9222
  def read(self, iprot):
9223
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9224
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9225
      return
9226
    iprot.readStructBegin()
9227
    while True:
9228
      (fname, ftype, fid) = iprot.readFieldBegin()
9229
      if ftype == TType.STOP:
9230
        break
9231
      else:
9232
        iprot.skip(ftype)
9233
      iprot.readFieldEnd()
9234
    iprot.readStructEnd()
9235
 
9236
  def write(self, oprot):
9237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9239
      return
9240
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_result')
9241
    oprot.writeFieldStop()
9242
    oprot.writeStructEnd()
9243
 
9244
  def validate(self):
9245
    return
9246
 
9247
 
9248
  def __repr__(self):
9249
    L = ['%s=%r' % (key, value)
9250
      for key, value in self.__dict__.iteritems()]
9251
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9252
 
9253
  def __eq__(self, other):
9254
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9255
 
9256
  def __ne__(self, other):
9257
    return not (self == other)
6467 amar.kumar 9258
 
9259
class getOurWarehouseIdForVendor_args:
9260
  """
9261
  Attributes:
9262
   - vendorId
7718 amar.kumar 9263
   - billingWarehouseId
6467 amar.kumar 9264
  """
9265
 
9266
  thrift_spec = (
9267
    None, # 0
9268
    (1, TType.I64, 'vendorId', None, None, ), # 1
7718 amar.kumar 9269
    (2, TType.I64, 'billingWarehouseId', None, None, ), # 2
6467 amar.kumar 9270
  )
9271
 
7718 amar.kumar 9272
  def __init__(self, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 9273
    self.vendorId = vendorId
7718 amar.kumar 9274
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 9275
 
9276
  def read(self, iprot):
9277
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9278
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9279
      return
9280
    iprot.readStructBegin()
9281
    while True:
9282
      (fname, ftype, fid) = iprot.readFieldBegin()
9283
      if ftype == TType.STOP:
9284
        break
9285
      if fid == 1:
9286
        if ftype == TType.I64:
9287
          self.vendorId = iprot.readI64();
9288
        else:
9289
          iprot.skip(ftype)
7718 amar.kumar 9290
      elif fid == 2:
9291
        if ftype == TType.I64:
9292
          self.billingWarehouseId = iprot.readI64();
9293
        else:
9294
          iprot.skip(ftype)
6467 amar.kumar 9295
      else:
9296
        iprot.skip(ftype)
9297
      iprot.readFieldEnd()
9298
    iprot.readStructEnd()
9299
 
9300
  def write(self, oprot):
9301
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9302
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9303
      return
9304
    oprot.writeStructBegin('getOurWarehouseIdForVendor_args')
9305
    if self.vendorId is not None:
9306
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
9307
      oprot.writeI64(self.vendorId)
9308
      oprot.writeFieldEnd()
7718 amar.kumar 9309
    if self.billingWarehouseId is not None:
9310
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 2)
9311
      oprot.writeI64(self.billingWarehouseId)
9312
      oprot.writeFieldEnd()
6467 amar.kumar 9313
    oprot.writeFieldStop()
9314
    oprot.writeStructEnd()
9315
 
9316
  def validate(self):
9317
    return
9318
 
9319
 
9320
  def __repr__(self):
9321
    L = ['%s=%r' % (key, value)
9322
      for key, value in self.__dict__.iteritems()]
9323
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9324
 
9325
  def __eq__(self, other):
9326
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9327
 
9328
  def __ne__(self, other):
9329
    return not (self == other)
9330
 
9331
class getOurWarehouseIdForVendor_result:
9332
  """
9333
  Attributes:
9334
   - success
9335
  """
9336
 
9337
  thrift_spec = (
9338
    (0, TType.I64, 'success', None, None, ), # 0
9339
  )
9340
 
9341
  def __init__(self, success=None,):
9342
    self.success = success
9343
 
9344
  def read(self, iprot):
9345
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9346
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9347
      return
9348
    iprot.readStructBegin()
9349
    while True:
9350
      (fname, ftype, fid) = iprot.readFieldBegin()
9351
      if ftype == TType.STOP:
9352
        break
9353
      if fid == 0:
9354
        if ftype == TType.I64:
9355
          self.success = iprot.readI64();
9356
        else:
9357
          iprot.skip(ftype)
9358
      else:
9359
        iprot.skip(ftype)
9360
      iprot.readFieldEnd()
9361
    iprot.readStructEnd()
9362
 
9363
  def write(self, oprot):
9364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9366
      return
9367
    oprot.writeStructBegin('getOurWarehouseIdForVendor_result')
9368
    if self.success is not None:
9369
      oprot.writeFieldBegin('success', TType.I64, 0)
9370
      oprot.writeI64(self.success)
9371
      oprot.writeFieldEnd()
9372
    oprot.writeFieldStop()
9373
    oprot.writeStructEnd()
9374
 
9375
  def validate(self):
9376
    return
9377
 
9378
 
9379
  def __repr__(self):
9380
    L = ['%s=%r' % (key, value)
9381
      for key, value in self.__dict__.iteritems()]
9382
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9383
 
9384
  def __eq__(self, other):
9385
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9386
 
9387
  def __ne__(self, other):
9388
    return not (self == other)
6484 amar.kumar 9389
 
9390
class getItemAvailabilitiesAtOurWarehouses_args:
9391
  """
9392
  Attributes:
9393
   - item_ids
9394
  """
9395
 
9396
  thrift_spec = (
9397
    None, # 0
9398
    (1, TType.LIST, 'item_ids', (TType.I64,None), None, ), # 1
9399
  )
9400
 
9401
  def __init__(self, item_ids=None,):
9402
    self.item_ids = item_ids
9403
 
9404
  def read(self, iprot):
9405
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9406
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9407
      return
9408
    iprot.readStructBegin()
9409
    while True:
9410
      (fname, ftype, fid) = iprot.readFieldBegin()
9411
      if ftype == TType.STOP:
9412
        break
9413
      if fid == 1:
9414
        if ftype == TType.LIST:
9415
          self.item_ids = []
8182 amar.kumar 9416
          (_etype152, _size149) = iprot.readListBegin()
9417
          for _i153 in xrange(_size149):
9418
            _elem154 = iprot.readI64();
9419
            self.item_ids.append(_elem154)
6484 amar.kumar 9420
          iprot.readListEnd()
9421
        else:
9422
          iprot.skip(ftype)
9423
      else:
9424
        iprot.skip(ftype)
9425
      iprot.readFieldEnd()
9426
    iprot.readStructEnd()
9427
 
9428
  def write(self, oprot):
9429
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9430
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9431
      return
9432
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_args')
9433
    if self.item_ids is not None:
9434
      oprot.writeFieldBegin('item_ids', TType.LIST, 1)
9435
      oprot.writeListBegin(TType.I64, len(self.item_ids))
8182 amar.kumar 9436
      for iter155 in self.item_ids:
9437
        oprot.writeI64(iter155)
6484 amar.kumar 9438
      oprot.writeListEnd()
9439
      oprot.writeFieldEnd()
9440
    oprot.writeFieldStop()
9441
    oprot.writeStructEnd()
9442
 
9443
  def validate(self):
9444
    return
9445
 
9446
 
9447
  def __repr__(self):
9448
    L = ['%s=%r' % (key, value)
9449
      for key, value in self.__dict__.iteritems()]
9450
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9451
 
9452
  def __eq__(self, other):
9453
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9454
 
9455
  def __ne__(self, other):
9456
    return not (self == other)
9457
 
9458
class getItemAvailabilitiesAtOurWarehouses_result:
9459
  """
9460
  Attributes:
9461
   - success
9462
  """
9463
 
9464
  thrift_spec = (
9465
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
9466
  )
9467
 
9468
  def __init__(self, success=None,):
9469
    self.success = success
9470
 
9471
  def read(self, iprot):
9472
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9473
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9474
      return
9475
    iprot.readStructBegin()
9476
    while True:
9477
      (fname, ftype, fid) = iprot.readFieldBegin()
9478
      if ftype == TType.STOP:
9479
        break
9480
      if fid == 0:
9481
        if ftype == TType.MAP:
9482
          self.success = {}
8182 amar.kumar 9483
          (_ktype157, _vtype158, _size156 ) = iprot.readMapBegin() 
9484
          for _i160 in xrange(_size156):
9485
            _key161 = iprot.readI64();
9486
            _val162 = iprot.readI64();
9487
            self.success[_key161] = _val162
6484 amar.kumar 9488
          iprot.readMapEnd()
9489
        else:
9490
          iprot.skip(ftype)
9491
      else:
9492
        iprot.skip(ftype)
9493
      iprot.readFieldEnd()
9494
    iprot.readStructEnd()
9495
 
9496
  def write(self, oprot):
9497
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9498
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9499
      return
9500
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_result')
9501
    if self.success is not None:
9502
      oprot.writeFieldBegin('success', TType.MAP, 0)
9503
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
8182 amar.kumar 9504
      for kiter163,viter164 in self.success.items():
9505
        oprot.writeI64(kiter163)
9506
        oprot.writeI64(viter164)
6484 amar.kumar 9507
      oprot.writeMapEnd()
9508
      oprot.writeFieldEnd()
9509
    oprot.writeFieldStop()
9510
    oprot.writeStructEnd()
9511
 
9512
  def validate(self):
9513
    return
9514
 
9515
 
9516
  def __repr__(self):
9517
    L = ['%s=%r' % (key, value)
9518
      for key, value in self.__dict__.iteritems()]
9519
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9520
 
9521
  def __eq__(self, other):
9522
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9523
 
9524
  def __ne__(self, other):
9525
    return not (self == other)
6531 vikram.rag 9526
 
9527
class getMonitoredWarehouseForVendors_args:
9528
  """
9529
  Attributes:
9530
   - vendorIds
9531
  """
9532
 
9533
  thrift_spec = (
9534
    None, # 0
9535
    (1, TType.LIST, 'vendorIds', (TType.I64,None), None, ), # 1
9536
  )
9537
 
9538
  def __init__(self, vendorIds=None,):
9539
    self.vendorIds = vendorIds
9540
 
9541
  def read(self, iprot):
9542
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9543
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9544
      return
9545
    iprot.readStructBegin()
9546
    while True:
9547
      (fname, ftype, fid) = iprot.readFieldBegin()
9548
      if ftype == TType.STOP:
9549
        break
9550
      if fid == 1:
9551
        if ftype == TType.LIST:
9552
          self.vendorIds = []
8182 amar.kumar 9553
          (_etype168, _size165) = iprot.readListBegin()
9554
          for _i169 in xrange(_size165):
9555
            _elem170 = iprot.readI64();
9556
            self.vendorIds.append(_elem170)
6531 vikram.rag 9557
          iprot.readListEnd()
9558
        else:
9559
          iprot.skip(ftype)
9560
      else:
9561
        iprot.skip(ftype)
9562
      iprot.readFieldEnd()
9563
    iprot.readStructEnd()
9564
 
9565
  def write(self, oprot):
9566
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9567
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9568
      return
9569
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_args')
9570
    if self.vendorIds is not None:
9571
      oprot.writeFieldBegin('vendorIds', TType.LIST, 1)
9572
      oprot.writeListBegin(TType.I64, len(self.vendorIds))
8182 amar.kumar 9573
      for iter171 in self.vendorIds:
9574
        oprot.writeI64(iter171)
6531 vikram.rag 9575
      oprot.writeListEnd()
9576
      oprot.writeFieldEnd()
9577
    oprot.writeFieldStop()
9578
    oprot.writeStructEnd()
9579
 
9580
  def validate(self):
9581
    return
9582
 
9583
 
9584
  def __repr__(self):
9585
    L = ['%s=%r' % (key, value)
9586
      for key, value in self.__dict__.iteritems()]
9587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9588
 
9589
  def __eq__(self, other):
9590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9591
 
9592
  def __ne__(self, other):
9593
    return not (self == other)
9594
 
9595
class getMonitoredWarehouseForVendors_result:
9596
  """
9597
  Attributes:
9598
   - success
9599
  """
9600
 
9601
  thrift_spec = (
9602
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9603
  )
9604
 
9605
  def __init__(self, success=None,):
9606
    self.success = success
9607
 
9608
  def read(self, iprot):
9609
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9610
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9611
      return
9612
    iprot.readStructBegin()
9613
    while True:
9614
      (fname, ftype, fid) = iprot.readFieldBegin()
9615
      if ftype == TType.STOP:
9616
        break
9617
      if fid == 0:
9618
        if ftype == TType.LIST:
9619
          self.success = []
8182 amar.kumar 9620
          (_etype175, _size172) = iprot.readListBegin()
9621
          for _i176 in xrange(_size172):
9622
            _elem177 = iprot.readI64();
9623
            self.success.append(_elem177)
6531 vikram.rag 9624
          iprot.readListEnd()
9625
        else:
9626
          iprot.skip(ftype)
9627
      else:
9628
        iprot.skip(ftype)
9629
      iprot.readFieldEnd()
9630
    iprot.readStructEnd()
9631
 
9632
  def write(self, oprot):
9633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9635
      return
9636
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_result')
9637
    if self.success is not None:
9638
      oprot.writeFieldBegin('success', TType.LIST, 0)
9639
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 9640
      for iter178 in self.success:
9641
        oprot.writeI64(iter178)
6531 vikram.rag 9642
      oprot.writeListEnd()
9643
      oprot.writeFieldEnd()
9644
    oprot.writeFieldStop()
9645
    oprot.writeStructEnd()
9646
 
9647
  def validate(self):
9648
    return
9649
 
9650
 
9651
  def __repr__(self):
9652
    L = ['%s=%r' % (key, value)
9653
      for key, value in self.__dict__.iteritems()]
9654
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9655
 
9656
  def __eq__(self, other):
9657
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9658
 
9659
  def __ne__(self, other):
9660
    return not (self == other)
9661
 
9662
class getIgnoredWarehouseidsAndItemids_args:
9663
 
9664
  thrift_spec = (
9665
  )
9666
 
9667
  def read(self, iprot):
9668
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9669
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9670
      return
9671
    iprot.readStructBegin()
9672
    while True:
9673
      (fname, ftype, fid) = iprot.readFieldBegin()
9674
      if ftype == TType.STOP:
9675
        break
9676
      else:
9677
        iprot.skip(ftype)
9678
      iprot.readFieldEnd()
9679
    iprot.readStructEnd()
9680
 
9681
  def write(self, oprot):
9682
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9683
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9684
      return
9685
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_args')
9686
    oprot.writeFieldStop()
9687
    oprot.writeStructEnd()
9688
 
9689
  def validate(self):
9690
    return
9691
 
9692
 
9693
  def __repr__(self):
9694
    L = ['%s=%r' % (key, value)
9695
      for key, value in self.__dict__.iteritems()]
9696
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9697
 
9698
  def __eq__(self, other):
9699
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9700
 
9701
  def __ne__(self, other):
9702
    return not (self == other)
9703
 
9704
class getIgnoredWarehouseidsAndItemids_result:
9705
  """
9706
  Attributes:
9707
   - success
9708
  """
9709
 
9710
  thrift_spec = (
9711
    (0, TType.LIST, 'success', (TType.STRUCT,(IgnoredInventoryUpdateItems, IgnoredInventoryUpdateItems.thrift_spec)), None, ), # 0
9712
  )
9713
 
9714
  def __init__(self, success=None,):
9715
    self.success = success
9716
 
9717
  def read(self, iprot):
9718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9720
      return
9721
    iprot.readStructBegin()
9722
    while True:
9723
      (fname, ftype, fid) = iprot.readFieldBegin()
9724
      if ftype == TType.STOP:
9725
        break
9726
      if fid == 0:
9727
        if ftype == TType.LIST:
9728
          self.success = []
8182 amar.kumar 9729
          (_etype182, _size179) = iprot.readListBegin()
9730
          for _i183 in xrange(_size179):
9731
            _elem184 = IgnoredInventoryUpdateItems()
9732
            _elem184.read(iprot)
9733
            self.success.append(_elem184)
6531 vikram.rag 9734
          iprot.readListEnd()
9735
        else:
9736
          iprot.skip(ftype)
9737
      else:
9738
        iprot.skip(ftype)
9739
      iprot.readFieldEnd()
9740
    iprot.readStructEnd()
9741
 
9742
  def write(self, oprot):
9743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9745
      return
9746
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_result')
9747
    if self.success is not None:
9748
      oprot.writeFieldBegin('success', TType.LIST, 0)
9749
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 9750
      for iter185 in self.success:
9751
        iter185.write(oprot)
6531 vikram.rag 9752
      oprot.writeListEnd()
9753
      oprot.writeFieldEnd()
9754
    oprot.writeFieldStop()
9755
    oprot.writeStructEnd()
9756
 
9757
  def validate(self):
9758
    return
9759
 
9760
 
9761
  def __repr__(self):
9762
    L = ['%s=%r' % (key, value)
9763
      for key, value in self.__dict__.iteritems()]
9764
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9765
 
9766
  def __eq__(self, other):
9767
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9768
 
9769
  def __ne__(self, other):
9770
    return not (self == other)
9771
 
9772
class insertItemtoIgnoreInventoryUpdatelist_args:
9773
  """
9774
  Attributes:
9775
   - item_id
9776
   - warehouse_id
9777
  """
9778
 
9779
  thrift_spec = (
9780
    None, # 0
9781
    (1, TType.I64, 'item_id', None, None, ), # 1
9782
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
9783
  )
9784
 
9785
  def __init__(self, item_id=None, warehouse_id=None,):
9786
    self.item_id = item_id
9787
    self.warehouse_id = warehouse_id
9788
 
9789
  def read(self, iprot):
9790
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9791
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9792
      return
9793
    iprot.readStructBegin()
9794
    while True:
9795
      (fname, ftype, fid) = iprot.readFieldBegin()
9796
      if ftype == TType.STOP:
9797
        break
9798
      if fid == 1:
9799
        if ftype == TType.I64:
9800
          self.item_id = iprot.readI64();
9801
        else:
9802
          iprot.skip(ftype)
9803
      elif fid == 2:
9804
        if ftype == TType.I64:
9805
          self.warehouse_id = iprot.readI64();
9806
        else:
9807
          iprot.skip(ftype)
9808
      else:
9809
        iprot.skip(ftype)
9810
      iprot.readFieldEnd()
9811
    iprot.readStructEnd()
9812
 
9813
  def write(self, oprot):
9814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9816
      return
9817
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_args')
9818
    if self.item_id is not None:
9819
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9820
      oprot.writeI64(self.item_id)
9821
      oprot.writeFieldEnd()
9822
    if self.warehouse_id is not None:
9823
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
9824
      oprot.writeI64(self.warehouse_id)
9825
      oprot.writeFieldEnd()
9826
    oprot.writeFieldStop()
9827
    oprot.writeStructEnd()
9828
 
9829
  def validate(self):
9830
    return
9831
 
9832
 
9833
  def __repr__(self):
9834
    L = ['%s=%r' % (key, value)
9835
      for key, value in self.__dict__.iteritems()]
9836
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9837
 
9838
  def __eq__(self, other):
9839
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9840
 
9841
  def __ne__(self, other):
9842
    return not (self == other)
9843
 
9844
class insertItemtoIgnoreInventoryUpdatelist_result:
9845
  """
9846
  Attributes:
9847
   - success
9848
  """
9849
 
9850
  thrift_spec = (
9851
    (0, TType.BOOL, 'success', None, None, ), # 0
9852
  )
9853
 
9854
  def __init__(self, success=None,):
9855
    self.success = success
9856
 
9857
  def read(self, iprot):
9858
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9859
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9860
      return
9861
    iprot.readStructBegin()
9862
    while True:
9863
      (fname, ftype, fid) = iprot.readFieldBegin()
9864
      if ftype == TType.STOP:
9865
        break
9866
      if fid == 0:
9867
        if ftype == TType.BOOL:
9868
          self.success = iprot.readBool();
9869
        else:
9870
          iprot.skip(ftype)
9871
      else:
9872
        iprot.skip(ftype)
9873
      iprot.readFieldEnd()
9874
    iprot.readStructEnd()
9875
 
9876
  def write(self, oprot):
9877
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9878
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9879
      return
9880
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_result')
9881
    if self.success is not None:
9882
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9883
      oprot.writeBool(self.success)
9884
      oprot.writeFieldEnd()
9885
    oprot.writeFieldStop()
9886
    oprot.writeStructEnd()
9887
 
9888
  def validate(self):
9889
    return
9890
 
9891
 
9892
  def __repr__(self):
9893
    L = ['%s=%r' % (key, value)
9894
      for key, value in self.__dict__.iteritems()]
9895
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9896
 
9897
  def __eq__(self, other):
9898
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9899
 
9900
  def __ne__(self, other):
9901
    return not (self == other)
9902
 
9903
class deleteItemFromIgnoredInventoryUpdateList_args:
9904
  """
9905
  Attributes:
9906
   - item_id
9907
   - warehouse_id
9908
  """
9909
 
9910
  thrift_spec = (
9911
    None, # 0
9912
    (1, TType.I64, 'item_id', None, None, ), # 1
9913
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
9914
  )
9915
 
9916
  def __init__(self, item_id=None, warehouse_id=None,):
9917
    self.item_id = item_id
9918
    self.warehouse_id = warehouse_id
9919
 
9920
  def read(self, iprot):
9921
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9922
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9923
      return
9924
    iprot.readStructBegin()
9925
    while True:
9926
      (fname, ftype, fid) = iprot.readFieldBegin()
9927
      if ftype == TType.STOP:
9928
        break
9929
      if fid == 1:
9930
        if ftype == TType.I64:
9931
          self.item_id = iprot.readI64();
9932
        else:
9933
          iprot.skip(ftype)
9934
      elif fid == 2:
9935
        if ftype == TType.I64:
9936
          self.warehouse_id = iprot.readI64();
9937
        else:
9938
          iprot.skip(ftype)
9939
      else:
9940
        iprot.skip(ftype)
9941
      iprot.readFieldEnd()
9942
    iprot.readStructEnd()
9943
 
9944
  def write(self, oprot):
9945
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9946
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9947
      return
9948
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_args')
9949
    if self.item_id is not None:
9950
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9951
      oprot.writeI64(self.item_id)
9952
      oprot.writeFieldEnd()
9953
    if self.warehouse_id is not None:
9954
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
9955
      oprot.writeI64(self.warehouse_id)
9956
      oprot.writeFieldEnd()
9957
    oprot.writeFieldStop()
9958
    oprot.writeStructEnd()
9959
 
9960
  def validate(self):
9961
    return
9962
 
9963
 
9964
  def __repr__(self):
9965
    L = ['%s=%r' % (key, value)
9966
      for key, value in self.__dict__.iteritems()]
9967
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9968
 
9969
  def __eq__(self, other):
9970
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9971
 
9972
  def __ne__(self, other):
9973
    return not (self == other)
9974
 
9975
class deleteItemFromIgnoredInventoryUpdateList_result:
9976
  """
9977
  Attributes:
9978
   - success
9979
  """
9980
 
9981
  thrift_spec = (
9982
    (0, TType.BOOL, 'success', None, None, ), # 0
9983
  )
9984
 
9985
  def __init__(self, success=None,):
9986
    self.success = success
9987
 
9988
  def read(self, iprot):
9989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9991
      return
9992
    iprot.readStructBegin()
9993
    while True:
9994
      (fname, ftype, fid) = iprot.readFieldBegin()
9995
      if ftype == TType.STOP:
9996
        break
9997
      if fid == 0:
9998
        if ftype == TType.BOOL:
9999
          self.success = iprot.readBool();
10000
        else:
10001
          iprot.skip(ftype)
10002
      else:
10003
        iprot.skip(ftype)
10004
      iprot.readFieldEnd()
10005
    iprot.readStructEnd()
10006
 
10007
  def write(self, oprot):
10008
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10009
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10010
      return
10011
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_result')
10012
    if self.success is not None:
10013
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10014
      oprot.writeBool(self.success)
10015
      oprot.writeFieldEnd()
10016
    oprot.writeFieldStop()
10017
    oprot.writeStructEnd()
10018
 
10019
  def validate(self):
10020
    return
10021
 
10022
 
10023
  def __repr__(self):
10024
    L = ['%s=%r' % (key, value)
10025
      for key, value in self.__dict__.iteritems()]
10026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10027
 
10028
  def __eq__(self, other):
10029
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10030
 
10031
  def __ne__(self, other):
10032
    return not (self == other)
10033
 
10034
class getAllIgnoredInventoryupdateItemsCount_args:
10035
 
10036
  thrift_spec = (
10037
  )
10038
 
10039
  def read(self, iprot):
10040
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10041
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10042
      return
10043
    iprot.readStructBegin()
10044
    while True:
10045
      (fname, ftype, fid) = iprot.readFieldBegin()
10046
      if ftype == TType.STOP:
10047
        break
10048
      else:
10049
        iprot.skip(ftype)
10050
      iprot.readFieldEnd()
10051
    iprot.readStructEnd()
10052
 
10053
  def write(self, oprot):
10054
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10055
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10056
      return
10057
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_args')
10058
    oprot.writeFieldStop()
10059
    oprot.writeStructEnd()
10060
 
10061
  def validate(self):
10062
    return
10063
 
10064
 
10065
  def __repr__(self):
10066
    L = ['%s=%r' % (key, value)
10067
      for key, value in self.__dict__.iteritems()]
10068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10069
 
10070
  def __eq__(self, other):
10071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10072
 
10073
  def __ne__(self, other):
10074
    return not (self == other)
10075
 
10076
class getAllIgnoredInventoryupdateItemsCount_result:
10077
  """
10078
  Attributes:
10079
   - success
10080
  """
10081
 
10082
  thrift_spec = (
10083
    (0, TType.I32, 'success', None, None, ), # 0
10084
  )
10085
 
10086
  def __init__(self, success=None,):
10087
    self.success = success
10088
 
10089
  def read(self, iprot):
10090
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10091
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10092
      return
10093
    iprot.readStructBegin()
10094
    while True:
10095
      (fname, ftype, fid) = iprot.readFieldBegin()
10096
      if ftype == TType.STOP:
10097
        break
10098
      if fid == 0:
10099
        if ftype == TType.I32:
10100
          self.success = iprot.readI32();
10101
        else:
10102
          iprot.skip(ftype)
10103
      else:
10104
        iprot.skip(ftype)
10105
      iprot.readFieldEnd()
10106
    iprot.readStructEnd()
10107
 
10108
  def write(self, oprot):
10109
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10110
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10111
      return
10112
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_result')
10113
    if self.success is not None:
10114
      oprot.writeFieldBegin('success', TType.I32, 0)
10115
      oprot.writeI32(self.success)
10116
      oprot.writeFieldEnd()
10117
    oprot.writeFieldStop()
10118
    oprot.writeStructEnd()
10119
 
10120
  def validate(self):
10121
    return
10122
 
10123
 
10124
  def __repr__(self):
10125
    L = ['%s=%r' % (key, value)
10126
      for key, value in self.__dict__.iteritems()]
10127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10128
 
10129
  def __eq__(self, other):
10130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10131
 
10132
  def __ne__(self, other):
10133
    return not (self == other)
10134
 
10135
class getIgnoredInventoryUpdateItemids_args:
10136
  """
10137
  Attributes:
10138
   - offset
10139
   - limit
10140
  """
10141
 
10142
  thrift_spec = (
10143
    None, # 0
10144
    (1, TType.I32, 'offset', None, None, ), # 1
10145
    (2, TType.I32, 'limit', None, None, ), # 2
10146
  )
10147
 
10148
  def __init__(self, offset=None, limit=None,):
10149
    self.offset = offset
10150
    self.limit = limit
10151
 
10152
  def read(self, iprot):
10153
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10154
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10155
      return
10156
    iprot.readStructBegin()
10157
    while True:
10158
      (fname, ftype, fid) = iprot.readFieldBegin()
10159
      if ftype == TType.STOP:
10160
        break
10161
      if fid == 1:
10162
        if ftype == TType.I32:
10163
          self.offset = iprot.readI32();
10164
        else:
10165
          iprot.skip(ftype)
10166
      elif fid == 2:
10167
        if ftype == TType.I32:
10168
          self.limit = iprot.readI32();
10169
        else:
10170
          iprot.skip(ftype)
10171
      else:
10172
        iprot.skip(ftype)
10173
      iprot.readFieldEnd()
10174
    iprot.readStructEnd()
10175
 
10176
  def write(self, oprot):
10177
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10178
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10179
      return
10180
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_args')
10181
    if self.offset is not None:
10182
      oprot.writeFieldBegin('offset', TType.I32, 1)
10183
      oprot.writeI32(self.offset)
10184
      oprot.writeFieldEnd()
10185
    if self.limit is not None:
10186
      oprot.writeFieldBegin('limit', TType.I32, 2)
10187
      oprot.writeI32(self.limit)
10188
      oprot.writeFieldEnd()
10189
    oprot.writeFieldStop()
10190
    oprot.writeStructEnd()
10191
 
10192
  def validate(self):
10193
    return
10194
 
10195
 
10196
  def __repr__(self):
10197
    L = ['%s=%r' % (key, value)
10198
      for key, value in self.__dict__.iteritems()]
10199
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10200
 
10201
  def __eq__(self, other):
10202
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10203
 
10204
  def __ne__(self, other):
10205
    return not (self == other)
10206
 
10207
class getIgnoredInventoryUpdateItemids_result:
10208
  """
10209
  Attributes:
10210
   - success
10211
  """
10212
 
10213
  thrift_spec = (
10214
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10215
  )
10216
 
10217
  def __init__(self, success=None,):
10218
    self.success = success
10219
 
10220
  def read(self, iprot):
10221
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10222
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10223
      return
10224
    iprot.readStructBegin()
10225
    while True:
10226
      (fname, ftype, fid) = iprot.readFieldBegin()
10227
      if ftype == TType.STOP:
10228
        break
10229
      if fid == 0:
10230
        if ftype == TType.LIST:
10231
          self.success = []
8182 amar.kumar 10232
          (_etype189, _size186) = iprot.readListBegin()
10233
          for _i190 in xrange(_size186):
10234
            _elem191 = iprot.readI64();
10235
            self.success.append(_elem191)
6531 vikram.rag 10236
          iprot.readListEnd()
10237
        else:
10238
          iprot.skip(ftype)
10239
      else:
10240
        iprot.skip(ftype)
10241
      iprot.readFieldEnd()
10242
    iprot.readStructEnd()
10243
 
10244
  def write(self, oprot):
10245
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10246
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10247
      return
10248
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_result')
10249
    if self.success is not None:
10250
      oprot.writeFieldBegin('success', TType.LIST, 0)
10251
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 10252
      for iter192 in self.success:
10253
        oprot.writeI64(iter192)
6531 vikram.rag 10254
      oprot.writeListEnd()
10255
      oprot.writeFieldEnd()
10256
    oprot.writeFieldStop()
10257
    oprot.writeStructEnd()
10258
 
10259
  def validate(self):
10260
    return
10261
 
10262
 
10263
  def __repr__(self):
10264
    L = ['%s=%r' % (key, value)
10265
      for key, value in self.__dict__.iteritems()]
10266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10267
 
10268
  def __eq__(self, other):
10269
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10270
 
10271
  def __ne__(self, other):
10272
    return not (self == other)
6821 amar.kumar 10273
 
10274
class updateItemStockPurchaseParams_args:
10275
  """
10276
  Attributes:
10277
   - item_id
10278
   - numOfDaysStock
10279
   - minStockLevel
10280
  """
10281
 
10282
  thrift_spec = (
10283
    None, # 0
10284
    (1, TType.I64, 'item_id', None, None, ), # 1
10285
    (2, TType.I32, 'numOfDaysStock', None, None, ), # 2
10286
    (3, TType.I64, 'minStockLevel', None, None, ), # 3
10287
  )
10288
 
10289
  def __init__(self, item_id=None, numOfDaysStock=None, minStockLevel=None,):
10290
    self.item_id = item_id
10291
    self.numOfDaysStock = numOfDaysStock
10292
    self.minStockLevel = minStockLevel
10293
 
10294
  def read(self, iprot):
10295
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10296
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10297
      return
10298
    iprot.readStructBegin()
10299
    while True:
10300
      (fname, ftype, fid) = iprot.readFieldBegin()
10301
      if ftype == TType.STOP:
10302
        break
10303
      if fid == 1:
10304
        if ftype == TType.I64:
10305
          self.item_id = iprot.readI64();
10306
        else:
10307
          iprot.skip(ftype)
10308
      elif fid == 2:
10309
        if ftype == TType.I32:
10310
          self.numOfDaysStock = iprot.readI32();
10311
        else:
10312
          iprot.skip(ftype)
10313
      elif fid == 3:
10314
        if ftype == TType.I64:
10315
          self.minStockLevel = iprot.readI64();
10316
        else:
10317
          iprot.skip(ftype)
10318
      else:
10319
        iprot.skip(ftype)
10320
      iprot.readFieldEnd()
10321
    iprot.readStructEnd()
10322
 
10323
  def write(self, oprot):
10324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10326
      return
10327
    oprot.writeStructBegin('updateItemStockPurchaseParams_args')
10328
    if self.item_id is not None:
10329
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10330
      oprot.writeI64(self.item_id)
10331
      oprot.writeFieldEnd()
10332
    if self.numOfDaysStock is not None:
10333
      oprot.writeFieldBegin('numOfDaysStock', TType.I32, 2)
10334
      oprot.writeI32(self.numOfDaysStock)
10335
      oprot.writeFieldEnd()
10336
    if self.minStockLevel is not None:
10337
      oprot.writeFieldBegin('minStockLevel', TType.I64, 3)
10338
      oprot.writeI64(self.minStockLevel)
10339
      oprot.writeFieldEnd()
10340
    oprot.writeFieldStop()
10341
    oprot.writeStructEnd()
10342
 
10343
  def validate(self):
10344
    return
10345
 
10346
 
10347
  def __repr__(self):
10348
    L = ['%s=%r' % (key, value)
10349
      for key, value in self.__dict__.iteritems()]
10350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10351
 
10352
  def __eq__(self, other):
10353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10354
 
10355
  def __ne__(self, other):
10356
    return not (self == other)
10357
 
10358
class updateItemStockPurchaseParams_result:
10359
 
10360
  thrift_spec = (
10361
  )
10362
 
10363
  def read(self, iprot):
10364
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10365
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10366
      return
10367
    iprot.readStructBegin()
10368
    while True:
10369
      (fname, ftype, fid) = iprot.readFieldBegin()
10370
      if ftype == TType.STOP:
10371
        break
10372
      else:
10373
        iprot.skip(ftype)
10374
      iprot.readFieldEnd()
10375
    iprot.readStructEnd()
10376
 
10377
  def write(self, oprot):
10378
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10379
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10380
      return
10381
    oprot.writeStructBegin('updateItemStockPurchaseParams_result')
10382
    oprot.writeFieldStop()
10383
    oprot.writeStructEnd()
10384
 
10385
  def validate(self):
10386
    return
10387
 
10388
 
10389
  def __repr__(self):
10390
    L = ['%s=%r' % (key, value)
10391
      for key, value in self.__dict__.iteritems()]
10392
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10393
 
10394
  def __eq__(self, other):
10395
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10396
 
10397
  def __ne__(self, other):
10398
    return not (self == other)
10399
 
10400
class getItemStockPurchaseParams_args:
10401
  """
10402
  Attributes:
10403
   - itemId
10404
  """
10405
 
10406
  thrift_spec = (
10407
    None, # 0
10408
    (1, TType.I64, 'itemId', None, None, ), # 1
10409
  )
10410
 
10411
  def __init__(self, itemId=None,):
10412
    self.itemId = itemId
10413
 
10414
  def read(self, iprot):
10415
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10416
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10417
      return
10418
    iprot.readStructBegin()
10419
    while True:
10420
      (fname, ftype, fid) = iprot.readFieldBegin()
10421
      if ftype == TType.STOP:
10422
        break
10423
      if fid == 1:
10424
        if ftype == TType.I64:
10425
          self.itemId = iprot.readI64();
10426
        else:
10427
          iprot.skip(ftype)
10428
      else:
10429
        iprot.skip(ftype)
10430
      iprot.readFieldEnd()
10431
    iprot.readStructEnd()
10432
 
10433
  def write(self, oprot):
10434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10436
      return
10437
    oprot.writeStructBegin('getItemStockPurchaseParams_args')
10438
    if self.itemId is not None:
10439
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10440
      oprot.writeI64(self.itemId)
10441
      oprot.writeFieldEnd()
10442
    oprot.writeFieldStop()
10443
    oprot.writeStructEnd()
10444
 
10445
  def validate(self):
10446
    return
10447
 
10448
 
10449
  def __repr__(self):
10450
    L = ['%s=%r' % (key, value)
10451
      for key, value in self.__dict__.iteritems()]
10452
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10453
 
10454
  def __eq__(self, other):
10455
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10456
 
10457
  def __ne__(self, other):
10458
    return not (self == other)
10459
 
10460
class getItemStockPurchaseParams_result:
10461
  """
10462
  Attributes:
10463
   - success
10464
  """
10465
 
10466
  thrift_spec = (
10467
    (0, TType.STRUCT, 'success', (ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec), None, ), # 0
10468
  )
10469
 
10470
  def __init__(self, success=None,):
10471
    self.success = success
10472
 
10473
  def read(self, iprot):
10474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10476
      return
10477
    iprot.readStructBegin()
10478
    while True:
10479
      (fname, ftype, fid) = iprot.readFieldBegin()
10480
      if ftype == TType.STOP:
10481
        break
10482
      if fid == 0:
10483
        if ftype == TType.STRUCT:
10484
          self.success = ItemStockPurchaseParams()
10485
          self.success.read(iprot)
10486
        else:
10487
          iprot.skip(ftype)
10488
      else:
10489
        iprot.skip(ftype)
10490
      iprot.readFieldEnd()
10491
    iprot.readStructEnd()
10492
 
10493
  def write(self, oprot):
10494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10496
      return
10497
    oprot.writeStructBegin('getItemStockPurchaseParams_result')
10498
    if self.success is not None:
10499
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10500
      self.success.write(oprot)
10501
      oprot.writeFieldEnd()
10502
    oprot.writeFieldStop()
10503
    oprot.writeStructEnd()
10504
 
10505
  def validate(self):
10506
    return
10507
 
10508
 
10509
  def __repr__(self):
10510
    L = ['%s=%r' % (key, value)
10511
      for key, value in self.__dict__.iteritems()]
10512
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10513
 
10514
  def __eq__(self, other):
10515
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10516
 
10517
  def __ne__(self, other):
10518
    return not (self == other)
10519
 
10520
class addOosStatusForItem_args:
10521
  """
10522
  Attributes:
10523
   - oosStatusMap
10524
   - date
10525
  """
10526
 
10527
  thrift_spec = (
10528
    None, # 0
10529
    (1, TType.MAP, 'oosStatusMap', (TType.I64,None,TType.BOOL,None), None, ), # 1
10530
    (2, TType.I64, 'date', None, None, ), # 2
10531
  )
10532
 
10533
  def __init__(self, oosStatusMap=None, date=None,):
10534
    self.oosStatusMap = oosStatusMap
10535
    self.date = date
10536
 
10537
  def read(self, iprot):
10538
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10539
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10540
      return
10541
    iprot.readStructBegin()
10542
    while True:
10543
      (fname, ftype, fid) = iprot.readFieldBegin()
10544
      if ftype == TType.STOP:
10545
        break
10546
      if fid == 1:
10547
        if ftype == TType.MAP:
10548
          self.oosStatusMap = {}
8182 amar.kumar 10549
          (_ktype194, _vtype195, _size193 ) = iprot.readMapBegin() 
10550
          for _i197 in xrange(_size193):
10551
            _key198 = iprot.readI64();
10552
            _val199 = iprot.readBool();
10553
            self.oosStatusMap[_key198] = _val199
6821 amar.kumar 10554
          iprot.readMapEnd()
10555
        else:
10556
          iprot.skip(ftype)
10557
      elif fid == 2:
10558
        if ftype == TType.I64:
10559
          self.date = iprot.readI64();
10560
        else:
10561
          iprot.skip(ftype)
10562
      else:
10563
        iprot.skip(ftype)
10564
      iprot.readFieldEnd()
10565
    iprot.readStructEnd()
10566
 
10567
  def write(self, oprot):
10568
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10569
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10570
      return
10571
    oprot.writeStructBegin('addOosStatusForItem_args')
10572
    if self.oosStatusMap is not None:
10573
      oprot.writeFieldBegin('oosStatusMap', TType.MAP, 1)
10574
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.oosStatusMap))
8182 amar.kumar 10575
      for kiter200,viter201 in self.oosStatusMap.items():
10576
        oprot.writeI64(kiter200)
10577
        oprot.writeBool(viter201)
6821 amar.kumar 10578
      oprot.writeMapEnd()
10579
      oprot.writeFieldEnd()
10580
    if self.date is not None:
10581
      oprot.writeFieldBegin('date', TType.I64, 2)
10582
      oprot.writeI64(self.date)
10583
      oprot.writeFieldEnd()
10584
    oprot.writeFieldStop()
10585
    oprot.writeStructEnd()
10586
 
10587
  def validate(self):
10588
    return
10589
 
10590
 
10591
  def __repr__(self):
10592
    L = ['%s=%r' % (key, value)
10593
      for key, value in self.__dict__.iteritems()]
10594
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10595
 
10596
  def __eq__(self, other):
10597
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10598
 
10599
  def __ne__(self, other):
10600
    return not (self == other)
10601
 
10602
class addOosStatusForItem_result:
10603
 
10604
  thrift_spec = (
10605
  )
10606
 
10607
  def read(self, iprot):
10608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10610
      return
10611
    iprot.readStructBegin()
10612
    while True:
10613
      (fname, ftype, fid) = iprot.readFieldBegin()
10614
      if ftype == TType.STOP:
10615
        break
10616
      else:
10617
        iprot.skip(ftype)
10618
      iprot.readFieldEnd()
10619
    iprot.readStructEnd()
10620
 
10621
  def write(self, oprot):
10622
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10623
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10624
      return
10625
    oprot.writeStructBegin('addOosStatusForItem_result')
10626
    oprot.writeFieldStop()
10627
    oprot.writeStructEnd()
10628
 
10629
  def validate(self):
10630
    return
10631
 
10632
 
10633
  def __repr__(self):
10634
    L = ['%s=%r' % (key, value)
10635
      for key, value in self.__dict__.iteritems()]
10636
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10637
 
10638
  def __eq__(self, other):
10639
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10640
 
10641
  def __ne__(self, other):
10642
    return not (self == other)
6832 amar.kumar 10643
 
10644
class getOosStatusesForXDaysForItem_args:
10645
  """
10646
  Attributes:
10647
   - itemId
9762 amar.kumar 10648
   - sourceId
6832 amar.kumar 10649
   - days
10650
  """
10651
 
10652
  thrift_spec = (
10653
    None, # 0
10654
    (1, TType.I64, 'itemId', None, None, ), # 1
9762 amar.kumar 10655
    (2, TType.I32, 'sourceId', None, None, ), # 2
10656
    (3, TType.I32, 'days', None, None, ), # 3
6832 amar.kumar 10657
  )
10658
 
9762 amar.kumar 10659
  def __init__(self, itemId=None, sourceId=None, days=None,):
6832 amar.kumar 10660
    self.itemId = itemId
9762 amar.kumar 10661
    self.sourceId = sourceId
6832 amar.kumar 10662
    self.days = days
10663
 
10664
  def read(self, iprot):
10665
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10666
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10667
      return
10668
    iprot.readStructBegin()
10669
    while True:
10670
      (fname, ftype, fid) = iprot.readFieldBegin()
10671
      if ftype == TType.STOP:
10672
        break
10673
      if fid == 1:
10674
        if ftype == TType.I64:
10675
          self.itemId = iprot.readI64();
10676
        else:
10677
          iprot.skip(ftype)
10678
      elif fid == 2:
10679
        if ftype == TType.I32:
9762 amar.kumar 10680
          self.sourceId = iprot.readI32();
10681
        else:
10682
          iprot.skip(ftype)
10683
      elif fid == 3:
10684
        if ftype == TType.I32:
6832 amar.kumar 10685
          self.days = iprot.readI32();
10686
        else:
10687
          iprot.skip(ftype)
10688
      else:
10689
        iprot.skip(ftype)
10690
      iprot.readFieldEnd()
10691
    iprot.readStructEnd()
10692
 
10693
  def write(self, oprot):
10694
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10695
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10696
      return
10697
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_args')
10698
    if self.itemId is not None:
10699
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10700
      oprot.writeI64(self.itemId)
10701
      oprot.writeFieldEnd()
9762 amar.kumar 10702
    if self.sourceId is not None:
10703
      oprot.writeFieldBegin('sourceId', TType.I32, 2)
10704
      oprot.writeI32(self.sourceId)
10705
      oprot.writeFieldEnd()
6832 amar.kumar 10706
    if self.days is not None:
9762 amar.kumar 10707
      oprot.writeFieldBegin('days', TType.I32, 3)
6832 amar.kumar 10708
      oprot.writeI32(self.days)
10709
      oprot.writeFieldEnd()
10710
    oprot.writeFieldStop()
10711
    oprot.writeStructEnd()
10712
 
10713
  def validate(self):
10714
    return
10715
 
10716
 
10717
  def __repr__(self):
10718
    L = ['%s=%r' % (key, value)
10719
      for key, value in self.__dict__.iteritems()]
10720
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10721
 
10722
  def __eq__(self, other):
10723
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10724
 
10725
  def __ne__(self, other):
10726
    return not (self == other)
10727
 
10728
class getOosStatusesForXDaysForItem_result:
10729
  """
10730
  Attributes:
10731
   - success
10732
  """
10733
 
10734
  thrift_spec = (
10735
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.thrift_spec)), None, ), # 0
10736
  )
10737
 
10738
  def __init__(self, success=None,):
10739
    self.success = success
10740
 
10741
  def read(self, iprot):
10742
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10743
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10744
      return
10745
    iprot.readStructBegin()
10746
    while True:
10747
      (fname, ftype, fid) = iprot.readFieldBegin()
10748
      if ftype == TType.STOP:
10749
        break
10750
      if fid == 0:
10751
        if ftype == TType.LIST:
10752
          self.success = []
8182 amar.kumar 10753
          (_etype205, _size202) = iprot.readListBegin()
10754
          for _i206 in xrange(_size202):
10755
            _elem207 = OOSStatus()
10756
            _elem207.read(iprot)
10757
            self.success.append(_elem207)
6832 amar.kumar 10758
          iprot.readListEnd()
10759
        else:
10760
          iprot.skip(ftype)
10761
      else:
10762
        iprot.skip(ftype)
10763
      iprot.readFieldEnd()
10764
    iprot.readStructEnd()
10765
 
10766
  def write(self, oprot):
10767
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10768
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10769
      return
10770
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_result')
10771
    if self.success is not None:
10772
      oprot.writeFieldBegin('success', TType.LIST, 0)
10773
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10774
      for iter208 in self.success:
10775
        iter208.write(oprot)
6832 amar.kumar 10776
      oprot.writeListEnd()
10777
      oprot.writeFieldEnd()
10778
    oprot.writeFieldStop()
10779
    oprot.writeStructEnd()
10780
 
10781
  def validate(self):
10782
    return
10783
 
10784
 
10785
  def __repr__(self):
10786
    L = ['%s=%r' % (key, value)
10787
      for key, value in self.__dict__.iteritems()]
10788
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10789
 
10790
  def __eq__(self, other):
10791
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10792
 
10793
  def __ne__(self, other):
10794
    return not (self == other)
6857 amar.kumar 10795
 
10126 amar.kumar 10796
class getOosStatusesForXDays_args:
10797
  """
10798
  Attributes:
10799
   - sourceId
10800
   - days
10801
  """
6857 amar.kumar 10802
 
10803
  thrift_spec = (
10126 amar.kumar 10804
    None, # 0
10805
    (1, TType.I32, 'sourceId', None, None, ), # 1
10806
    (2, TType.I32, 'days', None, None, ), # 2
6857 amar.kumar 10807
  )
10808
 
10126 amar.kumar 10809
  def __init__(self, sourceId=None, days=None,):
10810
    self.sourceId = sourceId
10811
    self.days = days
10812
 
6857 amar.kumar 10813
  def read(self, iprot):
10814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10816
      return
10817
    iprot.readStructBegin()
10818
    while True:
10819
      (fname, ftype, fid) = iprot.readFieldBegin()
10820
      if ftype == TType.STOP:
10821
        break
10126 amar.kumar 10822
      if fid == 1:
10823
        if ftype == TType.I32:
10824
          self.sourceId = iprot.readI32();
10825
        else:
10826
          iprot.skip(ftype)
10827
      elif fid == 2:
10828
        if ftype == TType.I32:
10829
          self.days = iprot.readI32();
10830
        else:
10831
          iprot.skip(ftype)
6857 amar.kumar 10832
      else:
10833
        iprot.skip(ftype)
10834
      iprot.readFieldEnd()
10835
    iprot.readStructEnd()
10836
 
10837
  def write(self, oprot):
10838
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10839
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10840
      return
10126 amar.kumar 10841
    oprot.writeStructBegin('getOosStatusesForXDays_args')
10842
    if self.sourceId is not None:
10843
      oprot.writeFieldBegin('sourceId', TType.I32, 1)
10844
      oprot.writeI32(self.sourceId)
10845
      oprot.writeFieldEnd()
10846
    if self.days is not None:
10847
      oprot.writeFieldBegin('days', TType.I32, 2)
10848
      oprot.writeI32(self.days)
10849
      oprot.writeFieldEnd()
6857 amar.kumar 10850
    oprot.writeFieldStop()
10851
    oprot.writeStructEnd()
10852
 
10853
  def validate(self):
10854
    return
10855
 
10856
 
10857
  def __repr__(self):
10858
    L = ['%s=%r' % (key, value)
10859
      for key, value in self.__dict__.iteritems()]
10860
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10861
 
10862
  def __eq__(self, other):
10863
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10864
 
10865
  def __ne__(self, other):
10866
    return not (self == other)
10867
 
10126 amar.kumar 10868
class getOosStatusesForXDays_result:
6857 amar.kumar 10869
  """
10870
  Attributes:
10871
   - success
10872
  """
10873
 
10874
  thrift_spec = (
10126 amar.kumar 10875
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.thrift_spec)), None, ), # 0
6857 amar.kumar 10876
  )
10877
 
10878
  def __init__(self, success=None,):
10879
    self.success = success
10880
 
10881
  def read(self, iprot):
10882
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10883
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10884
      return
10885
    iprot.readStructBegin()
10886
    while True:
10887
      (fname, ftype, fid) = iprot.readFieldBegin()
10888
      if ftype == TType.STOP:
10889
        break
10890
      if fid == 0:
10891
        if ftype == TType.LIST:
10892
          self.success = []
8182 amar.kumar 10893
          (_etype212, _size209) = iprot.readListBegin()
10894
          for _i213 in xrange(_size209):
10126 amar.kumar 10895
            _elem214 = OOSStatus()
8182 amar.kumar 10896
            _elem214.read(iprot)
10897
            self.success.append(_elem214)
6857 amar.kumar 10898
          iprot.readListEnd()
10899
        else:
10900
          iprot.skip(ftype)
10901
      else:
10902
        iprot.skip(ftype)
10903
      iprot.readFieldEnd()
10904
    iprot.readStructEnd()
10905
 
10906
  def write(self, oprot):
10907
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10908
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10909
      return
10126 amar.kumar 10910
    oprot.writeStructBegin('getOosStatusesForXDays_result')
6857 amar.kumar 10911
    if self.success is not None:
10912
      oprot.writeFieldBegin('success', TType.LIST, 0)
10913
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10914
      for iter215 in self.success:
10915
        iter215.write(oprot)
6857 amar.kumar 10916
      oprot.writeListEnd()
10917
      oprot.writeFieldEnd()
10918
    oprot.writeFieldStop()
10919
    oprot.writeStructEnd()
10920
 
10921
  def validate(self):
10922
    return
10923
 
10924
 
10925
  def __repr__(self):
10926
    L = ['%s=%r' % (key, value)
10927
      for key, value in self.__dict__.iteritems()]
10928
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10929
 
10930
  def __eq__(self, other):
10931
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10932
 
10933
  def __ne__(self, other):
10934
    return not (self == other)
7149 amar.kumar 10935
 
10126 amar.kumar 10936
class getAllVendorItemPricing_args:
10937
  """
10938
  Attributes:
10939
   - itemId
10940
   - vendorId
10941
  """
7149 amar.kumar 10942
 
10943
  thrift_spec = (
10126 amar.kumar 10944
    None, # 0
10945
    (1, TType.I64, 'itemId', None, None, ), # 1
10946
    (2, TType.I64, 'vendorId', None, None, ), # 2
7149 amar.kumar 10947
  )
10948
 
10126 amar.kumar 10949
  def __init__(self, itemId=None, vendorId=None,):
10950
    self.itemId = itemId
10951
    self.vendorId = vendorId
10952
 
7149 amar.kumar 10953
  def read(self, iprot):
10954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10956
      return
10957
    iprot.readStructBegin()
10958
    while True:
10959
      (fname, ftype, fid) = iprot.readFieldBegin()
10960
      if ftype == TType.STOP:
10961
        break
10126 amar.kumar 10962
      if fid == 1:
10963
        if ftype == TType.I64:
10964
          self.itemId = iprot.readI64();
10965
        else:
10966
          iprot.skip(ftype)
10967
      elif fid == 2:
10968
        if ftype == TType.I64:
10969
          self.vendorId = iprot.readI64();
10970
        else:
10971
          iprot.skip(ftype)
7149 amar.kumar 10972
      else:
10973
        iprot.skip(ftype)
10974
      iprot.readFieldEnd()
10975
    iprot.readStructEnd()
10976
 
10977
  def write(self, oprot):
10978
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10979
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10980
      return
10126 amar.kumar 10981
    oprot.writeStructBegin('getAllVendorItemPricing_args')
10982
    if self.itemId is not None:
10983
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10984
      oprot.writeI64(self.itemId)
10985
      oprot.writeFieldEnd()
10986
    if self.vendorId is not None:
10987
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
10988
      oprot.writeI64(self.vendorId)
10989
      oprot.writeFieldEnd()
7149 amar.kumar 10990
    oprot.writeFieldStop()
10991
    oprot.writeStructEnd()
10992
 
10993
  def validate(self):
10994
    return
10995
 
10996
 
10997
  def __repr__(self):
10998
    L = ['%s=%r' % (key, value)
10999
      for key, value in self.__dict__.iteritems()]
11000
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11001
 
11002
  def __eq__(self, other):
11003
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11004
 
11005
  def __ne__(self, other):
11006
    return not (self == other)
11007
 
10126 amar.kumar 11008
class getAllVendorItemPricing_result:
7149 amar.kumar 11009
  """
11010
  Attributes:
11011
   - success
11012
  """
11013
 
11014
  thrift_spec = (
10126 amar.kumar 11015
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
7149 amar.kumar 11016
  )
11017
 
11018
  def __init__(self, success=None,):
11019
    self.success = success
11020
 
11021
  def read(self, iprot):
11022
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11023
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11024
      return
11025
    iprot.readStructBegin()
11026
    while True:
11027
      (fname, ftype, fid) = iprot.readFieldBegin()
11028
      if ftype == TType.STOP:
11029
        break
11030
      if fid == 0:
11031
        if ftype == TType.LIST:
11032
          self.success = []
8182 amar.kumar 11033
          (_etype219, _size216) = iprot.readListBegin()
11034
          for _i220 in xrange(_size216):
10126 amar.kumar 11035
            _elem221 = VendorItemPricing()
8182 amar.kumar 11036
            _elem221.read(iprot)
11037
            self.success.append(_elem221)
7149 amar.kumar 11038
          iprot.readListEnd()
11039
        else:
11040
          iprot.skip(ftype)
11041
      else:
11042
        iprot.skip(ftype)
11043
      iprot.readFieldEnd()
11044
    iprot.readStructEnd()
11045
 
11046
  def write(self, oprot):
11047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11049
      return
10126 amar.kumar 11050
    oprot.writeStructBegin('getAllVendorItemPricing_result')
7149 amar.kumar 11051
    if self.success is not None:
11052
      oprot.writeFieldBegin('success', TType.LIST, 0)
11053
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 11054
      for iter222 in self.success:
11055
        iter222.write(oprot)
7149 amar.kumar 11056
      oprot.writeListEnd()
11057
      oprot.writeFieldEnd()
11058
    oprot.writeFieldStop()
11059
    oprot.writeStructEnd()
11060
 
11061
  def validate(self):
11062
    return
11063
 
11064
 
11065
  def __repr__(self):
11066
    L = ['%s=%r' % (key, value)
11067
      for key, value in self.__dict__.iteritems()]
11068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11069
 
11070
  def __eq__(self, other):
11071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11072
 
11073
  def __ne__(self, other):
11074
    return not (self == other)
7281 kshitij.so 11075
 
10126 amar.kumar 11076
class getNonZeroItemStockPurchaseParams_args:
11077
 
11078
  thrift_spec = (
11079
  )
11080
 
11081
  def read(self, iprot):
11082
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11083
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11084
      return
11085
    iprot.readStructBegin()
11086
    while True:
11087
      (fname, ftype, fid) = iprot.readFieldBegin()
11088
      if ftype == TType.STOP:
11089
        break
11090
      else:
11091
        iprot.skip(ftype)
11092
      iprot.readFieldEnd()
11093
    iprot.readStructEnd()
11094
 
11095
  def write(self, oprot):
11096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11098
      return
11099
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_args')
11100
    oprot.writeFieldStop()
11101
    oprot.writeStructEnd()
11102
 
11103
  def validate(self):
11104
    return
11105
 
11106
 
11107
  def __repr__(self):
11108
    L = ['%s=%r' % (key, value)
11109
      for key, value in self.__dict__.iteritems()]
11110
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11111
 
11112
  def __eq__(self, other):
11113
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11114
 
11115
  def __ne__(self, other):
11116
    return not (self == other)
11117
 
11118
class getNonZeroItemStockPurchaseParams_result:
11119
  """
11120
  Attributes:
11121
   - success
11122
  """
11123
 
11124
  thrift_spec = (
11125
    (0, TType.LIST, 'success', (TType.STRUCT,(ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec)), None, ), # 0
11126
  )
11127
 
11128
  def __init__(self, success=None,):
11129
    self.success = success
11130
 
11131
  def read(self, iprot):
11132
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11133
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11134
      return
11135
    iprot.readStructBegin()
11136
    while True:
11137
      (fname, ftype, fid) = iprot.readFieldBegin()
11138
      if ftype == TType.STOP:
11139
        break
11140
      if fid == 0:
11141
        if ftype == TType.LIST:
11142
          self.success = []
11143
          (_etype226, _size223) = iprot.readListBegin()
11144
          for _i227 in xrange(_size223):
11145
            _elem228 = ItemStockPurchaseParams()
11146
            _elem228.read(iprot)
11147
            self.success.append(_elem228)
11148
          iprot.readListEnd()
11149
        else:
11150
          iprot.skip(ftype)
11151
      else:
11152
        iprot.skip(ftype)
11153
      iprot.readFieldEnd()
11154
    iprot.readStructEnd()
11155
 
11156
  def write(self, oprot):
11157
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11158
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11159
      return
11160
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_result')
11161
    if self.success is not None:
11162
      oprot.writeFieldBegin('success', TType.LIST, 0)
11163
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11164
      for iter229 in self.success:
11165
        iter229.write(oprot)
11166
      oprot.writeListEnd()
11167
      oprot.writeFieldEnd()
11168
    oprot.writeFieldStop()
11169
    oprot.writeStructEnd()
11170
 
11171
  def validate(self):
11172
    return
11173
 
11174
 
11175
  def __repr__(self):
11176
    L = ['%s=%r' % (key, value)
11177
      for key, value in self.__dict__.iteritems()]
11178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11179
 
11180
  def __eq__(self, other):
11181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11182
 
11183
  def __ne__(self, other):
11184
    return not (self == other)
11185
 
11186
class getBillableInventoryAndPendingOrders_args:
11187
 
11188
  thrift_spec = (
11189
  )
11190
 
11191
  def read(self, iprot):
11192
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11193
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11194
      return
11195
    iprot.readStructBegin()
11196
    while True:
11197
      (fname, ftype, fid) = iprot.readFieldBegin()
11198
      if ftype == TType.STOP:
11199
        break
11200
      else:
11201
        iprot.skip(ftype)
11202
      iprot.readFieldEnd()
11203
    iprot.readStructEnd()
11204
 
11205
  def write(self, oprot):
11206
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11207
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11208
      return
11209
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_args')
11210
    oprot.writeFieldStop()
11211
    oprot.writeStructEnd()
11212
 
11213
  def validate(self):
11214
    return
11215
 
11216
 
11217
  def __repr__(self):
11218
    L = ['%s=%r' % (key, value)
11219
      for key, value in self.__dict__.iteritems()]
11220
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11221
 
11222
  def __eq__(self, other):
11223
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11224
 
11225
  def __ne__(self, other):
11226
    return not (self == other)
11227
 
11228
class getBillableInventoryAndPendingOrders_result:
11229
  """
11230
  Attributes:
11231
   - success
11232
  """
11233
 
11234
  thrift_spec = (
11235
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
11236
  )
11237
 
11238
  def __init__(self, success=None,):
11239
    self.success = success
11240
 
11241
  def read(self, iprot):
11242
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11243
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11244
      return
11245
    iprot.readStructBegin()
11246
    while True:
11247
      (fname, ftype, fid) = iprot.readFieldBegin()
11248
      if ftype == TType.STOP:
11249
        break
11250
      if fid == 0:
11251
        if ftype == TType.LIST:
11252
          self.success = []
11253
          (_etype233, _size230) = iprot.readListBegin()
11254
          for _i234 in xrange(_size230):
11255
            _elem235 = AvailableAndReservedStock()
11256
            _elem235.read(iprot)
11257
            self.success.append(_elem235)
11258
          iprot.readListEnd()
11259
        else:
11260
          iprot.skip(ftype)
11261
      else:
11262
        iprot.skip(ftype)
11263
      iprot.readFieldEnd()
11264
    iprot.readStructEnd()
11265
 
11266
  def write(self, oprot):
11267
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11268
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11269
      return
11270
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_result')
11271
    if self.success is not None:
11272
      oprot.writeFieldBegin('success', TType.LIST, 0)
11273
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11274
      for iter236 in self.success:
11275
        iter236.write(oprot)
11276
      oprot.writeListEnd()
11277
      oprot.writeFieldEnd()
11278
    oprot.writeFieldStop()
11279
    oprot.writeStructEnd()
11280
 
11281
  def validate(self):
11282
    return
11283
 
11284
 
11285
  def __repr__(self):
11286
    L = ['%s=%r' % (key, value)
11287
      for key, value in self.__dict__.iteritems()]
11288
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11289
 
11290
  def __eq__(self, other):
11291
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11292
 
11293
  def __ne__(self, other):
11294
    return not (self == other)
11295
 
7281 kshitij.so 11296
class getWarehouseName_args:
11297
  """
11298
  Attributes:
11299
   - warehouse_id
11300
  """
11301
 
11302
  thrift_spec = (
11303
    None, # 0
11304
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
11305
  )
11306
 
11307
  def __init__(self, warehouse_id=None,):
11308
    self.warehouse_id = warehouse_id
11309
 
11310
  def read(self, iprot):
11311
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11312
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11313
      return
11314
    iprot.readStructBegin()
11315
    while True:
11316
      (fname, ftype, fid) = iprot.readFieldBegin()
11317
      if ftype == TType.STOP:
11318
        break
11319
      if fid == 1:
11320
        if ftype == TType.I64:
11321
          self.warehouse_id = iprot.readI64();
11322
        else:
11323
          iprot.skip(ftype)
11324
      else:
11325
        iprot.skip(ftype)
11326
      iprot.readFieldEnd()
11327
    iprot.readStructEnd()
11328
 
11329
  def write(self, oprot):
11330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11332
      return
11333
    oprot.writeStructBegin('getWarehouseName_args')
11334
    if self.warehouse_id is not None:
11335
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
11336
      oprot.writeI64(self.warehouse_id)
11337
      oprot.writeFieldEnd()
11338
    oprot.writeFieldStop()
11339
    oprot.writeStructEnd()
11340
 
11341
  def validate(self):
11342
    return
11343
 
11344
 
11345
  def __repr__(self):
11346
    L = ['%s=%r' % (key, value)
11347
      for key, value in self.__dict__.iteritems()]
11348
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11349
 
11350
  def __eq__(self, other):
11351
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11352
 
11353
  def __ne__(self, other):
11354
    return not (self == other)
11355
 
11356
class getWarehouseName_result:
11357
  """
11358
  Attributes:
11359
   - success
11360
  """
11361
 
11362
  thrift_spec = (
11363
    (0, TType.STRING, 'success', None, None, ), # 0
11364
  )
11365
 
11366
  def __init__(self, success=None,):
11367
    self.success = success
11368
 
11369
  def read(self, iprot):
11370
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11371
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11372
      return
11373
    iprot.readStructBegin()
11374
    while True:
11375
      (fname, ftype, fid) = iprot.readFieldBegin()
11376
      if ftype == TType.STOP:
11377
        break
11378
      if fid == 0:
11379
        if ftype == TType.STRING:
11380
          self.success = iprot.readString();
11381
        else:
11382
          iprot.skip(ftype)
11383
      else:
11384
        iprot.skip(ftype)
11385
      iprot.readFieldEnd()
11386
    iprot.readStructEnd()
11387
 
11388
  def write(self, oprot):
11389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11391
      return
11392
    oprot.writeStructBegin('getWarehouseName_result')
11393
    if self.success is not None:
11394
      oprot.writeFieldBegin('success', TType.STRING, 0)
11395
      oprot.writeString(self.success)
11396
      oprot.writeFieldEnd()
11397
    oprot.writeFieldStop()
11398
    oprot.writeStructEnd()
11399
 
11400
  def validate(self):
11401
    return
11402
 
11403
 
11404
  def __repr__(self):
11405
    L = ['%s=%r' % (key, value)
11406
      for key, value in self.__dict__.iteritems()]
11407
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11408
 
11409
  def __eq__(self, other):
11410
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11411
 
11412
  def __ne__(self, other):
11413
    return not (self == other)
11414
 
11415
class getAmazonInventoryForItem_args:
11416
  """
11417
  Attributes:
11418
   - item_id
11419
  """
11420
 
11421
  thrift_spec = (
11422
    None, # 0
11423
    (1, TType.I64, 'item_id', None, None, ), # 1
11424
  )
11425
 
11426
  def __init__(self, item_id=None,):
11427
    self.item_id = item_id
11428
 
11429
  def read(self, iprot):
11430
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11431
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11432
      return
11433
    iprot.readStructBegin()
11434
    while True:
11435
      (fname, ftype, fid) = iprot.readFieldBegin()
11436
      if ftype == TType.STOP:
11437
        break
11438
      if fid == 1:
11439
        if ftype == TType.I64:
11440
          self.item_id = iprot.readI64();
11441
        else:
11442
          iprot.skip(ftype)
11443
      else:
11444
        iprot.skip(ftype)
11445
      iprot.readFieldEnd()
11446
    iprot.readStructEnd()
11447
 
11448
  def write(self, oprot):
11449
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11450
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11451
      return
11452
    oprot.writeStructBegin('getAmazonInventoryForItem_args')
11453
    if self.item_id is not None:
11454
      oprot.writeFieldBegin('item_id', TType.I64, 1)
11455
      oprot.writeI64(self.item_id)
11456
      oprot.writeFieldEnd()
11457
    oprot.writeFieldStop()
11458
    oprot.writeStructEnd()
11459
 
11460
  def validate(self):
11461
    return
11462
 
11463
 
11464
  def __repr__(self):
11465
    L = ['%s=%r' % (key, value)
11466
      for key, value in self.__dict__.iteritems()]
11467
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11468
 
11469
  def __eq__(self, other):
11470
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11471
 
11472
  def __ne__(self, other):
11473
    return not (self == other)
11474
 
11475
class getAmazonInventoryForItem_result:
11476
  """
11477
  Attributes:
11478
   - success
11479
  """
11480
 
11481
  thrift_spec = (
11482
    (0, TType.STRUCT, 'success', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 0
11483
  )
11484
 
11485
  def __init__(self, success=None,):
11486
    self.success = success
11487
 
11488
  def read(self, iprot):
11489
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11490
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11491
      return
11492
    iprot.readStructBegin()
11493
    while True:
11494
      (fname, ftype, fid) = iprot.readFieldBegin()
11495
      if ftype == TType.STOP:
11496
        break
11497
      if fid == 0:
11498
        if ftype == TType.STRUCT:
11499
          self.success = AmazonInventorySnapshot()
11500
          self.success.read(iprot)
11501
        else:
11502
          iprot.skip(ftype)
11503
      else:
11504
        iprot.skip(ftype)
11505
      iprot.readFieldEnd()
11506
    iprot.readStructEnd()
11507
 
11508
  def write(self, oprot):
11509
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11510
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11511
      return
11512
    oprot.writeStructBegin('getAmazonInventoryForItem_result')
11513
    if self.success is not None:
11514
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11515
      self.success.write(oprot)
11516
      oprot.writeFieldEnd()
11517
    oprot.writeFieldStop()
11518
    oprot.writeStructEnd()
11519
 
11520
  def validate(self):
11521
    return
11522
 
11523
 
11524
  def __repr__(self):
11525
    L = ['%s=%r' % (key, value)
11526
      for key, value in self.__dict__.iteritems()]
11527
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11528
 
11529
  def __eq__(self, other):
11530
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11531
 
11532
  def __ne__(self, other):
11533
    return not (self == other)
11534
 
11535
class getAllAmazonInventory_args:
11536
 
11537
  thrift_spec = (
11538
  )
11539
 
11540
  def read(self, iprot):
11541
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11542
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11543
      return
11544
    iprot.readStructBegin()
11545
    while True:
11546
      (fname, ftype, fid) = iprot.readFieldBegin()
11547
      if ftype == TType.STOP:
11548
        break
11549
      else:
11550
        iprot.skip(ftype)
11551
      iprot.readFieldEnd()
11552
    iprot.readStructEnd()
11553
 
11554
  def write(self, oprot):
11555
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11556
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11557
      return
11558
    oprot.writeStructBegin('getAllAmazonInventory_args')
11559
    oprot.writeFieldStop()
11560
    oprot.writeStructEnd()
11561
 
11562
  def validate(self):
11563
    return
11564
 
11565
 
11566
  def __repr__(self):
11567
    L = ['%s=%r' % (key, value)
11568
      for key, value in self.__dict__.iteritems()]
11569
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11570
 
11571
  def __eq__(self, other):
11572
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11573
 
11574
  def __ne__(self, other):
11575
    return not (self == other)
11576
 
11577
class getAllAmazonInventory_result:
11578
  """
11579
  Attributes:
11580
   - success
11581
  """
11582
 
11583
  thrift_spec = (
11584
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec)), None, ), # 0
11585
  )
11586
 
11587
  def __init__(self, success=None,):
11588
    self.success = success
11589
 
11590
  def read(self, iprot):
11591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11593
      return
11594
    iprot.readStructBegin()
11595
    while True:
11596
      (fname, ftype, fid) = iprot.readFieldBegin()
11597
      if ftype == TType.STOP:
11598
        break
11599
      if fid == 0:
11600
        if ftype == TType.LIST:
11601
          self.success = []
10126 amar.kumar 11602
          (_etype240, _size237) = iprot.readListBegin()
11603
          for _i241 in xrange(_size237):
11604
            _elem242 = AmazonInventorySnapshot()
11605
            _elem242.read(iprot)
11606
            self.success.append(_elem242)
7281 kshitij.so 11607
          iprot.readListEnd()
11608
        else:
11609
          iprot.skip(ftype)
11610
      else:
11611
        iprot.skip(ftype)
11612
      iprot.readFieldEnd()
11613
    iprot.readStructEnd()
11614
 
11615
  def write(self, oprot):
11616
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11617
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11618
      return
11619
    oprot.writeStructBegin('getAllAmazonInventory_result')
11620
    if self.success is not None:
11621
      oprot.writeFieldBegin('success', TType.LIST, 0)
11622
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10126 amar.kumar 11623
      for iter243 in self.success:
11624
        iter243.write(oprot)
7281 kshitij.so 11625
      oprot.writeListEnd()
11626
      oprot.writeFieldEnd()
11627
    oprot.writeFieldStop()
11628
    oprot.writeStructEnd()
11629
 
11630
  def validate(self):
11631
    return
11632
 
11633
 
11634
  def __repr__(self):
11635
    L = ['%s=%r' % (key, value)
11636
      for key, value in self.__dict__.iteritems()]
11637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11638
 
11639
  def __eq__(self, other):
11640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11641
 
11642
  def __ne__(self, other):
11643
    return not (self == other)
11644
 
11645
class addOrUpdateAmazonInventoryForItem_args:
11646
  """
11647
  Attributes:
11648
   - amazonInventorySnapshot
10450 vikram.rag 11649
   - time
7281 kshitij.so 11650
  """
11651
 
11652
  thrift_spec = (
11653
    None, # 0
11654
    (1, TType.STRUCT, 'amazonInventorySnapshot', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 1
10450 vikram.rag 11655
    (2, TType.I64, 'time', None, None, ), # 2
7281 kshitij.so 11656
  )
11657
 
10450 vikram.rag 11658
  def __init__(self, amazonInventorySnapshot=None, time=None,):
7281 kshitij.so 11659
    self.amazonInventorySnapshot = amazonInventorySnapshot
10450 vikram.rag 11660
    self.time = time
7281 kshitij.so 11661
 
11662
  def read(self, iprot):
11663
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11664
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11665
      return
11666
    iprot.readStructBegin()
11667
    while True:
11668
      (fname, ftype, fid) = iprot.readFieldBegin()
11669
      if ftype == TType.STOP:
11670
        break
11671
      if fid == 1:
11672
        if ftype == TType.STRUCT:
11673
          self.amazonInventorySnapshot = AmazonInventorySnapshot()
11674
          self.amazonInventorySnapshot.read(iprot)
11675
        else:
11676
          iprot.skip(ftype)
10450 vikram.rag 11677
      elif fid == 2:
11678
        if ftype == TType.I64:
11679
          self.time = iprot.readI64();
11680
        else:
11681
          iprot.skip(ftype)
7281 kshitij.so 11682
      else:
11683
        iprot.skip(ftype)
11684
      iprot.readFieldEnd()
11685
    iprot.readStructEnd()
11686
 
11687
  def write(self, oprot):
11688
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11689
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11690
      return
11691
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_args')
11692
    if self.amazonInventorySnapshot is not None:
11693
      oprot.writeFieldBegin('amazonInventorySnapshot', TType.STRUCT, 1)
11694
      self.amazonInventorySnapshot.write(oprot)
11695
      oprot.writeFieldEnd()
10450 vikram.rag 11696
    if self.time is not None:
11697
      oprot.writeFieldBegin('time', TType.I64, 2)
11698
      oprot.writeI64(self.time)
11699
      oprot.writeFieldEnd()
7281 kshitij.so 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 addOrUpdateAmazonInventoryForItem_result:
11719
 
11720
  thrift_spec = (
11721
  )
11722
 
11723
  def read(self, iprot):
11724
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11725
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11726
      return
11727
    iprot.readStructBegin()
11728
    while True:
11729
      (fname, ftype, fid) = iprot.readFieldBegin()
11730
      if ftype == TType.STOP:
11731
        break
11732
      else:
11733
        iprot.skip(ftype)
11734
      iprot.readFieldEnd()
11735
    iprot.readStructEnd()
11736
 
11737
  def write(self, oprot):
11738
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11739
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11740
      return
11741
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_result')
11742
    oprot.writeFieldStop()
11743
    oprot.writeStructEnd()
11744
 
11745
  def validate(self):
11746
    return
11747
 
11748
 
11749
  def __repr__(self):
11750
    L = ['%s=%r' % (key, value)
11751
      for key, value in self.__dict__.iteritems()]
11752
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11753
 
11754
  def __eq__(self, other):
11755
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11756
 
11757
  def __ne__(self, other):
11758
    return not (self == other)
7972 amar.kumar 11759
 
11760
class getLastNdaySaleForItem_args:
11761
  """
11762
  Attributes:
11763
   - itemId
11764
   - numberOfDays
11765
  """
11766
 
11767
  thrift_spec = (
11768
    None, # 0
11769
    (1, TType.I64, 'itemId', None, None, ), # 1
11770
    (2, TType.I64, 'numberOfDays', None, None, ), # 2
11771
  )
11772
 
11773
  def __init__(self, itemId=None, numberOfDays=None,):
11774
    self.itemId = itemId
11775
    self.numberOfDays = numberOfDays
11776
 
11777
  def read(self, iprot):
11778
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11779
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11780
      return
11781
    iprot.readStructBegin()
11782
    while True:
11783
      (fname, ftype, fid) = iprot.readFieldBegin()
11784
      if ftype == TType.STOP:
11785
        break
11786
      if fid == 1:
11787
        if ftype == TType.I64:
11788
          self.itemId = iprot.readI64();
11789
        else:
11790
          iprot.skip(ftype)
11791
      elif fid == 2:
11792
        if ftype == TType.I64:
11793
          self.numberOfDays = iprot.readI64();
11794
        else:
11795
          iprot.skip(ftype)
11796
      else:
11797
        iprot.skip(ftype)
11798
      iprot.readFieldEnd()
11799
    iprot.readStructEnd()
11800
 
11801
  def write(self, oprot):
11802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11804
      return
11805
    oprot.writeStructBegin('getLastNdaySaleForItem_args')
11806
    if self.itemId is not None:
11807
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11808
      oprot.writeI64(self.itemId)
11809
      oprot.writeFieldEnd()
11810
    if self.numberOfDays is not None:
11811
      oprot.writeFieldBegin('numberOfDays', TType.I64, 2)
11812
      oprot.writeI64(self.numberOfDays)
11813
      oprot.writeFieldEnd()
11814
    oprot.writeFieldStop()
11815
    oprot.writeStructEnd()
11816
 
11817
  def validate(self):
11818
    return
11819
 
11820
 
11821
  def __repr__(self):
11822
    L = ['%s=%r' % (key, value)
11823
      for key, value in self.__dict__.iteritems()]
11824
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11825
 
11826
  def __eq__(self, other):
11827
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11828
 
11829
  def __ne__(self, other):
11830
    return not (self == other)
11831
 
11832
class getLastNdaySaleForItem_result:
11833
  """
11834
  Attributes:
11835
   - success
11836
  """
11837
 
11838
  thrift_spec = (
11839
    (0, TType.STRING, 'success', None, None, ), # 0
11840
  )
11841
 
11842
  def __init__(self, success=None,):
11843
    self.success = success
11844
 
11845
  def read(self, iprot):
11846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11848
      return
11849
    iprot.readStructBegin()
11850
    while True:
11851
      (fname, ftype, fid) = iprot.readFieldBegin()
11852
      if ftype == TType.STOP:
11853
        break
11854
      if fid == 0:
11855
        if ftype == TType.STRING:
11856
          self.success = iprot.readString();
11857
        else:
11858
          iprot.skip(ftype)
11859
      else:
11860
        iprot.skip(ftype)
11861
      iprot.readFieldEnd()
11862
    iprot.readStructEnd()
11863
 
11864
  def write(self, oprot):
11865
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11866
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11867
      return
11868
    oprot.writeStructBegin('getLastNdaySaleForItem_result')
11869
    if self.success is not None:
11870
      oprot.writeFieldBegin('success', TType.STRING, 0)
11871
      oprot.writeString(self.success)
11872
      oprot.writeFieldEnd()
11873
    oprot.writeFieldStop()
11874
    oprot.writeStructEnd()
11875
 
11876
  def validate(self):
11877
    return
11878
 
11879
 
11880
  def __repr__(self):
11881
    L = ['%s=%r' % (key, value)
11882
      for key, value in self.__dict__.iteritems()]
11883
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11884
 
11885
  def __eq__(self, other):
11886
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11887
 
11888
  def __ne__(self, other):
11889
    return not (self == other)
8182 amar.kumar 11890
 
8282 kshitij.so 11891
class addOrUpdateAmazonFbaInventory_args:
11892
  """
11893
  Attributes:
11894
   - amazonfbainventorysnapshot
11895
  """
11896
 
11897
  thrift_spec = (
11898
    None, # 0
11899
    (1, TType.STRUCT, 'amazonfbainventorysnapshot', (AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec), None, ), # 1
11900
  )
11901
 
11902
  def __init__(self, amazonfbainventorysnapshot=None,):
11903
    self.amazonfbainventorysnapshot = amazonfbainventorysnapshot
11904
 
11905
  def read(self, iprot):
11906
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11907
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11908
      return
11909
    iprot.readStructBegin()
11910
    while True:
11911
      (fname, ftype, fid) = iprot.readFieldBegin()
11912
      if ftype == TType.STOP:
11913
        break
11914
      if fid == 1:
11915
        if ftype == TType.STRUCT:
11916
          self.amazonfbainventorysnapshot = AmazonFbaInventorySnapshot()
11917
          self.amazonfbainventorysnapshot.read(iprot)
11918
        else:
11919
          iprot.skip(ftype)
11920
      else:
11921
        iprot.skip(ftype)
11922
      iprot.readFieldEnd()
11923
    iprot.readStructEnd()
11924
 
11925
  def write(self, oprot):
11926
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11927
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11928
      return
11929
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_args')
11930
    if self.amazonfbainventorysnapshot is not None:
11931
      oprot.writeFieldBegin('amazonfbainventorysnapshot', TType.STRUCT, 1)
11932
      self.amazonfbainventorysnapshot.write(oprot)
11933
      oprot.writeFieldEnd()
11934
    oprot.writeFieldStop()
11935
    oprot.writeStructEnd()
11936
 
11937
  def validate(self):
11938
    return
11939
 
11940
 
11941
  def __repr__(self):
11942
    L = ['%s=%r' % (key, value)
11943
      for key, value in self.__dict__.iteritems()]
11944
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11945
 
11946
  def __eq__(self, other):
11947
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11948
 
11949
  def __ne__(self, other):
11950
    return not (self == other)
11951
 
11952
class addOrUpdateAmazonFbaInventory_result:
11953
 
11954
  thrift_spec = (
11955
  )
11956
 
11957
  def read(self, iprot):
11958
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11959
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11960
      return
11961
    iprot.readStructBegin()
11962
    while True:
11963
      (fname, ftype, fid) = iprot.readFieldBegin()
11964
      if ftype == TType.STOP:
11965
        break
11966
      else:
11967
        iprot.skip(ftype)
11968
      iprot.readFieldEnd()
11969
    iprot.readStructEnd()
11970
 
11971
  def write(self, oprot):
11972
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11973
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11974
      return
11975
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_result')
11976
    oprot.writeFieldStop()
11977
    oprot.writeStructEnd()
11978
 
11979
  def validate(self):
11980
    return
11981
 
11982
 
11983
  def __repr__(self):
11984
    L = ['%s=%r' % (key, value)
11985
      for key, value in self.__dict__.iteritems()]
11986
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11987
 
11988
  def __eq__(self, other):
11989
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11990
 
11991
  def __ne__(self, other):
11992
    return not (self == other)
11993
 
8182 amar.kumar 11994
class addUpdateHoldInventory_args:
11995
  """
11996
  Attributes:
11997
   - itemId
11998
   - warehouseId
11999
   - holdQuantity
12000
   - source
12001
  """
12002
 
12003
  thrift_spec = (
12004
    None, # 0
12005
    (1, TType.I64, 'itemId', None, None, ), # 1
12006
    (2, TType.I64, 'warehouseId', None, None, ), # 2
12007
    (3, TType.I64, 'holdQuantity', None, None, ), # 3
12008
    (4, TType.I64, 'source', None, None, ), # 4
12009
  )
12010
 
12011
  def __init__(self, itemId=None, warehouseId=None, holdQuantity=None, source=None,):
12012
    self.itemId = itemId
12013
    self.warehouseId = warehouseId
12014
    self.holdQuantity = holdQuantity
12015
    self.source = source
12016
 
12017
  def read(self, iprot):
12018
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12019
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12020
      return
12021
    iprot.readStructBegin()
12022
    while True:
12023
      (fname, ftype, fid) = iprot.readFieldBegin()
12024
      if ftype == TType.STOP:
12025
        break
12026
      if fid == 1:
12027
        if ftype == TType.I64:
12028
          self.itemId = iprot.readI64();
12029
        else:
12030
          iprot.skip(ftype)
12031
      elif fid == 2:
12032
        if ftype == TType.I64:
12033
          self.warehouseId = iprot.readI64();
12034
        else:
12035
          iprot.skip(ftype)
12036
      elif fid == 3:
12037
        if ftype == TType.I64:
12038
          self.holdQuantity = iprot.readI64();
12039
        else:
12040
          iprot.skip(ftype)
12041
      elif fid == 4:
12042
        if ftype == TType.I64:
12043
          self.source = iprot.readI64();
12044
        else:
12045
          iprot.skip(ftype)
12046
      else:
12047
        iprot.skip(ftype)
12048
      iprot.readFieldEnd()
12049
    iprot.readStructEnd()
12050
 
12051
  def write(self, oprot):
12052
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12053
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12054
      return
12055
    oprot.writeStructBegin('addUpdateHoldInventory_args')
12056
    if self.itemId is not None:
12057
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12058
      oprot.writeI64(self.itemId)
12059
      oprot.writeFieldEnd()
12060
    if self.warehouseId is not None:
12061
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
12062
      oprot.writeI64(self.warehouseId)
12063
      oprot.writeFieldEnd()
12064
    if self.holdQuantity is not None:
12065
      oprot.writeFieldBegin('holdQuantity', TType.I64, 3)
12066
      oprot.writeI64(self.holdQuantity)
12067
      oprot.writeFieldEnd()
12068
    if self.source is not None:
12069
      oprot.writeFieldBegin('source', TType.I64, 4)
12070
      oprot.writeI64(self.source)
12071
      oprot.writeFieldEnd()
12072
    oprot.writeFieldStop()
12073
    oprot.writeStructEnd()
12074
 
12075
  def validate(self):
12076
    return
12077
 
12078
 
12079
  def __repr__(self):
12080
    L = ['%s=%r' % (key, value)
12081
      for key, value in self.__dict__.iteritems()]
12082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12083
 
12084
  def __eq__(self, other):
12085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12086
 
12087
  def __ne__(self, other):
12088
    return not (self == other)
12089
 
12090
class addUpdateHoldInventory_result:
9762 amar.kumar 12091
  """
12092
  Attributes:
12093
   - cex
12094
  """
8182 amar.kumar 12095
 
12096
  thrift_spec = (
9762 amar.kumar 12097
    None, # 0
12098
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8182 amar.kumar 12099
  )
12100
 
9762 amar.kumar 12101
  def __init__(self, cex=None,):
12102
    self.cex = cex
12103
 
8182 amar.kumar 12104
  def read(self, iprot):
12105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12107
      return
12108
    iprot.readStructBegin()
12109
    while True:
12110
      (fname, ftype, fid) = iprot.readFieldBegin()
12111
      if ftype == TType.STOP:
12112
        break
9762 amar.kumar 12113
      if fid == 1:
12114
        if ftype == TType.STRUCT:
12115
          self.cex = InventoryServiceException()
12116
          self.cex.read(iprot)
12117
        else:
12118
          iprot.skip(ftype)
8182 amar.kumar 12119
      else:
12120
        iprot.skip(ftype)
12121
      iprot.readFieldEnd()
12122
    iprot.readStructEnd()
12123
 
12124
  def write(self, oprot):
12125
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12126
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12127
      return
12128
    oprot.writeStructBegin('addUpdateHoldInventory_result')
9762 amar.kumar 12129
    if self.cex is not None:
12130
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12131
      self.cex.write(oprot)
12132
      oprot.writeFieldEnd()
8182 amar.kumar 12133
    oprot.writeFieldStop()
12134
    oprot.writeStructEnd()
12135
 
12136
  def validate(self):
12137
    return
12138
 
12139
 
12140
  def __repr__(self):
12141
    L = ['%s=%r' % (key, value)
12142
      for key, value in self.__dict__.iteritems()]
12143
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12144
 
12145
  def __eq__(self, other):
12146
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12147
 
12148
  def __ne__(self, other):
12149
    return not (self == other)
8282 kshitij.so 12150
 
12151
class getAmazonFbaItemInventory_args:
12152
  """
12153
  Attributes:
12154
   - itemId
12155
  """
12156
 
12157
  thrift_spec = (
12158
    None, # 0
12159
    (1, TType.I64, 'itemId', None, None, ), # 1
12160
  )
12161
 
12162
  def __init__(self, itemId=None,):
12163
    self.itemId = itemId
12164
 
12165
  def read(self, iprot):
12166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12168
      return
12169
    iprot.readStructBegin()
12170
    while True:
12171
      (fname, ftype, fid) = iprot.readFieldBegin()
12172
      if ftype == TType.STOP:
12173
        break
12174
      if fid == 1:
12175
        if ftype == TType.I64:
12176
          self.itemId = iprot.readI64();
12177
        else:
12178
          iprot.skip(ftype)
12179
      else:
12180
        iprot.skip(ftype)
12181
      iprot.readFieldEnd()
12182
    iprot.readStructEnd()
12183
 
12184
  def write(self, oprot):
12185
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12186
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12187
      return
12188
    oprot.writeStructBegin('getAmazonFbaItemInventory_args')
12189
    if self.itemId is not None:
12190
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12191
      oprot.writeI64(self.itemId)
12192
      oprot.writeFieldEnd()
12193
    oprot.writeFieldStop()
12194
    oprot.writeStructEnd()
12195
 
12196
  def validate(self):
12197
    return
12198
 
12199
 
12200
  def __repr__(self):
12201
    L = ['%s=%r' % (key, value)
12202
      for key, value in self.__dict__.iteritems()]
12203
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12204
 
12205
  def __eq__(self, other):
12206
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12207
 
12208
  def __ne__(self, other):
12209
    return not (self == other)
12210
 
12211
class getAmazonFbaItemInventory_result:
12212
  """
12213
  Attributes:
12214
   - success
12215
  """
12216
 
12217
  thrift_spec = (
11173 vikram.rag 12218
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
8282 kshitij.so 12219
  )
12220
 
12221
  def __init__(self, success=None,):
12222
    self.success = success
12223
 
12224
  def read(self, iprot):
12225
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12226
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12227
      return
12228
    iprot.readStructBegin()
12229
    while True:
12230
      (fname, ftype, fid) = iprot.readFieldBegin()
12231
      if ftype == TType.STOP:
12232
        break
12233
      if fid == 0:
11173 vikram.rag 12234
        if ftype == TType.LIST:
12235
          self.success = []
12236
          (_etype247, _size244) = iprot.readListBegin()
12237
          for _i248 in xrange(_size244):
12238
            _elem249 = AmazonFbaInventorySnapshot()
12239
            _elem249.read(iprot)
12240
            self.success.append(_elem249)
12241
          iprot.readListEnd()
8282 kshitij.so 12242
        else:
12243
          iprot.skip(ftype)
12244
      else:
12245
        iprot.skip(ftype)
12246
      iprot.readFieldEnd()
12247
    iprot.readStructEnd()
12248
 
12249
  def write(self, oprot):
12250
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12251
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12252
      return
12253
    oprot.writeStructBegin('getAmazonFbaItemInventory_result')
12254
    if self.success is not None:
11173 vikram.rag 12255
      oprot.writeFieldBegin('success', TType.LIST, 0)
12256
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12257
      for iter250 in self.success:
12258
        iter250.write(oprot)
12259
      oprot.writeListEnd()
8282 kshitij.so 12260
      oprot.writeFieldEnd()
12261
    oprot.writeFieldStop()
12262
    oprot.writeStructEnd()
12263
 
12264
  def validate(self):
12265
    return
12266
 
12267
 
12268
  def __repr__(self):
12269
    L = ['%s=%r' % (key, value)
12270
      for key, value in self.__dict__.iteritems()]
12271
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12272
 
12273
  def __eq__(self, other):
12274
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12275
 
12276
  def __ne__(self, other):
12277
    return not (self == other)
12278
 
8363 vikram.rag 12279
class getAllAmazonFbaItemInventory_args:
8282 kshitij.so 12280
 
12281
  thrift_spec = (
12282
  )
12283
 
12284
  def read(self, iprot):
12285
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12286
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12287
      return
12288
    iprot.readStructBegin()
12289
    while True:
12290
      (fname, ftype, fid) = iprot.readFieldBegin()
12291
      if ftype == TType.STOP:
12292
        break
12293
      else:
12294
        iprot.skip(ftype)
12295
      iprot.readFieldEnd()
12296
    iprot.readStructEnd()
12297
 
12298
  def write(self, oprot):
12299
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12300
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12301
      return
8363 vikram.rag 12302
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_args')
8282 kshitij.so 12303
    oprot.writeFieldStop()
12304
    oprot.writeStructEnd()
12305
 
12306
  def validate(self):
12307
    return
12308
 
12309
 
12310
  def __repr__(self):
12311
    L = ['%s=%r' % (key, value)
12312
      for key, value in self.__dict__.iteritems()]
12313
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12314
 
12315
  def __eq__(self, other):
12316
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12317
 
12318
  def __ne__(self, other):
12319
    return not (self == other)
12320
 
8363 vikram.rag 12321
class getAllAmazonFbaItemInventory_result:
8282 kshitij.so 12322
  """
12323
  Attributes:
12324
   - success
12325
  """
12326
 
12327
  thrift_spec = (
12328
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
12329
  )
12330
 
12331
  def __init__(self, success=None,):
12332
    self.success = success
12333
 
12334
  def read(self, iprot):
12335
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12336
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12337
      return
12338
    iprot.readStructBegin()
12339
    while True:
12340
      (fname, ftype, fid) = iprot.readFieldBegin()
12341
      if ftype == TType.STOP:
12342
        break
12343
      if fid == 0:
12344
        if ftype == TType.LIST:
12345
          self.success = []
11173 vikram.rag 12346
          (_etype254, _size251) = iprot.readListBegin()
12347
          for _i255 in xrange(_size251):
12348
            _elem256 = AmazonFbaInventorySnapshot()
12349
            _elem256.read(iprot)
12350
            self.success.append(_elem256)
8282 kshitij.so 12351
          iprot.readListEnd()
12352
        else:
12353
          iprot.skip(ftype)
12354
      else:
12355
        iprot.skip(ftype)
12356
      iprot.readFieldEnd()
12357
    iprot.readStructEnd()
12358
 
12359
  def write(self, oprot):
12360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12362
      return
8363 vikram.rag 12363
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_result')
8282 kshitij.so 12364
    if self.success is not None:
12365
      oprot.writeFieldBegin('success', TType.LIST, 0)
12366
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 12367
      for iter257 in self.success:
12368
        iter257.write(oprot)
8282 kshitij.so 12369
      oprot.writeListEnd()
12370
      oprot.writeFieldEnd()
12371
    oprot.writeFieldStop()
12372
    oprot.writeStructEnd()
12373
 
12374
  def validate(self):
12375
    return
12376
 
12377
 
12378
  def __repr__(self):
12379
    L = ['%s=%r' % (key, value)
12380
      for key, value in self.__dict__.iteritems()]
12381
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12382
 
12383
  def __eq__(self, other):
12384
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12385
 
12386
  def __ne__(self, other):
12387
    return not (self == other)
8363 vikram.rag 12388
 
12389
class getOursGoodWarehouseIdsForLocation_args:
12390
  """
12391
  Attributes:
12392
   - state_id
12393
  """
12394
 
12395
  thrift_spec = (
12396
    None, # 0
12397
    (1, TType.I64, 'state_id', None, None, ), # 1
12398
  )
12399
 
12400
  def __init__(self, state_id=None,):
12401
    self.state_id = state_id
12402
 
12403
  def read(self, iprot):
12404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12406
      return
12407
    iprot.readStructBegin()
12408
    while True:
12409
      (fname, ftype, fid) = iprot.readFieldBegin()
12410
      if ftype == TType.STOP:
12411
        break
12412
      if fid == 1:
12413
        if ftype == TType.I64:
12414
          self.state_id = iprot.readI64();
12415
        else:
12416
          iprot.skip(ftype)
12417
      else:
12418
        iprot.skip(ftype)
12419
      iprot.readFieldEnd()
12420
    iprot.readStructEnd()
12421
 
12422
  def write(self, oprot):
12423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12425
      return
12426
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_args')
12427
    if self.state_id is not None:
12428
      oprot.writeFieldBegin('state_id', TType.I64, 1)
12429
      oprot.writeI64(self.state_id)
12430
      oprot.writeFieldEnd()
12431
    oprot.writeFieldStop()
12432
    oprot.writeStructEnd()
12433
 
12434
  def validate(self):
12435
    return
12436
 
12437
 
12438
  def __repr__(self):
12439
    L = ['%s=%r' % (key, value)
12440
      for key, value in self.__dict__.iteritems()]
12441
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12442
 
12443
  def __eq__(self, other):
12444
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12445
 
12446
  def __ne__(self, other):
12447
    return not (self == other)
12448
 
12449
class getOursGoodWarehouseIdsForLocation_result:
12450
  """
12451
  Attributes:
12452
   - success
12453
  """
12454
 
12455
  thrift_spec = (
12456
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12457
  )
12458
 
12459
  def __init__(self, success=None,):
12460
    self.success = success
12461
 
12462
  def read(self, iprot):
12463
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12464
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12465
      return
12466
    iprot.readStructBegin()
12467
    while True:
12468
      (fname, ftype, fid) = iprot.readFieldBegin()
12469
      if ftype == TType.STOP:
12470
        break
12471
      if fid == 0:
12472
        if ftype == TType.LIST:
12473
          self.success = []
11173 vikram.rag 12474
          (_etype261, _size258) = iprot.readListBegin()
12475
          for _i262 in xrange(_size258):
12476
            _elem263 = iprot.readI64();
12477
            self.success.append(_elem263)
8363 vikram.rag 12478
          iprot.readListEnd()
12479
        else:
12480
          iprot.skip(ftype)
12481
      else:
12482
        iprot.skip(ftype)
12483
      iprot.readFieldEnd()
12484
    iprot.readStructEnd()
12485
 
12486
  def write(self, oprot):
12487
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12488
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12489
      return
12490
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_result')
12491
    if self.success is not None:
12492
      oprot.writeFieldBegin('success', TType.LIST, 0)
12493
      oprot.writeListBegin(TType.I64, len(self.success))
11173 vikram.rag 12494
      for iter264 in self.success:
12495
        oprot.writeI64(iter264)
8363 vikram.rag 12496
      oprot.writeListEnd()
12497
      oprot.writeFieldEnd()
12498
    oprot.writeFieldStop()
12499
    oprot.writeStructEnd()
12500
 
12501
  def validate(self):
12502
    return
12503
 
12504
 
12505
  def __repr__(self):
12506
    L = ['%s=%r' % (key, value)
12507
      for key, value in self.__dict__.iteritems()]
12508
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12509
 
12510
  def __eq__(self, other):
12511
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12512
 
12513
  def __ne__(self, other):
12514
    return not (self == other)
8955 vikram.rag 12515
 
12516
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_args:
12517
  """
12518
  Attributes:
12519
   - id
12520
   - warehouse_id
12521
   - source
12522
  """
12523
 
12524
  thrift_spec = (
12525
    None, # 0
12526
    (1, TType.I64, 'id', None, None, ), # 1
12527
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
12528
    (3, TType.I64, 'source', None, None, ), # 3
12529
  )
12530
 
12531
  def __init__(self, id=None, warehouse_id=None, source=None,):
12532
    self.id = id
12533
    self.warehouse_id = warehouse_id
12534
    self.source = source
12535
 
12536
  def read(self, iprot):
12537
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12538
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12539
      return
12540
    iprot.readStructBegin()
12541
    while True:
12542
      (fname, ftype, fid) = iprot.readFieldBegin()
12543
      if ftype == TType.STOP:
12544
        break
12545
      if fid == 1:
12546
        if ftype == TType.I64:
12547
          self.id = iprot.readI64();
12548
        else:
12549
          iprot.skip(ftype)
12550
      elif fid == 2:
12551
        if ftype == TType.I64:
12552
          self.warehouse_id = iprot.readI64();
12553
        else:
12554
          iprot.skip(ftype)
12555
      elif fid == 3:
12556
        if ftype == TType.I64:
12557
          self.source = iprot.readI64();
12558
        else:
12559
          iprot.skip(ftype)
12560
      else:
12561
        iprot.skip(ftype)
12562
      iprot.readFieldEnd()
12563
    iprot.readStructEnd()
12564
 
12565
  def write(self, oprot):
12566
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12567
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12568
      return
12569
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_args')
12570
    if self.id is not None:
12571
      oprot.writeFieldBegin('id', TType.I64, 1)
12572
      oprot.writeI64(self.id)
12573
      oprot.writeFieldEnd()
12574
    if self.warehouse_id is not None:
12575
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
12576
      oprot.writeI64(self.warehouse_id)
12577
      oprot.writeFieldEnd()
12578
    if self.source is not None:
12579
      oprot.writeFieldBegin('source', TType.I64, 3)
12580
      oprot.writeI64(self.source)
12581
      oprot.writeFieldEnd()
12582
    oprot.writeFieldStop()
12583
    oprot.writeStructEnd()
12584
 
12585
  def validate(self):
12586
    return
12587
 
12588
 
12589
  def __repr__(self):
12590
    L = ['%s=%r' % (key, value)
12591
      for key, value in self.__dict__.iteritems()]
12592
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12593
 
12594
  def __eq__(self, other):
12595
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12596
 
12597
  def __ne__(self, other):
12598
    return not (self == other)
12599
 
12600
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_result:
12601
  """
12602
  Attributes:
12603
   - success
12604
  """
12605
 
12606
  thrift_spec = (
12607
    (0, TType.I64, 'success', None, None, ), # 0
12608
  )
12609
 
12610
  def __init__(self, success=None,):
12611
    self.success = success
12612
 
12613
  def read(self, iprot):
12614
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12615
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12616
      return
12617
    iprot.readStructBegin()
12618
    while True:
12619
      (fname, ftype, fid) = iprot.readFieldBegin()
12620
      if ftype == TType.STOP:
12621
        break
12622
      if fid == 0:
12623
        if ftype == TType.I64:
12624
          self.success = iprot.readI64();
12625
        else:
12626
          iprot.skip(ftype)
12627
      else:
12628
        iprot.skip(ftype)
12629
      iprot.readFieldEnd()
12630
    iprot.readStructEnd()
12631
 
12632
  def write(self, oprot):
12633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12635
      return
12636
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_result')
12637
    if self.success is not None:
12638
      oprot.writeFieldBegin('success', TType.I64, 0)
12639
      oprot.writeI64(self.success)
12640
      oprot.writeFieldEnd()
12641
    oprot.writeFieldStop()
12642
    oprot.writeStructEnd()
12643
 
12644
  def validate(self):
12645
    return
12646
 
12647
 
12648
  def __repr__(self):
12649
    L = ['%s=%r' % (key, value)
12650
      for key, value in self.__dict__.iteritems()]
12651
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12652
 
12653
  def __eq__(self, other):
12654
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12655
 
12656
  def __ne__(self, other):
12657
    return not (self == other)
9404 vikram.rag 12658
 
12659
class getSnapdealInventoryForItem_args:
12660
  """
12661
  Attributes:
12662
   - item_id
12663
  """
12664
 
12665
  thrift_spec = (
12666
    None, # 0
12667
    (1, TType.I64, 'item_id', None, None, ), # 1
12668
  )
12669
 
12670
  def __init__(self, item_id=None,):
12671
    self.item_id = item_id
12672
 
12673
  def read(self, iprot):
12674
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12675
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12676
      return
12677
    iprot.readStructBegin()
12678
    while True:
12679
      (fname, ftype, fid) = iprot.readFieldBegin()
12680
      if ftype == TType.STOP:
12681
        break
12682
      if fid == 1:
12683
        if ftype == TType.I64:
12684
          self.item_id = iprot.readI64();
12685
        else:
12686
          iprot.skip(ftype)
12687
      else:
12688
        iprot.skip(ftype)
12689
      iprot.readFieldEnd()
12690
    iprot.readStructEnd()
12691
 
12692
  def write(self, oprot):
12693
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12694
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12695
      return
12696
    oprot.writeStructBegin('getSnapdealInventoryForItem_args')
12697
    if self.item_id is not None:
12698
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12699
      oprot.writeI64(self.item_id)
12700
      oprot.writeFieldEnd()
12701
    oprot.writeFieldStop()
12702
    oprot.writeStructEnd()
12703
 
12704
  def validate(self):
12705
    return
12706
 
12707
 
12708
  def __repr__(self):
12709
    L = ['%s=%r' % (key, value)
12710
      for key, value in self.__dict__.iteritems()]
12711
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12712
 
12713
  def __eq__(self, other):
12714
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12715
 
12716
  def __ne__(self, other):
12717
    return not (self == other)
12718
 
12719
class getSnapdealInventoryForItem_result:
12720
  """
12721
  Attributes:
12722
   - success
12723
  """
12724
 
12725
  thrift_spec = (
12726
    (0, TType.STRUCT, 'success', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 0
12727
  )
12728
 
12729
  def __init__(self, success=None,):
12730
    self.success = success
12731
 
12732
  def read(self, iprot):
12733
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12734
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12735
      return
12736
    iprot.readStructBegin()
12737
    while True:
12738
      (fname, ftype, fid) = iprot.readFieldBegin()
12739
      if ftype == TType.STOP:
12740
        break
12741
      if fid == 0:
12742
        if ftype == TType.STRUCT:
12743
          self.success = SnapdealInventoryItem()
12744
          self.success.read(iprot)
12745
        else:
12746
          iprot.skip(ftype)
12747
      else:
12748
        iprot.skip(ftype)
12749
      iprot.readFieldEnd()
12750
    iprot.readStructEnd()
12751
 
12752
  def write(self, oprot):
12753
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12754
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12755
      return
12756
    oprot.writeStructBegin('getSnapdealInventoryForItem_result')
12757
    if self.success is not None:
12758
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12759
      self.success.write(oprot)
12760
      oprot.writeFieldEnd()
12761
    oprot.writeFieldStop()
12762
    oprot.writeStructEnd()
12763
 
12764
  def validate(self):
12765
    return
12766
 
12767
 
12768
  def __repr__(self):
12769
    L = ['%s=%r' % (key, value)
12770
      for key, value in self.__dict__.iteritems()]
12771
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12772
 
12773
  def __eq__(self, other):
12774
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12775
 
12776
  def __ne__(self, other):
12777
    return not (self == other)
12778
 
12779
class addOrUpdateSnapdealInventoryForItem_args:
12780
  """
12781
  Attributes:
12782
   - snapdealinventoryitem
12783
  """
12784
 
12785
  thrift_spec = (
12786
    None, # 0
12787
    (1, TType.STRUCT, 'snapdealinventoryitem', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 1
12788
  )
12789
 
12790
  def __init__(self, snapdealinventoryitem=None,):
12791
    self.snapdealinventoryitem = snapdealinventoryitem
12792
 
12793
  def read(self, iprot):
12794
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12795
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12796
      return
12797
    iprot.readStructBegin()
12798
    while True:
12799
      (fname, ftype, fid) = iprot.readFieldBegin()
12800
      if ftype == TType.STOP:
12801
        break
12802
      if fid == 1:
12803
        if ftype == TType.STRUCT:
12804
          self.snapdealinventoryitem = SnapdealInventoryItem()
12805
          self.snapdealinventoryitem.read(iprot)
12806
        else:
12807
          iprot.skip(ftype)
12808
      else:
12809
        iprot.skip(ftype)
12810
      iprot.readFieldEnd()
12811
    iprot.readStructEnd()
12812
 
12813
  def write(self, oprot):
12814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12816
      return
12817
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_args')
12818
    if self.snapdealinventoryitem is not None:
12819
      oprot.writeFieldBegin('snapdealinventoryitem', TType.STRUCT, 1)
12820
      self.snapdealinventoryitem.write(oprot)
12821
      oprot.writeFieldEnd()
12822
    oprot.writeFieldStop()
12823
    oprot.writeStructEnd()
12824
 
12825
  def validate(self):
12826
    return
12827
 
12828
 
12829
  def __repr__(self):
12830
    L = ['%s=%r' % (key, value)
12831
      for key, value in self.__dict__.iteritems()]
12832
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12833
 
12834
  def __eq__(self, other):
12835
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12836
 
12837
  def __ne__(self, other):
12838
    return not (self == other)
12839
 
12840
class addOrUpdateSnapdealInventoryForItem_result:
12841
 
12842
  thrift_spec = (
12843
  )
12844
 
12845
  def read(self, iprot):
12846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12848
      return
12849
    iprot.readStructBegin()
12850
    while True:
12851
      (fname, ftype, fid) = iprot.readFieldBegin()
12852
      if ftype == TType.STOP:
12853
        break
12854
      else:
12855
        iprot.skip(ftype)
12856
      iprot.readFieldEnd()
12857
    iprot.readStructEnd()
12858
 
12859
  def write(self, oprot):
12860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12862
      return
12863
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_result')
12864
    oprot.writeFieldStop()
12865
    oprot.writeStructEnd()
12866
 
12867
  def validate(self):
12868
    return
12869
 
12870
 
12871
  def __repr__(self):
12872
    L = ['%s=%r' % (key, value)
12873
      for key, value in self.__dict__.iteritems()]
12874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12875
 
12876
  def __eq__(self, other):
12877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12878
 
12879
  def __ne__(self, other):
12880
    return not (self == other)
12881
 
12882
class getNlcForWarehouse_args:
12883
  """
12884
  Attributes:
12885
   - warehouse_id
12886
   - item_id
12887
  """
12888
 
12889
  thrift_spec = (
12890
    None, # 0
12891
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
12892
    (2, TType.I64, 'item_id', None, None, ), # 2
12893
  )
12894
 
12895
  def __init__(self, warehouse_id=None, item_id=None,):
12896
    self.warehouse_id = warehouse_id
12897
    self.item_id = item_id
12898
 
12899
  def read(self, iprot):
12900
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12901
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12902
      return
12903
    iprot.readStructBegin()
12904
    while True:
12905
      (fname, ftype, fid) = iprot.readFieldBegin()
12906
      if ftype == TType.STOP:
12907
        break
12908
      if fid == 1:
12909
        if ftype == TType.I64:
12910
          self.warehouse_id = iprot.readI64();
12911
        else:
12912
          iprot.skip(ftype)
12913
      elif fid == 2:
12914
        if ftype == TType.I64:
12915
          self.item_id = iprot.readI64();
12916
        else:
12917
          iprot.skip(ftype)
12918
      else:
12919
        iprot.skip(ftype)
12920
      iprot.readFieldEnd()
12921
    iprot.readStructEnd()
12922
 
12923
  def write(self, oprot):
12924
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12925
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12926
      return
12927
    oprot.writeStructBegin('getNlcForWarehouse_args')
12928
    if self.warehouse_id is not None:
12929
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
12930
      oprot.writeI64(self.warehouse_id)
12931
      oprot.writeFieldEnd()
12932
    if self.item_id is not None:
12933
      oprot.writeFieldBegin('item_id', TType.I64, 2)
12934
      oprot.writeI64(self.item_id)
12935
      oprot.writeFieldEnd()
12936
    oprot.writeFieldStop()
12937
    oprot.writeStructEnd()
12938
 
12939
  def validate(self):
12940
    return
12941
 
12942
 
12943
  def __repr__(self):
12944
    L = ['%s=%r' % (key, value)
12945
      for key, value in self.__dict__.iteritems()]
12946
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12947
 
12948
  def __eq__(self, other):
12949
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12950
 
12951
  def __ne__(self, other):
12952
    return not (self == other)
12953
 
12954
class getNlcForWarehouse_result:
12955
  """
12956
  Attributes:
12957
   - success
12958
  """
12959
 
12960
  thrift_spec = (
12961
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12962
  )
12963
 
12964
  def __init__(self, success=None,):
12965
    self.success = success
12966
 
12967
  def read(self, iprot):
12968
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12969
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12970
      return
12971
    iprot.readStructBegin()
12972
    while True:
12973
      (fname, ftype, fid) = iprot.readFieldBegin()
12974
      if ftype == TType.STOP:
12975
        break
12976
      if fid == 0:
12977
        if ftype == TType.DOUBLE:
12978
          self.success = iprot.readDouble();
12979
        else:
12980
          iprot.skip(ftype)
12981
      else:
12982
        iprot.skip(ftype)
12983
      iprot.readFieldEnd()
12984
    iprot.readStructEnd()
12985
 
12986
  def write(self, oprot):
12987
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12988
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12989
      return
12990
    oprot.writeStructBegin('getNlcForWarehouse_result')
12991
    if self.success is not None:
12992
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12993
      oprot.writeDouble(self.success)
12994
      oprot.writeFieldEnd()
12995
    oprot.writeFieldStop()
12996
    oprot.writeStructEnd()
12997
 
12998
  def validate(self):
12999
    return
13000
 
13001
 
13002
  def __repr__(self):
13003
    L = ['%s=%r' % (key, value)
13004
      for key, value in self.__dict__.iteritems()]
13005
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13006
 
13007
  def __eq__(self, other):
13008
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13009
 
13010
  def __ne__(self, other):
13011
    return not (self == other)
9456 vikram.rag 13012
 
9640 amar.kumar 13013
class getHeldInventoryMapForItem_args:
13014
  """
13015
  Attributes:
13016
   - item_id
13017
   - warehouse_id
13018
  """
13019
 
13020
  thrift_spec = (
13021
    None, # 0
13022
    (1, TType.I64, 'item_id', None, None, ), # 1
13023
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
13024
  )
13025
 
13026
  def __init__(self, item_id=None, warehouse_id=None,):
13027
    self.item_id = item_id
13028
    self.warehouse_id = warehouse_id
13029
 
13030
  def read(self, iprot):
13031
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13032
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13033
      return
13034
    iprot.readStructBegin()
13035
    while True:
13036
      (fname, ftype, fid) = iprot.readFieldBegin()
13037
      if ftype == TType.STOP:
13038
        break
13039
      if fid == 1:
13040
        if ftype == TType.I64:
13041
          self.item_id = iprot.readI64();
13042
        else:
13043
          iprot.skip(ftype)
13044
      elif fid == 2:
13045
        if ftype == TType.I64:
13046
          self.warehouse_id = iprot.readI64();
13047
        else:
13048
          iprot.skip(ftype)
13049
      else:
13050
        iprot.skip(ftype)
13051
      iprot.readFieldEnd()
13052
    iprot.readStructEnd()
13053
 
13054
  def write(self, oprot):
13055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13057
      return
13058
    oprot.writeStructBegin('getHeldInventoryMapForItem_args')
13059
    if self.item_id is not None:
13060
      oprot.writeFieldBegin('item_id', TType.I64, 1)
13061
      oprot.writeI64(self.item_id)
13062
      oprot.writeFieldEnd()
13063
    if self.warehouse_id is not None:
13064
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
13065
      oprot.writeI64(self.warehouse_id)
13066
      oprot.writeFieldEnd()
13067
    oprot.writeFieldStop()
13068
    oprot.writeStructEnd()
13069
 
13070
  def validate(self):
13071
    return
13072
 
13073
 
13074
  def __repr__(self):
13075
    L = ['%s=%r' % (key, value)
13076
      for key, value in self.__dict__.iteritems()]
13077
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13078
 
13079
  def __eq__(self, other):
13080
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13081
 
13082
  def __ne__(self, other):
13083
    return not (self == other)
13084
 
13085
class getHeldInventoryMapForItem_result:
13086
  """
13087
  Attributes:
13088
   - success
13089
  """
13090
 
13091
  thrift_spec = (
13092
    (0, TType.MAP, 'success', (TType.I32,None,TType.I64,None), None, ), # 0
13093
  )
13094
 
13095
  def __init__(self, success=None,):
13096
    self.success = success
13097
 
13098
  def read(self, iprot):
13099
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13100
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13101
      return
13102
    iprot.readStructBegin()
13103
    while True:
13104
      (fname, ftype, fid) = iprot.readFieldBegin()
13105
      if ftype == TType.STOP:
13106
        break
13107
      if fid == 0:
13108
        if ftype == TType.MAP:
13109
          self.success = {}
11173 vikram.rag 13110
          (_ktype266, _vtype267, _size265 ) = iprot.readMapBegin() 
13111
          for _i269 in xrange(_size265):
13112
            _key270 = iprot.readI32();
13113
            _val271 = iprot.readI64();
13114
            self.success[_key270] = _val271
9640 amar.kumar 13115
          iprot.readMapEnd()
13116
        else:
13117
          iprot.skip(ftype)
13118
      else:
13119
        iprot.skip(ftype)
13120
      iprot.readFieldEnd()
13121
    iprot.readStructEnd()
13122
 
13123
  def write(self, oprot):
13124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13126
      return
13127
    oprot.writeStructBegin('getHeldInventoryMapForItem_result')
13128
    if self.success is not None:
13129
      oprot.writeFieldBegin('success', TType.MAP, 0)
13130
      oprot.writeMapBegin(TType.I32, TType.I64, len(self.success))
11173 vikram.rag 13131
      for kiter272,viter273 in self.success.items():
13132
        oprot.writeI32(kiter272)
13133
        oprot.writeI64(viter273)
9640 amar.kumar 13134
      oprot.writeMapEnd()
13135
      oprot.writeFieldEnd()
13136
    oprot.writeFieldStop()
13137
    oprot.writeStructEnd()
13138
 
13139
  def validate(self):
13140
    return
13141
 
13142
 
13143
  def __repr__(self):
13144
    L = ['%s=%r' % (key, value)
13145
      for key, value in self.__dict__.iteritems()]
13146
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13147
 
13148
  def __eq__(self, other):
13149
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13150
 
13151
  def __ne__(self, other):
13152
    return not (self == other)
13153
 
9495 vikram.rag 13154
class addOrUpdateAllAmazonFbaInventory_args:
13155
  """
13156
  Attributes:
13157
   - allamazonfbainventorysnapshot
13158
  """
9456 vikram.rag 13159
 
9495 vikram.rag 13160
  thrift_spec = None
13161
  def __init__(self, allamazonfbainventorysnapshot=None,):
13162
    self.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 13163
 
13164
  def read(self, iprot):
13165
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13166
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13167
      return
13168
    iprot.readStructBegin()
13169
    while True:
13170
      (fname, ftype, fid) = iprot.readFieldBegin()
13171
      if ftype == TType.STOP:
13172
        break
9495 vikram.rag 13173
      if fid == -1:
13174
        if ftype == TType.LIST:
13175
          self.allamazonfbainventorysnapshot = []
11173 vikram.rag 13176
          (_etype277, _size274) = iprot.readListBegin()
13177
          for _i278 in xrange(_size274):
13178
            _elem279 = AmazonFbaInventorySnapshot()
13179
            _elem279.read(iprot)
13180
            self.allamazonfbainventorysnapshot.append(_elem279)
9495 vikram.rag 13181
          iprot.readListEnd()
13182
        else:
13183
          iprot.skip(ftype)
9456 vikram.rag 13184
      else:
13185
        iprot.skip(ftype)
13186
      iprot.readFieldEnd()
13187
    iprot.readStructEnd()
13188
 
13189
  def write(self, oprot):
13190
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13191
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13192
      return
9495 vikram.rag 13193
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_args')
13194
    if self.allamazonfbainventorysnapshot is not None:
13195
      oprot.writeFieldBegin('allamazonfbainventorysnapshot', TType.LIST, -1)
13196
      oprot.writeListBegin(TType.STRUCT, len(self.allamazonfbainventorysnapshot))
11173 vikram.rag 13197
      for iter280 in self.allamazonfbainventorysnapshot:
13198
        iter280.write(oprot)
9495 vikram.rag 13199
      oprot.writeListEnd()
13200
      oprot.writeFieldEnd()
9456 vikram.rag 13201
    oprot.writeFieldStop()
13202
    oprot.writeStructEnd()
13203
 
13204
  def validate(self):
13205
    return
13206
 
13207
 
13208
  def __repr__(self):
13209
    L = ['%s=%r' % (key, value)
13210
      for key, value in self.__dict__.iteritems()]
13211
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13212
 
13213
  def __eq__(self, other):
13214
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13215
 
13216
  def __ne__(self, other):
13217
    return not (self == other)
13218
 
9495 vikram.rag 13219
class addOrUpdateAllAmazonFbaInventory_result:
9456 vikram.rag 13220
 
13221
  thrift_spec = (
13222
  )
13223
 
13224
  def read(self, iprot):
13225
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13226
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13227
      return
13228
    iprot.readStructBegin()
13229
    while True:
13230
      (fname, ftype, fid) = iprot.readFieldBegin()
13231
      if ftype == TType.STOP:
13232
        break
13233
      else:
13234
        iprot.skip(ftype)
13235
      iprot.readFieldEnd()
13236
    iprot.readStructEnd()
13237
 
13238
  def write(self, oprot):
13239
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13240
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13241
      return
9495 vikram.rag 13242
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_result')
9456 vikram.rag 13243
    oprot.writeFieldStop()
13244
    oprot.writeStructEnd()
13245
 
13246
  def validate(self):
13247
    return
13248
 
13249
 
13250
  def __repr__(self):
13251
    L = ['%s=%r' % (key, value)
13252
      for key, value in self.__dict__.iteritems()]
13253
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13254
 
13255
  def __eq__(self, other):
13256
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13257
 
13258
  def __ne__(self, other):
13259
    return not (self == other)
9482 vikram.rag 13260
 
9495 vikram.rag 13261
class addOrUpdateAllSnapdealInventory_args:
9482 vikram.rag 13262
  """
13263
  Attributes:
9495 vikram.rag 13264
   - allsnapdealinventorysnapshot
9482 vikram.rag 13265
  """
13266
 
13267
  thrift_spec = None
9495 vikram.rag 13268
  def __init__(self, allsnapdealinventorysnapshot=None,):
13269
    self.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 13270
 
13271
  def read(self, iprot):
13272
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13273
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13274
      return
13275
    iprot.readStructBegin()
13276
    while True:
13277
      (fname, ftype, fid) = iprot.readFieldBegin()
13278
      if ftype == TType.STOP:
13279
        break
13280
      if fid == -1:
13281
        if ftype == TType.LIST:
9495 vikram.rag 13282
          self.allsnapdealinventorysnapshot = []
11173 vikram.rag 13283
          (_etype284, _size281) = iprot.readListBegin()
13284
          for _i285 in xrange(_size281):
13285
            _elem286 = SnapdealInventoryItem()
13286
            _elem286.read(iprot)
13287
            self.allsnapdealinventorysnapshot.append(_elem286)
9482 vikram.rag 13288
          iprot.readListEnd()
13289
        else:
13290
          iprot.skip(ftype)
13291
      else:
13292
        iprot.skip(ftype)
13293
      iprot.readFieldEnd()
13294
    iprot.readStructEnd()
13295
 
13296
  def write(self, oprot):
13297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13299
      return
9495 vikram.rag 13300
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_args')
13301
    if self.allsnapdealinventorysnapshot is not None:
13302
      oprot.writeFieldBegin('allsnapdealinventorysnapshot', TType.LIST, -1)
13303
      oprot.writeListBegin(TType.STRUCT, len(self.allsnapdealinventorysnapshot))
11173 vikram.rag 13304
      for iter287 in self.allsnapdealinventorysnapshot:
13305
        iter287.write(oprot)
9482 vikram.rag 13306
      oprot.writeListEnd()
13307
      oprot.writeFieldEnd()
13308
    oprot.writeFieldStop()
13309
    oprot.writeStructEnd()
13310
 
13311
  def validate(self):
13312
    return
13313
 
13314
 
13315
  def __repr__(self):
13316
    L = ['%s=%r' % (key, value)
13317
      for key, value in self.__dict__.iteritems()]
13318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13319
 
13320
  def __eq__(self, other):
13321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13322
 
13323
  def __ne__(self, other):
13324
    return not (self == other)
13325
 
9495 vikram.rag 13326
class addOrUpdateAllSnapdealInventory_result:
9482 vikram.rag 13327
 
13328
  thrift_spec = (
13329
  )
13330
 
13331
  def read(self, iprot):
13332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13334
      return
13335
    iprot.readStructBegin()
13336
    while True:
13337
      (fname, ftype, fid) = iprot.readFieldBegin()
13338
      if ftype == TType.STOP:
13339
        break
13340
      else:
13341
        iprot.skip(ftype)
13342
      iprot.readFieldEnd()
13343
    iprot.readStructEnd()
13344
 
13345
  def write(self, oprot):
13346
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13347
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13348
      return
9495 vikram.rag 13349
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_result')
9482 vikram.rag 13350
    oprot.writeFieldStop()
13351
    oprot.writeStructEnd()
13352
 
13353
  def validate(self):
13354
    return
13355
 
13356
 
13357
  def __repr__(self):
13358
    L = ['%s=%r' % (key, value)
13359
      for key, value in self.__dict__.iteritems()]
13360
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13361
 
13362
  def __eq__(self, other):
13363
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13364
 
13365
  def __ne__(self, other):
13366
    return not (self == other)
9495 vikram.rag 13367
 
13368
class getSnapdealInventorySnapshot_args:
13369
 
13370
  thrift_spec = (
13371
  )
13372
 
13373
  def read(self, iprot):
13374
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13375
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13376
      return
13377
    iprot.readStructBegin()
13378
    while True:
13379
      (fname, ftype, fid) = iprot.readFieldBegin()
13380
      if ftype == TType.STOP:
13381
        break
13382
      else:
13383
        iprot.skip(ftype)
13384
      iprot.readFieldEnd()
13385
    iprot.readStructEnd()
13386
 
13387
  def write(self, oprot):
13388
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13389
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13390
      return
13391
    oprot.writeStructBegin('getSnapdealInventorySnapshot_args')
13392
    oprot.writeFieldStop()
13393
    oprot.writeStructEnd()
13394
 
13395
  def validate(self):
13396
    return
13397
 
13398
 
13399
  def __repr__(self):
13400
    L = ['%s=%r' % (key, value)
13401
      for key, value in self.__dict__.iteritems()]
13402
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13403
 
13404
  def __eq__(self, other):
13405
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13406
 
13407
  def __ne__(self, other):
13408
    return not (self == other)
13409
 
13410
class getSnapdealInventorySnapshot_result:
13411
  """
13412
  Attributes:
13413
   - success
13414
  """
13415
 
13416
  thrift_spec = (
13417
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec)), None, ), # 0
13418
  )
13419
 
13420
  def __init__(self, success=None,):
13421
    self.success = success
13422
 
13423
  def read(self, iprot):
13424
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13425
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13426
      return
13427
    iprot.readStructBegin()
13428
    while True:
13429
      (fname, ftype, fid) = iprot.readFieldBegin()
13430
      if ftype == TType.STOP:
13431
        break
13432
      if fid == 0:
13433
        if ftype == TType.LIST:
13434
          self.success = []
11173 vikram.rag 13435
          (_etype291, _size288) = iprot.readListBegin()
13436
          for _i292 in xrange(_size288):
13437
            _elem293 = SnapdealInventoryItem()
13438
            _elem293.read(iprot)
13439
            self.success.append(_elem293)
9495 vikram.rag 13440
          iprot.readListEnd()
13441
        else:
13442
          iprot.skip(ftype)
13443
      else:
13444
        iprot.skip(ftype)
13445
      iprot.readFieldEnd()
13446
    iprot.readStructEnd()
13447
 
13448
  def write(self, oprot):
13449
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13450
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13451
      return
13452
    oprot.writeStructBegin('getSnapdealInventorySnapshot_result')
13453
    if self.success is not None:
13454
      oprot.writeFieldBegin('success', TType.LIST, 0)
13455
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 13456
      for iter294 in self.success:
13457
        iter294.write(oprot)
9495 vikram.rag 13458
      oprot.writeListEnd()
13459
      oprot.writeFieldEnd()
13460
    oprot.writeFieldStop()
13461
    oprot.writeStructEnd()
13462
 
13463
  def validate(self):
13464
    return
13465
 
13466
 
13467
  def __repr__(self):
13468
    L = ['%s=%r' % (key, value)
13469
      for key, value in self.__dict__.iteritems()]
13470
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13471
 
13472
  def __eq__(self, other):
13473
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13474
 
13475
  def __ne__(self, other):
13476
    return not (self == other)
9761 amar.kumar 13477
 
13478
class getHoldInventoryDetails_args:
13479
  """
13480
  Attributes:
13481
   - itemId
13482
   - warehouseId
13483
   - source
13484
  """
13485
 
13486
  thrift_spec = (
13487
    None, # 0
13488
    (1, TType.I64, 'itemId', None, None, ), # 1
13489
    (2, TType.I64, 'warehouseId', None, None, ), # 2
13490
    (3, TType.I64, 'source', None, None, ), # 3
13491
  )
13492
 
13493
  def __init__(self, itemId=None, warehouseId=None, source=None,):
13494
    self.itemId = itemId
13495
    self.warehouseId = warehouseId
13496
    self.source = source
13497
 
13498
  def read(self, iprot):
13499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13501
      return
13502
    iprot.readStructBegin()
13503
    while True:
13504
      (fname, ftype, fid) = iprot.readFieldBegin()
13505
      if ftype == TType.STOP:
13506
        break
13507
      if fid == 1:
13508
        if ftype == TType.I64:
13509
          self.itemId = iprot.readI64();
13510
        else:
13511
          iprot.skip(ftype)
13512
      elif fid == 2:
13513
        if ftype == TType.I64:
13514
          self.warehouseId = iprot.readI64();
13515
        else:
13516
          iprot.skip(ftype)
13517
      elif fid == 3:
13518
        if ftype == TType.I64:
13519
          self.source = iprot.readI64();
13520
        else:
13521
          iprot.skip(ftype)
13522
      else:
13523
        iprot.skip(ftype)
13524
      iprot.readFieldEnd()
13525
    iprot.readStructEnd()
13526
 
13527
  def write(self, oprot):
13528
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13529
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13530
      return
13531
    oprot.writeStructBegin('getHoldInventoryDetails_args')
13532
    if self.itemId is not None:
13533
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13534
      oprot.writeI64(self.itemId)
13535
      oprot.writeFieldEnd()
13536
    if self.warehouseId is not None:
13537
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
13538
      oprot.writeI64(self.warehouseId)
13539
      oprot.writeFieldEnd()
13540
    if self.source is not None:
13541
      oprot.writeFieldBegin('source', TType.I64, 3)
13542
      oprot.writeI64(self.source)
13543
      oprot.writeFieldEnd()
13544
    oprot.writeFieldStop()
13545
    oprot.writeStructEnd()
13546
 
13547
  def validate(self):
13548
    return
13549
 
13550
 
13551
  def __repr__(self):
13552
    L = ['%s=%r' % (key, value)
13553
      for key, value in self.__dict__.iteritems()]
13554
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13555
 
13556
  def __eq__(self, other):
13557
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13558
 
13559
  def __ne__(self, other):
13560
    return not (self == other)
13561
 
13562
class getHoldInventoryDetails_result:
13563
  """
13564
  Attributes:
13565
   - success
13566
  """
13567
 
13568
  thrift_spec = (
13569
    (0, TType.LIST, 'success', (TType.STRUCT,(HoldInventoryDetail, HoldInventoryDetail.thrift_spec)), None, ), # 0
13570
  )
13571
 
13572
  def __init__(self, success=None,):
13573
    self.success = success
13574
 
13575
  def read(self, iprot):
13576
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13577
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13578
      return
13579
    iprot.readStructBegin()
13580
    while True:
13581
      (fname, ftype, fid) = iprot.readFieldBegin()
13582
      if ftype == TType.STOP:
13583
        break
13584
      if fid == 0:
13585
        if ftype == TType.LIST:
13586
          self.success = []
11173 vikram.rag 13587
          (_etype298, _size295) = iprot.readListBegin()
13588
          for _i299 in xrange(_size295):
13589
            _elem300 = HoldInventoryDetail()
13590
            _elem300.read(iprot)
13591
            self.success.append(_elem300)
9761 amar.kumar 13592
          iprot.readListEnd()
13593
        else:
13594
          iprot.skip(ftype)
13595
      else:
13596
        iprot.skip(ftype)
13597
      iprot.readFieldEnd()
13598
    iprot.readStructEnd()
13599
 
13600
  def write(self, oprot):
13601
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13602
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13603
      return
13604
    oprot.writeStructBegin('getHoldInventoryDetails_result')
13605
    if self.success is not None:
13606
      oprot.writeFieldBegin('success', TType.LIST, 0)
13607
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 13608
      for iter301 in self.success:
13609
        iter301.write(oprot)
9761 amar.kumar 13610
      oprot.writeListEnd()
13611
      oprot.writeFieldEnd()
13612
    oprot.writeFieldStop()
13613
    oprot.writeStructEnd()
13614
 
13615
  def validate(self):
13616
    return
13617
 
13618
 
13619
  def __repr__(self):
13620
    L = ['%s=%r' % (key, value)
13621
      for key, value in self.__dict__.iteritems()]
13622
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13623
 
13624
  def __eq__(self, other):
13625
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13626
 
13627
  def __ne__(self, other):
13628
    return not (self == other)
10050 vikram.rag 13629
 
13630
class addOrUpdateFlipkartInventorySnapshot_args:
13631
  """
13632
  Attributes:
13633
   - flipkartInventorySnapshot
10450 vikram.rag 13634
   - time
10050 vikram.rag 13635
  """
13636
 
10450 vikram.rag 13637
  thrift_spec = (
13638
    None, # 0
13639
    (1, TType.LIST, 'flipkartInventorySnapshot', (TType.STRUCT,(FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec)), None, ), # 1
13640
    (2, TType.I64, 'time', None, None, ), # 2
13641
  )
13642
 
13643
  def __init__(self, flipkartInventorySnapshot=None, time=None,):
10050 vikram.rag 13644
    self.flipkartInventorySnapshot = flipkartInventorySnapshot
10450 vikram.rag 13645
    self.time = time
10050 vikram.rag 13646
 
13647
  def read(self, iprot):
13648
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13649
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13650
      return
13651
    iprot.readStructBegin()
13652
    while True:
13653
      (fname, ftype, fid) = iprot.readFieldBegin()
13654
      if ftype == TType.STOP:
13655
        break
10450 vikram.rag 13656
      if fid == 1:
10050 vikram.rag 13657
        if ftype == TType.LIST:
13658
          self.flipkartInventorySnapshot = []
11173 vikram.rag 13659
          (_etype305, _size302) = iprot.readListBegin()
13660
          for _i306 in xrange(_size302):
13661
            _elem307 = FlipkartInventorySnapshot()
13662
            _elem307.read(iprot)
13663
            self.flipkartInventorySnapshot.append(_elem307)
10050 vikram.rag 13664
          iprot.readListEnd()
13665
        else:
13666
          iprot.skip(ftype)
10450 vikram.rag 13667
      elif fid == 2:
13668
        if ftype == TType.I64:
13669
          self.time = iprot.readI64();
13670
        else:
13671
          iprot.skip(ftype)
10050 vikram.rag 13672
      else:
13673
        iprot.skip(ftype)
13674
      iprot.readFieldEnd()
13675
    iprot.readStructEnd()
13676
 
13677
  def write(self, oprot):
13678
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13679
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13680
      return
13681
    oprot.writeStructBegin('addOrUpdateFlipkartInventorySnapshot_args')
13682
    if self.flipkartInventorySnapshot is not None:
10450 vikram.rag 13683
      oprot.writeFieldBegin('flipkartInventorySnapshot', TType.LIST, 1)
10050 vikram.rag 13684
      oprot.writeListBegin(TType.STRUCT, len(self.flipkartInventorySnapshot))
11173 vikram.rag 13685
      for iter308 in self.flipkartInventorySnapshot:
13686
        iter308.write(oprot)
10050 vikram.rag 13687
      oprot.writeListEnd()
13688
      oprot.writeFieldEnd()
10450 vikram.rag 13689
    if self.time is not None:
13690
      oprot.writeFieldBegin('time', TType.I64, 2)
13691
      oprot.writeI64(self.time)
13692
      oprot.writeFieldEnd()
10050 vikram.rag 13693
    oprot.writeFieldStop()
13694
    oprot.writeStructEnd()
13695
 
13696
  def validate(self):
13697
    return
13698
 
13699
 
13700
  def __repr__(self):
13701
    L = ['%s=%r' % (key, value)
13702
      for key, value in self.__dict__.iteritems()]
13703
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13704
 
13705
  def __eq__(self, other):
13706
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13707
 
13708
  def __ne__(self, other):
13709
    return not (self == other)
13710
 
13711
class addOrUpdateFlipkartInventorySnapshot_result:
13712
 
13713
  thrift_spec = (
13714
  )
13715
 
13716
  def read(self, iprot):
13717
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13718
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13719
      return
13720
    iprot.readStructBegin()
13721
    while True:
13722
      (fname, ftype, fid) = iprot.readFieldBegin()
13723
      if ftype == TType.STOP:
13724
        break
13725
      else:
13726
        iprot.skip(ftype)
13727
      iprot.readFieldEnd()
13728
    iprot.readStructEnd()
13729
 
13730
  def write(self, oprot):
13731
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13732
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13733
      return
13734
    oprot.writeStructBegin('addOrUpdateFlipkartInventorySnapshot_result')
13735
    oprot.writeFieldStop()
13736
    oprot.writeStructEnd()
13737
 
13738
  def validate(self):
13739
    return
13740
 
13741
 
13742
  def __repr__(self):
13743
    L = ['%s=%r' % (key, value)
13744
      for key, value in self.__dict__.iteritems()]
13745
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13746
 
13747
  def __eq__(self, other):
13748
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13749
 
13750
  def __ne__(self, other):
13751
    return not (self == other)
13752
 
13753
class getFlipkartInventorySnapshot_args:
13754
 
13755
  thrift_spec = (
13756
  )
13757
 
13758
  def read(self, iprot):
13759
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13760
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13761
      return
13762
    iprot.readStructBegin()
13763
    while True:
13764
      (fname, ftype, fid) = iprot.readFieldBegin()
13765
      if ftype == TType.STOP:
13766
        break
13767
      else:
13768
        iprot.skip(ftype)
13769
      iprot.readFieldEnd()
13770
    iprot.readStructEnd()
13771
 
13772
  def write(self, oprot):
13773
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13774
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13775
      return
13776
    oprot.writeStructBegin('getFlipkartInventorySnapshot_args')
13777
    oprot.writeFieldStop()
13778
    oprot.writeStructEnd()
13779
 
13780
  def validate(self):
13781
    return
13782
 
13783
 
13784
  def __repr__(self):
13785
    L = ['%s=%r' % (key, value)
13786
      for key, value in self.__dict__.iteritems()]
13787
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13788
 
13789
  def __eq__(self, other):
13790
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13791
 
13792
  def __ne__(self, other):
13793
    return not (self == other)
13794
 
13795
class getFlipkartInventorySnapshot_result:
13796
  """
13797
  Attributes:
13798
   - success
13799
  """
13800
 
13801
  thrift_spec = (
13802
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec)), None, ), # 0
13803
  )
13804
 
13805
  def __init__(self, success=None,):
13806
    self.success = success
13807
 
13808
  def read(self, iprot):
13809
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13810
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13811
      return
13812
    iprot.readStructBegin()
13813
    while True:
13814
      (fname, ftype, fid) = iprot.readFieldBegin()
13815
      if ftype == TType.STOP:
13816
        break
13817
      if fid == 0:
13818
        if ftype == TType.LIST:
13819
          self.success = []
11173 vikram.rag 13820
          (_etype312, _size309) = iprot.readListBegin()
13821
          for _i313 in xrange(_size309):
13822
            _elem314 = FlipkartInventorySnapshot()
13823
            _elem314.read(iprot)
13824
            self.success.append(_elem314)
10050 vikram.rag 13825
          iprot.readListEnd()
13826
        else:
13827
          iprot.skip(ftype)
13828
      else:
13829
        iprot.skip(ftype)
13830
      iprot.readFieldEnd()
13831
    iprot.readStructEnd()
13832
 
13833
  def write(self, oprot):
13834
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13835
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13836
      return
13837
    oprot.writeStructBegin('getFlipkartInventorySnapshot_result')
13838
    if self.success is not None:
13839
      oprot.writeFieldBegin('success', TType.LIST, 0)
13840
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 13841
      for iter315 in self.success:
13842
        iter315.write(oprot)
10050 vikram.rag 13843
      oprot.writeListEnd()
13844
      oprot.writeFieldEnd()
13845
    oprot.writeFieldStop()
13846
    oprot.writeStructEnd()
13847
 
13848
  def validate(self):
13849
    return
13850
 
13851
 
13852
  def __repr__(self):
13853
    L = ['%s=%r' % (key, value)
13854
      for key, value in self.__dict__.iteritems()]
13855
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13856
 
13857
  def __eq__(self, other):
13858
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13859
 
13860
  def __ne__(self, other):
13861
    return not (self == other)
10097 kshitij.so 13862
 
13863
class getFlipkartlInventoryForItem_args:
13864
  """
13865
  Attributes:
13866
   - item_id
13867
  """
13868
 
13869
  thrift_spec = (
13870
    None, # 0
13871
    (1, TType.I64, 'item_id', None, None, ), # 1
13872
  )
13873
 
13874
  def __init__(self, item_id=None,):
13875
    self.item_id = item_id
13876
 
13877
  def read(self, iprot):
13878
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13879
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13880
      return
13881
    iprot.readStructBegin()
13882
    while True:
13883
      (fname, ftype, fid) = iprot.readFieldBegin()
13884
      if ftype == TType.STOP:
13885
        break
13886
      if fid == 1:
13887
        if ftype == TType.I64:
13888
          self.item_id = iprot.readI64();
13889
        else:
13890
          iprot.skip(ftype)
13891
      else:
13892
        iprot.skip(ftype)
13893
      iprot.readFieldEnd()
13894
    iprot.readStructEnd()
13895
 
13896
  def write(self, oprot):
13897
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13898
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13899
      return
13900
    oprot.writeStructBegin('getFlipkartlInventoryForItem_args')
13901
    if self.item_id is not None:
13902
      oprot.writeFieldBegin('item_id', TType.I64, 1)
13903
      oprot.writeI64(self.item_id)
13904
      oprot.writeFieldEnd()
13905
    oprot.writeFieldStop()
13906
    oprot.writeStructEnd()
13907
 
13908
  def validate(self):
13909
    return
13910
 
13911
 
13912
  def __repr__(self):
13913
    L = ['%s=%r' % (key, value)
13914
      for key, value in self.__dict__.iteritems()]
13915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13916
 
13917
  def __eq__(self, other):
13918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13919
 
13920
  def __ne__(self, other):
13921
    return not (self == other)
13922
 
13923
class getFlipkartlInventoryForItem_result:
13924
  """
13925
  Attributes:
13926
   - success
13927
  """
13928
 
13929
  thrift_spec = (
13930
    (0, TType.STRUCT, 'success', (FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec), None, ), # 0
13931
  )
13932
 
13933
  def __init__(self, success=None,):
13934
    self.success = success
13935
 
13936
  def read(self, iprot):
13937
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13938
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13939
      return
13940
    iprot.readStructBegin()
13941
    while True:
13942
      (fname, ftype, fid) = iprot.readFieldBegin()
13943
      if ftype == TType.STOP:
13944
        break
13945
      if fid == 0:
13946
        if ftype == TType.STRUCT:
13947
          self.success = FlipkartInventorySnapshot()
13948
          self.success.read(iprot)
13949
        else:
13950
          iprot.skip(ftype)
13951
      else:
13952
        iprot.skip(ftype)
13953
      iprot.readFieldEnd()
13954
    iprot.readStructEnd()
13955
 
13956
  def write(self, oprot):
13957
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13958
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13959
      return
13960
    oprot.writeStructBegin('getFlipkartlInventoryForItem_result')
13961
    if self.success is not None:
13962
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13963
      self.success.write(oprot)
13964
      oprot.writeFieldEnd()
13965
    oprot.writeFieldStop()
13966
    oprot.writeStructEnd()
13967
 
13968
  def validate(self):
13969
    return
13970
 
13971
 
13972
  def __repr__(self):
13973
    L = ['%s=%r' % (key, value)
13974
      for key, value in self.__dict__.iteritems()]
13975
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13976
 
13977
  def __eq__(self, other):
13978
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13979
 
13980
  def __ne__(self, other):
13981
    return not (self == other)
10485 vikram.rag 13982
 
13983
class getStateMaster_args:
13984
 
13985
  thrift_spec = (
13986
  )
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
      else:
13998
        iprot.skip(ftype)
13999
      iprot.readFieldEnd()
14000
    iprot.readStructEnd()
14001
 
14002
  def write(self, oprot):
14003
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14004
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14005
      return
14006
    oprot.writeStructBegin('getStateMaster_args')
14007
    oprot.writeFieldStop()
14008
    oprot.writeStructEnd()
14009
 
14010
  def validate(self):
14011
    return
14012
 
14013
 
14014
  def __repr__(self):
14015
    L = ['%s=%r' % (key, value)
14016
      for key, value in self.__dict__.iteritems()]
14017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14018
 
14019
  def __eq__(self, other):
14020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14021
 
14022
  def __ne__(self, other):
14023
    return not (self == other)
14024
 
14025
class getStateMaster_result:
14026
  """
14027
  Attributes:
14028
   - success
14029
  """
14030
 
14031
  thrift_spec = (
12280 amit.gupta 14032
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(StateInfo, StateInfo.thrift_spec)), None, ), # 0
10485 vikram.rag 14033
  )
14034
 
14035
  def __init__(self, success=None,):
14036
    self.success = success
14037
 
14038
  def read(self, iprot):
14039
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14040
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14041
      return
14042
    iprot.readStructBegin()
14043
    while True:
14044
      (fname, ftype, fid) = iprot.readFieldBegin()
14045
      if ftype == TType.STOP:
14046
        break
14047
      if fid == 0:
14048
        if ftype == TType.MAP:
14049
          self.success = {}
11173 vikram.rag 14050
          (_ktype317, _vtype318, _size316 ) = iprot.readMapBegin() 
14051
          for _i320 in xrange(_size316):
14052
            _key321 = iprot.readI64();
12280 amit.gupta 14053
            _val322 = StateInfo()
14054
            _val322.read(iprot)
11173 vikram.rag 14055
            self.success[_key321] = _val322
10485 vikram.rag 14056
          iprot.readMapEnd()
14057
        else:
14058
          iprot.skip(ftype)
14059
      else:
14060
        iprot.skip(ftype)
14061
      iprot.readFieldEnd()
14062
    iprot.readStructEnd()
14063
 
14064
  def write(self, oprot):
14065
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14066
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14067
      return
14068
    oprot.writeStructBegin('getStateMaster_result')
14069
    if self.success is not None:
14070
      oprot.writeFieldBegin('success', TType.MAP, 0)
12280 amit.gupta 14071
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
11173 vikram.rag 14072
      for kiter323,viter324 in self.success.items():
14073
        oprot.writeI64(kiter323)
12280 amit.gupta 14074
        viter324.write(oprot)
10485 vikram.rag 14075
      oprot.writeMapEnd()
14076
      oprot.writeFieldEnd()
14077
    oprot.writeFieldStop()
14078
    oprot.writeStructEnd()
14079
 
14080
  def validate(self):
14081
    return
14082
 
14083
 
14084
  def __repr__(self):
14085
    L = ['%s=%r' % (key, value)
14086
      for key, value in self.__dict__.iteritems()]
14087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14088
 
14089
  def __eq__(self, other):
14090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14091
 
14092
  def __ne__(self, other):
14093
    return not (self == other)
10544 vikram.rag 14094
 
14095
class updateSnapdealStockAtEOD_args:
14096
  """
14097
  Attributes:
14098
   - allsnapdealstock
14099
  """
14100
 
14101
  thrift_spec = None
14102
  def __init__(self, allsnapdealstock=None,):
14103
    self.allsnapdealstock = allsnapdealstock
14104
 
14105
  def read(self, iprot):
14106
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14107
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14108
      return
14109
    iprot.readStructBegin()
14110
    while True:
14111
      (fname, ftype, fid) = iprot.readFieldBegin()
14112
      if ftype == TType.STOP:
14113
        break
14114
      if fid == -1:
14115
        if ftype == TType.LIST:
14116
          self.allsnapdealstock = []
11173 vikram.rag 14117
          (_etype328, _size325) = iprot.readListBegin()
14118
          for _i329 in xrange(_size325):
14119
            _elem330 = SnapdealStockAtEOD()
14120
            _elem330.read(iprot)
14121
            self.allsnapdealstock.append(_elem330)
10544 vikram.rag 14122
          iprot.readListEnd()
14123
        else:
14124
          iprot.skip(ftype)
14125
      else:
14126
        iprot.skip(ftype)
14127
      iprot.readFieldEnd()
14128
    iprot.readStructEnd()
14129
 
14130
  def write(self, oprot):
14131
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14132
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14133
      return
14134
    oprot.writeStructBegin('updateSnapdealStockAtEOD_args')
14135
    if self.allsnapdealstock is not None:
14136
      oprot.writeFieldBegin('allsnapdealstock', TType.LIST, -1)
14137
      oprot.writeListBegin(TType.STRUCT, len(self.allsnapdealstock))
11173 vikram.rag 14138
      for iter331 in self.allsnapdealstock:
14139
        iter331.write(oprot)
10544 vikram.rag 14140
      oprot.writeListEnd()
14141
      oprot.writeFieldEnd()
14142
    oprot.writeFieldStop()
14143
    oprot.writeStructEnd()
14144
 
14145
  def validate(self):
14146
    return
14147
 
14148
 
14149
  def __repr__(self):
14150
    L = ['%s=%r' % (key, value)
14151
      for key, value in self.__dict__.iteritems()]
14152
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14153
 
14154
  def __eq__(self, other):
14155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14156
 
14157
  def __ne__(self, other):
14158
    return not (self == other)
14159
 
14160
class updateSnapdealStockAtEOD_result:
14161
 
14162
  thrift_spec = (
14163
  )
14164
 
14165
  def read(self, iprot):
14166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14168
      return
14169
    iprot.readStructBegin()
14170
    while True:
14171
      (fname, ftype, fid) = iprot.readFieldBegin()
14172
      if ftype == TType.STOP:
14173
        break
14174
      else:
14175
        iprot.skip(ftype)
14176
      iprot.readFieldEnd()
14177
    iprot.readStructEnd()
14178
 
14179
  def write(self, oprot):
14180
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14181
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14182
      return
14183
    oprot.writeStructBegin('updateSnapdealStockAtEOD_result')
14184
    oprot.writeFieldStop()
14185
    oprot.writeStructEnd()
14186
 
14187
  def validate(self):
14188
    return
14189
 
14190
 
14191
  def __repr__(self):
14192
    L = ['%s=%r' % (key, value)
14193
      for key, value in self.__dict__.iteritems()]
14194
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14195
 
14196
  def __eq__(self, other):
14197
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14198
 
14199
  def __ne__(self, other):
14200
    return not (self == other)
14201
 
14202
class updateFlipkartStockAtEOD_args:
14203
  """
14204
  Attributes:
14205
   - allflipkartstock
14206
  """
14207
 
14208
  thrift_spec = None
14209
  def __init__(self, allflipkartstock=None,):
14210
    self.allflipkartstock = allflipkartstock
14211
 
14212
  def read(self, iprot):
14213
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14214
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14215
      return
14216
    iprot.readStructBegin()
14217
    while True:
14218
      (fname, ftype, fid) = iprot.readFieldBegin()
14219
      if ftype == TType.STOP:
14220
        break
14221
      if fid == -1:
14222
        if ftype == TType.LIST:
14223
          self.allflipkartstock = []
11173 vikram.rag 14224
          (_etype335, _size332) = iprot.readListBegin()
14225
          for _i336 in xrange(_size332):
14226
            _elem337 = FlipkartStockAtEOD()
14227
            _elem337.read(iprot)
14228
            self.allflipkartstock.append(_elem337)
10544 vikram.rag 14229
          iprot.readListEnd()
14230
        else:
14231
          iprot.skip(ftype)
14232
      else:
14233
        iprot.skip(ftype)
14234
      iprot.readFieldEnd()
14235
    iprot.readStructEnd()
14236
 
14237
  def write(self, oprot):
14238
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14239
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14240
      return
14241
    oprot.writeStructBegin('updateFlipkartStockAtEOD_args')
14242
    if self.allflipkartstock is not None:
14243
      oprot.writeFieldBegin('allflipkartstock', TType.LIST, -1)
14244
      oprot.writeListBegin(TType.STRUCT, len(self.allflipkartstock))
11173 vikram.rag 14245
      for iter338 in self.allflipkartstock:
14246
        iter338.write(oprot)
10544 vikram.rag 14247
      oprot.writeListEnd()
14248
      oprot.writeFieldEnd()
14249
    oprot.writeFieldStop()
14250
    oprot.writeStructEnd()
14251
 
14252
  def validate(self):
14253
    return
14254
 
14255
 
14256
  def __repr__(self):
14257
    L = ['%s=%r' % (key, value)
14258
      for key, value in self.__dict__.iteritems()]
14259
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14260
 
14261
  def __eq__(self, other):
14262
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14263
 
14264
  def __ne__(self, other):
14265
    return not (self == other)
14266
 
14267
class updateFlipkartStockAtEOD_result:
14268
 
14269
  thrift_spec = (
14270
  )
14271
 
14272
  def read(self, iprot):
14273
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14274
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14275
      return
14276
    iprot.readStructBegin()
14277
    while True:
14278
      (fname, ftype, fid) = iprot.readFieldBegin()
14279
      if ftype == TType.STOP:
14280
        break
14281
      else:
14282
        iprot.skip(ftype)
14283
      iprot.readFieldEnd()
14284
    iprot.readStructEnd()
14285
 
14286
  def write(self, oprot):
14287
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14288
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14289
      return
14290
    oprot.writeStructBegin('updateFlipkartStockAtEOD_result')
14291
    oprot.writeFieldStop()
14292
    oprot.writeStructEnd()
14293
 
14294
  def validate(self):
14295
    return
14296
 
14297
 
14298
  def __repr__(self):
14299
    L = ['%s=%r' % (key, value)
14300
      for key, value in self.__dict__.iteritems()]
14301
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14302
 
14303
  def __eq__(self, other):
14304
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14305
 
14306
  def __ne__(self, other):
14307
    return not (self == other)