Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
5944 mandeep.dh 1
#
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def addWarehouse(self, warehouse):
21
    """
22
    Parameters:
23
     - warehouse
24
    """
25
    pass
26
 
27
  def addVendor(self, vendor):
28
    """
29
    add a new vendor
30
 
31
    Parameters:
32
     - vendor
33
    """
34
    pass
35
 
36
  def updateInventoryHistory(self, warehouse_id, timestamp, availability):
37
    """
38
    Stores the incremental warehouse updates of items.
39
 
40
    Parameters:
41
     - warehouse_id
42
     - timestamp
43
     - availability
44
    """
45
    pass
46
 
47
  def updateInventory(self, warehouse_id, timestamp, availability):
48
    """
49
    Stores the final inventory stocks of items.
50
 
51
    Parameters:
52
     - warehouse_id
53
     - timestamp
54
     - availability
55
    """
56
    pass
57
 
58
  def addInventory(self, itemId, warehouseId, quantity):
59
    """
60
    Add the inventory to existing stock.
61
 
62
    Parameters:
63
     - itemId
64
     - warehouseId
65
     - quantity
66
    """
67
    pass
68
 
69
  def retireWarehouse(self, warehouse_id):
70
    """
71
    Parameters:
72
     - warehouse_id
73
    """
74
    pass
75
 
76
  def getItemInventoryByItemId(self, item_id):
77
    """
78
    Parameters:
79
     - item_id
80
    """
81
    pass
82
 
83
  def getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
84
    """
85
    Parameters:
86
     - warehouse_id
87
     - item_id
88
    """
89
    pass
90
 
5978 rajveer 91
  def getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 92
    """
93
    Determines the warehouse that should be used to fulfil an order for the given item.
94
    It first checks all the warehouses which are in the logistics location given by the
95
    warehouse_loc parameter. If none of the warehouses there have any inventory, then the
96
    preferred warehouse for the item is used.
97
 
98
    Returns an ordered list of size 4 with following elements in the given order:
99
    1. Id of the fulfillment warehouse which was finally picked up.
100
    2. Expected delay added by the category manager.
101
    3. Id of the billing warehouse which was finally picked up.
102
 
103
    Parameters:
104
     - itemId
5978 rajveer 105
     - sourceId
5944 mandeep.dh 106
    """
107
    pass
108
 
109
  def getAllWarehouses(self, isActive):
110
    """
111
    Parameters:
112
     - isActive
113
    """
114
    pass
115
 
116
  def getWarehouse(self, warehouse_id):
117
    """
118
    Returns the warehouse with the given id.
119
 
120
    Parameters:
121
     - warehouse_id
122
    """
123
    pass
124
 
125
  def getAllItemsForWarehouse(self, warehouse_id):
126
    """
127
    Parameters:
128
     - warehouse_id
129
    """
130
    pass
131
 
5966 rajveer 132
  def isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
5944 mandeep.dh 133
    """
5966 rajveer 134
    Depending on reservation in the table, verify if we can bill this order or not.
135
 
136
    Parameters:
137
     - itemId
138
     - warehouseId
139
     - sourceId
140
     - orderId
141
    """
142
    pass
143
 
144
  def reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
145
    """
5944 mandeep.dh 146
    Increases the reservation count for an item in a warehouse. Should always succeed normally.
147
 
148
    Parameters:
149
     - itemId
150
     - warehouseId
5966 rajveer 151
     - sourceId
152
     - orderId
153
     - createdTimestamp
154
     - promisedShippingTimestamp
5944 mandeep.dh 155
     - quantity
156
    """
157
    pass
158
 
7968 amar.kumar 159
  def updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
160
    """
161
    Updates the reservation for Order
162
 
163
    Parameters:
164
     - itemId
165
     - warehouseId
166
     - sourceId
167
     - orderId
168
     - createdTimestamp
169
     - promisedShippingTimestamp
170
     - quantity
171
    """
172
    pass
173
 
5966 rajveer 174
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 175
    """
176
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
177
 
178
    Parameters:
179
     - itemId
180
     - warehouseId
5966 rajveer 181
     - sourceId
182
     - orderId
5944 mandeep.dh 183
     - quantity
184
    """
185
    pass
186
 
187
  def getItemPricing(self, itemId, vendorId):
188
    """
189
    Returns the pricing information of an item associated with the vendor of the given warehouse.
190
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
191
 
192
    Parameters:
193
     - itemId
194
     - vendorId
195
    """
196
    pass
197
 
198
  def getAllItemPricing(self, itemId):
199
    """
200
    Returns the list of vendor pricing information of an item.
201
    Raises an exception if item not found corresponding to itemId
202
 
203
    Parameters:
204
     - itemId
205
    """
206
    pass
207
 
208
  def addVendorItemPricing(self, vendorItemPricing):
209
    """
210
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
211
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
212
 
213
    Parameters:
214
     - vendorItemPricing
215
    """
216
    pass
217
 
218
  def getVendor(self, vendorId):
219
    """
220
    Returns a vendor given its id
221
 
222
    Parameters:
223
     - vendorId
224
    """
225
    pass
226
 
227
  def getAllVendors(self, ):
228
    """
229
    Return list of all vendors
230
    """
231
    pass
232
 
233
  def addVendorItemMapping(self, key, vendorItemMapping):
234
    """
235
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
236
 
237
    Parameters:
238
     - key
239
     - vendorItemMapping
240
    """
241
    pass
242
 
243
  def getVendorItemMappings(self, itemId):
244
    """
245
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
246
    Raises an exception if item not found corresponding to itemId
247
 
248
    Parameters:
249
     - itemId
250
    """
251
    pass
252
 
253
  def getPendingOrdersInventory(self, vendorid):
254
    """
255
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
256
 
257
    Parameters:
258
     - vendorid
259
    """
260
    pass
261
 
262
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
263
    """
264
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
265
    getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 3, 7, 7) would return ours warehouse with GOOD type inventory for vendor 1 for billing warehouse 7 and shipping warehouse 7
266
    getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 3, 7, 7) would return ours warehouse with GOOD type inventory for vendor 3 for billing warehouse 7 and shipping warehouse 7
267
       getWarehouses(null, null, 3, 7, 7) would return all type warehouses with all type inventory for vendor 3 for billing warehouse 7 and shipping warehouse 7
268
       getWarehouses(null, null, 0, 0, 7) would return all type warehouses with all type inventory for all vendors for all billing warehouses at shipping warehouse 7
269
 
270
    Parameters:
271
     - warehouseType
272
     - inventoryType
273
     - vendorId
274
     - billingWarehouseId
275
     - shippingWarehouseId
276
    """
277
    pass
278
 
279
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
280
    """
281
    Resets availability of an item to the quantity mentioned in a warehouse.
282
 
283
    Parameters:
284
     - itemKey
285
     - vendorId
286
     - quantity
287
     - warehouseId
288
    """
289
    pass
290
 
291
  def resetAvailabilityForWarehouse(self, warehouseId):
292
    """
293
    Resets availability of a warehouse to zero.
294
 
295
    Parameters:
296
     - warehouseId
297
    """
298
    pass
299
 
300
  def getItemKeysToBeProcessed(self, warehouseId):
301
    """
302
    Returns the list of item keys which need to be processed for a given warehouse.
303
    This is currently used by Support application to send item keys whose inventory needs
304
    to be updated from PLB
305
 
306
    Parameters:
307
     - warehouseId
308
    """
309
    pass
310
 
311
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
312
    """
313
    Marks/Deletes missed inventory updates for a given key and warehouse.
314
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
315
 
316
    Parameters:
317
     - itemKey
318
     - warehouseId
319
    """
320
    pass
321
 
322
  def getIgnoredItemKeys(self, ):
323
    """
324
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
325
    and the timestamp from where alert was raised.
326
    """
327
    pass
328
 
329
  def addBadInventory(self, itemId, warehouseId, quantity):
330
    """
331
    Add the BAD type inventory to existing stock.
332
 
333
    Parameters:
334
     - itemId
335
     - warehouseId
336
     - quantity
337
    """
338
    pass
339
 
340
  def getShippingLocations(self, ):
341
    """
342
    Returns all shipping locations
343
    """
344
    pass
345
 
346
  def getAllVendorItemMappings(self, ):
347
    """
348
    Fetches all the vendor item mappings present.
349
    """
350
    pass
351
 
352
  def getInventorySnapshot(self, warehouseId):
353
    """
354
    Gets items' inventory for a warehouse
355
    If warehouse is passed as zero, items' inventory across all warehouses is sent
356
 
357
    Parameters:
358
     - warehouseId
359
    """
360
    pass
361
 
362
  def clearItemAvailabilityCache(self, ):
363
    """
364
    Clear item availability cache.
365
    """
366
    pass
367
 
368
  def updateVendorString(self, warehouseId, vendorString):
369
    """
370
    Parameters:
371
     - warehouseId
372
     - vendorString
373
    """
374
    pass
375
 
6096 amit.gupta 376
  def clearItemAvailabilityCacheForItem(self, item_id):
377
    """
378
    Parameters:
379
     - item_id
380
    """
381
    pass
5944 mandeep.dh 382
 
7718 amar.kumar 383
  def getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 384
    """
385
    Parameters:
386
     - vendorId
7718 amar.kumar 387
     - billingWarehouseId
6467 amar.kumar 388
    """
389
    pass
6096 amit.gupta 390
 
6484 amar.kumar 391
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
392
    """
393
    Parameters:
394
     - item_ids
395
    """
396
    pass
6467 amar.kumar 397
 
6531 vikram.rag 398
  def getMonitoredWarehouseForVendors(self, vendorIds):
399
    """
400
    Parameters:
401
     - vendorIds
402
    """
403
    pass
6484 amar.kumar 404
 
6531 vikram.rag 405
  def getIgnoredWarehouseidsAndItemids(self, ):
406
    pass
407
 
408
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
409
    """
410
    Parameters:
411
     - item_id
412
     - warehouse_id
413
    """
414
    pass
415
 
416
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
417
    """
418
    Parameters:
419
     - item_id
420
     - warehouse_id
421
    """
422
    pass
423
 
424
  def getAllIgnoredInventoryupdateItemsCount(self, ):
425
    pass
426
 
427
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
428
    """
429
    Parameters:
430
     - offset
431
     - limit
432
    """
433
    pass
434
 
6821 amar.kumar 435
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
436
    """
437
    Parameters:
438
     - item_id
439
     - numOfDaysStock
440
     - minStockLevel
441
    """
442
    pass
6531 vikram.rag 443
 
6821 amar.kumar 444
  def getItemStockPurchaseParams(self, itemId):
445
    """
446
    Parameters:
447
     - itemId
448
    """
449
    pass
450
 
451
  def addOosStatusForItem(self, oosStatusMap, date):
452
    """
453
    Parameters:
454
     - oosStatusMap
455
     - date
456
    """
457
    pass
458
 
9762 amar.kumar 459
  def getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 460
    """
461
    Parameters:
462
     - itemId
9762 amar.kumar 463
     - sourceId
6832 amar.kumar 464
     - days
465
    """
466
    pass
6821 amar.kumar 467
 
10126 amar.kumar 468
  def getOosStatusesForXDays(self, sourceId, days):
469
    """
470
    Parameters:
471
     - sourceId
472
     - days
473
    """
474
    pass
475
 
476
  def getAllVendorItemPricing(self, itemId, vendorId):
477
    """
478
    Parameters:
479
     - itemId
480
     - vendorId
481
    """
482
    pass
483
 
6857 amar.kumar 484
  def getNonZeroItemStockPurchaseParams(self, ):
485
    pass
6832 amar.kumar 486
 
7149 amar.kumar 487
  def getBillableInventoryAndPendingOrders(self, ):
488
    """
489
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
490
    """
491
    pass
6857 amar.kumar 492
 
7281 kshitij.so 493
  def getWarehouseName(self, warehouse_id):
494
    """
495
    Parameters:
496
     - warehouse_id
497
    """
498
    pass
7149 amar.kumar 499
 
7281 kshitij.so 500
  def getAmazonInventoryForItem(self, item_id):
501
    """
502
    Parameters:
503
     - item_id
504
    """
505
    pass
506
 
507
  def getAllAmazonInventory(self, ):
508
    pass
509
 
10450 vikram.rag 510
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot, time):
7281 kshitij.so 511
    """
512
    Parameters:
513
     - amazonInventorySnapshot
10450 vikram.rag 514
     - time
7281 kshitij.so 515
    """
516
    pass
517
 
7972 amar.kumar 518
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
519
    """
520
    Parameters:
521
     - itemId
522
     - numberOfDays
523
    """
524
    pass
7281 kshitij.so 525
 
8282 kshitij.so 526
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
527
    """
528
    Parameters:
529
     - amazonfbainventorysnapshot
530
    """
531
    pass
532
 
8182 amar.kumar 533
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
534
    """
535
    Parameters:
536
     - itemId
537
     - warehouseId
538
     - holdQuantity
539
     - source
540
    """
541
    pass
7972 amar.kumar 542
 
8282 kshitij.so 543
  def getAmazonFbaItemInventory(self, itemId):
544
    """
545
    Parameters:
546
     - itemId
547
    """
548
    pass
8182 amar.kumar 549
 
8363 vikram.rag 550
  def getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 551
    pass
552
 
8363 vikram.rag 553
  def getOursGoodWarehouseIdsForLocation(self, state_id):
554
    """
555
    Parameters:
556
     - state_id
557
    """
558
    pass
8282 kshitij.so 559
 
8955 vikram.rag 560
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
561
    """
562
    Parameters:
563
     - id
564
     - warehouse_id
565
     - source
566
    """
567
    pass
8363 vikram.rag 568
 
9404 vikram.rag 569
  def getSnapdealInventoryForItem(self, item_id):
570
    """
571
    Parameters:
572
     - item_id
573
    """
574
    pass
8955 vikram.rag 575
 
9404 vikram.rag 576
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
577
    """
578
    Parameters:
579
     - snapdealinventoryitem
580
    """
581
    pass
582
 
583
  def getNlcForWarehouse(self, warehouse_id, item_id):
584
    """
585
    Parameters:
586
     - warehouse_id
587
     - item_id
588
    """
589
    pass
590
 
9640 amar.kumar 591
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
592
    """
593
    Parameters:
594
     - item_id
595
     - warehouse_id
596
    """
597
    pass
598
 
9482 vikram.rag 599
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
600
    """
601
    Parameters:
602
     - allamazonfbainventorysnapshot
603
    """
604
    pass
9456 vikram.rag 605
 
9495 vikram.rag 606
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
607
    """
608
    Parameters:
609
     - allsnapdealinventorysnapshot
610
    """
611
    pass
9482 vikram.rag 612
 
9495 vikram.rag 613
  def getSnapdealInventorySnapshot(self, ):
614
    pass
615
 
9761 amar.kumar 616
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
617
    """
618
    Parameters:
619
     - itemId
620
     - warehouseId
621
     - source
622
    """
623
    pass
9495 vikram.rag 624
 
10450 vikram.rag 625
  def addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot, time):
10050 vikram.rag 626
    """
627
    Parameters:
628
     - flipkartInventorySnapshot
10450 vikram.rag 629
     - time
10050 vikram.rag 630
    """
631
    pass
9761 amar.kumar 632
 
10050 vikram.rag 633
  def getFlipkartInventorySnapshot(self, ):
634
    pass
635
 
10097 kshitij.so 636
  def getFlipkartlInventoryForItem(self, item_id):
637
    """
638
    Parameters:
639
     - item_id
640
    """
641
    pass
10050 vikram.rag 642
 
10485 vikram.rag 643
  def getStateMaster(self, ):
644
    pass
10097 kshitij.so 645
 
10544 vikram.rag 646
  def updateSnapdealStockAtEOD(self, allsnapdealstock):
647
    """
648
    Parameters:
649
     - allsnapdealstock
650
    """
651
    pass
10485 vikram.rag 652
 
10544 vikram.rag 653
  def updateFlipkartStockAtEOD(self, allflipkartstock):
654
    """
655
    Parameters:
656
     - allflipkartstock
657
    """
658
    pass
659
 
12363 kshitij.so 660
  def getWanNlcForSource(self, item_id, source):
661
    """
662
    Parameters:
663
     - item_id
664
     - source
665
    """
666
    pass
10544 vikram.rag 667
 
12363 kshitij.so 668
  def getAllAvailableAmazonFbaItemInventory(self, ):
669
    pass
670
 
17990 kshitij.so 671
  def updateItemAvailabilityForItemIds(self, itemIds):
672
    """
673
    Parameters:
674
     - itemIds
675
    """
676
    pass
12363 kshitij.so 677
 
17990 kshitij.so 678
 
5944 mandeep.dh 679
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
680
  def __init__(self, iprot, oprot=None):
681
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
682
 
683
  def addWarehouse(self, warehouse):
684
    """
685
    Parameters:
686
     - warehouse
687
    """
688
    self.send_addWarehouse(warehouse)
689
    return self.recv_addWarehouse()
690
 
691
  def send_addWarehouse(self, warehouse):
692
    self._oprot.writeMessageBegin('addWarehouse', TMessageType.CALL, self._seqid)
693
    args = addWarehouse_args()
694
    args.warehouse = warehouse
695
    args.write(self._oprot)
696
    self._oprot.writeMessageEnd()
697
    self._oprot.trans.flush()
698
 
699
  def recv_addWarehouse(self, ):
700
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
701
    if mtype == TMessageType.EXCEPTION:
702
      x = TApplicationException()
703
      x.read(self._iprot)
704
      self._iprot.readMessageEnd()
705
      raise x
706
    result = addWarehouse_result()
707
    result.read(self._iprot)
708
    self._iprot.readMessageEnd()
709
    if result.success is not None:
710
      return result.success
711
    if result.cex is not None:
712
      raise result.cex
713
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
714
 
715
  def addVendor(self, vendor):
716
    """
717
    add a new vendor
718
 
719
    Parameters:
720
     - vendor
721
    """
722
    self.send_addVendor(vendor)
723
    return self.recv_addVendor()
724
 
725
  def send_addVendor(self, vendor):
726
    self._oprot.writeMessageBegin('addVendor', TMessageType.CALL, self._seqid)
727
    args = addVendor_args()
728
    args.vendor = vendor
729
    args.write(self._oprot)
730
    self._oprot.writeMessageEnd()
731
    self._oprot.trans.flush()
732
 
733
  def recv_addVendor(self, ):
734
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
735
    if mtype == TMessageType.EXCEPTION:
736
      x = TApplicationException()
737
      x.read(self._iprot)
738
      self._iprot.readMessageEnd()
739
      raise x
740
    result = addVendor_result()
741
    result.read(self._iprot)
742
    self._iprot.readMessageEnd()
743
    if result.success is not None:
744
      return result.success
745
    if result.cex is not None:
746
      raise result.cex
747
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
748
 
749
  def updateInventoryHistory(self, warehouse_id, timestamp, availability):
750
    """
751
    Stores the incremental warehouse updates of items.
752
 
753
    Parameters:
754
     - warehouse_id
755
     - timestamp
756
     - availability
757
    """
758
    self.send_updateInventoryHistory(warehouse_id, timestamp, availability)
759
    self.recv_updateInventoryHistory()
760
 
761
  def send_updateInventoryHistory(self, warehouse_id, timestamp, availability):
762
    self._oprot.writeMessageBegin('updateInventoryHistory', TMessageType.CALL, self._seqid)
763
    args = updateInventoryHistory_args()
764
    args.warehouse_id = warehouse_id
765
    args.timestamp = timestamp
766
    args.availability = availability
767
    args.write(self._oprot)
768
    self._oprot.writeMessageEnd()
769
    self._oprot.trans.flush()
770
 
771
  def recv_updateInventoryHistory(self, ):
772
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
773
    if mtype == TMessageType.EXCEPTION:
774
      x = TApplicationException()
775
      x.read(self._iprot)
776
      self._iprot.readMessageEnd()
777
      raise x
778
    result = updateInventoryHistory_result()
779
    result.read(self._iprot)
780
    self._iprot.readMessageEnd()
781
    if result.cex is not None:
782
      raise result.cex
783
    return
784
 
785
  def updateInventory(self, warehouse_id, timestamp, availability):
786
    """
787
    Stores the final inventory stocks of items.
788
 
789
    Parameters:
790
     - warehouse_id
791
     - timestamp
792
     - availability
793
    """
794
    self.send_updateInventory(warehouse_id, timestamp, availability)
795
    self.recv_updateInventory()
796
 
797
  def send_updateInventory(self, warehouse_id, timestamp, availability):
798
    self._oprot.writeMessageBegin('updateInventory', TMessageType.CALL, self._seqid)
799
    args = updateInventory_args()
800
    args.warehouse_id = warehouse_id
801
    args.timestamp = timestamp
802
    args.availability = availability
803
    args.write(self._oprot)
804
    self._oprot.writeMessageEnd()
805
    self._oprot.trans.flush()
806
 
807
  def recv_updateInventory(self, ):
808
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
809
    if mtype == TMessageType.EXCEPTION:
810
      x = TApplicationException()
811
      x.read(self._iprot)
812
      self._iprot.readMessageEnd()
813
      raise x
814
    result = updateInventory_result()
815
    result.read(self._iprot)
816
    self._iprot.readMessageEnd()
817
    if result.cex is not None:
818
      raise result.cex
819
    return
820
 
821
  def addInventory(self, itemId, warehouseId, quantity):
822
    """
823
    Add the inventory to existing stock.
824
 
825
    Parameters:
826
     - itemId
827
     - warehouseId
828
     - quantity
829
    """
830
    self.send_addInventory(itemId, warehouseId, quantity)
831
    self.recv_addInventory()
832
 
833
  def send_addInventory(self, itemId, warehouseId, quantity):
834
    self._oprot.writeMessageBegin('addInventory', TMessageType.CALL, self._seqid)
835
    args = addInventory_args()
836
    args.itemId = itemId
837
    args.warehouseId = warehouseId
838
    args.quantity = quantity
839
    args.write(self._oprot)
840
    self._oprot.writeMessageEnd()
841
    self._oprot.trans.flush()
842
 
843
  def recv_addInventory(self, ):
844
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
845
    if mtype == TMessageType.EXCEPTION:
846
      x = TApplicationException()
847
      x.read(self._iprot)
848
      self._iprot.readMessageEnd()
849
      raise x
850
    result = addInventory_result()
851
    result.read(self._iprot)
852
    self._iprot.readMessageEnd()
853
    if result.cex is not None:
854
      raise result.cex
855
    return
856
 
857
  def retireWarehouse(self, warehouse_id):
858
    """
859
    Parameters:
860
     - warehouse_id
861
    """
862
    self.send_retireWarehouse(warehouse_id)
863
    self.recv_retireWarehouse()
864
 
865
  def send_retireWarehouse(self, warehouse_id):
866
    self._oprot.writeMessageBegin('retireWarehouse', TMessageType.CALL, self._seqid)
867
    args = retireWarehouse_args()
868
    args.warehouse_id = warehouse_id
869
    args.write(self._oprot)
870
    self._oprot.writeMessageEnd()
871
    self._oprot.trans.flush()
872
 
873
  def recv_retireWarehouse(self, ):
874
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
875
    if mtype == TMessageType.EXCEPTION:
876
      x = TApplicationException()
877
      x.read(self._iprot)
878
      self._iprot.readMessageEnd()
879
      raise x
880
    result = retireWarehouse_result()
881
    result.read(self._iprot)
882
    self._iprot.readMessageEnd()
883
    if result.cex is not None:
884
      raise result.cex
885
    return
886
 
887
  def getItemInventoryByItemId(self, item_id):
888
    """
889
    Parameters:
890
     - item_id
891
    """
892
    self.send_getItemInventoryByItemId(item_id)
893
    return self.recv_getItemInventoryByItemId()
894
 
895
  def send_getItemInventoryByItemId(self, item_id):
896
    self._oprot.writeMessageBegin('getItemInventoryByItemId', TMessageType.CALL, self._seqid)
897
    args = getItemInventoryByItemId_args()
898
    args.item_id = item_id
899
    args.write(self._oprot)
900
    self._oprot.writeMessageEnd()
901
    self._oprot.trans.flush()
902
 
903
  def recv_getItemInventoryByItemId(self, ):
904
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
905
    if mtype == TMessageType.EXCEPTION:
906
      x = TApplicationException()
907
      x.read(self._iprot)
908
      self._iprot.readMessageEnd()
909
      raise x
910
    result = getItemInventoryByItemId_result()
911
    result.read(self._iprot)
912
    self._iprot.readMessageEnd()
913
    if result.success is not None:
914
      return result.success
915
    if result.cex is not None:
916
      raise result.cex
917
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
918
 
919
  def getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
920
    """
921
    Parameters:
922
     - warehouse_id
923
     - item_id
924
    """
925
    self.send_getItemAvailibilityAtWarehouse(warehouse_id, item_id)
926
    return self.recv_getItemAvailibilityAtWarehouse()
927
 
928
  def send_getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
929
    self._oprot.writeMessageBegin('getItemAvailibilityAtWarehouse', TMessageType.CALL, self._seqid)
930
    args = getItemAvailibilityAtWarehouse_args()
931
    args.warehouse_id = warehouse_id
932
    args.item_id = item_id
933
    args.write(self._oprot)
934
    self._oprot.writeMessageEnd()
935
    self._oprot.trans.flush()
936
 
937
  def recv_getItemAvailibilityAtWarehouse(self, ):
938
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
939
    if mtype == TMessageType.EXCEPTION:
940
      x = TApplicationException()
941
      x.read(self._iprot)
942
      self._iprot.readMessageEnd()
943
      raise x
944
    result = getItemAvailibilityAtWarehouse_result()
945
    result.read(self._iprot)
946
    self._iprot.readMessageEnd()
947
    if result.success is not None:
948
      return result.success
949
    if result.cex is not None:
950
      raise result.cex
951
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
952
 
5978 rajveer 953
  def getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 954
    """
955
    Determines the warehouse that should be used to fulfil an order for the given item.
956
    It first checks all the warehouses which are in the logistics location given by the
957
    warehouse_loc parameter. If none of the warehouses there have any inventory, then the
958
    preferred warehouse for the item is used.
959
 
960
    Returns an ordered list of size 4 with following elements in the given order:
961
    1. Id of the fulfillment warehouse which was finally picked up.
962
    2. Expected delay added by the category manager.
963
    3. Id of the billing warehouse which was finally picked up.
964
 
965
    Parameters:
966
     - itemId
5978 rajveer 967
     - sourceId
5944 mandeep.dh 968
    """
5978 rajveer 969
    self.send_getItemAvailabilityAtLocation(itemId, sourceId)
5944 mandeep.dh 970
    return self.recv_getItemAvailabilityAtLocation()
971
 
5978 rajveer 972
  def send_getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 973
    self._oprot.writeMessageBegin('getItemAvailabilityAtLocation', TMessageType.CALL, self._seqid)
974
    args = getItemAvailabilityAtLocation_args()
975
    args.itemId = itemId
5978 rajveer 976
    args.sourceId = sourceId
5944 mandeep.dh 977
    args.write(self._oprot)
978
    self._oprot.writeMessageEnd()
979
    self._oprot.trans.flush()
980
 
981
  def recv_getItemAvailabilityAtLocation(self, ):
982
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
983
    if mtype == TMessageType.EXCEPTION:
984
      x = TApplicationException()
985
      x.read(self._iprot)
986
      self._iprot.readMessageEnd()
987
      raise x
988
    result = getItemAvailabilityAtLocation_result()
989
    result.read(self._iprot)
990
    self._iprot.readMessageEnd()
991
    if result.success is not None:
992
      return result.success
993
    if result.isex is not None:
994
      raise result.isex
995
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
996
 
997
  def getAllWarehouses(self, isActive):
998
    """
999
    Parameters:
1000
     - isActive
1001
    """
1002
    self.send_getAllWarehouses(isActive)
1003
    return self.recv_getAllWarehouses()
1004
 
1005
  def send_getAllWarehouses(self, isActive):
1006
    self._oprot.writeMessageBegin('getAllWarehouses', TMessageType.CALL, self._seqid)
1007
    args = getAllWarehouses_args()
1008
    args.isActive = isActive
1009
    args.write(self._oprot)
1010
    self._oprot.writeMessageEnd()
1011
    self._oprot.trans.flush()
1012
 
1013
  def recv_getAllWarehouses(self, ):
1014
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1015
    if mtype == TMessageType.EXCEPTION:
1016
      x = TApplicationException()
1017
      x.read(self._iprot)
1018
      self._iprot.readMessageEnd()
1019
      raise x
1020
    result = getAllWarehouses_result()
1021
    result.read(self._iprot)
1022
    self._iprot.readMessageEnd()
1023
    if result.success is not None:
1024
      return result.success
1025
    if result.cex is not None:
1026
      raise result.cex
1027
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
1028
 
1029
  def getWarehouse(self, warehouse_id):
1030
    """
1031
    Returns the warehouse with the given id.
1032
 
1033
    Parameters:
1034
     - warehouse_id
1035
    """
1036
    self.send_getWarehouse(warehouse_id)
1037
    return self.recv_getWarehouse()
1038
 
1039
  def send_getWarehouse(self, warehouse_id):
1040
    self._oprot.writeMessageBegin('getWarehouse', TMessageType.CALL, self._seqid)
1041
    args = getWarehouse_args()
1042
    args.warehouse_id = warehouse_id
1043
    args.write(self._oprot)
1044
    self._oprot.writeMessageEnd()
1045
    self._oprot.trans.flush()
1046
 
1047
  def recv_getWarehouse(self, ):
1048
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1049
    if mtype == TMessageType.EXCEPTION:
1050
      x = TApplicationException()
1051
      x.read(self._iprot)
1052
      self._iprot.readMessageEnd()
1053
      raise x
1054
    result = getWarehouse_result()
1055
    result.read(self._iprot)
1056
    self._iprot.readMessageEnd()
1057
    if result.success is not None:
1058
      return result.success
1059
    if result.cex is not None:
1060
      raise result.cex
1061
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
1062
 
1063
  def getAllItemsForWarehouse(self, warehouse_id):
1064
    """
1065
    Parameters:
1066
     - warehouse_id
1067
    """
1068
    self.send_getAllItemsForWarehouse(warehouse_id)
1069
    return self.recv_getAllItemsForWarehouse()
1070
 
1071
  def send_getAllItemsForWarehouse(self, warehouse_id):
1072
    self._oprot.writeMessageBegin('getAllItemsForWarehouse', TMessageType.CALL, self._seqid)
1073
    args = getAllItemsForWarehouse_args()
1074
    args.warehouse_id = warehouse_id
1075
    args.write(self._oprot)
1076
    self._oprot.writeMessageEnd()
1077
    self._oprot.trans.flush()
1078
 
1079
  def recv_getAllItemsForWarehouse(self, ):
1080
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1081
    if mtype == TMessageType.EXCEPTION:
1082
      x = TApplicationException()
1083
      x.read(self._iprot)
1084
      self._iprot.readMessageEnd()
1085
      raise x
1086
    result = getAllItemsForWarehouse_result()
1087
    result.read(self._iprot)
1088
    self._iprot.readMessageEnd()
1089
    if result.success is not None:
1090
      return result.success
1091
    if result.cex is not None:
1092
      raise result.cex
1093
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
1094
 
5966 rajveer 1095
  def isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
5944 mandeep.dh 1096
    """
5978 rajveer 1097
    Depending on reservation in the table, verify if we can bill this order or not.
5966 rajveer 1098
 
1099
    Parameters:
1100
     - itemId
1101
     - warehouseId
1102
     - sourceId
1103
     - orderId
1104
    """
1105
    self.send_isOrderBillable(itemId, warehouseId, sourceId, orderId)
1106
    return self.recv_isOrderBillable()
1107
 
1108
  def send_isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
1109
    self._oprot.writeMessageBegin('isOrderBillable', TMessageType.CALL, self._seqid)
1110
    args = isOrderBillable_args()
1111
    args.itemId = itemId
1112
    args.warehouseId = warehouseId
1113
    args.sourceId = sourceId
1114
    args.orderId = orderId
1115
    args.write(self._oprot)
1116
    self._oprot.writeMessageEnd()
1117
    self._oprot.trans.flush()
1118
 
1119
  def recv_isOrderBillable(self, ):
1120
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1121
    if mtype == TMessageType.EXCEPTION:
1122
      x = TApplicationException()
1123
      x.read(self._iprot)
1124
      self._iprot.readMessageEnd()
1125
      raise x
1126
    result = isOrderBillable_result()
1127
    result.read(self._iprot)
1128
    self._iprot.readMessageEnd()
1129
    if result.success is not None:
1130
      return result.success
1131
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
1132
 
1133
  def reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1134
    """
5944 mandeep.dh 1135
    Increases the reservation count for an item in a warehouse. Should always succeed normally.
1136
 
1137
    Parameters:
1138
     - itemId
1139
     - warehouseId
5966 rajveer 1140
     - sourceId
1141
     - orderId
1142
     - createdTimestamp
1143
     - promisedShippingTimestamp
5944 mandeep.dh 1144
     - quantity
1145
    """
5966 rajveer 1146
    self.send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
5944 mandeep.dh 1147
    return self.recv_reserveItemInWarehouse()
1148
 
5966 rajveer 1149
  def send_reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
5944 mandeep.dh 1150
    self._oprot.writeMessageBegin('reserveItemInWarehouse', TMessageType.CALL, self._seqid)
1151
    args = reserveItemInWarehouse_args()
1152
    args.itemId = itemId
1153
    args.warehouseId = warehouseId
5966 rajveer 1154
    args.sourceId = sourceId
1155
    args.orderId = orderId
1156
    args.createdTimestamp = createdTimestamp
1157
    args.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 1158
    args.quantity = quantity
1159
    args.write(self._oprot)
1160
    self._oprot.writeMessageEnd()
1161
    self._oprot.trans.flush()
1162
 
1163
  def recv_reserveItemInWarehouse(self, ):
1164
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1165
    if mtype == TMessageType.EXCEPTION:
1166
      x = TApplicationException()
1167
      x.read(self._iprot)
1168
      self._iprot.readMessageEnd()
1169
      raise x
1170
    result = reserveItemInWarehouse_result()
1171
    result.read(self._iprot)
1172
    self._iprot.readMessageEnd()
1173
    if result.success is not None:
1174
      return result.success
1175
    if result.cex is not None:
1176
      raise result.cex
1177
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
1178
 
7968 amar.kumar 1179
  def updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1180
    """
1181
    Updates the reservation for Order
1182
 
1183
    Parameters:
1184
     - itemId
1185
     - warehouseId
1186
     - sourceId
1187
     - orderId
1188
     - createdTimestamp
1189
     - promisedShippingTimestamp
1190
     - quantity
1191
    """
1192
    self.send_updateReservationForOrder(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
1193
    return self.recv_updateReservationForOrder()
1194
 
1195
  def send_updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1196
    self._oprot.writeMessageBegin('updateReservationForOrder', TMessageType.CALL, self._seqid)
1197
    args = updateReservationForOrder_args()
1198
    args.itemId = itemId
1199
    args.warehouseId = warehouseId
1200
    args.sourceId = sourceId
1201
    args.orderId = orderId
1202
    args.createdTimestamp = createdTimestamp
1203
    args.promisedShippingTimestamp = promisedShippingTimestamp
1204
    args.quantity = quantity
1205
    args.write(self._oprot)
1206
    self._oprot.writeMessageEnd()
1207
    self._oprot.trans.flush()
1208
 
1209
  def recv_updateReservationForOrder(self, ):
1210
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1211
    if mtype == TMessageType.EXCEPTION:
1212
      x = TApplicationException()
1213
      x.read(self._iprot)
1214
      self._iprot.readMessageEnd()
1215
      raise x
1216
    result = updateReservationForOrder_result()
1217
    result.read(self._iprot)
1218
    self._iprot.readMessageEnd()
1219
    if result.success is not None:
1220
      return result.success
1221
    if result.cex is not None:
1222
      raise result.cex
1223
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateReservationForOrder failed: unknown result");
1224
 
5966 rajveer 1225
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1226
    """
1227
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
1228
 
1229
    Parameters:
1230
     - itemId
1231
     - warehouseId
5966 rajveer 1232
     - sourceId
1233
     - orderId
5944 mandeep.dh 1234
     - quantity
1235
    """
5966 rajveer 1236
    self.send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity)
5944 mandeep.dh 1237
    return self.recv_reduceReservationCount()
1238
 
5966 rajveer 1239
  def send_reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1240
    self._oprot.writeMessageBegin('reduceReservationCount', TMessageType.CALL, self._seqid)
1241
    args = reduceReservationCount_args()
1242
    args.itemId = itemId
1243
    args.warehouseId = warehouseId
5966 rajveer 1244
    args.sourceId = sourceId
1245
    args.orderId = orderId
5944 mandeep.dh 1246
    args.quantity = quantity
1247
    args.write(self._oprot)
1248
    self._oprot.writeMessageEnd()
1249
    self._oprot.trans.flush()
1250
 
1251
  def recv_reduceReservationCount(self, ):
1252
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1253
    if mtype == TMessageType.EXCEPTION:
1254
      x = TApplicationException()
1255
      x.read(self._iprot)
1256
      self._iprot.readMessageEnd()
1257
      raise x
1258
    result = reduceReservationCount_result()
1259
    result.read(self._iprot)
1260
    self._iprot.readMessageEnd()
1261
    if result.success is not None:
1262
      return result.success
1263
    if result.cex is not None:
1264
      raise result.cex
1265
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
1266
 
1267
  def getItemPricing(self, itemId, vendorId):
1268
    """
1269
    Returns the pricing information of an item associated with the vendor of the given warehouse.
1270
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
1271
 
1272
    Parameters:
1273
     - itemId
1274
     - vendorId
1275
    """
1276
    self.send_getItemPricing(itemId, vendorId)
1277
    return self.recv_getItemPricing()
1278
 
1279
  def send_getItemPricing(self, itemId, vendorId):
1280
    self._oprot.writeMessageBegin('getItemPricing', TMessageType.CALL, self._seqid)
1281
    args = getItemPricing_args()
1282
    args.itemId = itemId
1283
    args.vendorId = vendorId
1284
    args.write(self._oprot)
1285
    self._oprot.writeMessageEnd()
1286
    self._oprot.trans.flush()
1287
 
1288
  def recv_getItemPricing(self, ):
1289
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1290
    if mtype == TMessageType.EXCEPTION:
1291
      x = TApplicationException()
1292
      x.read(self._iprot)
1293
      self._iprot.readMessageEnd()
1294
      raise x
1295
    result = getItemPricing_result()
1296
    result.read(self._iprot)
1297
    self._iprot.readMessageEnd()
1298
    if result.success is not None:
1299
      return result.success
1300
    if result.cex is not None:
1301
      raise result.cex
1302
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
1303
 
1304
  def getAllItemPricing(self, itemId):
1305
    """
1306
    Returns the list of vendor pricing information of an item.
1307
    Raises an exception if item not found corresponding to itemId
1308
 
1309
    Parameters:
1310
     - itemId
1311
    """
1312
    self.send_getAllItemPricing(itemId)
1313
    return self.recv_getAllItemPricing()
1314
 
1315
  def send_getAllItemPricing(self, itemId):
1316
    self._oprot.writeMessageBegin('getAllItemPricing', TMessageType.CALL, self._seqid)
1317
    args = getAllItemPricing_args()
1318
    args.itemId = itemId
1319
    args.write(self._oprot)
1320
    self._oprot.writeMessageEnd()
1321
    self._oprot.trans.flush()
1322
 
1323
  def recv_getAllItemPricing(self, ):
1324
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1325
    if mtype == TMessageType.EXCEPTION:
1326
      x = TApplicationException()
1327
      x.read(self._iprot)
1328
      self._iprot.readMessageEnd()
1329
      raise x
1330
    result = getAllItemPricing_result()
1331
    result.read(self._iprot)
1332
    self._iprot.readMessageEnd()
1333
    if result.success is not None:
1334
      return result.success
1335
    if result.cex is not None:
1336
      raise result.cex
1337
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
1338
 
1339
  def addVendorItemPricing(self, vendorItemPricing):
1340
    """
1341
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
1342
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
1343
 
1344
    Parameters:
1345
     - vendorItemPricing
1346
    """
1347
    self.send_addVendorItemPricing(vendorItemPricing)
1348
    self.recv_addVendorItemPricing()
1349
 
1350
  def send_addVendorItemPricing(self, vendorItemPricing):
1351
    self._oprot.writeMessageBegin('addVendorItemPricing', TMessageType.CALL, self._seqid)
1352
    args = addVendorItemPricing_args()
1353
    args.vendorItemPricing = vendorItemPricing
1354
    args.write(self._oprot)
1355
    self._oprot.writeMessageEnd()
1356
    self._oprot.trans.flush()
1357
 
1358
  def recv_addVendorItemPricing(self, ):
1359
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1360
    if mtype == TMessageType.EXCEPTION:
1361
      x = TApplicationException()
1362
      x.read(self._iprot)
1363
      self._iprot.readMessageEnd()
1364
      raise x
1365
    result = addVendorItemPricing_result()
1366
    result.read(self._iprot)
1367
    self._iprot.readMessageEnd()
1368
    if result.cex is not None:
1369
      raise result.cex
1370
    return
1371
 
1372
  def getVendor(self, vendorId):
1373
    """
1374
    Returns a vendor given its id
1375
 
1376
    Parameters:
1377
     - vendorId
1378
    """
1379
    self.send_getVendor(vendorId)
1380
    return self.recv_getVendor()
1381
 
1382
  def send_getVendor(self, vendorId):
1383
    self._oprot.writeMessageBegin('getVendor', TMessageType.CALL, self._seqid)
1384
    args = getVendor_args()
1385
    args.vendorId = vendorId
1386
    args.write(self._oprot)
1387
    self._oprot.writeMessageEnd()
1388
    self._oprot.trans.flush()
1389
 
1390
  def recv_getVendor(self, ):
1391
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1392
    if mtype == TMessageType.EXCEPTION:
1393
      x = TApplicationException()
1394
      x.read(self._iprot)
1395
      self._iprot.readMessageEnd()
1396
      raise x
1397
    result = getVendor_result()
1398
    result.read(self._iprot)
1399
    self._iprot.readMessageEnd()
1400
    if result.success is not None:
1401
      return result.success
1402
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
1403
 
1404
  def getAllVendors(self, ):
1405
    """
1406
    Return list of all vendors
1407
    """
1408
    self.send_getAllVendors()
1409
    return self.recv_getAllVendors()
1410
 
1411
  def send_getAllVendors(self, ):
1412
    self._oprot.writeMessageBegin('getAllVendors', TMessageType.CALL, self._seqid)
1413
    args = getAllVendors_args()
1414
    args.write(self._oprot)
1415
    self._oprot.writeMessageEnd()
1416
    self._oprot.trans.flush()
1417
 
1418
  def recv_getAllVendors(self, ):
1419
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1420
    if mtype == TMessageType.EXCEPTION:
1421
      x = TApplicationException()
1422
      x.read(self._iprot)
1423
      self._iprot.readMessageEnd()
1424
      raise x
1425
    result = getAllVendors_result()
1426
    result.read(self._iprot)
1427
    self._iprot.readMessageEnd()
1428
    if result.success is not None:
1429
      return result.success
1430
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1431
 
1432
  def addVendorItemMapping(self, key, vendorItemMapping):
1433
    """
1434
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
1435
 
1436
    Parameters:
1437
     - key
1438
     - vendorItemMapping
1439
    """
1440
    self.send_addVendorItemMapping(key, vendorItemMapping)
1441
    self.recv_addVendorItemMapping()
1442
 
1443
  def send_addVendorItemMapping(self, key, vendorItemMapping):
1444
    self._oprot.writeMessageBegin('addVendorItemMapping', TMessageType.CALL, self._seqid)
1445
    args = addVendorItemMapping_args()
1446
    args.key = key
1447
    args.vendorItemMapping = vendorItemMapping
1448
    args.write(self._oprot)
1449
    self._oprot.writeMessageEnd()
1450
    self._oprot.trans.flush()
1451
 
1452
  def recv_addVendorItemMapping(self, ):
1453
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1454
    if mtype == TMessageType.EXCEPTION:
1455
      x = TApplicationException()
1456
      x.read(self._iprot)
1457
      self._iprot.readMessageEnd()
1458
      raise x
1459
    result = addVendorItemMapping_result()
1460
    result.read(self._iprot)
1461
    self._iprot.readMessageEnd()
1462
    if result.cex is not None:
1463
      raise result.cex
1464
    return
1465
 
1466
  def getVendorItemMappings(self, itemId):
1467
    """
1468
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
1469
    Raises an exception if item not found corresponding to itemId
1470
 
1471
    Parameters:
1472
     - itemId
1473
    """
1474
    self.send_getVendorItemMappings(itemId)
1475
    return self.recv_getVendorItemMappings()
1476
 
1477
  def send_getVendorItemMappings(self, itemId):
1478
    self._oprot.writeMessageBegin('getVendorItemMappings', TMessageType.CALL, self._seqid)
1479
    args = getVendorItemMappings_args()
1480
    args.itemId = itemId
1481
    args.write(self._oprot)
1482
    self._oprot.writeMessageEnd()
1483
    self._oprot.trans.flush()
1484
 
1485
  def recv_getVendorItemMappings(self, ):
1486
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1487
    if mtype == TMessageType.EXCEPTION:
1488
      x = TApplicationException()
1489
      x.read(self._iprot)
1490
      self._iprot.readMessageEnd()
1491
      raise x
1492
    result = getVendorItemMappings_result()
1493
    result.read(self._iprot)
1494
    self._iprot.readMessageEnd()
1495
    if result.success is not None:
1496
      return result.success
1497
    if result.cex is not None:
1498
      raise result.cex
1499
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
1500
 
1501
  def getPendingOrdersInventory(self, vendorid):
1502
    """
1503
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
1504
 
1505
    Parameters:
1506
     - vendorid
1507
    """
1508
    self.send_getPendingOrdersInventory(vendorid)
1509
    return self.recv_getPendingOrdersInventory()
1510
 
1511
  def send_getPendingOrdersInventory(self, vendorid):
1512
    self._oprot.writeMessageBegin('getPendingOrdersInventory', TMessageType.CALL, self._seqid)
1513
    args = getPendingOrdersInventory_args()
1514
    args.vendorid = vendorid
1515
    args.write(self._oprot)
1516
    self._oprot.writeMessageEnd()
1517
    self._oprot.trans.flush()
1518
 
1519
  def recv_getPendingOrdersInventory(self, ):
1520
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1521
    if mtype == TMessageType.EXCEPTION:
1522
      x = TApplicationException()
1523
      x.read(self._iprot)
1524
      self._iprot.readMessageEnd()
1525
      raise x
1526
    result = getPendingOrdersInventory_result()
1527
    result.read(self._iprot)
1528
    self._iprot.readMessageEnd()
1529
    if result.success is not None:
1530
      return result.success
1531
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1532
 
1533
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1534
    """
1535
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
1536
    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
1537
    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
1538
       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
1539
       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
1540
 
1541
    Parameters:
1542
     - warehouseType
1543
     - inventoryType
1544
     - vendorId
1545
     - billingWarehouseId
1546
     - shippingWarehouseId
1547
    """
1548
    self.send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId)
1549
    return self.recv_getWarehouses()
1550
 
1551
  def send_getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1552
    self._oprot.writeMessageBegin('getWarehouses', TMessageType.CALL, self._seqid)
1553
    args = getWarehouses_args()
1554
    args.warehouseType = warehouseType
1555
    args.inventoryType = inventoryType
1556
    args.vendorId = vendorId
1557
    args.billingWarehouseId = billingWarehouseId
1558
    args.shippingWarehouseId = shippingWarehouseId
1559
    args.write(self._oprot)
1560
    self._oprot.writeMessageEnd()
1561
    self._oprot.trans.flush()
1562
 
1563
  def recv_getWarehouses(self, ):
1564
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1565
    if mtype == TMessageType.EXCEPTION:
1566
      x = TApplicationException()
1567
      x.read(self._iprot)
1568
      self._iprot.readMessageEnd()
1569
      raise x
1570
    result = getWarehouses_result()
1571
    result.read(self._iprot)
1572
    self._iprot.readMessageEnd()
1573
    if result.success is not None:
1574
      return result.success
1575
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1576
 
1577
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1578
    """
1579
    Resets availability of an item to the quantity mentioned in a warehouse.
1580
 
1581
    Parameters:
1582
     - itemKey
1583
     - vendorId
1584
     - quantity
1585
     - warehouseId
1586
    """
1587
    self.send_resetAvailability(itemKey, vendorId, quantity, warehouseId)
1588
    self.recv_resetAvailability()
1589
 
1590
  def send_resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1591
    self._oprot.writeMessageBegin('resetAvailability', TMessageType.CALL, self._seqid)
1592
    args = resetAvailability_args()
1593
    args.itemKey = itemKey
1594
    args.vendorId = vendorId
1595
    args.quantity = quantity
1596
    args.warehouseId = warehouseId
1597
    args.write(self._oprot)
1598
    self._oprot.writeMessageEnd()
1599
    self._oprot.trans.flush()
1600
 
1601
  def recv_resetAvailability(self, ):
1602
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1603
    if mtype == TMessageType.EXCEPTION:
1604
      x = TApplicationException()
1605
      x.read(self._iprot)
1606
      self._iprot.readMessageEnd()
1607
      raise x
1608
    result = resetAvailability_result()
1609
    result.read(self._iprot)
1610
    self._iprot.readMessageEnd()
1611
    if result.cex is not None:
1612
      raise result.cex
1613
    return
1614
 
1615
  def resetAvailabilityForWarehouse(self, warehouseId):
1616
    """
1617
    Resets availability of a warehouse to zero.
1618
 
1619
    Parameters:
1620
     - warehouseId
1621
    """
1622
    self.send_resetAvailabilityForWarehouse(warehouseId)
1623
    self.recv_resetAvailabilityForWarehouse()
1624
 
1625
  def send_resetAvailabilityForWarehouse(self, warehouseId):
1626
    self._oprot.writeMessageBegin('resetAvailabilityForWarehouse', TMessageType.CALL, self._seqid)
1627
    args = resetAvailabilityForWarehouse_args()
1628
    args.warehouseId = warehouseId
1629
    args.write(self._oprot)
1630
    self._oprot.writeMessageEnd()
1631
    self._oprot.trans.flush()
1632
 
1633
  def recv_resetAvailabilityForWarehouse(self, ):
1634
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1635
    if mtype == TMessageType.EXCEPTION:
1636
      x = TApplicationException()
1637
      x.read(self._iprot)
1638
      self._iprot.readMessageEnd()
1639
      raise x
1640
    result = resetAvailabilityForWarehouse_result()
1641
    result.read(self._iprot)
1642
    self._iprot.readMessageEnd()
1643
    if result.cex is not None:
1644
      raise result.cex
1645
    return
1646
 
1647
  def getItemKeysToBeProcessed(self, warehouseId):
1648
    """
1649
    Returns the list of item keys which need to be processed for a given warehouse.
1650
    This is currently used by Support application to send item keys whose inventory needs
1651
    to be updated from PLB
1652
 
1653
    Parameters:
1654
     - warehouseId
1655
    """
1656
    self.send_getItemKeysToBeProcessed(warehouseId)
1657
    return self.recv_getItemKeysToBeProcessed()
1658
 
1659
  def send_getItemKeysToBeProcessed(self, warehouseId):
1660
    self._oprot.writeMessageBegin('getItemKeysToBeProcessed', TMessageType.CALL, self._seqid)
1661
    args = getItemKeysToBeProcessed_args()
1662
    args.warehouseId = warehouseId
1663
    args.write(self._oprot)
1664
    self._oprot.writeMessageEnd()
1665
    self._oprot.trans.flush()
1666
 
1667
  def recv_getItemKeysToBeProcessed(self, ):
1668
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1669
    if mtype == TMessageType.EXCEPTION:
1670
      x = TApplicationException()
1671
      x.read(self._iprot)
1672
      self._iprot.readMessageEnd()
1673
      raise x
1674
    result = getItemKeysToBeProcessed_result()
1675
    result.read(self._iprot)
1676
    self._iprot.readMessageEnd()
1677
    if result.success is not None:
1678
      return result.success
1679
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1680
 
1681
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1682
    """
1683
    Marks/Deletes missed inventory updates for a given key and warehouse.
1684
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
1685
 
1686
    Parameters:
1687
     - itemKey
1688
     - warehouseId
1689
    """
1690
    self.send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId)
1691
    self.recv_markMissedInventoryUpdatesAsProcessed()
1692
 
1693
  def send_markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1694
    self._oprot.writeMessageBegin('markMissedInventoryUpdatesAsProcessed', TMessageType.CALL, self._seqid)
1695
    args = markMissedInventoryUpdatesAsProcessed_args()
1696
    args.itemKey = itemKey
1697
    args.warehouseId = warehouseId
1698
    args.write(self._oprot)
1699
    self._oprot.writeMessageEnd()
1700
    self._oprot.trans.flush()
1701
 
1702
  def recv_markMissedInventoryUpdatesAsProcessed(self, ):
1703
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1704
    if mtype == TMessageType.EXCEPTION:
1705
      x = TApplicationException()
1706
      x.read(self._iprot)
1707
      self._iprot.readMessageEnd()
1708
      raise x
1709
    result = markMissedInventoryUpdatesAsProcessed_result()
1710
    result.read(self._iprot)
1711
    self._iprot.readMessageEnd()
1712
    return
1713
 
1714
  def getIgnoredItemKeys(self, ):
1715
    """
1716
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
1717
    and the timestamp from where alert was raised.
1718
    """
1719
    self.send_getIgnoredItemKeys()
1720
    return self.recv_getIgnoredItemKeys()
1721
 
1722
  def send_getIgnoredItemKeys(self, ):
1723
    self._oprot.writeMessageBegin('getIgnoredItemKeys', TMessageType.CALL, self._seqid)
1724
    args = getIgnoredItemKeys_args()
1725
    args.write(self._oprot)
1726
    self._oprot.writeMessageEnd()
1727
    self._oprot.trans.flush()
1728
 
1729
  def recv_getIgnoredItemKeys(self, ):
1730
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1731
    if mtype == TMessageType.EXCEPTION:
1732
      x = TApplicationException()
1733
      x.read(self._iprot)
1734
      self._iprot.readMessageEnd()
1735
      raise x
1736
    result = getIgnoredItemKeys_result()
1737
    result.read(self._iprot)
1738
    self._iprot.readMessageEnd()
1739
    if result.success is not None:
1740
      return result.success
1741
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1742
 
1743
  def addBadInventory(self, itemId, warehouseId, quantity):
1744
    """
1745
    Add the BAD type inventory to existing stock.
1746
 
1747
    Parameters:
1748
     - itemId
1749
     - warehouseId
1750
     - quantity
1751
    """
1752
    self.send_addBadInventory(itemId, warehouseId, quantity)
1753
    self.recv_addBadInventory()
1754
 
1755
  def send_addBadInventory(self, itemId, warehouseId, quantity):
1756
    self._oprot.writeMessageBegin('addBadInventory', TMessageType.CALL, self._seqid)
1757
    args = addBadInventory_args()
1758
    args.itemId = itemId
1759
    args.warehouseId = warehouseId
1760
    args.quantity = quantity
1761
    args.write(self._oprot)
1762
    self._oprot.writeMessageEnd()
1763
    self._oprot.trans.flush()
1764
 
1765
  def recv_addBadInventory(self, ):
1766
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1767
    if mtype == TMessageType.EXCEPTION:
1768
      x = TApplicationException()
1769
      x.read(self._iprot)
1770
      self._iprot.readMessageEnd()
1771
      raise x
1772
    result = addBadInventory_result()
1773
    result.read(self._iprot)
1774
    self._iprot.readMessageEnd()
1775
    if result.cex is not None:
1776
      raise result.cex
1777
    return
1778
 
1779
  def getShippingLocations(self, ):
1780
    """
1781
    Returns all shipping locations
1782
    """
1783
    self.send_getShippingLocations()
1784
    return self.recv_getShippingLocations()
1785
 
1786
  def send_getShippingLocations(self, ):
1787
    self._oprot.writeMessageBegin('getShippingLocations', TMessageType.CALL, self._seqid)
1788
    args = getShippingLocations_args()
1789
    args.write(self._oprot)
1790
    self._oprot.writeMessageEnd()
1791
    self._oprot.trans.flush()
1792
 
1793
  def recv_getShippingLocations(self, ):
1794
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1795
    if mtype == TMessageType.EXCEPTION:
1796
      x = TApplicationException()
1797
      x.read(self._iprot)
1798
      self._iprot.readMessageEnd()
1799
      raise x
1800
    result = getShippingLocations_result()
1801
    result.read(self._iprot)
1802
    self._iprot.readMessageEnd()
1803
    if result.success is not None:
1804
      return result.success
1805
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1806
 
1807
  def getAllVendorItemMappings(self, ):
1808
    """
1809
    Fetches all the vendor item mappings present.
1810
    """
1811
    self.send_getAllVendorItemMappings()
1812
    return self.recv_getAllVendorItemMappings()
1813
 
1814
  def send_getAllVendorItemMappings(self, ):
1815
    self._oprot.writeMessageBegin('getAllVendorItemMappings', TMessageType.CALL, self._seqid)
1816
    args = getAllVendorItemMappings_args()
1817
    args.write(self._oprot)
1818
    self._oprot.writeMessageEnd()
1819
    self._oprot.trans.flush()
1820
 
1821
  def recv_getAllVendorItemMappings(self, ):
1822
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1823
    if mtype == TMessageType.EXCEPTION:
1824
      x = TApplicationException()
1825
      x.read(self._iprot)
1826
      self._iprot.readMessageEnd()
1827
      raise x
1828
    result = getAllVendorItemMappings_result()
1829
    result.read(self._iprot)
1830
    self._iprot.readMessageEnd()
1831
    if result.success is not None:
1832
      return result.success
1833
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1834
 
1835
  def getInventorySnapshot(self, warehouseId):
1836
    """
1837
    Gets items' inventory for a warehouse
1838
    If warehouse is passed as zero, items' inventory across all warehouses is sent
1839
 
1840
    Parameters:
1841
     - warehouseId
1842
    """
1843
    self.send_getInventorySnapshot(warehouseId)
1844
    return self.recv_getInventorySnapshot()
1845
 
1846
  def send_getInventorySnapshot(self, warehouseId):
1847
    self._oprot.writeMessageBegin('getInventorySnapshot', TMessageType.CALL, self._seqid)
1848
    args = getInventorySnapshot_args()
1849
    args.warehouseId = warehouseId
1850
    args.write(self._oprot)
1851
    self._oprot.writeMessageEnd()
1852
    self._oprot.trans.flush()
1853
 
1854
  def recv_getInventorySnapshot(self, ):
1855
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1856
    if mtype == TMessageType.EXCEPTION:
1857
      x = TApplicationException()
1858
      x.read(self._iprot)
1859
      self._iprot.readMessageEnd()
1860
      raise x
1861
    result = getInventorySnapshot_result()
1862
    result.read(self._iprot)
1863
    self._iprot.readMessageEnd()
1864
    if result.success is not None:
1865
      return result.success
1866
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1867
 
1868
  def clearItemAvailabilityCache(self, ):
1869
    """
1870
    Clear item availability cache.
1871
    """
1872
    self.send_clearItemAvailabilityCache()
1873
    self.recv_clearItemAvailabilityCache()
1874
 
1875
  def send_clearItemAvailabilityCache(self, ):
1876
    self._oprot.writeMessageBegin('clearItemAvailabilityCache', TMessageType.CALL, self._seqid)
1877
    args = clearItemAvailabilityCache_args()
1878
    args.write(self._oprot)
1879
    self._oprot.writeMessageEnd()
1880
    self._oprot.trans.flush()
1881
 
1882
  def recv_clearItemAvailabilityCache(self, ):
1883
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1884
    if mtype == TMessageType.EXCEPTION:
1885
      x = TApplicationException()
1886
      x.read(self._iprot)
1887
      self._iprot.readMessageEnd()
1888
      raise x
1889
    result = clearItemAvailabilityCache_result()
1890
    result.read(self._iprot)
1891
    self._iprot.readMessageEnd()
1892
    return
1893
 
1894
  def updateVendorString(self, warehouseId, vendorString):
1895
    """
1896
    Parameters:
1897
     - warehouseId
1898
     - vendorString
1899
    """
1900
    self.send_updateVendorString(warehouseId, vendorString)
1901
    self.recv_updateVendorString()
1902
 
1903
  def send_updateVendorString(self, warehouseId, vendorString):
1904
    self._oprot.writeMessageBegin('updateVendorString', TMessageType.CALL, self._seqid)
1905
    args = updateVendorString_args()
1906
    args.warehouseId = warehouseId
1907
    args.vendorString = vendorString
1908
    args.write(self._oprot)
1909
    self._oprot.writeMessageEnd()
1910
    self._oprot.trans.flush()
1911
 
1912
  def recv_updateVendorString(self, ):
1913
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1914
    if mtype == TMessageType.EXCEPTION:
1915
      x = TApplicationException()
1916
      x.read(self._iprot)
1917
      self._iprot.readMessageEnd()
1918
      raise x
1919
    result = updateVendorString_result()
1920
    result.read(self._iprot)
1921
    self._iprot.readMessageEnd()
1922
    return
1923
 
6096 amit.gupta 1924
  def clearItemAvailabilityCacheForItem(self, item_id):
1925
    """
1926
    Parameters:
1927
     - item_id
1928
    """
1929
    self.send_clearItemAvailabilityCacheForItem(item_id)
1930
    self.recv_clearItemAvailabilityCacheForItem()
5944 mandeep.dh 1931
 
6096 amit.gupta 1932
  def send_clearItemAvailabilityCacheForItem(self, item_id):
1933
    self._oprot.writeMessageBegin('clearItemAvailabilityCacheForItem', TMessageType.CALL, self._seqid)
1934
    args = clearItemAvailabilityCacheForItem_args()
1935
    args.item_id = item_id
1936
    args.write(self._oprot)
1937
    self._oprot.writeMessageEnd()
1938
    self._oprot.trans.flush()
1939
 
1940
  def recv_clearItemAvailabilityCacheForItem(self, ):
1941
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1942
    if mtype == TMessageType.EXCEPTION:
1943
      x = TApplicationException()
1944
      x.read(self._iprot)
1945
      self._iprot.readMessageEnd()
1946
      raise x
1947
    result = clearItemAvailabilityCacheForItem_result()
1948
    result.read(self._iprot)
1949
    self._iprot.readMessageEnd()
1950
    return
1951
 
7718 amar.kumar 1952
  def getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1953
    """
1954
    Parameters:
1955
     - vendorId
7718 amar.kumar 1956
     - billingWarehouseId
6467 amar.kumar 1957
    """
7718 amar.kumar 1958
    self.send_getOurWarehouseIdForVendor(vendorId, billingWarehouseId)
6467 amar.kumar 1959
    return self.recv_getOurWarehouseIdForVendor()
6096 amit.gupta 1960
 
7718 amar.kumar 1961
  def send_getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1962
    self._oprot.writeMessageBegin('getOurWarehouseIdForVendor', TMessageType.CALL, self._seqid)
1963
    args = getOurWarehouseIdForVendor_args()
1964
    args.vendorId = vendorId
7718 amar.kumar 1965
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 1966
    args.write(self._oprot)
1967
    self._oprot.writeMessageEnd()
1968
    self._oprot.trans.flush()
1969
 
1970
  def recv_getOurWarehouseIdForVendor(self, ):
1971
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1972
    if mtype == TMessageType.EXCEPTION:
1973
      x = TApplicationException()
1974
      x.read(self._iprot)
1975
      self._iprot.readMessageEnd()
1976
      raise x
1977
    result = getOurWarehouseIdForVendor_result()
1978
    result.read(self._iprot)
1979
    self._iprot.readMessageEnd()
1980
    if result.success is not None:
1981
      return result.success
1982
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1983
 
6484 amar.kumar 1984
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1985
    """
1986
    Parameters:
1987
     - item_ids
1988
    """
1989
    self.send_getItemAvailabilitiesAtOurWarehouses(item_ids)
1990
    return self.recv_getItemAvailabilitiesAtOurWarehouses()
6467 amar.kumar 1991
 
6484 amar.kumar 1992
  def send_getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1993
    self._oprot.writeMessageBegin('getItemAvailabilitiesAtOurWarehouses', TMessageType.CALL, self._seqid)
1994
    args = getItemAvailabilitiesAtOurWarehouses_args()
1995
    args.item_ids = item_ids
1996
    args.write(self._oprot)
1997
    self._oprot.writeMessageEnd()
1998
    self._oprot.trans.flush()
1999
 
2000
  def recv_getItemAvailabilitiesAtOurWarehouses(self, ):
2001
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2002
    if mtype == TMessageType.EXCEPTION:
2003
      x = TApplicationException()
2004
      x.read(self._iprot)
2005
      self._iprot.readMessageEnd()
2006
      raise x
2007
    result = getItemAvailabilitiesAtOurWarehouses_result()
2008
    result.read(self._iprot)
2009
    self._iprot.readMessageEnd()
2010
    if result.success is not None:
2011
      return result.success
2012
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
2013
 
6531 vikram.rag 2014
  def getMonitoredWarehouseForVendors(self, vendorIds):
2015
    """
2016
    Parameters:
2017
     - vendorIds
2018
    """
2019
    self.send_getMonitoredWarehouseForVendors(vendorIds)
2020
    return self.recv_getMonitoredWarehouseForVendors()
6484 amar.kumar 2021
 
6531 vikram.rag 2022
  def send_getMonitoredWarehouseForVendors(self, vendorIds):
2023
    self._oprot.writeMessageBegin('getMonitoredWarehouseForVendors', TMessageType.CALL, self._seqid)
2024
    args = getMonitoredWarehouseForVendors_args()
2025
    args.vendorIds = vendorIds
2026
    args.write(self._oprot)
2027
    self._oprot.writeMessageEnd()
2028
    self._oprot.trans.flush()
2029
 
2030
  def recv_getMonitoredWarehouseForVendors(self, ):
2031
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2032
    if mtype == TMessageType.EXCEPTION:
2033
      x = TApplicationException()
2034
      x.read(self._iprot)
2035
      self._iprot.readMessageEnd()
2036
      raise x
2037
    result = getMonitoredWarehouseForVendors_result()
2038
    result.read(self._iprot)
2039
    self._iprot.readMessageEnd()
2040
    if result.success is not None:
2041
      return result.success
2042
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
2043
 
2044
  def getIgnoredWarehouseidsAndItemids(self, ):
2045
    self.send_getIgnoredWarehouseidsAndItemids()
2046
    return self.recv_getIgnoredWarehouseidsAndItemids()
2047
 
2048
  def send_getIgnoredWarehouseidsAndItemids(self, ):
2049
    self._oprot.writeMessageBegin('getIgnoredWarehouseidsAndItemids', TMessageType.CALL, self._seqid)
2050
    args = getIgnoredWarehouseidsAndItemids_args()
2051
    args.write(self._oprot)
2052
    self._oprot.writeMessageEnd()
2053
    self._oprot.trans.flush()
2054
 
2055
  def recv_getIgnoredWarehouseidsAndItemids(self, ):
2056
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2057
    if mtype == TMessageType.EXCEPTION:
2058
      x = TApplicationException()
2059
      x.read(self._iprot)
2060
      self._iprot.readMessageEnd()
2061
      raise x
2062
    result = getIgnoredWarehouseidsAndItemids_result()
2063
    result.read(self._iprot)
2064
    self._iprot.readMessageEnd()
2065
    if result.success is not None:
2066
      return result.success
2067
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
2068
 
2069
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2070
    """
2071
    Parameters:
2072
     - item_id
2073
     - warehouse_id
2074
    """
2075
    self.send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id)
2076
    return self.recv_insertItemtoIgnoreInventoryUpdatelist()
2077
 
2078
  def send_insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2079
    self._oprot.writeMessageBegin('insertItemtoIgnoreInventoryUpdatelist', TMessageType.CALL, self._seqid)
2080
    args = insertItemtoIgnoreInventoryUpdatelist_args()
2081
    args.item_id = item_id
2082
    args.warehouse_id = warehouse_id
2083
    args.write(self._oprot)
2084
    self._oprot.writeMessageEnd()
2085
    self._oprot.trans.flush()
2086
 
2087
  def recv_insertItemtoIgnoreInventoryUpdatelist(self, ):
2088
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2089
    if mtype == TMessageType.EXCEPTION:
2090
      x = TApplicationException()
2091
      x.read(self._iprot)
2092
      self._iprot.readMessageEnd()
2093
      raise x
2094
    result = insertItemtoIgnoreInventoryUpdatelist_result()
2095
    result.read(self._iprot)
2096
    self._iprot.readMessageEnd()
2097
    if result.success is not None:
2098
      return result.success
2099
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
2100
 
2101
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2102
    """
2103
    Parameters:
2104
     - item_id
2105
     - warehouse_id
2106
    """
2107
    self.send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id)
2108
    return self.recv_deleteItemFromIgnoredInventoryUpdateList()
2109
 
2110
  def send_deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2111
    self._oprot.writeMessageBegin('deleteItemFromIgnoredInventoryUpdateList', TMessageType.CALL, self._seqid)
2112
    args = deleteItemFromIgnoredInventoryUpdateList_args()
2113
    args.item_id = item_id
2114
    args.warehouse_id = warehouse_id
2115
    args.write(self._oprot)
2116
    self._oprot.writeMessageEnd()
2117
    self._oprot.trans.flush()
2118
 
2119
  def recv_deleteItemFromIgnoredInventoryUpdateList(self, ):
2120
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2121
    if mtype == TMessageType.EXCEPTION:
2122
      x = TApplicationException()
2123
      x.read(self._iprot)
2124
      self._iprot.readMessageEnd()
2125
      raise x
2126
    result = deleteItemFromIgnoredInventoryUpdateList_result()
2127
    result.read(self._iprot)
2128
    self._iprot.readMessageEnd()
2129
    if result.success is not None:
2130
      return result.success
2131
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
2132
 
2133
  def getAllIgnoredInventoryupdateItemsCount(self, ):
2134
    self.send_getAllIgnoredInventoryupdateItemsCount()
2135
    return self.recv_getAllIgnoredInventoryupdateItemsCount()
2136
 
2137
  def send_getAllIgnoredInventoryupdateItemsCount(self, ):
2138
    self._oprot.writeMessageBegin('getAllIgnoredInventoryupdateItemsCount', TMessageType.CALL, self._seqid)
2139
    args = getAllIgnoredInventoryupdateItemsCount_args()
2140
    args.write(self._oprot)
2141
    self._oprot.writeMessageEnd()
2142
    self._oprot.trans.flush()
2143
 
2144
  def recv_getAllIgnoredInventoryupdateItemsCount(self, ):
2145
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2146
    if mtype == TMessageType.EXCEPTION:
2147
      x = TApplicationException()
2148
      x.read(self._iprot)
2149
      self._iprot.readMessageEnd()
2150
      raise x
2151
    result = getAllIgnoredInventoryupdateItemsCount_result()
2152
    result.read(self._iprot)
2153
    self._iprot.readMessageEnd()
2154
    if result.success is not None:
2155
      return result.success
2156
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
2157
 
2158
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
2159
    """
2160
    Parameters:
2161
     - offset
2162
     - limit
2163
    """
2164
    self.send_getIgnoredInventoryUpdateItemids(offset, limit)
2165
    return self.recv_getIgnoredInventoryUpdateItemids()
2166
 
2167
  def send_getIgnoredInventoryUpdateItemids(self, offset, limit):
2168
    self._oprot.writeMessageBegin('getIgnoredInventoryUpdateItemids', TMessageType.CALL, self._seqid)
2169
    args = getIgnoredInventoryUpdateItemids_args()
2170
    args.offset = offset
2171
    args.limit = limit
2172
    args.write(self._oprot)
2173
    self._oprot.writeMessageEnd()
2174
    self._oprot.trans.flush()
2175
 
2176
  def recv_getIgnoredInventoryUpdateItemids(self, ):
2177
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2178
    if mtype == TMessageType.EXCEPTION:
2179
      x = TApplicationException()
2180
      x.read(self._iprot)
2181
      self._iprot.readMessageEnd()
2182
      raise x
2183
    result = getIgnoredInventoryUpdateItemids_result()
2184
    result.read(self._iprot)
2185
    self._iprot.readMessageEnd()
2186
    if result.success is not None:
2187
      return result.success
2188
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
2189
 
6821 amar.kumar 2190
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2191
    """
2192
    Parameters:
2193
     - item_id
2194
     - numOfDaysStock
2195
     - minStockLevel
2196
    """
2197
    self.send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel)
2198
    self.recv_updateItemStockPurchaseParams()
6531 vikram.rag 2199
 
6821 amar.kumar 2200
  def send_updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2201
    self._oprot.writeMessageBegin('updateItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2202
    args = updateItemStockPurchaseParams_args()
2203
    args.item_id = item_id
2204
    args.numOfDaysStock = numOfDaysStock
2205
    args.minStockLevel = minStockLevel
2206
    args.write(self._oprot)
2207
    self._oprot.writeMessageEnd()
2208
    self._oprot.trans.flush()
2209
 
2210
  def recv_updateItemStockPurchaseParams(self, ):
2211
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2212
    if mtype == TMessageType.EXCEPTION:
2213
      x = TApplicationException()
2214
      x.read(self._iprot)
2215
      self._iprot.readMessageEnd()
2216
      raise x
2217
    result = updateItemStockPurchaseParams_result()
2218
    result.read(self._iprot)
2219
    self._iprot.readMessageEnd()
2220
    return
2221
 
2222
  def getItemStockPurchaseParams(self, itemId):
2223
    """
2224
    Parameters:
2225
     - itemId
2226
    """
2227
    self.send_getItemStockPurchaseParams(itemId)
2228
    return self.recv_getItemStockPurchaseParams()
2229
 
2230
  def send_getItemStockPurchaseParams(self, itemId):
2231
    self._oprot.writeMessageBegin('getItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2232
    args = getItemStockPurchaseParams_args()
2233
    args.itemId = itemId
2234
    args.write(self._oprot)
2235
    self._oprot.writeMessageEnd()
2236
    self._oprot.trans.flush()
2237
 
2238
  def recv_getItemStockPurchaseParams(self, ):
2239
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2240
    if mtype == TMessageType.EXCEPTION:
2241
      x = TApplicationException()
2242
      x.read(self._iprot)
2243
      self._iprot.readMessageEnd()
2244
      raise x
2245
    result = getItemStockPurchaseParams_result()
2246
    result.read(self._iprot)
2247
    self._iprot.readMessageEnd()
2248
    if result.success is not None:
2249
      return result.success
2250
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
2251
 
2252
  def addOosStatusForItem(self, oosStatusMap, date):
2253
    """
2254
    Parameters:
2255
     - oosStatusMap
2256
     - date
2257
    """
2258
    self.send_addOosStatusForItem(oosStatusMap, date)
2259
    self.recv_addOosStatusForItem()
2260
 
2261
  def send_addOosStatusForItem(self, oosStatusMap, date):
2262
    self._oprot.writeMessageBegin('addOosStatusForItem', TMessageType.CALL, self._seqid)
2263
    args = addOosStatusForItem_args()
2264
    args.oosStatusMap = oosStatusMap
2265
    args.date = date
2266
    args.write(self._oprot)
2267
    self._oprot.writeMessageEnd()
2268
    self._oprot.trans.flush()
2269
 
2270
  def recv_addOosStatusForItem(self, ):
2271
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2272
    if mtype == TMessageType.EXCEPTION:
2273
      x = TApplicationException()
2274
      x.read(self._iprot)
2275
      self._iprot.readMessageEnd()
2276
      raise x
2277
    result = addOosStatusForItem_result()
2278
    result.read(self._iprot)
2279
    self._iprot.readMessageEnd()
2280
    return
2281
 
9762 amar.kumar 2282
  def getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2283
    """
2284
    Parameters:
2285
     - itemId
9762 amar.kumar 2286
     - sourceId
6832 amar.kumar 2287
     - days
2288
    """
9762 amar.kumar 2289
    self.send_getOosStatusesForXDaysForItem(itemId, sourceId, days)
6832 amar.kumar 2290
    return self.recv_getOosStatusesForXDaysForItem()
6821 amar.kumar 2291
 
9762 amar.kumar 2292
  def send_getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2293
    self._oprot.writeMessageBegin('getOosStatusesForXDaysForItem', TMessageType.CALL, self._seqid)
2294
    args = getOosStatusesForXDaysForItem_args()
2295
    args.itemId = itemId
9762 amar.kumar 2296
    args.sourceId = sourceId
6832 amar.kumar 2297
    args.days = days
2298
    args.write(self._oprot)
2299
    self._oprot.writeMessageEnd()
2300
    self._oprot.trans.flush()
2301
 
2302
  def recv_getOosStatusesForXDaysForItem(self, ):
2303
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2304
    if mtype == TMessageType.EXCEPTION:
2305
      x = TApplicationException()
2306
      x.read(self._iprot)
2307
      self._iprot.readMessageEnd()
2308
      raise x
2309
    result = getOosStatusesForXDaysForItem_result()
2310
    result.read(self._iprot)
2311
    self._iprot.readMessageEnd()
2312
    if result.success is not None:
2313
      return result.success
2314
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
2315
 
10126 amar.kumar 2316
  def getOosStatusesForXDays(self, sourceId, days):
2317
    """
2318
    Parameters:
2319
     - sourceId
2320
     - days
2321
    """
2322
    self.send_getOosStatusesForXDays(sourceId, days)
2323
    return self.recv_getOosStatusesForXDays()
2324
 
2325
  def send_getOosStatusesForXDays(self, sourceId, days):
2326
    self._oprot.writeMessageBegin('getOosStatusesForXDays', TMessageType.CALL, self._seqid)
2327
    args = getOosStatusesForXDays_args()
2328
    args.sourceId = sourceId
2329
    args.days = days
2330
    args.write(self._oprot)
2331
    self._oprot.writeMessageEnd()
2332
    self._oprot.trans.flush()
2333
 
2334
  def recv_getOosStatusesForXDays(self, ):
2335
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2336
    if mtype == TMessageType.EXCEPTION:
2337
      x = TApplicationException()
2338
      x.read(self._iprot)
2339
      self._iprot.readMessageEnd()
2340
      raise x
2341
    result = getOosStatusesForXDays_result()
2342
    result.read(self._iprot)
2343
    self._iprot.readMessageEnd()
2344
    if result.success is not None:
2345
      return result.success
2346
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDays failed: unknown result");
2347
 
2348
  def getAllVendorItemPricing(self, itemId, vendorId):
2349
    """
2350
    Parameters:
2351
     - itemId
2352
     - vendorId
2353
    """
2354
    self.send_getAllVendorItemPricing(itemId, vendorId)
2355
    return self.recv_getAllVendorItemPricing()
2356
 
2357
  def send_getAllVendorItemPricing(self, itemId, vendorId):
2358
    self._oprot.writeMessageBegin('getAllVendorItemPricing', TMessageType.CALL, self._seqid)
2359
    args = getAllVendorItemPricing_args()
2360
    args.itemId = itemId
2361
    args.vendorId = vendorId
2362
    args.write(self._oprot)
2363
    self._oprot.writeMessageEnd()
2364
    self._oprot.trans.flush()
2365
 
2366
  def recv_getAllVendorItemPricing(self, ):
2367
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2368
    if mtype == TMessageType.EXCEPTION:
2369
      x = TApplicationException()
2370
      x.read(self._iprot)
2371
      self._iprot.readMessageEnd()
2372
      raise x
2373
    result = getAllVendorItemPricing_result()
2374
    result.read(self._iprot)
2375
    self._iprot.readMessageEnd()
2376
    if result.success is not None:
2377
      return result.success
2378
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemPricing failed: unknown result");
2379
 
6857 amar.kumar 2380
  def getNonZeroItemStockPurchaseParams(self, ):
2381
    self.send_getNonZeroItemStockPurchaseParams()
2382
    return self.recv_getNonZeroItemStockPurchaseParams()
6832 amar.kumar 2383
 
6857 amar.kumar 2384
  def send_getNonZeroItemStockPurchaseParams(self, ):
2385
    self._oprot.writeMessageBegin('getNonZeroItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2386
    args = getNonZeroItemStockPurchaseParams_args()
2387
    args.write(self._oprot)
2388
    self._oprot.writeMessageEnd()
2389
    self._oprot.trans.flush()
2390
 
2391
  def recv_getNonZeroItemStockPurchaseParams(self, ):
2392
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2393
    if mtype == TMessageType.EXCEPTION:
2394
      x = TApplicationException()
2395
      x.read(self._iprot)
2396
      self._iprot.readMessageEnd()
2397
      raise x
2398
    result = getNonZeroItemStockPurchaseParams_result()
2399
    result.read(self._iprot)
2400
    self._iprot.readMessageEnd()
2401
    if result.success is not None:
2402
      return result.success
2403
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
2404
 
7149 amar.kumar 2405
  def getBillableInventoryAndPendingOrders(self, ):
2406
    """
2407
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
2408
    """
2409
    self.send_getBillableInventoryAndPendingOrders()
2410
    return self.recv_getBillableInventoryAndPendingOrders()
6857 amar.kumar 2411
 
7149 amar.kumar 2412
  def send_getBillableInventoryAndPendingOrders(self, ):
2413
    self._oprot.writeMessageBegin('getBillableInventoryAndPendingOrders', TMessageType.CALL, self._seqid)
2414
    args = getBillableInventoryAndPendingOrders_args()
2415
    args.write(self._oprot)
2416
    self._oprot.writeMessageEnd()
2417
    self._oprot.trans.flush()
2418
 
2419
  def recv_getBillableInventoryAndPendingOrders(self, ):
2420
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2421
    if mtype == TMessageType.EXCEPTION:
2422
      x = TApplicationException()
2423
      x.read(self._iprot)
2424
      self._iprot.readMessageEnd()
2425
      raise x
2426
    result = getBillableInventoryAndPendingOrders_result()
2427
    result.read(self._iprot)
2428
    self._iprot.readMessageEnd()
2429
    if result.success is not None:
2430
      return result.success
2431
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
2432
 
7281 kshitij.so 2433
  def getWarehouseName(self, warehouse_id):
2434
    """
2435
    Parameters:
2436
     - warehouse_id
2437
    """
2438
    self.send_getWarehouseName(warehouse_id)
2439
    return self.recv_getWarehouseName()
7149 amar.kumar 2440
 
7281 kshitij.so 2441
  def send_getWarehouseName(self, warehouse_id):
2442
    self._oprot.writeMessageBegin('getWarehouseName', TMessageType.CALL, self._seqid)
2443
    args = getWarehouseName_args()
2444
    args.warehouse_id = warehouse_id
2445
    args.write(self._oprot)
2446
    self._oprot.writeMessageEnd()
2447
    self._oprot.trans.flush()
2448
 
2449
  def recv_getWarehouseName(self, ):
2450
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2451
    if mtype == TMessageType.EXCEPTION:
2452
      x = TApplicationException()
2453
      x.read(self._iprot)
2454
      self._iprot.readMessageEnd()
2455
      raise x
2456
    result = getWarehouseName_result()
2457
    result.read(self._iprot)
2458
    self._iprot.readMessageEnd()
2459
    if result.success is not None:
2460
      return result.success
2461
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseName failed: unknown result");
2462
 
2463
  def getAmazonInventoryForItem(self, item_id):
2464
    """
2465
    Parameters:
2466
     - item_id
2467
    """
2468
    self.send_getAmazonInventoryForItem(item_id)
2469
    return self.recv_getAmazonInventoryForItem()
2470
 
2471
  def send_getAmazonInventoryForItem(self, item_id):
2472
    self._oprot.writeMessageBegin('getAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2473
    args = getAmazonInventoryForItem_args()
2474
    args.item_id = item_id
2475
    args.write(self._oprot)
2476
    self._oprot.writeMessageEnd()
2477
    self._oprot.trans.flush()
2478
 
2479
  def recv_getAmazonInventoryForItem(self, ):
2480
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2481
    if mtype == TMessageType.EXCEPTION:
2482
      x = TApplicationException()
2483
      x.read(self._iprot)
2484
      self._iprot.readMessageEnd()
2485
      raise x
2486
    result = getAmazonInventoryForItem_result()
2487
    result.read(self._iprot)
2488
    self._iprot.readMessageEnd()
2489
    if result.success is not None:
2490
      return result.success
2491
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonInventoryForItem failed: unknown result");
2492
 
2493
  def getAllAmazonInventory(self, ):
2494
    self.send_getAllAmazonInventory()
2495
    return self.recv_getAllAmazonInventory()
2496
 
2497
  def send_getAllAmazonInventory(self, ):
2498
    self._oprot.writeMessageBegin('getAllAmazonInventory', TMessageType.CALL, self._seqid)
2499
    args = getAllAmazonInventory_args()
2500
    args.write(self._oprot)
2501
    self._oprot.writeMessageEnd()
2502
    self._oprot.trans.flush()
2503
 
2504
  def recv_getAllAmazonInventory(self, ):
2505
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2506
    if mtype == TMessageType.EXCEPTION:
2507
      x = TApplicationException()
2508
      x.read(self._iprot)
2509
      self._iprot.readMessageEnd()
2510
      raise x
2511
    result = getAllAmazonInventory_result()
2512
    result.read(self._iprot)
2513
    self._iprot.readMessageEnd()
2514
    if result.success is not None:
2515
      return result.success
2516
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonInventory failed: unknown result");
2517
 
10450 vikram.rag 2518
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot, time):
7281 kshitij.so 2519
    """
2520
    Parameters:
2521
     - amazonInventorySnapshot
10450 vikram.rag 2522
     - time
7281 kshitij.so 2523
    """
10450 vikram.rag 2524
    self.send_addOrUpdateAmazonInventoryForItem(amazonInventorySnapshot, time)
7281 kshitij.so 2525
    self.recv_addOrUpdateAmazonInventoryForItem()
2526
 
10450 vikram.rag 2527
  def send_addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot, time):
7281 kshitij.so 2528
    self._oprot.writeMessageBegin('addOrUpdateAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2529
    args = addOrUpdateAmazonInventoryForItem_args()
2530
    args.amazonInventorySnapshot = amazonInventorySnapshot
10450 vikram.rag 2531
    args.time = time
7281 kshitij.so 2532
    args.write(self._oprot)
2533
    self._oprot.writeMessageEnd()
2534
    self._oprot.trans.flush()
2535
 
2536
  def recv_addOrUpdateAmazonInventoryForItem(self, ):
2537
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2538
    if mtype == TMessageType.EXCEPTION:
2539
      x = TApplicationException()
2540
      x.read(self._iprot)
2541
      self._iprot.readMessageEnd()
2542
      raise x
2543
    result = addOrUpdateAmazonInventoryForItem_result()
2544
    result.read(self._iprot)
2545
    self._iprot.readMessageEnd()
2546
    return
2547
 
7972 amar.kumar 2548
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
2549
    """
2550
    Parameters:
2551
     - itemId
2552
     - numberOfDays
2553
    """
2554
    self.send_getLastNdaySaleForItem(itemId, numberOfDays)
2555
    return self.recv_getLastNdaySaleForItem()
7281 kshitij.so 2556
 
7972 amar.kumar 2557
  def send_getLastNdaySaleForItem(self, itemId, numberOfDays):
2558
    self._oprot.writeMessageBegin('getLastNdaySaleForItem', TMessageType.CALL, self._seqid)
2559
    args = getLastNdaySaleForItem_args()
2560
    args.itemId = itemId
2561
    args.numberOfDays = numberOfDays
2562
    args.write(self._oprot)
2563
    self._oprot.writeMessageEnd()
2564
    self._oprot.trans.flush()
2565
 
2566
  def recv_getLastNdaySaleForItem(self, ):
2567
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2568
    if mtype == TMessageType.EXCEPTION:
2569
      x = TApplicationException()
2570
      x.read(self._iprot)
2571
      self._iprot.readMessageEnd()
2572
      raise x
2573
    result = getLastNdaySaleForItem_result()
2574
    result.read(self._iprot)
2575
    self._iprot.readMessageEnd()
2576
    if result.success is not None:
2577
      return result.success
2578
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastNdaySaleForItem failed: unknown result");
2579
 
8282 kshitij.so 2580
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2581
    """
2582
    Parameters:
2583
     - amazonfbainventorysnapshot
2584
    """
2585
    self.send_addOrUpdateAmazonFbaInventory(amazonfbainventorysnapshot)
2586
    self.recv_addOrUpdateAmazonFbaInventory()
2587
 
2588
  def send_addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2589
    self._oprot.writeMessageBegin('addOrUpdateAmazonFbaInventory', TMessageType.CALL, self._seqid)
2590
    args = addOrUpdateAmazonFbaInventory_args()
2591
    args.amazonfbainventorysnapshot = amazonfbainventorysnapshot
2592
    args.write(self._oprot)
2593
    self._oprot.writeMessageEnd()
2594
    self._oprot.trans.flush()
2595
 
2596
  def recv_addOrUpdateAmazonFbaInventory(self, ):
2597
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2598
    if mtype == TMessageType.EXCEPTION:
2599
      x = TApplicationException()
2600
      x.read(self._iprot)
2601
      self._iprot.readMessageEnd()
2602
      raise x
2603
    result = addOrUpdateAmazonFbaInventory_result()
2604
    result.read(self._iprot)
2605
    self._iprot.readMessageEnd()
2606
    return
2607
 
8182 amar.kumar 2608
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2609
    """
2610
    Parameters:
2611
     - itemId
2612
     - warehouseId
2613
     - holdQuantity
2614
     - source
2615
    """
2616
    self.send_addUpdateHoldInventory(itemId, warehouseId, holdQuantity, source)
2617
    self.recv_addUpdateHoldInventory()
7972 amar.kumar 2618
 
8182 amar.kumar 2619
  def send_addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2620
    self._oprot.writeMessageBegin('addUpdateHoldInventory', TMessageType.CALL, self._seqid)
2621
    args = addUpdateHoldInventory_args()
2622
    args.itemId = itemId
2623
    args.warehouseId = warehouseId
2624
    args.holdQuantity = holdQuantity
2625
    args.source = source
2626
    args.write(self._oprot)
2627
    self._oprot.writeMessageEnd()
2628
    self._oprot.trans.flush()
2629
 
2630
  def recv_addUpdateHoldInventory(self, ):
2631
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2632
    if mtype == TMessageType.EXCEPTION:
2633
      x = TApplicationException()
2634
      x.read(self._iprot)
2635
      self._iprot.readMessageEnd()
2636
      raise x
2637
    result = addUpdateHoldInventory_result()
2638
    result.read(self._iprot)
2639
    self._iprot.readMessageEnd()
9762 amar.kumar 2640
    if result.cex is not None:
2641
      raise result.cex
8182 amar.kumar 2642
    return
2643
 
8282 kshitij.so 2644
  def getAmazonFbaItemInventory(self, itemId):
2645
    """
2646
    Parameters:
2647
     - itemId
2648
    """
2649
    self.send_getAmazonFbaItemInventory(itemId)
2650
    return self.recv_getAmazonFbaItemInventory()
8182 amar.kumar 2651
 
8282 kshitij.so 2652
  def send_getAmazonFbaItemInventory(self, itemId):
2653
    self._oprot.writeMessageBegin('getAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2654
    args = getAmazonFbaItemInventory_args()
2655
    args.itemId = itemId
2656
    args.write(self._oprot)
2657
    self._oprot.writeMessageEnd()
2658
    self._oprot.trans.flush()
2659
 
2660
  def recv_getAmazonFbaItemInventory(self, ):
2661
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2662
    if mtype == TMessageType.EXCEPTION:
2663
      x = TApplicationException()
2664
      x.read(self._iprot)
2665
      self._iprot.readMessageEnd()
2666
      raise x
2667
    result = getAmazonFbaItemInventory_result()
2668
    result.read(self._iprot)
2669
    self._iprot.readMessageEnd()
2670
    if result.success is not None:
2671
      return result.success
2672
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonFbaItemInventory failed: unknown result");
2673
 
8363 vikram.rag 2674
  def getAllAmazonFbaItemInventory(self, ):
2675
    self.send_getAllAmazonFbaItemInventory()
2676
    return self.recv_getAllAmazonFbaItemInventory()
8282 kshitij.so 2677
 
8363 vikram.rag 2678
  def send_getAllAmazonFbaItemInventory(self, ):
2679
    self._oprot.writeMessageBegin('getAllAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2680
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 2681
    args.write(self._oprot)
2682
    self._oprot.writeMessageEnd()
2683
    self._oprot.trans.flush()
2684
 
8363 vikram.rag 2685
  def recv_getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 2686
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2687
    if mtype == TMessageType.EXCEPTION:
2688
      x = TApplicationException()
2689
      x.read(self._iprot)
2690
      self._iprot.readMessageEnd()
2691
      raise x
8363 vikram.rag 2692
    result = getAllAmazonFbaItemInventory_result()
8282 kshitij.so 2693
    result.read(self._iprot)
2694
    self._iprot.readMessageEnd()
2695
    if result.success is not None:
2696
      return result.success
8363 vikram.rag 2697
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonFbaItemInventory failed: unknown result");
8282 kshitij.so 2698
 
8363 vikram.rag 2699
  def getOursGoodWarehouseIdsForLocation(self, state_id):
2700
    """
2701
    Parameters:
2702
     - state_id
2703
    """
2704
    self.send_getOursGoodWarehouseIdsForLocation(state_id)
2705
    return self.recv_getOursGoodWarehouseIdsForLocation()
8282 kshitij.so 2706
 
8363 vikram.rag 2707
  def send_getOursGoodWarehouseIdsForLocation(self, state_id):
2708
    self._oprot.writeMessageBegin('getOursGoodWarehouseIdsForLocation', TMessageType.CALL, self._seqid)
2709
    args = getOursGoodWarehouseIdsForLocation_args()
2710
    args.state_id = state_id
2711
    args.write(self._oprot)
2712
    self._oprot.writeMessageEnd()
2713
    self._oprot.trans.flush()
2714
 
2715
  def recv_getOursGoodWarehouseIdsForLocation(self, ):
2716
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2717
    if mtype == TMessageType.EXCEPTION:
2718
      x = TApplicationException()
2719
      x.read(self._iprot)
2720
      self._iprot.readMessageEnd()
2721
      raise x
2722
    result = getOursGoodWarehouseIdsForLocation_result()
2723
    result.read(self._iprot)
2724
    self._iprot.readMessageEnd()
2725
    if result.success is not None:
2726
      return result.success
2727
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOursGoodWarehouseIdsForLocation failed: unknown result");
2728
 
8955 vikram.rag 2729
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2730
    """
2731
    Parameters:
2732
     - id
2733
     - warehouse_id
2734
     - source
2735
    """
2736
    self.send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(id, warehouse_id, source)
2737
    return self.recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource()
8363 vikram.rag 2738
 
8955 vikram.rag 2739
  def send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2740
    self._oprot.writeMessageBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource', TMessageType.CALL, self._seqid)
2741
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
2742
    args.id = id
2743
    args.warehouse_id = warehouse_id
2744
    args.source = source
2745
    args.write(self._oprot)
2746
    self._oprot.writeMessageEnd()
2747
    self._oprot.trans.flush()
2748
 
2749
  def recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, ):
2750
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2751
    if mtype == TMessageType.EXCEPTION:
2752
      x = TApplicationException()
2753
      x.read(self._iprot)
2754
      self._iprot.readMessageEnd()
2755
      raise x
2756
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
2757
    result.read(self._iprot)
2758
    self._iprot.readMessageEnd()
2759
    if result.success is not None:
2760
      return result.success
2761
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetailForItemForWarehouseIdExceptSource failed: unknown result");
2762
 
9404 vikram.rag 2763
  def getSnapdealInventoryForItem(self, item_id):
2764
    """
2765
    Parameters:
2766
     - item_id
2767
    """
2768
    self.send_getSnapdealInventoryForItem(item_id)
2769
    return self.recv_getSnapdealInventoryForItem()
8955 vikram.rag 2770
 
9404 vikram.rag 2771
  def send_getSnapdealInventoryForItem(self, item_id):
2772
    self._oprot.writeMessageBegin('getSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2773
    args = getSnapdealInventoryForItem_args()
2774
    args.item_id = item_id
2775
    args.write(self._oprot)
2776
    self._oprot.writeMessageEnd()
2777
    self._oprot.trans.flush()
2778
 
2779
  def recv_getSnapdealInventoryForItem(self, ):
2780
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2781
    if mtype == TMessageType.EXCEPTION:
2782
      x = TApplicationException()
2783
      x.read(self._iprot)
2784
      self._iprot.readMessageEnd()
2785
      raise x
2786
    result = getSnapdealInventoryForItem_result()
2787
    result.read(self._iprot)
2788
    self._iprot.readMessageEnd()
2789
    if result.success is not None:
2790
      return result.success
2791
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventoryForItem failed: unknown result");
2792
 
2793
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2794
    """
2795
    Parameters:
2796
     - snapdealinventoryitem
2797
    """
2798
    self.send_addOrUpdateSnapdealInventoryForItem(snapdealinventoryitem)
2799
    self.recv_addOrUpdateSnapdealInventoryForItem()
2800
 
2801
  def send_addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2802
    self._oprot.writeMessageBegin('addOrUpdateSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2803
    args = addOrUpdateSnapdealInventoryForItem_args()
2804
    args.snapdealinventoryitem = snapdealinventoryitem
2805
    args.write(self._oprot)
2806
    self._oprot.writeMessageEnd()
2807
    self._oprot.trans.flush()
2808
 
2809
  def recv_addOrUpdateSnapdealInventoryForItem(self, ):
2810
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2811
    if mtype == TMessageType.EXCEPTION:
2812
      x = TApplicationException()
2813
      x.read(self._iprot)
2814
      self._iprot.readMessageEnd()
2815
      raise x
2816
    result = addOrUpdateSnapdealInventoryForItem_result()
2817
    result.read(self._iprot)
2818
    self._iprot.readMessageEnd()
2819
    return
2820
 
2821
  def getNlcForWarehouse(self, warehouse_id, item_id):
2822
    """
2823
    Parameters:
2824
     - warehouse_id
2825
     - item_id
2826
    """
2827
    self.send_getNlcForWarehouse(warehouse_id, item_id)
2828
    return self.recv_getNlcForWarehouse()
2829
 
2830
  def send_getNlcForWarehouse(self, warehouse_id, item_id):
2831
    self._oprot.writeMessageBegin('getNlcForWarehouse', TMessageType.CALL, self._seqid)
2832
    args = getNlcForWarehouse_args()
2833
    args.warehouse_id = warehouse_id
2834
    args.item_id = item_id
2835
    args.write(self._oprot)
2836
    self._oprot.writeMessageEnd()
2837
    self._oprot.trans.flush()
2838
 
2839
  def recv_getNlcForWarehouse(self, ):
2840
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2841
    if mtype == TMessageType.EXCEPTION:
2842
      x = TApplicationException()
2843
      x.read(self._iprot)
2844
      self._iprot.readMessageEnd()
2845
      raise x
2846
    result = getNlcForWarehouse_result()
2847
    result.read(self._iprot)
2848
    self._iprot.readMessageEnd()
2849
    if result.success is not None:
2850
      return result.success
2851
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
2852
 
9640 amar.kumar 2853
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
2854
    """
2855
    Parameters:
2856
     - item_id
2857
     - warehouse_id
2858
    """
2859
    self.send_getHeldInventoryMapForItem(item_id, warehouse_id)
2860
    return self.recv_getHeldInventoryMapForItem()
2861
 
2862
  def send_getHeldInventoryMapForItem(self, item_id, warehouse_id):
2863
    self._oprot.writeMessageBegin('getHeldInventoryMapForItem', TMessageType.CALL, self._seqid)
2864
    args = getHeldInventoryMapForItem_args()
2865
    args.item_id = item_id
2866
    args.warehouse_id = warehouse_id
2867
    args.write(self._oprot)
2868
    self._oprot.writeMessageEnd()
2869
    self._oprot.trans.flush()
2870
 
2871
  def recv_getHeldInventoryMapForItem(self, ):
2872
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2873
    if mtype == TMessageType.EXCEPTION:
2874
      x = TApplicationException()
2875
      x.read(self._iprot)
2876
      self._iprot.readMessageEnd()
2877
      raise x
2878
    result = getHeldInventoryMapForItem_result()
2879
    result.read(self._iprot)
2880
    self._iprot.readMessageEnd()
2881
    if result.success is not None:
2882
      return result.success
2883
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHeldInventoryMapForItem failed: unknown result");
2884
 
9495 vikram.rag 2885
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2886
    """
2887
    Parameters:
2888
     - allamazonfbainventorysnapshot
2889
    """
2890
    self.send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot)
2891
    self.recv_addOrUpdateAllAmazonFbaInventory()
9404 vikram.rag 2892
 
9495 vikram.rag 2893
  def send_addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2894
    self._oprot.writeMessageBegin('addOrUpdateAllAmazonFbaInventory', TMessageType.CALL, self._seqid)
2895
    args = addOrUpdateAllAmazonFbaInventory_args()
2896
    args.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 2897
    args.write(self._oprot)
2898
    self._oprot.writeMessageEnd()
2899
    self._oprot.trans.flush()
2900
 
9495 vikram.rag 2901
  def recv_addOrUpdateAllAmazonFbaInventory(self, ):
9456 vikram.rag 2902
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2903
    if mtype == TMessageType.EXCEPTION:
2904
      x = TApplicationException()
2905
      x.read(self._iprot)
2906
      self._iprot.readMessageEnd()
2907
      raise x
9495 vikram.rag 2908
    result = addOrUpdateAllAmazonFbaInventory_result()
9456 vikram.rag 2909
    result.read(self._iprot)
2910
    self._iprot.readMessageEnd()
9495 vikram.rag 2911
    return
9456 vikram.rag 2912
 
9495 vikram.rag 2913
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
9482 vikram.rag 2914
    """
2915
    Parameters:
9495 vikram.rag 2916
     - allsnapdealinventorysnapshot
9482 vikram.rag 2917
    """
9495 vikram.rag 2918
    self.send_addOrUpdateAllSnapdealInventory(allsnapdealinventorysnapshot)
2919
    self.recv_addOrUpdateAllSnapdealInventory()
9456 vikram.rag 2920
 
9495 vikram.rag 2921
  def send_addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
2922
    self._oprot.writeMessageBegin('addOrUpdateAllSnapdealInventory', TMessageType.CALL, self._seqid)
2923
    args = addOrUpdateAllSnapdealInventory_args()
2924
    args.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 2925
    args.write(self._oprot)
2926
    self._oprot.writeMessageEnd()
2927
    self._oprot.trans.flush()
2928
 
9495 vikram.rag 2929
  def recv_addOrUpdateAllSnapdealInventory(self, ):
9482 vikram.rag 2930
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2931
    if mtype == TMessageType.EXCEPTION:
2932
      x = TApplicationException()
2933
      x.read(self._iprot)
2934
      self._iprot.readMessageEnd()
2935
      raise x
9495 vikram.rag 2936
    result = addOrUpdateAllSnapdealInventory_result()
9482 vikram.rag 2937
    result.read(self._iprot)
2938
    self._iprot.readMessageEnd()
2939
    return
2940
 
9495 vikram.rag 2941
  def getSnapdealInventorySnapshot(self, ):
2942
    self.send_getSnapdealInventorySnapshot()
2943
    return self.recv_getSnapdealInventorySnapshot()
9482 vikram.rag 2944
 
9495 vikram.rag 2945
  def send_getSnapdealInventorySnapshot(self, ):
2946
    self._oprot.writeMessageBegin('getSnapdealInventorySnapshot', TMessageType.CALL, self._seqid)
2947
    args = getSnapdealInventorySnapshot_args()
2948
    args.write(self._oprot)
2949
    self._oprot.writeMessageEnd()
2950
    self._oprot.trans.flush()
2951
 
2952
  def recv_getSnapdealInventorySnapshot(self, ):
2953
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2954
    if mtype == TMessageType.EXCEPTION:
2955
      x = TApplicationException()
2956
      x.read(self._iprot)
2957
      self._iprot.readMessageEnd()
2958
      raise x
2959
    result = getSnapdealInventorySnapshot_result()
2960
    result.read(self._iprot)
2961
    self._iprot.readMessageEnd()
2962
    if result.success is not None:
2963
      return result.success
2964
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventorySnapshot failed: unknown result");
2965
 
9761 amar.kumar 2966
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
2967
    """
2968
    Parameters:
2969
     - itemId
2970
     - warehouseId
2971
     - source
2972
    """
2973
    self.send_getHoldInventoryDetails(itemId, warehouseId, source)
2974
    return self.recv_getHoldInventoryDetails()
9495 vikram.rag 2975
 
9761 amar.kumar 2976
  def send_getHoldInventoryDetails(self, itemId, warehouseId, source):
2977
    self._oprot.writeMessageBegin('getHoldInventoryDetails', TMessageType.CALL, self._seqid)
2978
    args = getHoldInventoryDetails_args()
2979
    args.itemId = itemId
2980
    args.warehouseId = warehouseId
2981
    args.source = source
2982
    args.write(self._oprot)
2983
    self._oprot.writeMessageEnd()
2984
    self._oprot.trans.flush()
2985
 
2986
  def recv_getHoldInventoryDetails(self, ):
2987
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2988
    if mtype == TMessageType.EXCEPTION:
2989
      x = TApplicationException()
2990
      x.read(self._iprot)
2991
      self._iprot.readMessageEnd()
2992
      raise x
2993
    result = getHoldInventoryDetails_result()
2994
    result.read(self._iprot)
2995
    self._iprot.readMessageEnd()
2996
    if result.success is not None:
2997
      return result.success
2998
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetails failed: unknown result");
2999
 
10450 vikram.rag 3000
  def addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot, time):
10050 vikram.rag 3001
    """
3002
    Parameters:
3003
     - flipkartInventorySnapshot
10450 vikram.rag 3004
     - time
10050 vikram.rag 3005
    """
10450 vikram.rag 3006
    self.send_addOrUpdateFlipkartInventorySnapshot(flipkartInventorySnapshot, time)
10050 vikram.rag 3007
    self.recv_addOrUpdateFlipkartInventorySnapshot()
9761 amar.kumar 3008
 
10450 vikram.rag 3009
  def send_addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot, time):
10050 vikram.rag 3010
    self._oprot.writeMessageBegin('addOrUpdateFlipkartInventorySnapshot', TMessageType.CALL, self._seqid)
3011
    args = addOrUpdateFlipkartInventorySnapshot_args()
3012
    args.flipkartInventorySnapshot = flipkartInventorySnapshot
10450 vikram.rag 3013
    args.time = time
10050 vikram.rag 3014
    args.write(self._oprot)
3015
    self._oprot.writeMessageEnd()
3016
    self._oprot.trans.flush()
3017
 
3018
  def recv_addOrUpdateFlipkartInventorySnapshot(self, ):
3019
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3020
    if mtype == TMessageType.EXCEPTION:
3021
      x = TApplicationException()
3022
      x.read(self._iprot)
3023
      self._iprot.readMessageEnd()
3024
      raise x
3025
    result = addOrUpdateFlipkartInventorySnapshot_result()
3026
    result.read(self._iprot)
3027
    self._iprot.readMessageEnd()
3028
    return
3029
 
3030
  def getFlipkartInventorySnapshot(self, ):
3031
    self.send_getFlipkartInventorySnapshot()
3032
    return self.recv_getFlipkartInventorySnapshot()
3033
 
3034
  def send_getFlipkartInventorySnapshot(self, ):
3035
    self._oprot.writeMessageBegin('getFlipkartInventorySnapshot', TMessageType.CALL, self._seqid)
3036
    args = getFlipkartInventorySnapshot_args()
3037
    args.write(self._oprot)
3038
    self._oprot.writeMessageEnd()
3039
    self._oprot.trans.flush()
3040
 
3041
  def recv_getFlipkartInventorySnapshot(self, ):
3042
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3043
    if mtype == TMessageType.EXCEPTION:
3044
      x = TApplicationException()
3045
      x.read(self._iprot)
3046
      self._iprot.readMessageEnd()
3047
      raise x
3048
    result = getFlipkartInventorySnapshot_result()
3049
    result.read(self._iprot)
3050
    self._iprot.readMessageEnd()
3051
    if result.success is not None:
3052
      return result.success
3053
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartInventorySnapshot failed: unknown result");
3054
 
10097 kshitij.so 3055
  def getFlipkartlInventoryForItem(self, item_id):
3056
    """
3057
    Parameters:
3058
     - item_id
3059
    """
3060
    self.send_getFlipkartlInventoryForItem(item_id)
3061
    return self.recv_getFlipkartlInventoryForItem()
10050 vikram.rag 3062
 
10097 kshitij.so 3063
  def send_getFlipkartlInventoryForItem(self, item_id):
3064
    self._oprot.writeMessageBegin('getFlipkartlInventoryForItem', TMessageType.CALL, self._seqid)
3065
    args = getFlipkartlInventoryForItem_args()
3066
    args.item_id = item_id
3067
    args.write(self._oprot)
3068
    self._oprot.writeMessageEnd()
3069
    self._oprot.trans.flush()
3070
 
3071
  def recv_getFlipkartlInventoryForItem(self, ):
3072
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3073
    if mtype == TMessageType.EXCEPTION:
3074
      x = TApplicationException()
3075
      x.read(self._iprot)
3076
      self._iprot.readMessageEnd()
3077
      raise x
3078
    result = getFlipkartlInventoryForItem_result()
3079
    result.read(self._iprot)
3080
    self._iprot.readMessageEnd()
3081
    if result.success is not None:
3082
      return result.success
3083
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartlInventoryForItem failed: unknown result");
3084
 
10485 vikram.rag 3085
  def getStateMaster(self, ):
3086
    self.send_getStateMaster()
3087
    return self.recv_getStateMaster()
10097 kshitij.so 3088
 
10485 vikram.rag 3089
  def send_getStateMaster(self, ):
3090
    self._oprot.writeMessageBegin('getStateMaster', TMessageType.CALL, self._seqid)
3091
    args = getStateMaster_args()
3092
    args.write(self._oprot)
3093
    self._oprot.writeMessageEnd()
3094
    self._oprot.trans.flush()
3095
 
3096
  def recv_getStateMaster(self, ):
3097
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3098
    if mtype == TMessageType.EXCEPTION:
3099
      x = TApplicationException()
3100
      x.read(self._iprot)
3101
      self._iprot.readMessageEnd()
3102
      raise x
3103
    result = getStateMaster_result()
3104
    result.read(self._iprot)
3105
    self._iprot.readMessageEnd()
3106
    if result.success is not None:
3107
      return result.success
3108
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStateMaster failed: unknown result");
3109
 
10544 vikram.rag 3110
  def updateSnapdealStockAtEOD(self, allsnapdealstock):
3111
    """
3112
    Parameters:
3113
     - allsnapdealstock
3114
    """
3115
    self.send_updateSnapdealStockAtEOD(allsnapdealstock)
3116
    self.recv_updateSnapdealStockAtEOD()
10485 vikram.rag 3117
 
10544 vikram.rag 3118
  def send_updateSnapdealStockAtEOD(self, allsnapdealstock):
3119
    self._oprot.writeMessageBegin('updateSnapdealStockAtEOD', TMessageType.CALL, self._seqid)
3120
    args = updateSnapdealStockAtEOD_args()
3121
    args.allsnapdealstock = allsnapdealstock
3122
    args.write(self._oprot)
3123
    self._oprot.writeMessageEnd()
3124
    self._oprot.trans.flush()
3125
 
3126
  def recv_updateSnapdealStockAtEOD(self, ):
3127
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3128
    if mtype == TMessageType.EXCEPTION:
3129
      x = TApplicationException()
3130
      x.read(self._iprot)
3131
      self._iprot.readMessageEnd()
3132
      raise x
3133
    result = updateSnapdealStockAtEOD_result()
3134
    result.read(self._iprot)
3135
    self._iprot.readMessageEnd()
3136
    return
3137
 
3138
  def updateFlipkartStockAtEOD(self, allflipkartstock):
3139
    """
3140
    Parameters:
3141
     - allflipkartstock
3142
    """
3143
    self.send_updateFlipkartStockAtEOD(allflipkartstock)
3144
    self.recv_updateFlipkartStockAtEOD()
3145
 
3146
  def send_updateFlipkartStockAtEOD(self, allflipkartstock):
3147
    self._oprot.writeMessageBegin('updateFlipkartStockAtEOD', TMessageType.CALL, self._seqid)
3148
    args = updateFlipkartStockAtEOD_args()
3149
    args.allflipkartstock = allflipkartstock
3150
    args.write(self._oprot)
3151
    self._oprot.writeMessageEnd()
3152
    self._oprot.trans.flush()
3153
 
3154
  def recv_updateFlipkartStockAtEOD(self, ):
3155
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3156
    if mtype == TMessageType.EXCEPTION:
3157
      x = TApplicationException()
3158
      x.read(self._iprot)
3159
      self._iprot.readMessageEnd()
3160
      raise x
3161
    result = updateFlipkartStockAtEOD_result()
3162
    result.read(self._iprot)
3163
    self._iprot.readMessageEnd()
3164
    return
3165
 
12363 kshitij.so 3166
  def getWanNlcForSource(self, item_id, source):
3167
    """
3168
    Parameters:
3169
     - item_id
3170
     - source
3171
    """
3172
    self.send_getWanNlcForSource(item_id, source)
3173
    return self.recv_getWanNlcForSource()
10544 vikram.rag 3174
 
12363 kshitij.so 3175
  def send_getWanNlcForSource(self, item_id, source):
3176
    self._oprot.writeMessageBegin('getWanNlcForSource', TMessageType.CALL, self._seqid)
3177
    args = getWanNlcForSource_args()
3178
    args.item_id = item_id
3179
    args.source = source
3180
    args.write(self._oprot)
3181
    self._oprot.writeMessageEnd()
3182
    self._oprot.trans.flush()
3183
 
3184
  def recv_getWanNlcForSource(self, ):
3185
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3186
    if mtype == TMessageType.EXCEPTION:
3187
      x = TApplicationException()
3188
      x.read(self._iprot)
3189
      self._iprot.readMessageEnd()
3190
      raise x
3191
    result = getWanNlcForSource_result()
3192
    result.read(self._iprot)
3193
    self._iprot.readMessageEnd()
3194
    if result.success is not None:
3195
      return result.success
3196
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWanNlcForSource failed: unknown result");
3197
 
3198
  def getAllAvailableAmazonFbaItemInventory(self, ):
3199
    self.send_getAllAvailableAmazonFbaItemInventory()
3200
    return self.recv_getAllAvailableAmazonFbaItemInventory()
3201
 
3202
  def send_getAllAvailableAmazonFbaItemInventory(self, ):
3203
    self._oprot.writeMessageBegin('getAllAvailableAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
3204
    args = getAllAvailableAmazonFbaItemInventory_args()
3205
    args.write(self._oprot)
3206
    self._oprot.writeMessageEnd()
3207
    self._oprot.trans.flush()
3208
 
3209
  def recv_getAllAvailableAmazonFbaItemInventory(self, ):
3210
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3211
    if mtype == TMessageType.EXCEPTION:
3212
      x = TApplicationException()
3213
      x.read(self._iprot)
3214
      self._iprot.readMessageEnd()
3215
      raise x
3216
    result = getAllAvailableAmazonFbaItemInventory_result()
3217
    result.read(self._iprot)
3218
    self._iprot.readMessageEnd()
3219
    if result.success is not None:
3220
      return result.success
3221
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAvailableAmazonFbaItemInventory failed: unknown result");
3222
 
17990 kshitij.so 3223
  def updateItemAvailabilityForItemIds(self, itemIds):
3224
    """
3225
    Parameters:
3226
     - itemIds
3227
    """
3228
    self.send_updateItemAvailabilityForItemIds(itemIds)
3229
    return self.recv_updateItemAvailabilityForItemIds()
12363 kshitij.so 3230
 
17990 kshitij.so 3231
  def send_updateItemAvailabilityForItemIds(self, itemIds):
3232
    self._oprot.writeMessageBegin('updateItemAvailabilityForItemIds', TMessageType.CALL, self._seqid)
3233
    args = updateItemAvailabilityForItemIds_args()
3234
    args.itemIds = itemIds
3235
    args.write(self._oprot)
3236
    self._oprot.writeMessageEnd()
3237
    self._oprot.trans.flush()
3238
 
3239
  def recv_updateItemAvailabilityForItemIds(self, ):
3240
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3241
    if mtype == TMessageType.EXCEPTION:
3242
      x = TApplicationException()
3243
      x.read(self._iprot)
3244
      self._iprot.readMessageEnd()
3245
      raise x
3246
    result = updateItemAvailabilityForItemIds_result()
3247
    result.read(self._iprot)
3248
    self._iprot.readMessageEnd()
3249
    if result.success is not None:
3250
      return result.success
3251
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemAvailabilityForItemIds failed: unknown result");
3252
 
3253
 
5944 mandeep.dh 3254
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3255
  def __init__(self, handler):
3256
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3257
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
3258
    self._processMap["addVendor"] = Processor.process_addVendor
3259
    self._processMap["updateInventoryHistory"] = Processor.process_updateInventoryHistory
3260
    self._processMap["updateInventory"] = Processor.process_updateInventory
3261
    self._processMap["addInventory"] = Processor.process_addInventory
3262
    self._processMap["retireWarehouse"] = Processor.process_retireWarehouse
3263
    self._processMap["getItemInventoryByItemId"] = Processor.process_getItemInventoryByItemId
3264
    self._processMap["getItemAvailibilityAtWarehouse"] = Processor.process_getItemAvailibilityAtWarehouse
3265
    self._processMap["getItemAvailabilityAtLocation"] = Processor.process_getItemAvailabilityAtLocation
3266
    self._processMap["getAllWarehouses"] = Processor.process_getAllWarehouses
3267
    self._processMap["getWarehouse"] = Processor.process_getWarehouse
3268
    self._processMap["getAllItemsForWarehouse"] = Processor.process_getAllItemsForWarehouse
5966 rajveer 3269
    self._processMap["isOrderBillable"] = Processor.process_isOrderBillable
5944 mandeep.dh 3270
    self._processMap["reserveItemInWarehouse"] = Processor.process_reserveItemInWarehouse
7968 amar.kumar 3271
    self._processMap["updateReservationForOrder"] = Processor.process_updateReservationForOrder
5944 mandeep.dh 3272
    self._processMap["reduceReservationCount"] = Processor.process_reduceReservationCount
3273
    self._processMap["getItemPricing"] = Processor.process_getItemPricing
3274
    self._processMap["getAllItemPricing"] = Processor.process_getAllItemPricing
3275
    self._processMap["addVendorItemPricing"] = Processor.process_addVendorItemPricing
3276
    self._processMap["getVendor"] = Processor.process_getVendor
3277
    self._processMap["getAllVendors"] = Processor.process_getAllVendors
3278
    self._processMap["addVendorItemMapping"] = Processor.process_addVendorItemMapping
3279
    self._processMap["getVendorItemMappings"] = Processor.process_getVendorItemMappings
3280
    self._processMap["getPendingOrdersInventory"] = Processor.process_getPendingOrdersInventory
3281
    self._processMap["getWarehouses"] = Processor.process_getWarehouses
3282
    self._processMap["resetAvailability"] = Processor.process_resetAvailability
3283
    self._processMap["resetAvailabilityForWarehouse"] = Processor.process_resetAvailabilityForWarehouse
3284
    self._processMap["getItemKeysToBeProcessed"] = Processor.process_getItemKeysToBeProcessed
3285
    self._processMap["markMissedInventoryUpdatesAsProcessed"] = Processor.process_markMissedInventoryUpdatesAsProcessed
3286
    self._processMap["getIgnoredItemKeys"] = Processor.process_getIgnoredItemKeys
3287
    self._processMap["addBadInventory"] = Processor.process_addBadInventory
3288
    self._processMap["getShippingLocations"] = Processor.process_getShippingLocations
3289
    self._processMap["getAllVendorItemMappings"] = Processor.process_getAllVendorItemMappings
3290
    self._processMap["getInventorySnapshot"] = Processor.process_getInventorySnapshot
3291
    self._processMap["clearItemAvailabilityCache"] = Processor.process_clearItemAvailabilityCache
3292
    self._processMap["updateVendorString"] = Processor.process_updateVendorString
6096 amit.gupta 3293
    self._processMap["clearItemAvailabilityCacheForItem"] = Processor.process_clearItemAvailabilityCacheForItem
6467 amar.kumar 3294
    self._processMap["getOurWarehouseIdForVendor"] = Processor.process_getOurWarehouseIdForVendor
6484 amar.kumar 3295
    self._processMap["getItemAvailabilitiesAtOurWarehouses"] = Processor.process_getItemAvailabilitiesAtOurWarehouses
6531 vikram.rag 3296
    self._processMap["getMonitoredWarehouseForVendors"] = Processor.process_getMonitoredWarehouseForVendors
3297
    self._processMap["getIgnoredWarehouseidsAndItemids"] = Processor.process_getIgnoredWarehouseidsAndItemids
3298
    self._processMap["insertItemtoIgnoreInventoryUpdatelist"] = Processor.process_insertItemtoIgnoreInventoryUpdatelist
3299
    self._processMap["deleteItemFromIgnoredInventoryUpdateList"] = Processor.process_deleteItemFromIgnoredInventoryUpdateList
3300
    self._processMap["getAllIgnoredInventoryupdateItemsCount"] = Processor.process_getAllIgnoredInventoryupdateItemsCount
3301
    self._processMap["getIgnoredInventoryUpdateItemids"] = Processor.process_getIgnoredInventoryUpdateItemids
6821 amar.kumar 3302
    self._processMap["updateItemStockPurchaseParams"] = Processor.process_updateItemStockPurchaseParams
3303
    self._processMap["getItemStockPurchaseParams"] = Processor.process_getItemStockPurchaseParams
3304
    self._processMap["addOosStatusForItem"] = Processor.process_addOosStatusForItem
6832 amar.kumar 3305
    self._processMap["getOosStatusesForXDaysForItem"] = Processor.process_getOosStatusesForXDaysForItem
10126 amar.kumar 3306
    self._processMap["getOosStatusesForXDays"] = Processor.process_getOosStatusesForXDays
3307
    self._processMap["getAllVendorItemPricing"] = Processor.process_getAllVendorItemPricing
6857 amar.kumar 3308
    self._processMap["getNonZeroItemStockPurchaseParams"] = Processor.process_getNonZeroItemStockPurchaseParams
7149 amar.kumar 3309
    self._processMap["getBillableInventoryAndPendingOrders"] = Processor.process_getBillableInventoryAndPendingOrders
7281 kshitij.so 3310
    self._processMap["getWarehouseName"] = Processor.process_getWarehouseName
3311
    self._processMap["getAmazonInventoryForItem"] = Processor.process_getAmazonInventoryForItem
3312
    self._processMap["getAllAmazonInventory"] = Processor.process_getAllAmazonInventory
3313
    self._processMap["addOrUpdateAmazonInventoryForItem"] = Processor.process_addOrUpdateAmazonInventoryForItem
7972 amar.kumar 3314
    self._processMap["getLastNdaySaleForItem"] = Processor.process_getLastNdaySaleForItem
8282 kshitij.so 3315
    self._processMap["addOrUpdateAmazonFbaInventory"] = Processor.process_addOrUpdateAmazonFbaInventory
8182 amar.kumar 3316
    self._processMap["addUpdateHoldInventory"] = Processor.process_addUpdateHoldInventory
8282 kshitij.so 3317
    self._processMap["getAmazonFbaItemInventory"] = Processor.process_getAmazonFbaItemInventory
8363 vikram.rag 3318
    self._processMap["getAllAmazonFbaItemInventory"] = Processor.process_getAllAmazonFbaItemInventory
3319
    self._processMap["getOursGoodWarehouseIdsForLocation"] = Processor.process_getOursGoodWarehouseIdsForLocation
8955 vikram.rag 3320
    self._processMap["getHoldInventoryDetailForItemForWarehouseIdExceptSource"] = Processor.process_getHoldInventoryDetailForItemForWarehouseIdExceptSource
9404 vikram.rag 3321
    self._processMap["getSnapdealInventoryForItem"] = Processor.process_getSnapdealInventoryForItem
3322
    self._processMap["addOrUpdateSnapdealInventoryForItem"] = Processor.process_addOrUpdateSnapdealInventoryForItem
3323
    self._processMap["getNlcForWarehouse"] = Processor.process_getNlcForWarehouse
9640 amar.kumar 3324
    self._processMap["getHeldInventoryMapForItem"] = Processor.process_getHeldInventoryMapForItem
9482 vikram.rag 3325
    self._processMap["addOrUpdateAllAmazonFbaInventory"] = Processor.process_addOrUpdateAllAmazonFbaInventory
9495 vikram.rag 3326
    self._processMap["addOrUpdateAllSnapdealInventory"] = Processor.process_addOrUpdateAllSnapdealInventory
3327
    self._processMap["getSnapdealInventorySnapshot"] = Processor.process_getSnapdealInventorySnapshot
9761 amar.kumar 3328
    self._processMap["getHoldInventoryDetails"] = Processor.process_getHoldInventoryDetails
10050 vikram.rag 3329
    self._processMap["addOrUpdateFlipkartInventorySnapshot"] = Processor.process_addOrUpdateFlipkartInventorySnapshot
3330
    self._processMap["getFlipkartInventorySnapshot"] = Processor.process_getFlipkartInventorySnapshot
10097 kshitij.so 3331
    self._processMap["getFlipkartlInventoryForItem"] = Processor.process_getFlipkartlInventoryForItem
10485 vikram.rag 3332
    self._processMap["getStateMaster"] = Processor.process_getStateMaster
10544 vikram.rag 3333
    self._processMap["updateSnapdealStockAtEOD"] = Processor.process_updateSnapdealStockAtEOD
3334
    self._processMap["updateFlipkartStockAtEOD"] = Processor.process_updateFlipkartStockAtEOD
12363 kshitij.so 3335
    self._processMap["getWanNlcForSource"] = Processor.process_getWanNlcForSource
3336
    self._processMap["getAllAvailableAmazonFbaItemInventory"] = Processor.process_getAllAvailableAmazonFbaItemInventory
17990 kshitij.so 3337
    self._processMap["updateItemAvailabilityForItemIds"] = Processor.process_updateItemAvailabilityForItemIds
5944 mandeep.dh 3338
 
3339
  def process(self, iprot, oprot):
3340
    (name, type, seqid) = iprot.readMessageBegin()
3341
    if name not in self._processMap:
3342
      iprot.skip(TType.STRUCT)
3343
      iprot.readMessageEnd()
3344
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3345
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3346
      x.write(oprot)
3347
      oprot.writeMessageEnd()
3348
      oprot.trans.flush()
3349
      return
3350
    else:
3351
      self._processMap[name](self, seqid, iprot, oprot)
3352
    return True
3353
 
3354
  def process_addWarehouse(self, seqid, iprot, oprot):
3355
    args = addWarehouse_args()
3356
    args.read(iprot)
3357
    iprot.readMessageEnd()
3358
    result = addWarehouse_result()
3359
    try:
3360
      result.success = self._handler.addWarehouse(args.warehouse)
3361
    except InventoryServiceException, cex:
3362
      result.cex = cex
3363
    oprot.writeMessageBegin("addWarehouse", TMessageType.REPLY, seqid)
3364
    result.write(oprot)
3365
    oprot.writeMessageEnd()
3366
    oprot.trans.flush()
3367
 
3368
  def process_addVendor(self, seqid, iprot, oprot):
3369
    args = addVendor_args()
3370
    args.read(iprot)
3371
    iprot.readMessageEnd()
3372
    result = addVendor_result()
3373
    try:
3374
      result.success = self._handler.addVendor(args.vendor)
3375
    except InventoryServiceException, cex:
3376
      result.cex = cex
3377
    oprot.writeMessageBegin("addVendor", TMessageType.REPLY, seqid)
3378
    result.write(oprot)
3379
    oprot.writeMessageEnd()
3380
    oprot.trans.flush()
3381
 
3382
  def process_updateInventoryHistory(self, seqid, iprot, oprot):
3383
    args = updateInventoryHistory_args()
3384
    args.read(iprot)
3385
    iprot.readMessageEnd()
3386
    result = updateInventoryHistory_result()
3387
    try:
3388
      self._handler.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability)
3389
    except InventoryServiceException, cex:
3390
      result.cex = cex
3391
    oprot.writeMessageBegin("updateInventoryHistory", TMessageType.REPLY, seqid)
3392
    result.write(oprot)
3393
    oprot.writeMessageEnd()
3394
    oprot.trans.flush()
3395
 
3396
  def process_updateInventory(self, seqid, iprot, oprot):
3397
    args = updateInventory_args()
3398
    args.read(iprot)
3399
    iprot.readMessageEnd()
3400
    result = updateInventory_result()
3401
    try:
3402
      self._handler.updateInventory(args.warehouse_id, args.timestamp, args.availability)
3403
    except InventoryServiceException, cex:
3404
      result.cex = cex
3405
    oprot.writeMessageBegin("updateInventory", TMessageType.REPLY, seqid)
3406
    result.write(oprot)
3407
    oprot.writeMessageEnd()
3408
    oprot.trans.flush()
3409
 
3410
  def process_addInventory(self, seqid, iprot, oprot):
3411
    args = addInventory_args()
3412
    args.read(iprot)
3413
    iprot.readMessageEnd()
3414
    result = addInventory_result()
3415
    try:
3416
      self._handler.addInventory(args.itemId, args.warehouseId, args.quantity)
3417
    except InventoryServiceException, cex:
3418
      result.cex = cex
3419
    oprot.writeMessageBegin("addInventory", TMessageType.REPLY, seqid)
3420
    result.write(oprot)
3421
    oprot.writeMessageEnd()
3422
    oprot.trans.flush()
3423
 
3424
  def process_retireWarehouse(self, seqid, iprot, oprot):
3425
    args = retireWarehouse_args()
3426
    args.read(iprot)
3427
    iprot.readMessageEnd()
3428
    result = retireWarehouse_result()
3429
    try:
3430
      self._handler.retireWarehouse(args.warehouse_id)
3431
    except InventoryServiceException, cex:
3432
      result.cex = cex
3433
    oprot.writeMessageBegin("retireWarehouse", TMessageType.REPLY, seqid)
3434
    result.write(oprot)
3435
    oprot.writeMessageEnd()
3436
    oprot.trans.flush()
3437
 
3438
  def process_getItemInventoryByItemId(self, seqid, iprot, oprot):
3439
    args = getItemInventoryByItemId_args()
3440
    args.read(iprot)
3441
    iprot.readMessageEnd()
3442
    result = getItemInventoryByItemId_result()
3443
    try:
3444
      result.success = self._handler.getItemInventoryByItemId(args.item_id)
3445
    except InventoryServiceException, cex:
3446
      result.cex = cex
3447
    oprot.writeMessageBegin("getItemInventoryByItemId", TMessageType.REPLY, seqid)
3448
    result.write(oprot)
3449
    oprot.writeMessageEnd()
3450
    oprot.trans.flush()
3451
 
3452
  def process_getItemAvailibilityAtWarehouse(self, seqid, iprot, oprot):
3453
    args = getItemAvailibilityAtWarehouse_args()
3454
    args.read(iprot)
3455
    iprot.readMessageEnd()
3456
    result = getItemAvailibilityAtWarehouse_result()
3457
    try:
3458
      result.success = self._handler.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id)
3459
    except InventoryServiceException, cex:
3460
      result.cex = cex
3461
    oprot.writeMessageBegin("getItemAvailibilityAtWarehouse", TMessageType.REPLY, seqid)
3462
    result.write(oprot)
3463
    oprot.writeMessageEnd()
3464
    oprot.trans.flush()
3465
 
3466
  def process_getItemAvailabilityAtLocation(self, seqid, iprot, oprot):
3467
    args = getItemAvailabilityAtLocation_args()
3468
    args.read(iprot)
3469
    iprot.readMessageEnd()
3470
    result = getItemAvailabilityAtLocation_result()
3471
    try:
5978 rajveer 3472
      result.success = self._handler.getItemAvailabilityAtLocation(args.itemId, args.sourceId)
5944 mandeep.dh 3473
    except InventoryServiceException, isex:
3474
      result.isex = isex
3475
    oprot.writeMessageBegin("getItemAvailabilityAtLocation", TMessageType.REPLY, seqid)
3476
    result.write(oprot)
3477
    oprot.writeMessageEnd()
3478
    oprot.trans.flush()
3479
 
3480
  def process_getAllWarehouses(self, seqid, iprot, oprot):
3481
    args = getAllWarehouses_args()
3482
    args.read(iprot)
3483
    iprot.readMessageEnd()
3484
    result = getAllWarehouses_result()
3485
    try:
3486
      result.success = self._handler.getAllWarehouses(args.isActive)
3487
    except InventoryServiceException, cex:
3488
      result.cex = cex
3489
    oprot.writeMessageBegin("getAllWarehouses", TMessageType.REPLY, seqid)
3490
    result.write(oprot)
3491
    oprot.writeMessageEnd()
3492
    oprot.trans.flush()
3493
 
3494
  def process_getWarehouse(self, seqid, iprot, oprot):
3495
    args = getWarehouse_args()
3496
    args.read(iprot)
3497
    iprot.readMessageEnd()
3498
    result = getWarehouse_result()
3499
    try:
3500
      result.success = self._handler.getWarehouse(args.warehouse_id)
3501
    except InventoryServiceException, cex:
3502
      result.cex = cex
3503
    oprot.writeMessageBegin("getWarehouse", TMessageType.REPLY, seqid)
3504
    result.write(oprot)
3505
    oprot.writeMessageEnd()
3506
    oprot.trans.flush()
3507
 
3508
  def process_getAllItemsForWarehouse(self, seqid, iprot, oprot):
3509
    args = getAllItemsForWarehouse_args()
3510
    args.read(iprot)
3511
    iprot.readMessageEnd()
3512
    result = getAllItemsForWarehouse_result()
3513
    try:
3514
      result.success = self._handler.getAllItemsForWarehouse(args.warehouse_id)
3515
    except InventoryServiceException, cex:
3516
      result.cex = cex
3517
    oprot.writeMessageBegin("getAllItemsForWarehouse", TMessageType.REPLY, seqid)
3518
    result.write(oprot)
3519
    oprot.writeMessageEnd()
3520
    oprot.trans.flush()
3521
 
5966 rajveer 3522
  def process_isOrderBillable(self, seqid, iprot, oprot):
3523
    args = isOrderBillable_args()
3524
    args.read(iprot)
3525
    iprot.readMessageEnd()
3526
    result = isOrderBillable_result()
3527
    result.success = self._handler.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId)
3528
    oprot.writeMessageBegin("isOrderBillable", TMessageType.REPLY, seqid)
3529
    result.write(oprot)
3530
    oprot.writeMessageEnd()
3531
    oprot.trans.flush()
3532
 
5944 mandeep.dh 3533
  def process_reserveItemInWarehouse(self, seqid, iprot, oprot):
3534
    args = reserveItemInWarehouse_args()
3535
    args.read(iprot)
3536
    iprot.readMessageEnd()
3537
    result = reserveItemInWarehouse_result()
3538
    try:
5966 rajveer 3539
      result.success = self._handler.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
5944 mandeep.dh 3540
    except InventoryServiceException, cex:
3541
      result.cex = cex
3542
    oprot.writeMessageBegin("reserveItemInWarehouse", TMessageType.REPLY, seqid)
3543
    result.write(oprot)
3544
    oprot.writeMessageEnd()
3545
    oprot.trans.flush()
3546
 
7968 amar.kumar 3547
  def process_updateReservationForOrder(self, seqid, iprot, oprot):
3548
    args = updateReservationForOrder_args()
3549
    args.read(iprot)
3550
    iprot.readMessageEnd()
3551
    result = updateReservationForOrder_result()
3552
    try:
3553
      result.success = self._handler.updateReservationForOrder(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
3554
    except InventoryServiceException, cex:
3555
      result.cex = cex
3556
    oprot.writeMessageBegin("updateReservationForOrder", TMessageType.REPLY, seqid)
3557
    result.write(oprot)
3558
    oprot.writeMessageEnd()
3559
    oprot.trans.flush()
3560
 
5944 mandeep.dh 3561
  def process_reduceReservationCount(self, seqid, iprot, oprot):
3562
    args = reduceReservationCount_args()
3563
    args.read(iprot)
3564
    iprot.readMessageEnd()
3565
    result = reduceReservationCount_result()
3566
    try:
5966 rajveer 3567
      result.success = self._handler.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity)
5944 mandeep.dh 3568
    except InventoryServiceException, cex:
3569
      result.cex = cex
3570
    oprot.writeMessageBegin("reduceReservationCount", TMessageType.REPLY, seqid)
3571
    result.write(oprot)
3572
    oprot.writeMessageEnd()
3573
    oprot.trans.flush()
3574
 
3575
  def process_getItemPricing(self, seqid, iprot, oprot):
3576
    args = getItemPricing_args()
3577
    args.read(iprot)
3578
    iprot.readMessageEnd()
3579
    result = getItemPricing_result()
3580
    try:
3581
      result.success = self._handler.getItemPricing(args.itemId, args.vendorId)
3582
    except InventoryServiceException, cex:
3583
      result.cex = cex
3584
    oprot.writeMessageBegin("getItemPricing", TMessageType.REPLY, seqid)
3585
    result.write(oprot)
3586
    oprot.writeMessageEnd()
3587
    oprot.trans.flush()
3588
 
3589
  def process_getAllItemPricing(self, seqid, iprot, oprot):
3590
    args = getAllItemPricing_args()
3591
    args.read(iprot)
3592
    iprot.readMessageEnd()
3593
    result = getAllItemPricing_result()
3594
    try:
3595
      result.success = self._handler.getAllItemPricing(args.itemId)
3596
    except InventoryServiceException, cex:
3597
      result.cex = cex
3598
    oprot.writeMessageBegin("getAllItemPricing", TMessageType.REPLY, seqid)
3599
    result.write(oprot)
3600
    oprot.writeMessageEnd()
3601
    oprot.trans.flush()
3602
 
3603
  def process_addVendorItemPricing(self, seqid, iprot, oprot):
3604
    args = addVendorItemPricing_args()
3605
    args.read(iprot)
3606
    iprot.readMessageEnd()
3607
    result = addVendorItemPricing_result()
3608
    try:
3609
      self._handler.addVendorItemPricing(args.vendorItemPricing)
3610
    except InventoryServiceException, cex:
3611
      result.cex = cex
3612
    oprot.writeMessageBegin("addVendorItemPricing", TMessageType.REPLY, seqid)
3613
    result.write(oprot)
3614
    oprot.writeMessageEnd()
3615
    oprot.trans.flush()
3616
 
3617
  def process_getVendor(self, seqid, iprot, oprot):
3618
    args = getVendor_args()
3619
    args.read(iprot)
3620
    iprot.readMessageEnd()
3621
    result = getVendor_result()
3622
    result.success = self._handler.getVendor(args.vendorId)
3623
    oprot.writeMessageBegin("getVendor", TMessageType.REPLY, seqid)
3624
    result.write(oprot)
3625
    oprot.writeMessageEnd()
3626
    oprot.trans.flush()
3627
 
3628
  def process_getAllVendors(self, seqid, iprot, oprot):
3629
    args = getAllVendors_args()
3630
    args.read(iprot)
3631
    iprot.readMessageEnd()
3632
    result = getAllVendors_result()
3633
    result.success = self._handler.getAllVendors()
3634
    oprot.writeMessageBegin("getAllVendors", TMessageType.REPLY, seqid)
3635
    result.write(oprot)
3636
    oprot.writeMessageEnd()
3637
    oprot.trans.flush()
3638
 
3639
  def process_addVendorItemMapping(self, seqid, iprot, oprot):
3640
    args = addVendorItemMapping_args()
3641
    args.read(iprot)
3642
    iprot.readMessageEnd()
3643
    result = addVendorItemMapping_result()
3644
    try:
3645
      self._handler.addVendorItemMapping(args.key, args.vendorItemMapping)
3646
    except InventoryServiceException, cex:
3647
      result.cex = cex
3648
    oprot.writeMessageBegin("addVendorItemMapping", TMessageType.REPLY, seqid)
3649
    result.write(oprot)
3650
    oprot.writeMessageEnd()
3651
    oprot.trans.flush()
3652
 
3653
  def process_getVendorItemMappings(self, seqid, iprot, oprot):
3654
    args = getVendorItemMappings_args()
3655
    args.read(iprot)
3656
    iprot.readMessageEnd()
3657
    result = getVendorItemMappings_result()
3658
    try:
3659
      result.success = self._handler.getVendorItemMappings(args.itemId)
3660
    except InventoryServiceException, cex:
3661
      result.cex = cex
3662
    oprot.writeMessageBegin("getVendorItemMappings", TMessageType.REPLY, seqid)
3663
    result.write(oprot)
3664
    oprot.writeMessageEnd()
3665
    oprot.trans.flush()
3666
 
3667
  def process_getPendingOrdersInventory(self, seqid, iprot, oprot):
3668
    args = getPendingOrdersInventory_args()
3669
    args.read(iprot)
3670
    iprot.readMessageEnd()
3671
    result = getPendingOrdersInventory_result()
3672
    result.success = self._handler.getPendingOrdersInventory(args.vendorid)
3673
    oprot.writeMessageBegin("getPendingOrdersInventory", TMessageType.REPLY, seqid)
3674
    result.write(oprot)
3675
    oprot.writeMessageEnd()
3676
    oprot.trans.flush()
3677
 
3678
  def process_getWarehouses(self, seqid, iprot, oprot):
3679
    args = getWarehouses_args()
3680
    args.read(iprot)
3681
    iprot.readMessageEnd()
3682
    result = getWarehouses_result()
3683
    result.success = self._handler.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId)
3684
    oprot.writeMessageBegin("getWarehouses", TMessageType.REPLY, seqid)
3685
    result.write(oprot)
3686
    oprot.writeMessageEnd()
3687
    oprot.trans.flush()
3688
 
3689
  def process_resetAvailability(self, seqid, iprot, oprot):
3690
    args = resetAvailability_args()
3691
    args.read(iprot)
3692
    iprot.readMessageEnd()
3693
    result = resetAvailability_result()
3694
    try:
3695
      self._handler.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId)
3696
    except InventoryServiceException, cex:
3697
      result.cex = cex
3698
    oprot.writeMessageBegin("resetAvailability", TMessageType.REPLY, seqid)
3699
    result.write(oprot)
3700
    oprot.writeMessageEnd()
3701
    oprot.trans.flush()
3702
 
3703
  def process_resetAvailabilityForWarehouse(self, seqid, iprot, oprot):
3704
    args = resetAvailabilityForWarehouse_args()
3705
    args.read(iprot)
3706
    iprot.readMessageEnd()
3707
    result = resetAvailabilityForWarehouse_result()
3708
    try:
3709
      self._handler.resetAvailabilityForWarehouse(args.warehouseId)
3710
    except InventoryServiceException, cex:
3711
      result.cex = cex
3712
    oprot.writeMessageBegin("resetAvailabilityForWarehouse", TMessageType.REPLY, seqid)
3713
    result.write(oprot)
3714
    oprot.writeMessageEnd()
3715
    oprot.trans.flush()
3716
 
3717
  def process_getItemKeysToBeProcessed(self, seqid, iprot, oprot):
3718
    args = getItemKeysToBeProcessed_args()
3719
    args.read(iprot)
3720
    iprot.readMessageEnd()
3721
    result = getItemKeysToBeProcessed_result()
3722
    result.success = self._handler.getItemKeysToBeProcessed(args.warehouseId)
3723
    oprot.writeMessageBegin("getItemKeysToBeProcessed", TMessageType.REPLY, seqid)
3724
    result.write(oprot)
3725
    oprot.writeMessageEnd()
3726
    oprot.trans.flush()
3727
 
3728
  def process_markMissedInventoryUpdatesAsProcessed(self, seqid, iprot, oprot):
3729
    args = markMissedInventoryUpdatesAsProcessed_args()
3730
    args.read(iprot)
3731
    iprot.readMessageEnd()
3732
    result = markMissedInventoryUpdatesAsProcessed_result()
3733
    self._handler.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId)
3734
    oprot.writeMessageBegin("markMissedInventoryUpdatesAsProcessed", TMessageType.REPLY, seqid)
3735
    result.write(oprot)
3736
    oprot.writeMessageEnd()
3737
    oprot.trans.flush()
3738
 
3739
  def process_getIgnoredItemKeys(self, seqid, iprot, oprot):
3740
    args = getIgnoredItemKeys_args()
3741
    args.read(iprot)
3742
    iprot.readMessageEnd()
3743
    result = getIgnoredItemKeys_result()
3744
    result.success = self._handler.getIgnoredItemKeys()
3745
    oprot.writeMessageBegin("getIgnoredItemKeys", TMessageType.REPLY, seqid)
3746
    result.write(oprot)
3747
    oprot.writeMessageEnd()
3748
    oprot.trans.flush()
3749
 
3750
  def process_addBadInventory(self, seqid, iprot, oprot):
3751
    args = addBadInventory_args()
3752
    args.read(iprot)
3753
    iprot.readMessageEnd()
3754
    result = addBadInventory_result()
3755
    try:
3756
      self._handler.addBadInventory(args.itemId, args.warehouseId, args.quantity)
3757
    except InventoryServiceException, cex:
3758
      result.cex = cex
3759
    oprot.writeMessageBegin("addBadInventory", TMessageType.REPLY, seqid)
3760
    result.write(oprot)
3761
    oprot.writeMessageEnd()
3762
    oprot.trans.flush()
3763
 
3764
  def process_getShippingLocations(self, seqid, iprot, oprot):
3765
    args = getShippingLocations_args()
3766
    args.read(iprot)
3767
    iprot.readMessageEnd()
3768
    result = getShippingLocations_result()
3769
    result.success = self._handler.getShippingLocations()
3770
    oprot.writeMessageBegin("getShippingLocations", TMessageType.REPLY, seqid)
3771
    result.write(oprot)
3772
    oprot.writeMessageEnd()
3773
    oprot.trans.flush()
3774
 
3775
  def process_getAllVendorItemMappings(self, seqid, iprot, oprot):
3776
    args = getAllVendorItemMappings_args()
3777
    args.read(iprot)
3778
    iprot.readMessageEnd()
3779
    result = getAllVendorItemMappings_result()
3780
    result.success = self._handler.getAllVendorItemMappings()
3781
    oprot.writeMessageBegin("getAllVendorItemMappings", TMessageType.REPLY, seqid)
3782
    result.write(oprot)
3783
    oprot.writeMessageEnd()
3784
    oprot.trans.flush()
3785
 
3786
  def process_getInventorySnapshot(self, seqid, iprot, oprot):
3787
    args = getInventorySnapshot_args()
3788
    args.read(iprot)
3789
    iprot.readMessageEnd()
3790
    result = getInventorySnapshot_result()
3791
    result.success = self._handler.getInventorySnapshot(args.warehouseId)
3792
    oprot.writeMessageBegin("getInventorySnapshot", TMessageType.REPLY, seqid)
3793
    result.write(oprot)
3794
    oprot.writeMessageEnd()
3795
    oprot.trans.flush()
3796
 
3797
  def process_clearItemAvailabilityCache(self, seqid, iprot, oprot):
3798
    args = clearItemAvailabilityCache_args()
3799
    args.read(iprot)
3800
    iprot.readMessageEnd()
3801
    result = clearItemAvailabilityCache_result()
3802
    self._handler.clearItemAvailabilityCache()
3803
    oprot.writeMessageBegin("clearItemAvailabilityCache", TMessageType.REPLY, seqid)
3804
    result.write(oprot)
3805
    oprot.writeMessageEnd()
3806
    oprot.trans.flush()
3807
 
3808
  def process_updateVendorString(self, seqid, iprot, oprot):
3809
    args = updateVendorString_args()
3810
    args.read(iprot)
3811
    iprot.readMessageEnd()
3812
    result = updateVendorString_result()
3813
    self._handler.updateVendorString(args.warehouseId, args.vendorString)
3814
    oprot.writeMessageBegin("updateVendorString", TMessageType.REPLY, seqid)
3815
    result.write(oprot)
3816
    oprot.writeMessageEnd()
3817
    oprot.trans.flush()
3818
 
6096 amit.gupta 3819
  def process_clearItemAvailabilityCacheForItem(self, seqid, iprot, oprot):
3820
    args = clearItemAvailabilityCacheForItem_args()
3821
    args.read(iprot)
3822
    iprot.readMessageEnd()
3823
    result = clearItemAvailabilityCacheForItem_result()
3824
    self._handler.clearItemAvailabilityCacheForItem(args.item_id)
3825
    oprot.writeMessageBegin("clearItemAvailabilityCacheForItem", TMessageType.REPLY, seqid)
3826
    result.write(oprot)
3827
    oprot.writeMessageEnd()
3828
    oprot.trans.flush()
5944 mandeep.dh 3829
 
6467 amar.kumar 3830
  def process_getOurWarehouseIdForVendor(self, seqid, iprot, oprot):
3831
    args = getOurWarehouseIdForVendor_args()
3832
    args.read(iprot)
3833
    iprot.readMessageEnd()
3834
    result = getOurWarehouseIdForVendor_result()
7718 amar.kumar 3835
    result.success = self._handler.getOurWarehouseIdForVendor(args.vendorId, args.billingWarehouseId)
6467 amar.kumar 3836
    oprot.writeMessageBegin("getOurWarehouseIdForVendor", TMessageType.REPLY, seqid)
3837
    result.write(oprot)
3838
    oprot.writeMessageEnd()
3839
    oprot.trans.flush()
6096 amit.gupta 3840
 
6484 amar.kumar 3841
  def process_getItemAvailabilitiesAtOurWarehouses(self, seqid, iprot, oprot):
3842
    args = getItemAvailabilitiesAtOurWarehouses_args()
3843
    args.read(iprot)
3844
    iprot.readMessageEnd()
3845
    result = getItemAvailabilitiesAtOurWarehouses_result()
3846
    result.success = self._handler.getItemAvailabilitiesAtOurWarehouses(args.item_ids)
3847
    oprot.writeMessageBegin("getItemAvailabilitiesAtOurWarehouses", TMessageType.REPLY, seqid)
3848
    result.write(oprot)
3849
    oprot.writeMessageEnd()
3850
    oprot.trans.flush()
6467 amar.kumar 3851
 
6531 vikram.rag 3852
  def process_getMonitoredWarehouseForVendors(self, seqid, iprot, oprot):
3853
    args = getMonitoredWarehouseForVendors_args()
3854
    args.read(iprot)
3855
    iprot.readMessageEnd()
3856
    result = getMonitoredWarehouseForVendors_result()
3857
    result.success = self._handler.getMonitoredWarehouseForVendors(args.vendorIds)
3858
    oprot.writeMessageBegin("getMonitoredWarehouseForVendors", TMessageType.REPLY, seqid)
3859
    result.write(oprot)
3860
    oprot.writeMessageEnd()
3861
    oprot.trans.flush()
6484 amar.kumar 3862
 
6531 vikram.rag 3863
  def process_getIgnoredWarehouseidsAndItemids(self, seqid, iprot, oprot):
3864
    args = getIgnoredWarehouseidsAndItemids_args()
3865
    args.read(iprot)
3866
    iprot.readMessageEnd()
3867
    result = getIgnoredWarehouseidsAndItemids_result()
3868
    result.success = self._handler.getIgnoredWarehouseidsAndItemids()
3869
    oprot.writeMessageBegin("getIgnoredWarehouseidsAndItemids", TMessageType.REPLY, seqid)
3870
    result.write(oprot)
3871
    oprot.writeMessageEnd()
3872
    oprot.trans.flush()
3873
 
3874
  def process_insertItemtoIgnoreInventoryUpdatelist(self, seqid, iprot, oprot):
3875
    args = insertItemtoIgnoreInventoryUpdatelist_args()
3876
    args.read(iprot)
3877
    iprot.readMessageEnd()
3878
    result = insertItemtoIgnoreInventoryUpdatelist_result()
3879
    result.success = self._handler.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id)
3880
    oprot.writeMessageBegin("insertItemtoIgnoreInventoryUpdatelist", TMessageType.REPLY, seqid)
3881
    result.write(oprot)
3882
    oprot.writeMessageEnd()
3883
    oprot.trans.flush()
3884
 
3885
  def process_deleteItemFromIgnoredInventoryUpdateList(self, seqid, iprot, oprot):
3886
    args = deleteItemFromIgnoredInventoryUpdateList_args()
3887
    args.read(iprot)
3888
    iprot.readMessageEnd()
3889
    result = deleteItemFromIgnoredInventoryUpdateList_result()
3890
    result.success = self._handler.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id)
3891
    oprot.writeMessageBegin("deleteItemFromIgnoredInventoryUpdateList", TMessageType.REPLY, seqid)
3892
    result.write(oprot)
3893
    oprot.writeMessageEnd()
3894
    oprot.trans.flush()
3895
 
3896
  def process_getAllIgnoredInventoryupdateItemsCount(self, seqid, iprot, oprot):
3897
    args = getAllIgnoredInventoryupdateItemsCount_args()
3898
    args.read(iprot)
3899
    iprot.readMessageEnd()
3900
    result = getAllIgnoredInventoryupdateItemsCount_result()
3901
    result.success = self._handler.getAllIgnoredInventoryupdateItemsCount()
3902
    oprot.writeMessageBegin("getAllIgnoredInventoryupdateItemsCount", TMessageType.REPLY, seqid)
3903
    result.write(oprot)
3904
    oprot.writeMessageEnd()
3905
    oprot.trans.flush()
3906
 
3907
  def process_getIgnoredInventoryUpdateItemids(self, seqid, iprot, oprot):
3908
    args = getIgnoredInventoryUpdateItemids_args()
3909
    args.read(iprot)
3910
    iprot.readMessageEnd()
3911
    result = getIgnoredInventoryUpdateItemids_result()
3912
    result.success = self._handler.getIgnoredInventoryUpdateItemids(args.offset, args.limit)
3913
    oprot.writeMessageBegin("getIgnoredInventoryUpdateItemids", TMessageType.REPLY, seqid)
3914
    result.write(oprot)
3915
    oprot.writeMessageEnd()
3916
    oprot.trans.flush()
3917
 
6821 amar.kumar 3918
  def process_updateItemStockPurchaseParams(self, seqid, iprot, oprot):
3919
    args = updateItemStockPurchaseParams_args()
3920
    args.read(iprot)
3921
    iprot.readMessageEnd()
3922
    result = updateItemStockPurchaseParams_result()
3923
    self._handler.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel)
3924
    oprot.writeMessageBegin("updateItemStockPurchaseParams", TMessageType.REPLY, seqid)
3925
    result.write(oprot)
3926
    oprot.writeMessageEnd()
3927
    oprot.trans.flush()
6531 vikram.rag 3928
 
6821 amar.kumar 3929
  def process_getItemStockPurchaseParams(self, seqid, iprot, oprot):
3930
    args = getItemStockPurchaseParams_args()
3931
    args.read(iprot)
3932
    iprot.readMessageEnd()
3933
    result = getItemStockPurchaseParams_result()
3934
    result.success = self._handler.getItemStockPurchaseParams(args.itemId)
3935
    oprot.writeMessageBegin("getItemStockPurchaseParams", TMessageType.REPLY, seqid)
3936
    result.write(oprot)
3937
    oprot.writeMessageEnd()
3938
    oprot.trans.flush()
3939
 
3940
  def process_addOosStatusForItem(self, seqid, iprot, oprot):
3941
    args = addOosStatusForItem_args()
3942
    args.read(iprot)
3943
    iprot.readMessageEnd()
3944
    result = addOosStatusForItem_result()
3945
    self._handler.addOosStatusForItem(args.oosStatusMap, args.date)
3946
    oprot.writeMessageBegin("addOosStatusForItem", TMessageType.REPLY, seqid)
3947
    result.write(oprot)
3948
    oprot.writeMessageEnd()
3949
    oprot.trans.flush()
3950
 
6832 amar.kumar 3951
  def process_getOosStatusesForXDaysForItem(self, seqid, iprot, oprot):
3952
    args = getOosStatusesForXDaysForItem_args()
3953
    args.read(iprot)
3954
    iprot.readMessageEnd()
3955
    result = getOosStatusesForXDaysForItem_result()
9762 amar.kumar 3956
    result.success = self._handler.getOosStatusesForXDaysForItem(args.itemId, args.sourceId, args.days)
6832 amar.kumar 3957
    oprot.writeMessageBegin("getOosStatusesForXDaysForItem", TMessageType.REPLY, seqid)
3958
    result.write(oprot)
3959
    oprot.writeMessageEnd()
3960
    oprot.trans.flush()
6821 amar.kumar 3961
 
10126 amar.kumar 3962
  def process_getOosStatusesForXDays(self, seqid, iprot, oprot):
3963
    args = getOosStatusesForXDays_args()
3964
    args.read(iprot)
3965
    iprot.readMessageEnd()
3966
    result = getOosStatusesForXDays_result()
3967
    result.success = self._handler.getOosStatusesForXDays(args.sourceId, args.days)
3968
    oprot.writeMessageBegin("getOosStatusesForXDays", TMessageType.REPLY, seqid)
3969
    result.write(oprot)
3970
    oprot.writeMessageEnd()
3971
    oprot.trans.flush()
3972
 
3973
  def process_getAllVendorItemPricing(self, seqid, iprot, oprot):
3974
    args = getAllVendorItemPricing_args()
3975
    args.read(iprot)
3976
    iprot.readMessageEnd()
3977
    result = getAllVendorItemPricing_result()
3978
    result.success = self._handler.getAllVendorItemPricing(args.itemId, args.vendorId)
3979
    oprot.writeMessageBegin("getAllVendorItemPricing", TMessageType.REPLY, seqid)
3980
    result.write(oprot)
3981
    oprot.writeMessageEnd()
3982
    oprot.trans.flush()
3983
 
6857 amar.kumar 3984
  def process_getNonZeroItemStockPurchaseParams(self, seqid, iprot, oprot):
3985
    args = getNonZeroItemStockPurchaseParams_args()
3986
    args.read(iprot)
3987
    iprot.readMessageEnd()
3988
    result = getNonZeroItemStockPurchaseParams_result()
3989
    result.success = self._handler.getNonZeroItemStockPurchaseParams()
3990
    oprot.writeMessageBegin("getNonZeroItemStockPurchaseParams", TMessageType.REPLY, seqid)
3991
    result.write(oprot)
3992
    oprot.writeMessageEnd()
3993
    oprot.trans.flush()
6832 amar.kumar 3994
 
7149 amar.kumar 3995
  def process_getBillableInventoryAndPendingOrders(self, seqid, iprot, oprot):
3996
    args = getBillableInventoryAndPendingOrders_args()
3997
    args.read(iprot)
3998
    iprot.readMessageEnd()
3999
    result = getBillableInventoryAndPendingOrders_result()
4000
    result.success = self._handler.getBillableInventoryAndPendingOrders()
4001
    oprot.writeMessageBegin("getBillableInventoryAndPendingOrders", TMessageType.REPLY, seqid)
4002
    result.write(oprot)
4003
    oprot.writeMessageEnd()
4004
    oprot.trans.flush()
6857 amar.kumar 4005
 
7281 kshitij.so 4006
  def process_getWarehouseName(self, seqid, iprot, oprot):
4007
    args = getWarehouseName_args()
4008
    args.read(iprot)
4009
    iprot.readMessageEnd()
4010
    result = getWarehouseName_result()
4011
    result.success = self._handler.getWarehouseName(args.warehouse_id)
4012
    oprot.writeMessageBegin("getWarehouseName", TMessageType.REPLY, seqid)
4013
    result.write(oprot)
4014
    oprot.writeMessageEnd()
4015
    oprot.trans.flush()
7149 amar.kumar 4016
 
7281 kshitij.so 4017
  def process_getAmazonInventoryForItem(self, seqid, iprot, oprot):
4018
    args = getAmazonInventoryForItem_args()
4019
    args.read(iprot)
4020
    iprot.readMessageEnd()
4021
    result = getAmazonInventoryForItem_result()
4022
    result.success = self._handler.getAmazonInventoryForItem(args.item_id)
4023
    oprot.writeMessageBegin("getAmazonInventoryForItem", TMessageType.REPLY, seqid)
4024
    result.write(oprot)
4025
    oprot.writeMessageEnd()
4026
    oprot.trans.flush()
4027
 
4028
  def process_getAllAmazonInventory(self, seqid, iprot, oprot):
4029
    args = getAllAmazonInventory_args()
4030
    args.read(iprot)
4031
    iprot.readMessageEnd()
4032
    result = getAllAmazonInventory_result()
4033
    result.success = self._handler.getAllAmazonInventory()
4034
    oprot.writeMessageBegin("getAllAmazonInventory", TMessageType.REPLY, seqid)
4035
    result.write(oprot)
4036
    oprot.writeMessageEnd()
4037
    oprot.trans.flush()
4038
 
4039
  def process_addOrUpdateAmazonInventoryForItem(self, seqid, iprot, oprot):
4040
    args = addOrUpdateAmazonInventoryForItem_args()
4041
    args.read(iprot)
4042
    iprot.readMessageEnd()
4043
    result = addOrUpdateAmazonInventoryForItem_result()
10450 vikram.rag 4044
    self._handler.addOrUpdateAmazonInventoryForItem(args.amazonInventorySnapshot, args.time)
7281 kshitij.so 4045
    oprot.writeMessageBegin("addOrUpdateAmazonInventoryForItem", TMessageType.REPLY, seqid)
4046
    result.write(oprot)
4047
    oprot.writeMessageEnd()
4048
    oprot.trans.flush()
4049
 
7972 amar.kumar 4050
  def process_getLastNdaySaleForItem(self, seqid, iprot, oprot):
4051
    args = getLastNdaySaleForItem_args()
4052
    args.read(iprot)
4053
    iprot.readMessageEnd()
4054
    result = getLastNdaySaleForItem_result()
4055
    result.success = self._handler.getLastNdaySaleForItem(args.itemId, args.numberOfDays)
4056
    oprot.writeMessageBegin("getLastNdaySaleForItem", TMessageType.REPLY, seqid)
4057
    result.write(oprot)
4058
    oprot.writeMessageEnd()
4059
    oprot.trans.flush()
7281 kshitij.so 4060
 
8282 kshitij.so 4061
  def process_addOrUpdateAmazonFbaInventory(self, seqid, iprot, oprot):
4062
    args = addOrUpdateAmazonFbaInventory_args()
4063
    args.read(iprot)
4064
    iprot.readMessageEnd()
4065
    result = addOrUpdateAmazonFbaInventory_result()
4066
    self._handler.addOrUpdateAmazonFbaInventory(args.amazonfbainventorysnapshot)
4067
    oprot.writeMessageBegin("addOrUpdateAmazonFbaInventory", TMessageType.REPLY, seqid)
4068
    result.write(oprot)
4069
    oprot.writeMessageEnd()
4070
    oprot.trans.flush()
4071
 
8182 amar.kumar 4072
  def process_addUpdateHoldInventory(self, seqid, iprot, oprot):
4073
    args = addUpdateHoldInventory_args()
4074
    args.read(iprot)
4075
    iprot.readMessageEnd()
4076
    result = addUpdateHoldInventory_result()
9762 amar.kumar 4077
    try:
4078
      self._handler.addUpdateHoldInventory(args.itemId, args.warehouseId, args.holdQuantity, args.source)
4079
    except InventoryServiceException, cex:
4080
      result.cex = cex
8182 amar.kumar 4081
    oprot.writeMessageBegin("addUpdateHoldInventory", TMessageType.REPLY, seqid)
4082
    result.write(oprot)
4083
    oprot.writeMessageEnd()
4084
    oprot.trans.flush()
7972 amar.kumar 4085
 
8282 kshitij.so 4086
  def process_getAmazonFbaItemInventory(self, seqid, iprot, oprot):
4087
    args = getAmazonFbaItemInventory_args()
4088
    args.read(iprot)
4089
    iprot.readMessageEnd()
4090
    result = getAmazonFbaItemInventory_result()
4091
    result.success = self._handler.getAmazonFbaItemInventory(args.itemId)
4092
    oprot.writeMessageBegin("getAmazonFbaItemInventory", TMessageType.REPLY, seqid)
4093
    result.write(oprot)
4094
    oprot.writeMessageEnd()
4095
    oprot.trans.flush()
8182 amar.kumar 4096
 
8363 vikram.rag 4097
  def process_getAllAmazonFbaItemInventory(self, seqid, iprot, oprot):
4098
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 4099
    args.read(iprot)
4100
    iprot.readMessageEnd()
8363 vikram.rag 4101
    result = getAllAmazonFbaItemInventory_result()
4102
    result.success = self._handler.getAllAmazonFbaItemInventory()
4103
    oprot.writeMessageBegin("getAllAmazonFbaItemInventory", TMessageType.REPLY, seqid)
8282 kshitij.so 4104
    result.write(oprot)
4105
    oprot.writeMessageEnd()
4106
    oprot.trans.flush()
4107
 
8363 vikram.rag 4108
  def process_getOursGoodWarehouseIdsForLocation(self, seqid, iprot, oprot):
4109
    args = getOursGoodWarehouseIdsForLocation_args()
4110
    args.read(iprot)
4111
    iprot.readMessageEnd()
4112
    result = getOursGoodWarehouseIdsForLocation_result()
4113
    result.success = self._handler.getOursGoodWarehouseIdsForLocation(args.state_id)
4114
    oprot.writeMessageBegin("getOursGoodWarehouseIdsForLocation", TMessageType.REPLY, seqid)
4115
    result.write(oprot)
4116
    oprot.writeMessageEnd()
4117
    oprot.trans.flush()
8282 kshitij.so 4118
 
8955 vikram.rag 4119
  def process_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, seqid, iprot, oprot):
4120
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
4121
    args.read(iprot)
4122
    iprot.readMessageEnd()
4123
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
4124
    result.success = self._handler.getHoldInventoryDetailForItemForWarehouseIdExceptSource(args.id, args.warehouse_id, args.source)
4125
    oprot.writeMessageBegin("getHoldInventoryDetailForItemForWarehouseIdExceptSource", TMessageType.REPLY, seqid)
4126
    result.write(oprot)
4127
    oprot.writeMessageEnd()
4128
    oprot.trans.flush()
8363 vikram.rag 4129
 
9404 vikram.rag 4130
  def process_getSnapdealInventoryForItem(self, seqid, iprot, oprot):
4131
    args = getSnapdealInventoryForItem_args()
4132
    args.read(iprot)
4133
    iprot.readMessageEnd()
4134
    result = getSnapdealInventoryForItem_result()
4135
    result.success = self._handler.getSnapdealInventoryForItem(args.item_id)
4136
    oprot.writeMessageBegin("getSnapdealInventoryForItem", TMessageType.REPLY, seqid)
4137
    result.write(oprot)
4138
    oprot.writeMessageEnd()
4139
    oprot.trans.flush()
8955 vikram.rag 4140
 
9404 vikram.rag 4141
  def process_addOrUpdateSnapdealInventoryForItem(self, seqid, iprot, oprot):
4142
    args = addOrUpdateSnapdealInventoryForItem_args()
4143
    args.read(iprot)
4144
    iprot.readMessageEnd()
4145
    result = addOrUpdateSnapdealInventoryForItem_result()
4146
    self._handler.addOrUpdateSnapdealInventoryForItem(args.snapdealinventoryitem)
4147
    oprot.writeMessageBegin("addOrUpdateSnapdealInventoryForItem", TMessageType.REPLY, seqid)
4148
    result.write(oprot)
4149
    oprot.writeMessageEnd()
4150
    oprot.trans.flush()
4151
 
4152
  def process_getNlcForWarehouse(self, seqid, iprot, oprot):
4153
    args = getNlcForWarehouse_args()
4154
    args.read(iprot)
4155
    iprot.readMessageEnd()
4156
    result = getNlcForWarehouse_result()
4157
    result.success = self._handler.getNlcForWarehouse(args.warehouse_id, args.item_id)
4158
    oprot.writeMessageBegin("getNlcForWarehouse", TMessageType.REPLY, seqid)
4159
    result.write(oprot)
4160
    oprot.writeMessageEnd()
4161
    oprot.trans.flush()
4162
 
9640 amar.kumar 4163
  def process_getHeldInventoryMapForItem(self, seqid, iprot, oprot):
4164
    args = getHeldInventoryMapForItem_args()
4165
    args.read(iprot)
4166
    iprot.readMessageEnd()
4167
    result = getHeldInventoryMapForItem_result()
4168
    result.success = self._handler.getHeldInventoryMapForItem(args.item_id, args.warehouse_id)
4169
    oprot.writeMessageBegin("getHeldInventoryMapForItem", TMessageType.REPLY, seqid)
4170
    result.write(oprot)
4171
    oprot.writeMessageEnd()
4172
    oprot.trans.flush()
4173
 
9495 vikram.rag 4174
  def process_addOrUpdateAllAmazonFbaInventory(self, seqid, iprot, oprot):
4175
    args = addOrUpdateAllAmazonFbaInventory_args()
9456 vikram.rag 4176
    args.read(iprot)
4177
    iprot.readMessageEnd()
9495 vikram.rag 4178
    result = addOrUpdateAllAmazonFbaInventory_result()
4179
    self._handler.addOrUpdateAllAmazonFbaInventory(args.allamazonfbainventorysnapshot)
4180
    oprot.writeMessageBegin("addOrUpdateAllAmazonFbaInventory", TMessageType.REPLY, seqid)
9456 vikram.rag 4181
    result.write(oprot)
4182
    oprot.writeMessageEnd()
4183
    oprot.trans.flush()
9404 vikram.rag 4184
 
9495 vikram.rag 4185
  def process_addOrUpdateAllSnapdealInventory(self, seqid, iprot, oprot):
4186
    args = addOrUpdateAllSnapdealInventory_args()
9482 vikram.rag 4187
    args.read(iprot)
4188
    iprot.readMessageEnd()
9495 vikram.rag 4189
    result = addOrUpdateAllSnapdealInventory_result()
4190
    self._handler.addOrUpdateAllSnapdealInventory(args.allsnapdealinventorysnapshot)
4191
    oprot.writeMessageBegin("addOrUpdateAllSnapdealInventory", TMessageType.REPLY, seqid)
9482 vikram.rag 4192
    result.write(oprot)
4193
    oprot.writeMessageEnd()
4194
    oprot.trans.flush()
9456 vikram.rag 4195
 
9495 vikram.rag 4196
  def process_getSnapdealInventorySnapshot(self, seqid, iprot, oprot):
4197
    args = getSnapdealInventorySnapshot_args()
4198
    args.read(iprot)
4199
    iprot.readMessageEnd()
4200
    result = getSnapdealInventorySnapshot_result()
4201
    result.success = self._handler.getSnapdealInventorySnapshot()
4202
    oprot.writeMessageBegin("getSnapdealInventorySnapshot", TMessageType.REPLY, seqid)
4203
    result.write(oprot)
4204
    oprot.writeMessageEnd()
4205
    oprot.trans.flush()
9482 vikram.rag 4206
 
9761 amar.kumar 4207
  def process_getHoldInventoryDetails(self, seqid, iprot, oprot):
4208
    args = getHoldInventoryDetails_args()
4209
    args.read(iprot)
4210
    iprot.readMessageEnd()
4211
    result = getHoldInventoryDetails_result()
4212
    result.success = self._handler.getHoldInventoryDetails(args.itemId, args.warehouseId, args.source)
4213
    oprot.writeMessageBegin("getHoldInventoryDetails", TMessageType.REPLY, seqid)
4214
    result.write(oprot)
4215
    oprot.writeMessageEnd()
4216
    oprot.trans.flush()
9495 vikram.rag 4217
 
10050 vikram.rag 4218
  def process_addOrUpdateFlipkartInventorySnapshot(self, seqid, iprot, oprot):
4219
    args = addOrUpdateFlipkartInventorySnapshot_args()
4220
    args.read(iprot)
4221
    iprot.readMessageEnd()
4222
    result = addOrUpdateFlipkartInventorySnapshot_result()
10450 vikram.rag 4223
    self._handler.addOrUpdateFlipkartInventorySnapshot(args.flipkartInventorySnapshot, args.time)
10050 vikram.rag 4224
    oprot.writeMessageBegin("addOrUpdateFlipkartInventorySnapshot", TMessageType.REPLY, seqid)
4225
    result.write(oprot)
4226
    oprot.writeMessageEnd()
4227
    oprot.trans.flush()
9761 amar.kumar 4228
 
10050 vikram.rag 4229
  def process_getFlipkartInventorySnapshot(self, seqid, iprot, oprot):
4230
    args = getFlipkartInventorySnapshot_args()
4231
    args.read(iprot)
4232
    iprot.readMessageEnd()
4233
    result = getFlipkartInventorySnapshot_result()
4234
    result.success = self._handler.getFlipkartInventorySnapshot()
4235
    oprot.writeMessageBegin("getFlipkartInventorySnapshot", TMessageType.REPLY, seqid)
4236
    result.write(oprot)
4237
    oprot.writeMessageEnd()
4238
    oprot.trans.flush()
4239
 
10097 kshitij.so 4240
  def process_getFlipkartlInventoryForItem(self, seqid, iprot, oprot):
4241
    args = getFlipkartlInventoryForItem_args()
4242
    args.read(iprot)
4243
    iprot.readMessageEnd()
4244
    result = getFlipkartlInventoryForItem_result()
4245
    result.success = self._handler.getFlipkartlInventoryForItem(args.item_id)
4246
    oprot.writeMessageBegin("getFlipkartlInventoryForItem", TMessageType.REPLY, seqid)
4247
    result.write(oprot)
4248
    oprot.writeMessageEnd()
4249
    oprot.trans.flush()
10050 vikram.rag 4250
 
10485 vikram.rag 4251
  def process_getStateMaster(self, seqid, iprot, oprot):
4252
    args = getStateMaster_args()
4253
    args.read(iprot)
4254
    iprot.readMessageEnd()
4255
    result = getStateMaster_result()
4256
    result.success = self._handler.getStateMaster()
4257
    oprot.writeMessageBegin("getStateMaster", TMessageType.REPLY, seqid)
4258
    result.write(oprot)
4259
    oprot.writeMessageEnd()
4260
    oprot.trans.flush()
10097 kshitij.so 4261
 
10544 vikram.rag 4262
  def process_updateSnapdealStockAtEOD(self, seqid, iprot, oprot):
4263
    args = updateSnapdealStockAtEOD_args()
4264
    args.read(iprot)
4265
    iprot.readMessageEnd()
4266
    result = updateSnapdealStockAtEOD_result()
4267
    self._handler.updateSnapdealStockAtEOD(args.allsnapdealstock)
4268
    oprot.writeMessageBegin("updateSnapdealStockAtEOD", TMessageType.REPLY, seqid)
4269
    result.write(oprot)
4270
    oprot.writeMessageEnd()
4271
    oprot.trans.flush()
10485 vikram.rag 4272
 
10544 vikram.rag 4273
  def process_updateFlipkartStockAtEOD(self, seqid, iprot, oprot):
4274
    args = updateFlipkartStockAtEOD_args()
4275
    args.read(iprot)
4276
    iprot.readMessageEnd()
4277
    result = updateFlipkartStockAtEOD_result()
4278
    self._handler.updateFlipkartStockAtEOD(args.allflipkartstock)
4279
    oprot.writeMessageBegin("updateFlipkartStockAtEOD", TMessageType.REPLY, seqid)
4280
    result.write(oprot)
4281
    oprot.writeMessageEnd()
4282
    oprot.trans.flush()
4283
 
12363 kshitij.so 4284
  def process_getWanNlcForSource(self, seqid, iprot, oprot):
4285
    args = getWanNlcForSource_args()
4286
    args.read(iprot)
4287
    iprot.readMessageEnd()
4288
    result = getWanNlcForSource_result()
4289
    result.success = self._handler.getWanNlcForSource(args.item_id, args.source)
4290
    oprot.writeMessageBegin("getWanNlcForSource", TMessageType.REPLY, seqid)
4291
    result.write(oprot)
4292
    oprot.writeMessageEnd()
4293
    oprot.trans.flush()
10544 vikram.rag 4294
 
12363 kshitij.so 4295
  def process_getAllAvailableAmazonFbaItemInventory(self, seqid, iprot, oprot):
4296
    args = getAllAvailableAmazonFbaItemInventory_args()
4297
    args.read(iprot)
4298
    iprot.readMessageEnd()
4299
    result = getAllAvailableAmazonFbaItemInventory_result()
4300
    result.success = self._handler.getAllAvailableAmazonFbaItemInventory()
4301
    oprot.writeMessageBegin("getAllAvailableAmazonFbaItemInventory", TMessageType.REPLY, seqid)
4302
    result.write(oprot)
4303
    oprot.writeMessageEnd()
4304
    oprot.trans.flush()
4305
 
17990 kshitij.so 4306
  def process_updateItemAvailabilityForItemIds(self, seqid, iprot, oprot):
4307
    args = updateItemAvailabilityForItemIds_args()
4308
    args.read(iprot)
4309
    iprot.readMessageEnd()
4310
    result = updateItemAvailabilityForItemIds_result()
4311
    result.success = self._handler.updateItemAvailabilityForItemIds(args.itemIds)
4312
    oprot.writeMessageBegin("updateItemAvailabilityForItemIds", TMessageType.REPLY, seqid)
4313
    result.write(oprot)
4314
    oprot.writeMessageEnd()
4315
    oprot.trans.flush()
12363 kshitij.so 4316
 
17990 kshitij.so 4317
 
5944 mandeep.dh 4318
# HELPER FUNCTIONS AND STRUCTURES
4319
 
4320
class addWarehouse_args:
4321
  """
4322
  Attributes:
4323
   - warehouse
4324
  """
4325
 
4326
  thrift_spec = (
4327
    None, # 0
4328
    (1, TType.STRUCT, 'warehouse', (Warehouse, Warehouse.thrift_spec), None, ), # 1
4329
  )
4330
 
4331
  def __init__(self, warehouse=None,):
4332
    self.warehouse = warehouse
4333
 
4334
  def read(self, iprot):
4335
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4336
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4337
      return
4338
    iprot.readStructBegin()
4339
    while True:
4340
      (fname, ftype, fid) = iprot.readFieldBegin()
4341
      if ftype == TType.STOP:
4342
        break
4343
      if fid == 1:
4344
        if ftype == TType.STRUCT:
4345
          self.warehouse = Warehouse()
4346
          self.warehouse.read(iprot)
4347
        else:
4348
          iprot.skip(ftype)
4349
      else:
4350
        iprot.skip(ftype)
4351
      iprot.readFieldEnd()
4352
    iprot.readStructEnd()
4353
 
4354
  def write(self, oprot):
4355
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4356
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4357
      return
4358
    oprot.writeStructBegin('addWarehouse_args')
4359
    if self.warehouse is not None:
4360
      oprot.writeFieldBegin('warehouse', TType.STRUCT, 1)
4361
      self.warehouse.write(oprot)
4362
      oprot.writeFieldEnd()
4363
    oprot.writeFieldStop()
4364
    oprot.writeStructEnd()
4365
 
4366
  def validate(self):
4367
    return
4368
 
4369
 
4370
  def __repr__(self):
4371
    L = ['%s=%r' % (key, value)
4372
      for key, value in self.__dict__.iteritems()]
4373
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4374
 
4375
  def __eq__(self, other):
4376
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4377
 
4378
  def __ne__(self, other):
4379
    return not (self == other)
4380
 
4381
class addWarehouse_result:
4382
  """
4383
  Attributes:
4384
   - success
4385
   - cex
4386
  """
4387
 
4388
  thrift_spec = (
4389
    (0, TType.I64, 'success', None, None, ), # 0
4390
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4391
  )
4392
 
4393
  def __init__(self, success=None, cex=None,):
4394
    self.success = success
4395
    self.cex = cex
4396
 
4397
  def read(self, iprot):
4398
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4399
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4400
      return
4401
    iprot.readStructBegin()
4402
    while True:
4403
      (fname, ftype, fid) = iprot.readFieldBegin()
4404
      if ftype == TType.STOP:
4405
        break
4406
      if fid == 0:
4407
        if ftype == TType.I64:
4408
          self.success = iprot.readI64();
4409
        else:
4410
          iprot.skip(ftype)
4411
      elif fid == 1:
4412
        if ftype == TType.STRUCT:
4413
          self.cex = InventoryServiceException()
4414
          self.cex.read(iprot)
4415
        else:
4416
          iprot.skip(ftype)
4417
      else:
4418
        iprot.skip(ftype)
4419
      iprot.readFieldEnd()
4420
    iprot.readStructEnd()
4421
 
4422
  def write(self, oprot):
4423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4425
      return
4426
    oprot.writeStructBegin('addWarehouse_result')
4427
    if self.success is not None:
4428
      oprot.writeFieldBegin('success', TType.I64, 0)
4429
      oprot.writeI64(self.success)
4430
      oprot.writeFieldEnd()
4431
    if self.cex is not None:
4432
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4433
      self.cex.write(oprot)
4434
      oprot.writeFieldEnd()
4435
    oprot.writeFieldStop()
4436
    oprot.writeStructEnd()
4437
 
4438
  def validate(self):
4439
    return
4440
 
4441
 
4442
  def __repr__(self):
4443
    L = ['%s=%r' % (key, value)
4444
      for key, value in self.__dict__.iteritems()]
4445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4446
 
4447
  def __eq__(self, other):
4448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4449
 
4450
  def __ne__(self, other):
4451
    return not (self == other)
4452
 
4453
class addVendor_args:
4454
  """
4455
  Attributes:
4456
   - vendor
4457
  """
4458
 
4459
  thrift_spec = (
4460
    None, # 0
4461
    (1, TType.STRUCT, 'vendor', (Vendor, Vendor.thrift_spec), None, ), # 1
4462
  )
4463
 
4464
  def __init__(self, vendor=None,):
4465
    self.vendor = vendor
4466
 
4467
  def read(self, iprot):
4468
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4469
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4470
      return
4471
    iprot.readStructBegin()
4472
    while True:
4473
      (fname, ftype, fid) = iprot.readFieldBegin()
4474
      if ftype == TType.STOP:
4475
        break
4476
      if fid == 1:
4477
        if ftype == TType.STRUCT:
4478
          self.vendor = Vendor()
4479
          self.vendor.read(iprot)
4480
        else:
4481
          iprot.skip(ftype)
4482
      else:
4483
        iprot.skip(ftype)
4484
      iprot.readFieldEnd()
4485
    iprot.readStructEnd()
4486
 
4487
  def write(self, oprot):
4488
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4489
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4490
      return
4491
    oprot.writeStructBegin('addVendor_args')
4492
    if self.vendor is not None:
4493
      oprot.writeFieldBegin('vendor', TType.STRUCT, 1)
4494
      self.vendor.write(oprot)
4495
      oprot.writeFieldEnd()
4496
    oprot.writeFieldStop()
4497
    oprot.writeStructEnd()
4498
 
4499
  def validate(self):
4500
    return
4501
 
4502
 
4503
  def __repr__(self):
4504
    L = ['%s=%r' % (key, value)
4505
      for key, value in self.__dict__.iteritems()]
4506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4507
 
4508
  def __eq__(self, other):
4509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4510
 
4511
  def __ne__(self, other):
4512
    return not (self == other)
4513
 
4514
class addVendor_result:
4515
  """
4516
  Attributes:
4517
   - success
4518
   - cex
4519
  """
4520
 
4521
  thrift_spec = (
4522
    (0, TType.I64, 'success', None, None, ), # 0
4523
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4524
  )
4525
 
4526
  def __init__(self, success=None, cex=None,):
4527
    self.success = success
4528
    self.cex = cex
4529
 
4530
  def read(self, iprot):
4531
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4532
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4533
      return
4534
    iprot.readStructBegin()
4535
    while True:
4536
      (fname, ftype, fid) = iprot.readFieldBegin()
4537
      if ftype == TType.STOP:
4538
        break
4539
      if fid == 0:
4540
        if ftype == TType.I64:
4541
          self.success = iprot.readI64();
4542
        else:
4543
          iprot.skip(ftype)
4544
      elif fid == 1:
4545
        if ftype == TType.STRUCT:
4546
          self.cex = InventoryServiceException()
4547
          self.cex.read(iprot)
4548
        else:
4549
          iprot.skip(ftype)
4550
      else:
4551
        iprot.skip(ftype)
4552
      iprot.readFieldEnd()
4553
    iprot.readStructEnd()
4554
 
4555
  def write(self, oprot):
4556
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4557
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4558
      return
4559
    oprot.writeStructBegin('addVendor_result')
4560
    if self.success is not None:
4561
      oprot.writeFieldBegin('success', TType.I64, 0)
4562
      oprot.writeI64(self.success)
4563
      oprot.writeFieldEnd()
4564
    if self.cex is not None:
4565
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4566
      self.cex.write(oprot)
4567
      oprot.writeFieldEnd()
4568
    oprot.writeFieldStop()
4569
    oprot.writeStructEnd()
4570
 
4571
  def validate(self):
4572
    return
4573
 
4574
 
4575
  def __repr__(self):
4576
    L = ['%s=%r' % (key, value)
4577
      for key, value in self.__dict__.iteritems()]
4578
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4579
 
4580
  def __eq__(self, other):
4581
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4582
 
4583
  def __ne__(self, other):
4584
    return not (self == other)
4585
 
4586
class updateInventoryHistory_args:
4587
  """
4588
  Attributes:
4589
   - warehouse_id
4590
   - timestamp
4591
   - availability
4592
  """
4593
 
4594
  thrift_spec = (
4595
    None, # 0
4596
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4597
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4598
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4599
  )
4600
 
4601
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4602
    self.warehouse_id = warehouse_id
4603
    self.timestamp = timestamp
4604
    self.availability = availability
4605
 
4606
  def read(self, iprot):
4607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4609
      return
4610
    iprot.readStructBegin()
4611
    while True:
4612
      (fname, ftype, fid) = iprot.readFieldBegin()
4613
      if ftype == TType.STOP:
4614
        break
4615
      if fid == 1:
4616
        if ftype == TType.I64:
4617
          self.warehouse_id = iprot.readI64();
4618
        else:
4619
          iprot.skip(ftype)
4620
      elif fid == 2:
4621
        if ftype == TType.STRING:
4622
          self.timestamp = iprot.readString();
4623
        else:
4624
          iprot.skip(ftype)
4625
      elif fid == 3:
4626
        if ftype == TType.MAP:
4627
          self.availability = {}
8182 amar.kumar 4628
          (_ktype28, _vtype29, _size27 ) = iprot.readMapBegin() 
4629
          for _i31 in xrange(_size27):
4630
            _key32 = iprot.readString();
4631
            _val33 = iprot.readI64();
4632
            self.availability[_key32] = _val33
5944 mandeep.dh 4633
          iprot.readMapEnd()
4634
        else:
4635
          iprot.skip(ftype)
4636
      else:
4637
        iprot.skip(ftype)
4638
      iprot.readFieldEnd()
4639
    iprot.readStructEnd()
4640
 
4641
  def write(self, oprot):
4642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4644
      return
4645
    oprot.writeStructBegin('updateInventoryHistory_args')
4646
    if self.warehouse_id is not None:
4647
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4648
      oprot.writeI64(self.warehouse_id)
4649
      oprot.writeFieldEnd()
4650
    if self.timestamp is not None:
4651
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4652
      oprot.writeString(self.timestamp)
4653
      oprot.writeFieldEnd()
4654
    if self.availability is not None:
4655
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4656
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4657
      for kiter34,viter35 in self.availability.items():
4658
        oprot.writeString(kiter34)
4659
        oprot.writeI64(viter35)
5944 mandeep.dh 4660
      oprot.writeMapEnd()
4661
      oprot.writeFieldEnd()
4662
    oprot.writeFieldStop()
4663
    oprot.writeStructEnd()
4664
 
4665
  def validate(self):
4666
    return
4667
 
4668
 
4669
  def __repr__(self):
4670
    L = ['%s=%r' % (key, value)
4671
      for key, value in self.__dict__.iteritems()]
4672
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4673
 
4674
  def __eq__(self, other):
4675
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4676
 
4677
  def __ne__(self, other):
4678
    return not (self == other)
4679
 
4680
class updateInventoryHistory_result:
4681
  """
4682
  Attributes:
4683
   - cex
4684
  """
4685
 
4686
  thrift_spec = (
4687
    None, # 0
4688
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4689
  )
4690
 
4691
  def __init__(self, cex=None,):
4692
    self.cex = cex
4693
 
4694
  def read(self, iprot):
4695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4697
      return
4698
    iprot.readStructBegin()
4699
    while True:
4700
      (fname, ftype, fid) = iprot.readFieldBegin()
4701
      if ftype == TType.STOP:
4702
        break
4703
      if fid == 1:
4704
        if ftype == TType.STRUCT:
4705
          self.cex = InventoryServiceException()
4706
          self.cex.read(iprot)
4707
        else:
4708
          iprot.skip(ftype)
4709
      else:
4710
        iprot.skip(ftype)
4711
      iprot.readFieldEnd()
4712
    iprot.readStructEnd()
4713
 
4714
  def write(self, oprot):
4715
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4716
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4717
      return
4718
    oprot.writeStructBegin('updateInventoryHistory_result')
4719
    if self.cex is not None:
4720
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4721
      self.cex.write(oprot)
4722
      oprot.writeFieldEnd()
4723
    oprot.writeFieldStop()
4724
    oprot.writeStructEnd()
4725
 
4726
  def validate(self):
4727
    return
4728
 
4729
 
4730
  def __repr__(self):
4731
    L = ['%s=%r' % (key, value)
4732
      for key, value in self.__dict__.iteritems()]
4733
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4734
 
4735
  def __eq__(self, other):
4736
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4737
 
4738
  def __ne__(self, other):
4739
    return not (self == other)
4740
 
4741
class updateInventory_args:
4742
  """
4743
  Attributes:
4744
   - warehouse_id
4745
   - timestamp
4746
   - availability
4747
  """
4748
 
4749
  thrift_spec = (
4750
    None, # 0
4751
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4752
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4753
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4754
  )
4755
 
4756
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4757
    self.warehouse_id = warehouse_id
4758
    self.timestamp = timestamp
4759
    self.availability = availability
4760
 
4761
  def read(self, iprot):
4762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4764
      return
4765
    iprot.readStructBegin()
4766
    while True:
4767
      (fname, ftype, fid) = iprot.readFieldBegin()
4768
      if ftype == TType.STOP:
4769
        break
4770
      if fid == 1:
4771
        if ftype == TType.I64:
4772
          self.warehouse_id = iprot.readI64();
4773
        else:
4774
          iprot.skip(ftype)
4775
      elif fid == 2:
4776
        if ftype == TType.STRING:
4777
          self.timestamp = iprot.readString();
4778
        else:
4779
          iprot.skip(ftype)
4780
      elif fid == 3:
4781
        if ftype == TType.MAP:
4782
          self.availability = {}
8182 amar.kumar 4783
          (_ktype37, _vtype38, _size36 ) = iprot.readMapBegin() 
4784
          for _i40 in xrange(_size36):
4785
            _key41 = iprot.readString();
4786
            _val42 = iprot.readI64();
4787
            self.availability[_key41] = _val42
5944 mandeep.dh 4788
          iprot.readMapEnd()
4789
        else:
4790
          iprot.skip(ftype)
4791
      else:
4792
        iprot.skip(ftype)
4793
      iprot.readFieldEnd()
4794
    iprot.readStructEnd()
4795
 
4796
  def write(self, oprot):
4797
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4798
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4799
      return
4800
    oprot.writeStructBegin('updateInventory_args')
4801
    if self.warehouse_id is not None:
4802
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4803
      oprot.writeI64(self.warehouse_id)
4804
      oprot.writeFieldEnd()
4805
    if self.timestamp is not None:
4806
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4807
      oprot.writeString(self.timestamp)
4808
      oprot.writeFieldEnd()
4809
    if self.availability is not None:
4810
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4811
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4812
      for kiter43,viter44 in self.availability.items():
4813
        oprot.writeString(kiter43)
4814
        oprot.writeI64(viter44)
5944 mandeep.dh 4815
      oprot.writeMapEnd()
4816
      oprot.writeFieldEnd()
4817
    oprot.writeFieldStop()
4818
    oprot.writeStructEnd()
4819
 
4820
  def validate(self):
4821
    return
4822
 
4823
 
4824
  def __repr__(self):
4825
    L = ['%s=%r' % (key, value)
4826
      for key, value in self.__dict__.iteritems()]
4827
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4828
 
4829
  def __eq__(self, other):
4830
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4831
 
4832
  def __ne__(self, other):
4833
    return not (self == other)
4834
 
4835
class updateInventory_result:
4836
  """
4837
  Attributes:
4838
   - cex
4839
  """
4840
 
4841
  thrift_spec = (
4842
    None, # 0
4843
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4844
  )
4845
 
4846
  def __init__(self, cex=None,):
4847
    self.cex = cex
4848
 
4849
  def read(self, iprot):
4850
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4851
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4852
      return
4853
    iprot.readStructBegin()
4854
    while True:
4855
      (fname, ftype, fid) = iprot.readFieldBegin()
4856
      if ftype == TType.STOP:
4857
        break
4858
      if fid == 1:
4859
        if ftype == TType.STRUCT:
4860
          self.cex = InventoryServiceException()
4861
          self.cex.read(iprot)
4862
        else:
4863
          iprot.skip(ftype)
4864
      else:
4865
        iprot.skip(ftype)
4866
      iprot.readFieldEnd()
4867
    iprot.readStructEnd()
4868
 
4869
  def write(self, oprot):
4870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4872
      return
4873
    oprot.writeStructBegin('updateInventory_result')
4874
    if self.cex is not None:
4875
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4876
      self.cex.write(oprot)
4877
      oprot.writeFieldEnd()
4878
    oprot.writeFieldStop()
4879
    oprot.writeStructEnd()
4880
 
4881
  def validate(self):
4882
    return
4883
 
4884
 
4885
  def __repr__(self):
4886
    L = ['%s=%r' % (key, value)
4887
      for key, value in self.__dict__.iteritems()]
4888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4889
 
4890
  def __eq__(self, other):
4891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4892
 
4893
  def __ne__(self, other):
4894
    return not (self == other)
4895
 
4896
class addInventory_args:
4897
  """
4898
  Attributes:
4899
   - itemId
4900
   - warehouseId
4901
   - quantity
4902
  """
4903
 
4904
  thrift_spec = (
4905
    None, # 0
4906
    (1, TType.I64, 'itemId', None, None, ), # 1
4907
    (2, TType.I64, 'warehouseId', None, None, ), # 2
4908
    (3, TType.I64, 'quantity', None, None, ), # 3
4909
  )
4910
 
4911
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
4912
    self.itemId = itemId
4913
    self.warehouseId = warehouseId
4914
    self.quantity = quantity
4915
 
4916
  def read(self, iprot):
4917
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4918
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4919
      return
4920
    iprot.readStructBegin()
4921
    while True:
4922
      (fname, ftype, fid) = iprot.readFieldBegin()
4923
      if ftype == TType.STOP:
4924
        break
4925
      if fid == 1:
4926
        if ftype == TType.I64:
4927
          self.itemId = iprot.readI64();
4928
        else:
4929
          iprot.skip(ftype)
4930
      elif fid == 2:
4931
        if ftype == TType.I64:
4932
          self.warehouseId = iprot.readI64();
4933
        else:
4934
          iprot.skip(ftype)
4935
      elif fid == 3:
4936
        if ftype == TType.I64:
4937
          self.quantity = iprot.readI64();
4938
        else:
4939
          iprot.skip(ftype)
4940
      else:
4941
        iprot.skip(ftype)
4942
      iprot.readFieldEnd()
4943
    iprot.readStructEnd()
4944
 
4945
  def write(self, oprot):
4946
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4947
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4948
      return
4949
    oprot.writeStructBegin('addInventory_args')
4950
    if self.itemId is not None:
4951
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4952
      oprot.writeI64(self.itemId)
4953
      oprot.writeFieldEnd()
4954
    if self.warehouseId is not None:
4955
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
4956
      oprot.writeI64(self.warehouseId)
4957
      oprot.writeFieldEnd()
4958
    if self.quantity is not None:
4959
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4960
      oprot.writeI64(self.quantity)
4961
      oprot.writeFieldEnd()
4962
    oprot.writeFieldStop()
4963
    oprot.writeStructEnd()
4964
 
4965
  def validate(self):
4966
    return
4967
 
4968
 
4969
  def __repr__(self):
4970
    L = ['%s=%r' % (key, value)
4971
      for key, value in self.__dict__.iteritems()]
4972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4973
 
4974
  def __eq__(self, other):
4975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4976
 
4977
  def __ne__(self, other):
4978
    return not (self == other)
4979
 
4980
class addInventory_result:
4981
  """
4982
  Attributes:
4983
   - cex
4984
  """
4985
 
4986
  thrift_spec = (
4987
    None, # 0
4988
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4989
  )
4990
 
4991
  def __init__(self, cex=None,):
4992
    self.cex = cex
4993
 
4994
  def read(self, iprot):
4995
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4996
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4997
      return
4998
    iprot.readStructBegin()
4999
    while True:
5000
      (fname, ftype, fid) = iprot.readFieldBegin()
5001
      if ftype == TType.STOP:
5002
        break
5003
      if fid == 1:
5004
        if ftype == TType.STRUCT:
5005
          self.cex = InventoryServiceException()
5006
          self.cex.read(iprot)
5007
        else:
5008
          iprot.skip(ftype)
5009
      else:
5010
        iprot.skip(ftype)
5011
      iprot.readFieldEnd()
5012
    iprot.readStructEnd()
5013
 
5014
  def write(self, oprot):
5015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5017
      return
5018
    oprot.writeStructBegin('addInventory_result')
5019
    if self.cex is not None:
5020
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5021
      self.cex.write(oprot)
5022
      oprot.writeFieldEnd()
5023
    oprot.writeFieldStop()
5024
    oprot.writeStructEnd()
5025
 
5026
  def validate(self):
5027
    return
5028
 
5029
 
5030
  def __repr__(self):
5031
    L = ['%s=%r' % (key, value)
5032
      for key, value in self.__dict__.iteritems()]
5033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5034
 
5035
  def __eq__(self, other):
5036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5037
 
5038
  def __ne__(self, other):
5039
    return not (self == other)
5040
 
5041
class retireWarehouse_args:
5042
  """
5043
  Attributes:
5044
   - warehouse_id
5045
  """
5046
 
5047
  thrift_spec = (
5048
    None, # 0
5049
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5050
  )
5051
 
5052
  def __init__(self, warehouse_id=None,):
5053
    self.warehouse_id = warehouse_id
5054
 
5055
  def read(self, iprot):
5056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5058
      return
5059
    iprot.readStructBegin()
5060
    while True:
5061
      (fname, ftype, fid) = iprot.readFieldBegin()
5062
      if ftype == TType.STOP:
5063
        break
5064
      if fid == 1:
5065
        if ftype == TType.I64:
5066
          self.warehouse_id = iprot.readI64();
5067
        else:
5068
          iprot.skip(ftype)
5069
      else:
5070
        iprot.skip(ftype)
5071
      iprot.readFieldEnd()
5072
    iprot.readStructEnd()
5073
 
5074
  def write(self, oprot):
5075
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5076
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5077
      return
5078
    oprot.writeStructBegin('retireWarehouse_args')
5079
    if self.warehouse_id is not None:
5080
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5081
      oprot.writeI64(self.warehouse_id)
5082
      oprot.writeFieldEnd()
5083
    oprot.writeFieldStop()
5084
    oprot.writeStructEnd()
5085
 
5086
  def validate(self):
5087
    return
5088
 
5089
 
5090
  def __repr__(self):
5091
    L = ['%s=%r' % (key, value)
5092
      for key, value in self.__dict__.iteritems()]
5093
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5094
 
5095
  def __eq__(self, other):
5096
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5097
 
5098
  def __ne__(self, other):
5099
    return not (self == other)
5100
 
5101
class retireWarehouse_result:
5102
  """
5103
  Attributes:
5104
   - cex
5105
  """
5106
 
5107
  thrift_spec = (
5108
    None, # 0
5109
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5110
  )
5111
 
5112
  def __init__(self, cex=None,):
5113
    self.cex = cex
5114
 
5115
  def read(self, iprot):
5116
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5117
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5118
      return
5119
    iprot.readStructBegin()
5120
    while True:
5121
      (fname, ftype, fid) = iprot.readFieldBegin()
5122
      if ftype == TType.STOP:
5123
        break
5124
      if fid == 1:
5125
        if ftype == TType.STRUCT:
5126
          self.cex = InventoryServiceException()
5127
          self.cex.read(iprot)
5128
        else:
5129
          iprot.skip(ftype)
5130
      else:
5131
        iprot.skip(ftype)
5132
      iprot.readFieldEnd()
5133
    iprot.readStructEnd()
5134
 
5135
  def write(self, oprot):
5136
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5137
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5138
      return
5139
    oprot.writeStructBegin('retireWarehouse_result')
5140
    if self.cex is not None:
5141
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5142
      self.cex.write(oprot)
5143
      oprot.writeFieldEnd()
5144
    oprot.writeFieldStop()
5145
    oprot.writeStructEnd()
5146
 
5147
  def validate(self):
5148
    return
5149
 
5150
 
5151
  def __repr__(self):
5152
    L = ['%s=%r' % (key, value)
5153
      for key, value in self.__dict__.iteritems()]
5154
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5155
 
5156
  def __eq__(self, other):
5157
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5158
 
5159
  def __ne__(self, other):
5160
    return not (self == other)
5161
 
5162
class getItemInventoryByItemId_args:
5163
  """
5164
  Attributes:
5165
   - item_id
5166
  """
5167
 
5168
  thrift_spec = (
5169
    None, # 0
5170
    (1, TType.I64, 'item_id', None, None, ), # 1
5171
  )
5172
 
5173
  def __init__(self, item_id=None,):
5174
    self.item_id = item_id
5175
 
5176
  def read(self, iprot):
5177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5179
      return
5180
    iprot.readStructBegin()
5181
    while True:
5182
      (fname, ftype, fid) = iprot.readFieldBegin()
5183
      if ftype == TType.STOP:
5184
        break
5185
      if fid == 1:
5186
        if ftype == TType.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('getItemInventoryByItemId_args')
5200
    if self.item_id is not None:
5201
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5202
      oprot.writeI64(self.item_id)
5203
      oprot.writeFieldEnd()
5204
    oprot.writeFieldStop()
5205
    oprot.writeStructEnd()
5206
 
5207
  def validate(self):
5208
    return
5209
 
5210
 
5211
  def __repr__(self):
5212
    L = ['%s=%r' % (key, value)
5213
      for key, value in self.__dict__.iteritems()]
5214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5215
 
5216
  def __eq__(self, other):
5217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5218
 
5219
  def __ne__(self, other):
5220
    return not (self == other)
5221
 
5222
class getItemInventoryByItemId_result:
5223
  """
5224
  Attributes:
5225
   - success
5226
   - cex
5227
  """
5228
 
5229
  thrift_spec = (
5230
    (0, TType.STRUCT, 'success', (ItemInventory, ItemInventory.thrift_spec), None, ), # 0
5231
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5232
  )
5233
 
5234
  def __init__(self, success=None, cex=None,):
5235
    self.success = success
5236
    self.cex = cex
5237
 
5238
  def read(self, iprot):
5239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5241
      return
5242
    iprot.readStructBegin()
5243
    while True:
5244
      (fname, ftype, fid) = iprot.readFieldBegin()
5245
      if ftype == TType.STOP:
5246
        break
5247
      if fid == 0:
5248
        if ftype == TType.STRUCT:
5249
          self.success = ItemInventory()
5250
          self.success.read(iprot)
5251
        else:
5252
          iprot.skip(ftype)
5253
      elif fid == 1:
5254
        if ftype == TType.STRUCT:
5255
          self.cex = InventoryServiceException()
5256
          self.cex.read(iprot)
5257
        else:
5258
          iprot.skip(ftype)
5259
      else:
5260
        iprot.skip(ftype)
5261
      iprot.readFieldEnd()
5262
    iprot.readStructEnd()
5263
 
5264
  def write(self, oprot):
5265
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5266
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5267
      return
5268
    oprot.writeStructBegin('getItemInventoryByItemId_result')
5269
    if self.success is not None:
5270
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5271
      self.success.write(oprot)
5272
      oprot.writeFieldEnd()
5273
    if self.cex is not None:
5274
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5275
      self.cex.write(oprot)
5276
      oprot.writeFieldEnd()
5277
    oprot.writeFieldStop()
5278
    oprot.writeStructEnd()
5279
 
5280
  def validate(self):
5281
    return
5282
 
5283
 
5284
  def __repr__(self):
5285
    L = ['%s=%r' % (key, value)
5286
      for key, value in self.__dict__.iteritems()]
5287
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5288
 
5289
  def __eq__(self, other):
5290
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5291
 
5292
  def __ne__(self, other):
5293
    return not (self == other)
5294
 
5295
class getItemAvailibilityAtWarehouse_args:
5296
  """
5297
  Attributes:
5298
   - warehouse_id
5299
   - item_id
5300
  """
5301
 
5302
  thrift_spec = (
5303
    None, # 0
5304
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5305
    (2, TType.I64, 'item_id', None, None, ), # 2
5306
  )
5307
 
5308
  def __init__(self, warehouse_id=None, item_id=None,):
5309
    self.warehouse_id = warehouse_id
5310
    self.item_id = item_id
5311
 
5312
  def read(self, iprot):
5313
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5314
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5315
      return
5316
    iprot.readStructBegin()
5317
    while True:
5318
      (fname, ftype, fid) = iprot.readFieldBegin()
5319
      if ftype == TType.STOP:
5320
        break
5321
      if fid == 1:
5322
        if ftype == TType.I64:
5323
          self.warehouse_id = iprot.readI64();
5324
        else:
5325
          iprot.skip(ftype)
5326
      elif fid == 2:
5327
        if ftype == TType.I64:
5328
          self.item_id = iprot.readI64();
5329
        else:
5330
          iprot.skip(ftype)
5331
      else:
5332
        iprot.skip(ftype)
5333
      iprot.readFieldEnd()
5334
    iprot.readStructEnd()
5335
 
5336
  def write(self, oprot):
5337
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5338
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5339
      return
5340
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_args')
5341
    if self.warehouse_id is not None:
5342
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5343
      oprot.writeI64(self.warehouse_id)
5344
      oprot.writeFieldEnd()
5345
    if self.item_id is not None:
5346
      oprot.writeFieldBegin('item_id', TType.I64, 2)
5347
      oprot.writeI64(self.item_id)
5348
      oprot.writeFieldEnd()
5349
    oprot.writeFieldStop()
5350
    oprot.writeStructEnd()
5351
 
5352
  def validate(self):
5353
    return
5354
 
5355
 
5356
  def __repr__(self):
5357
    L = ['%s=%r' % (key, value)
5358
      for key, value in self.__dict__.iteritems()]
5359
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5360
 
5361
  def __eq__(self, other):
5362
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5363
 
5364
  def __ne__(self, other):
5365
    return not (self == other)
5366
 
5367
class getItemAvailibilityAtWarehouse_result:
5368
  """
5369
  Attributes:
5370
   - success
5371
   - cex
5372
  """
5373
 
5374
  thrift_spec = (
5375
    (0, TType.I64, 'success', None, None, ), # 0
5376
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5377
  )
5378
 
5379
  def __init__(self, success=None, cex=None,):
5380
    self.success = success
5381
    self.cex = cex
5382
 
5383
  def read(self, iprot):
5384
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5385
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5386
      return
5387
    iprot.readStructBegin()
5388
    while True:
5389
      (fname, ftype, fid) = iprot.readFieldBegin()
5390
      if ftype == TType.STOP:
5391
        break
5392
      if fid == 0:
5393
        if ftype == TType.I64:
5394
          self.success = iprot.readI64();
5395
        else:
5396
          iprot.skip(ftype)
5397
      elif fid == 1:
5398
        if ftype == TType.STRUCT:
5399
          self.cex = InventoryServiceException()
5400
          self.cex.read(iprot)
5401
        else:
5402
          iprot.skip(ftype)
5403
      else:
5404
        iprot.skip(ftype)
5405
      iprot.readFieldEnd()
5406
    iprot.readStructEnd()
5407
 
5408
  def write(self, oprot):
5409
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5410
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5411
      return
5412
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_result')
5413
    if self.success is not None:
5414
      oprot.writeFieldBegin('success', TType.I64, 0)
5415
      oprot.writeI64(self.success)
5416
      oprot.writeFieldEnd()
5417
    if self.cex is not None:
5418
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5419
      self.cex.write(oprot)
5420
      oprot.writeFieldEnd()
5421
    oprot.writeFieldStop()
5422
    oprot.writeStructEnd()
5423
 
5424
  def validate(self):
5425
    return
5426
 
5427
 
5428
  def __repr__(self):
5429
    L = ['%s=%r' % (key, value)
5430
      for key, value in self.__dict__.iteritems()]
5431
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5432
 
5433
  def __eq__(self, other):
5434
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5435
 
5436
  def __ne__(self, other):
5437
    return not (self == other)
5438
 
5439
class getItemAvailabilityAtLocation_args:
5440
  """
5441
  Attributes:
5442
   - itemId
5978 rajveer 5443
   - sourceId
5944 mandeep.dh 5444
  """
5445
 
5446
  thrift_spec = (
5447
    None, # 0
5448
    (1, TType.I64, 'itemId', None, None, ), # 1
5978 rajveer 5449
    (2, TType.I64, 'sourceId', None, None, ), # 2
5944 mandeep.dh 5450
  )
5451
 
5978 rajveer 5452
  def __init__(self, itemId=None, sourceId=None,):
5944 mandeep.dh 5453
    self.itemId = itemId
5978 rajveer 5454
    self.sourceId = sourceId
5944 mandeep.dh 5455
 
5456
  def read(self, iprot):
5457
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5458
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5459
      return
5460
    iprot.readStructBegin()
5461
    while True:
5462
      (fname, ftype, fid) = iprot.readFieldBegin()
5463
      if ftype == TType.STOP:
5464
        break
5465
      if fid == 1:
5466
        if ftype == TType.I64:
5467
          self.itemId = iprot.readI64();
5468
        else:
5469
          iprot.skip(ftype)
5978 rajveer 5470
      elif fid == 2:
5471
        if ftype == TType.I64:
5472
          self.sourceId = iprot.readI64();
5473
        else:
5474
          iprot.skip(ftype)
5944 mandeep.dh 5475
      else:
5476
        iprot.skip(ftype)
5477
      iprot.readFieldEnd()
5478
    iprot.readStructEnd()
5479
 
5480
  def write(self, oprot):
5481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5483
      return
5484
    oprot.writeStructBegin('getItemAvailabilityAtLocation_args')
5485
    if self.itemId is not None:
5486
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5487
      oprot.writeI64(self.itemId)
5488
      oprot.writeFieldEnd()
5978 rajveer 5489
    if self.sourceId is not None:
5490
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
5491
      oprot.writeI64(self.sourceId)
5492
      oprot.writeFieldEnd()
5944 mandeep.dh 5493
    oprot.writeFieldStop()
5494
    oprot.writeStructEnd()
5495
 
5496
  def validate(self):
5497
    return
5498
 
5499
 
5500
  def __repr__(self):
5501
    L = ['%s=%r' % (key, value)
5502
      for key, value in self.__dict__.iteritems()]
5503
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5504
 
5505
  def __eq__(self, other):
5506
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5507
 
5508
  def __ne__(self, other):
5509
    return not (self == other)
5510
 
5511
class getItemAvailabilityAtLocation_result:
5512
  """
5513
  Attributes:
5514
   - success
5515
   - isex
5516
  """
5517
 
5518
  thrift_spec = (
5519
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5520
    (1, TType.STRUCT, 'isex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5521
  )
5522
 
5523
  def __init__(self, success=None, isex=None,):
5524
    self.success = success
5525
    self.isex = isex
5526
 
5527
  def read(self, iprot):
5528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5530
      return
5531
    iprot.readStructBegin()
5532
    while True:
5533
      (fname, ftype, fid) = iprot.readFieldBegin()
5534
      if ftype == TType.STOP:
5535
        break
5536
      if fid == 0:
5537
        if ftype == TType.LIST:
5538
          self.success = []
8182 amar.kumar 5539
          (_etype48, _size45) = iprot.readListBegin()
5540
          for _i49 in xrange(_size45):
5541
            _elem50 = iprot.readI64();
5542
            self.success.append(_elem50)
5944 mandeep.dh 5543
          iprot.readListEnd()
5544
        else:
5545
          iprot.skip(ftype)
5546
      elif fid == 1:
5547
        if ftype == TType.STRUCT:
5548
          self.isex = InventoryServiceException()
5549
          self.isex.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('getItemAvailabilityAtLocation_result')
5562
    if self.success is not None:
5563
      oprot.writeFieldBegin('success', TType.LIST, 0)
5564
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5565
      for iter51 in self.success:
5566
        oprot.writeI64(iter51)
5944 mandeep.dh 5567
      oprot.writeListEnd()
5568
      oprot.writeFieldEnd()
5569
    if self.isex is not None:
5570
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
5571
      self.isex.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 getAllWarehouses_args:
5592
  """
5593
  Attributes:
5594
   - isActive
5595
  """
5596
 
5597
  thrift_spec = (
5598
    None, # 0
5599
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5600
  )
5601
 
5602
  def __init__(self, isActive=None,):
5603
    self.isActive = isActive
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.BOOL:
5616
          self.isActive = iprot.readBool();
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('getAllWarehouses_args')
5629
    if self.isActive is not None:
5630
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5631
      oprot.writeBool(self.isActive)
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 getAllWarehouses_result:
5652
  """
5653
  Attributes:
5654
   - success
5655
   - cex
5656
  """
5657
 
5658
  thrift_spec = (
5659
    (0, TType.LIST, 'success', (TType.STRUCT,(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.LIST:
5678
          self.success = []
8182 amar.kumar 5679
          (_etype55, _size52) = iprot.readListBegin()
5680
          for _i56 in xrange(_size52):
5681
            _elem57 = Warehouse()
5682
            _elem57.read(iprot)
5683
            self.success.append(_elem57)
5944 mandeep.dh 5684
          iprot.readListEnd()
5685
        else:
5686
          iprot.skip(ftype)
5687
      elif fid == 1:
5688
        if ftype == TType.STRUCT:
5689
          self.cex = InventoryServiceException()
5690
          self.cex.read(iprot)
5691
        else:
5692
          iprot.skip(ftype)
5693
      else:
5694
        iprot.skip(ftype)
5695
      iprot.readFieldEnd()
5696
    iprot.readStructEnd()
5697
 
5698
  def write(self, oprot):
5699
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5700
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5701
      return
5702
    oprot.writeStructBegin('getAllWarehouses_result')
5703
    if self.success is not None:
5704
      oprot.writeFieldBegin('success', TType.LIST, 0)
5705
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 5706
      for iter58 in self.success:
5707
        iter58.write(oprot)
5944 mandeep.dh 5708
      oprot.writeListEnd()
5709
      oprot.writeFieldEnd()
5710
    if self.cex is not None:
5711
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5712
      self.cex.write(oprot)
5713
      oprot.writeFieldEnd()
5714
    oprot.writeFieldStop()
5715
    oprot.writeStructEnd()
5716
 
5717
  def validate(self):
5718
    return
5719
 
5720
 
5721
  def __repr__(self):
5722
    L = ['%s=%r' % (key, value)
5723
      for key, value in self.__dict__.iteritems()]
5724
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5725
 
5726
  def __eq__(self, other):
5727
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5728
 
5729
  def __ne__(self, other):
5730
    return not (self == other)
5731
 
5732
class getWarehouse_args:
5733
  """
5734
  Attributes:
5735
   - warehouse_id
5736
  """
5737
 
5738
  thrift_spec = (
5739
    None, # 0
5740
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5741
  )
5742
 
5743
  def __init__(self, warehouse_id=None,):
5744
    self.warehouse_id = warehouse_id
5745
 
5746
  def read(self, iprot):
5747
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5748
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5749
      return
5750
    iprot.readStructBegin()
5751
    while True:
5752
      (fname, ftype, fid) = iprot.readFieldBegin()
5753
      if ftype == TType.STOP:
5754
        break
5755
      if fid == 1:
5756
        if ftype == TType.I64:
5757
          self.warehouse_id = iprot.readI64();
5758
        else:
5759
          iprot.skip(ftype)
5760
      else:
5761
        iprot.skip(ftype)
5762
      iprot.readFieldEnd()
5763
    iprot.readStructEnd()
5764
 
5765
  def write(self, oprot):
5766
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5767
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5768
      return
5769
    oprot.writeStructBegin('getWarehouse_args')
5770
    if self.warehouse_id is not None:
5771
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5772
      oprot.writeI64(self.warehouse_id)
5773
      oprot.writeFieldEnd()
5774
    oprot.writeFieldStop()
5775
    oprot.writeStructEnd()
5776
 
5777
  def validate(self):
5778
    return
5779
 
5780
 
5781
  def __repr__(self):
5782
    L = ['%s=%r' % (key, value)
5783
      for key, value in self.__dict__.iteritems()]
5784
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5785
 
5786
  def __eq__(self, other):
5787
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5788
 
5789
  def __ne__(self, other):
5790
    return not (self == other)
5791
 
5792
class getWarehouse_result:
5793
  """
5794
  Attributes:
5795
   - success
5796
   - cex
5797
  """
5798
 
5799
  thrift_spec = (
5800
    (0, TType.STRUCT, 'success', (Warehouse, Warehouse.thrift_spec), None, ), # 0
5801
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5802
  )
5803
 
5804
  def __init__(self, success=None, cex=None,):
5805
    self.success = success
5806
    self.cex = cex
5807
 
5808
  def read(self, iprot):
5809
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5810
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5811
      return
5812
    iprot.readStructBegin()
5813
    while True:
5814
      (fname, ftype, fid) = iprot.readFieldBegin()
5815
      if ftype == TType.STOP:
5816
        break
5817
      if fid == 0:
5818
        if ftype == TType.STRUCT:
5819
          self.success = Warehouse()
5820
          self.success.read(iprot)
5821
        else:
5822
          iprot.skip(ftype)
5823
      elif fid == 1:
5824
        if ftype == TType.STRUCT:
5825
          self.cex = InventoryServiceException()
5826
          self.cex.read(iprot)
5827
        else:
5828
          iprot.skip(ftype)
5829
      else:
5830
        iprot.skip(ftype)
5831
      iprot.readFieldEnd()
5832
    iprot.readStructEnd()
5833
 
5834
  def write(self, oprot):
5835
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5836
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5837
      return
5838
    oprot.writeStructBegin('getWarehouse_result')
5839
    if self.success is not None:
5840
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5841
      self.success.write(oprot)
5842
      oprot.writeFieldEnd()
5843
    if self.cex is not None:
5844
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5845
      self.cex.write(oprot)
5846
      oprot.writeFieldEnd()
5847
    oprot.writeFieldStop()
5848
    oprot.writeStructEnd()
5849
 
5850
  def validate(self):
5851
    return
5852
 
5853
 
5854
  def __repr__(self):
5855
    L = ['%s=%r' % (key, value)
5856
      for key, value in self.__dict__.iteritems()]
5857
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5858
 
5859
  def __eq__(self, other):
5860
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5861
 
5862
  def __ne__(self, other):
5863
    return not (self == other)
5864
 
5865
class getAllItemsForWarehouse_args:
5866
  """
5867
  Attributes:
5868
   - warehouse_id
5869
  """
5870
 
5871
  thrift_spec = (
5872
    None, # 0
5873
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5874
  )
5875
 
5876
  def __init__(self, warehouse_id=None,):
5877
    self.warehouse_id = warehouse_id
5878
 
5879
  def read(self, iprot):
5880
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5881
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5882
      return
5883
    iprot.readStructBegin()
5884
    while True:
5885
      (fname, ftype, fid) = iprot.readFieldBegin()
5886
      if ftype == TType.STOP:
5887
        break
5888
      if fid == 1:
5889
        if ftype == TType.I64:
5890
          self.warehouse_id = iprot.readI64();
5891
        else:
5892
          iprot.skip(ftype)
5893
      else:
5894
        iprot.skip(ftype)
5895
      iprot.readFieldEnd()
5896
    iprot.readStructEnd()
5897
 
5898
  def write(self, oprot):
5899
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5900
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5901
      return
5902
    oprot.writeStructBegin('getAllItemsForWarehouse_args')
5903
    if self.warehouse_id is not None:
5904
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5905
      oprot.writeI64(self.warehouse_id)
5906
      oprot.writeFieldEnd()
5907
    oprot.writeFieldStop()
5908
    oprot.writeStructEnd()
5909
 
5910
  def validate(self):
5911
    return
5912
 
5913
 
5914
  def __repr__(self):
5915
    L = ['%s=%r' % (key, value)
5916
      for key, value in self.__dict__.iteritems()]
5917
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5918
 
5919
  def __eq__(self, other):
5920
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5921
 
5922
  def __ne__(self, other):
5923
    return not (self == other)
5924
 
5925
class getAllItemsForWarehouse_result:
5926
  """
5927
  Attributes:
5928
   - success
5929
   - cex
5930
  """
5931
 
5932
  thrift_spec = (
5933
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5934
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5935
  )
5936
 
5937
  def __init__(self, success=None, cex=None,):
5938
    self.success = success
5939
    self.cex = cex
5940
 
5941
  def read(self, iprot):
5942
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5943
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5944
      return
5945
    iprot.readStructBegin()
5946
    while True:
5947
      (fname, ftype, fid) = iprot.readFieldBegin()
5948
      if ftype == TType.STOP:
5949
        break
5950
      if fid == 0:
5951
        if ftype == TType.LIST:
5952
          self.success = []
8182 amar.kumar 5953
          (_etype62, _size59) = iprot.readListBegin()
5954
          for _i63 in xrange(_size59):
5955
            _elem64 = iprot.readI64();
5956
            self.success.append(_elem64)
5944 mandeep.dh 5957
          iprot.readListEnd()
5958
        else:
5959
          iprot.skip(ftype)
5960
      elif fid == 1:
5961
        if ftype == TType.STRUCT:
5962
          self.cex = InventoryServiceException()
5963
          self.cex.read(iprot)
5964
        else:
5965
          iprot.skip(ftype)
5966
      else:
5967
        iprot.skip(ftype)
5968
      iprot.readFieldEnd()
5969
    iprot.readStructEnd()
5970
 
5971
  def write(self, oprot):
5972
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5973
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5974
      return
5975
    oprot.writeStructBegin('getAllItemsForWarehouse_result')
5976
    if self.success is not None:
5977
      oprot.writeFieldBegin('success', TType.LIST, 0)
5978
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5979
      for iter65 in self.success:
5980
        oprot.writeI64(iter65)
5944 mandeep.dh 5981
      oprot.writeListEnd()
5982
      oprot.writeFieldEnd()
5983
    if self.cex is not None:
5984
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5985
      self.cex.write(oprot)
5986
      oprot.writeFieldEnd()
5987
    oprot.writeFieldStop()
5988
    oprot.writeStructEnd()
5989
 
5990
  def validate(self):
5991
    return
5992
 
5993
 
5994
  def __repr__(self):
5995
    L = ['%s=%r' % (key, value)
5996
      for key, value in self.__dict__.iteritems()]
5997
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5998
 
5999
  def __eq__(self, other):
6000
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6001
 
6002
  def __ne__(self, other):
6003
    return not (self == other)
6004
 
5966 rajveer 6005
class isOrderBillable_args:
6006
  """
6007
  Attributes:
6008
   - itemId
6009
   - warehouseId
6010
   - sourceId
6011
   - orderId
6012
  """
6013
 
6014
  thrift_spec = (
6015
    None, # 0
6016
    (1, TType.I64, 'itemId', None, None, ), # 1
6017
    (2, TType.I64, 'warehouseId', None, None, ), # 2
6018
    (3, TType.I64, 'sourceId', None, None, ), # 3
6019
    (4, TType.I64, 'orderId', None, None, ), # 4
6020
  )
6021
 
6022
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None,):
6023
    self.itemId = itemId
6024
    self.warehouseId = warehouseId
6025
    self.sourceId = sourceId
6026
    self.orderId = orderId
6027
 
6028
  def read(self, iprot):
6029
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6030
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6031
      return
6032
    iprot.readStructBegin()
6033
    while True:
6034
      (fname, ftype, fid) = iprot.readFieldBegin()
6035
      if ftype == TType.STOP:
6036
        break
6037
      if fid == 1:
6038
        if ftype == TType.I64:
6039
          self.itemId = iprot.readI64();
6040
        else:
6041
          iprot.skip(ftype)
6042
      elif fid == 2:
6043
        if ftype == TType.I64:
6044
          self.warehouseId = iprot.readI64();
6045
        else:
6046
          iprot.skip(ftype)
6047
      elif fid == 3:
6048
        if ftype == TType.I64:
6049
          self.sourceId = iprot.readI64();
6050
        else:
6051
          iprot.skip(ftype)
6052
      elif fid == 4:
6053
        if ftype == TType.I64:
6054
          self.orderId = iprot.readI64();
6055
        else:
6056
          iprot.skip(ftype)
6057
      else:
6058
        iprot.skip(ftype)
6059
      iprot.readFieldEnd()
6060
    iprot.readStructEnd()
6061
 
6062
  def write(self, oprot):
6063
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6064
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6065
      return
6066
    oprot.writeStructBegin('isOrderBillable_args')
6067
    if self.itemId is not None:
6068
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6069
      oprot.writeI64(self.itemId)
6070
      oprot.writeFieldEnd()
6071
    if self.warehouseId is not None:
6072
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6073
      oprot.writeI64(self.warehouseId)
6074
      oprot.writeFieldEnd()
6075
    if self.sourceId is not None:
6076
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6077
      oprot.writeI64(self.sourceId)
6078
      oprot.writeFieldEnd()
6079
    if self.orderId is not None:
6080
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6081
      oprot.writeI64(self.orderId)
6082
      oprot.writeFieldEnd()
6083
    oprot.writeFieldStop()
6084
    oprot.writeStructEnd()
6085
 
6086
  def validate(self):
6087
    return
6088
 
6089
 
6090
  def __repr__(self):
6091
    L = ['%s=%r' % (key, value)
6092
      for key, value in self.__dict__.iteritems()]
6093
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6094
 
6095
  def __eq__(self, other):
6096
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6097
 
6098
  def __ne__(self, other):
6099
    return not (self == other)
6100
 
6101
class isOrderBillable_result:
6102
  """
6103
  Attributes:
6104
   - success
6105
  """
6106
 
6107
  thrift_spec = (
6108
    (0, TType.BOOL, 'success', None, None, ), # 0
6109
  )
6110
 
6111
  def __init__(self, success=None,):
6112
    self.success = success
6113
 
6114
  def read(self, iprot):
6115
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6116
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6117
      return
6118
    iprot.readStructBegin()
6119
    while True:
6120
      (fname, ftype, fid) = iprot.readFieldBegin()
6121
      if ftype == TType.STOP:
6122
        break
6123
      if fid == 0:
6124
        if ftype == TType.BOOL:
6125
          self.success = iprot.readBool();
6126
        else:
6127
          iprot.skip(ftype)
6128
      else:
6129
        iprot.skip(ftype)
6130
      iprot.readFieldEnd()
6131
    iprot.readStructEnd()
6132
 
6133
  def write(self, oprot):
6134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6136
      return
6137
    oprot.writeStructBegin('isOrderBillable_result')
6138
    if self.success is not None:
6139
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6140
      oprot.writeBool(self.success)
6141
      oprot.writeFieldEnd()
6142
    oprot.writeFieldStop()
6143
    oprot.writeStructEnd()
6144
 
6145
  def validate(self):
6146
    return
6147
 
6148
 
6149
  def __repr__(self):
6150
    L = ['%s=%r' % (key, value)
6151
      for key, value in self.__dict__.iteritems()]
6152
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6153
 
6154
  def __eq__(self, other):
6155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6156
 
6157
  def __ne__(self, other):
6158
    return not (self == other)
6159
 
5944 mandeep.dh 6160
class reserveItemInWarehouse_args:
6161
  """
6162
  Attributes:
6163
   - itemId
6164
   - warehouseId
5966 rajveer 6165
   - sourceId
6166
   - orderId
6167
   - createdTimestamp
6168
   - promisedShippingTimestamp
5944 mandeep.dh 6169
   - quantity
6170
  """
6171
 
6172
  thrift_spec = (
6173
    None, # 0
6174
    (1, TType.I64, 'itemId', None, None, ), # 1
6175
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 6176
    (3, TType.I64, 'sourceId', None, None, ), # 3
6177
    (4, TType.I64, 'orderId', None, None, ), # 4
6178
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
6179
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
6180
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
5944 mandeep.dh 6181
  )
6182
 
5966 rajveer 6183
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
5944 mandeep.dh 6184
    self.itemId = itemId
6185
    self.warehouseId = warehouseId
5966 rajveer 6186
    self.sourceId = sourceId
6187
    self.orderId = orderId
6188
    self.createdTimestamp = createdTimestamp
6189
    self.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 6190
    self.quantity = quantity
6191
 
6192
  def read(self, iprot):
6193
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6194
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6195
      return
6196
    iprot.readStructBegin()
6197
    while True:
6198
      (fname, ftype, fid) = iprot.readFieldBegin()
6199
      if ftype == TType.STOP:
6200
        break
6201
      if fid == 1:
6202
        if ftype == TType.I64:
6203
          self.itemId = iprot.readI64();
6204
        else:
6205
          iprot.skip(ftype)
6206
      elif fid == 2:
6207
        if ftype == TType.I64:
6208
          self.warehouseId = iprot.readI64();
6209
        else:
6210
          iprot.skip(ftype)
6211
      elif fid == 3:
5966 rajveer 6212
        if ftype == TType.I64:
6213
          self.sourceId = iprot.readI64();
6214
        else:
6215
          iprot.skip(ftype)
6216
      elif fid == 4:
6217
        if ftype == TType.I64:
6218
          self.orderId = iprot.readI64();
6219
        else:
6220
          iprot.skip(ftype)
6221
      elif fid == 5:
6222
        if ftype == TType.I64:
6223
          self.createdTimestamp = iprot.readI64();
6224
        else:
6225
          iprot.skip(ftype)
6226
      elif fid == 6:
6227
        if ftype == TType.I64:
6228
          self.promisedShippingTimestamp = iprot.readI64();
6229
        else:
6230
          iprot.skip(ftype)
6231
      elif fid == 7:
5944 mandeep.dh 6232
        if ftype == TType.DOUBLE:
6233
          self.quantity = iprot.readDouble();
6234
        else:
6235
          iprot.skip(ftype)
6236
      else:
6237
        iprot.skip(ftype)
6238
      iprot.readFieldEnd()
6239
    iprot.readStructEnd()
6240
 
6241
  def write(self, oprot):
6242
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6243
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6244
      return
6245
    oprot.writeStructBegin('reserveItemInWarehouse_args')
6246
    if self.itemId is not None:
6247
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6248
      oprot.writeI64(self.itemId)
6249
      oprot.writeFieldEnd()
6250
    if self.warehouseId is not None:
6251
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6252
      oprot.writeI64(self.warehouseId)
6253
      oprot.writeFieldEnd()
5966 rajveer 6254
    if self.sourceId is not None:
6255
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6256
      oprot.writeI64(self.sourceId)
6257
      oprot.writeFieldEnd()
6258
    if self.orderId is not None:
6259
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6260
      oprot.writeI64(self.orderId)
6261
      oprot.writeFieldEnd()
6262
    if self.createdTimestamp is not None:
6263
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
6264
      oprot.writeI64(self.createdTimestamp)
6265
      oprot.writeFieldEnd()
6266
    if self.promisedShippingTimestamp is not None:
6267
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
6268
      oprot.writeI64(self.promisedShippingTimestamp)
6269
      oprot.writeFieldEnd()
5944 mandeep.dh 6270
    if self.quantity is not None:
5966 rajveer 6271
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
5944 mandeep.dh 6272
      oprot.writeDouble(self.quantity)
6273
      oprot.writeFieldEnd()
6274
    oprot.writeFieldStop()
6275
    oprot.writeStructEnd()
6276
 
6277
  def validate(self):
6278
    return
6279
 
6280
 
6281
  def __repr__(self):
6282
    L = ['%s=%r' % (key, value)
6283
      for key, value in self.__dict__.iteritems()]
6284
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6285
 
6286
  def __eq__(self, other):
6287
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6288
 
6289
  def __ne__(self, other):
6290
    return not (self == other)
6291
 
6292
class reserveItemInWarehouse_result:
6293
  """
6294
  Attributes:
6295
   - success
6296
   - cex
6297
  """
6298
 
6299
  thrift_spec = (
6300
    (0, TType.BOOL, 'success', None, None, ), # 0
6301
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6302
  )
6303
 
6304
  def __init__(self, success=None, cex=None,):
6305
    self.success = success
6306
    self.cex = cex
6307
 
6308
  def read(self, iprot):
6309
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6310
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6311
      return
6312
    iprot.readStructBegin()
6313
    while True:
6314
      (fname, ftype, fid) = iprot.readFieldBegin()
6315
      if ftype == TType.STOP:
6316
        break
6317
      if fid == 0:
6318
        if ftype == TType.BOOL:
6319
          self.success = iprot.readBool();
6320
        else:
6321
          iprot.skip(ftype)
6322
      elif fid == 1:
6323
        if ftype == TType.STRUCT:
6324
          self.cex = InventoryServiceException()
6325
          self.cex.read(iprot)
6326
        else:
6327
          iprot.skip(ftype)
6328
      else:
6329
        iprot.skip(ftype)
6330
      iprot.readFieldEnd()
6331
    iprot.readStructEnd()
6332
 
6333
  def write(self, oprot):
6334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6336
      return
6337
    oprot.writeStructBegin('reserveItemInWarehouse_result')
6338
    if self.success is not None:
6339
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6340
      oprot.writeBool(self.success)
6341
      oprot.writeFieldEnd()
6342
    if self.cex is not None:
6343
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6344
      self.cex.write(oprot)
6345
      oprot.writeFieldEnd()
6346
    oprot.writeFieldStop()
6347
    oprot.writeStructEnd()
6348
 
6349
  def validate(self):
6350
    return
6351
 
6352
 
6353
  def __repr__(self):
6354
    L = ['%s=%r' % (key, value)
6355
      for key, value in self.__dict__.iteritems()]
6356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6357
 
6358
  def __eq__(self, other):
6359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6360
 
6361
  def __ne__(self, other):
6362
    return not (self == other)
6363
 
7968 amar.kumar 6364
class updateReservationForOrder_args:
6365
  """
6366
  Attributes:
6367
   - itemId
6368
   - warehouseId
6369
   - sourceId
6370
   - orderId
6371
   - createdTimestamp
6372
   - promisedShippingTimestamp
6373
   - quantity
6374
  """
6375
 
6376
  thrift_spec = (
6377
    None, # 0
6378
    (1, TType.I64, 'itemId', None, None, ), # 1
6379
    (2, TType.I64, 'warehouseId', None, None, ), # 2
6380
    (3, TType.I64, 'sourceId', None, None, ), # 3
6381
    (4, TType.I64, 'orderId', None, None, ), # 4
6382
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
6383
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
6384
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
6385
  )
6386
 
6387
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
6388
    self.itemId = itemId
6389
    self.warehouseId = warehouseId
6390
    self.sourceId = sourceId
6391
    self.orderId = orderId
6392
    self.createdTimestamp = createdTimestamp
6393
    self.promisedShippingTimestamp = promisedShippingTimestamp
6394
    self.quantity = quantity
6395
 
6396
  def read(self, iprot):
6397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6399
      return
6400
    iprot.readStructBegin()
6401
    while True:
6402
      (fname, ftype, fid) = iprot.readFieldBegin()
6403
      if ftype == TType.STOP:
6404
        break
6405
      if fid == 1:
6406
        if ftype == TType.I64:
6407
          self.itemId = iprot.readI64();
6408
        else:
6409
          iprot.skip(ftype)
6410
      elif fid == 2:
6411
        if ftype == TType.I64:
6412
          self.warehouseId = iprot.readI64();
6413
        else:
6414
          iprot.skip(ftype)
6415
      elif fid == 3:
6416
        if ftype == TType.I64:
6417
          self.sourceId = iprot.readI64();
6418
        else:
6419
          iprot.skip(ftype)
6420
      elif fid == 4:
6421
        if ftype == TType.I64:
6422
          self.orderId = iprot.readI64();
6423
        else:
6424
          iprot.skip(ftype)
6425
      elif fid == 5:
6426
        if ftype == TType.I64:
6427
          self.createdTimestamp = iprot.readI64();
6428
        else:
6429
          iprot.skip(ftype)
6430
      elif fid == 6:
6431
        if ftype == TType.I64:
6432
          self.promisedShippingTimestamp = iprot.readI64();
6433
        else:
6434
          iprot.skip(ftype)
6435
      elif fid == 7:
6436
        if ftype == TType.DOUBLE:
6437
          self.quantity = iprot.readDouble();
6438
        else:
6439
          iprot.skip(ftype)
6440
      else:
6441
        iprot.skip(ftype)
6442
      iprot.readFieldEnd()
6443
    iprot.readStructEnd()
6444
 
6445
  def write(self, oprot):
6446
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6447
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6448
      return
6449
    oprot.writeStructBegin('updateReservationForOrder_args')
6450
    if self.itemId is not None:
6451
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6452
      oprot.writeI64(self.itemId)
6453
      oprot.writeFieldEnd()
6454
    if self.warehouseId is not None:
6455
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6456
      oprot.writeI64(self.warehouseId)
6457
      oprot.writeFieldEnd()
6458
    if self.sourceId is not None:
6459
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6460
      oprot.writeI64(self.sourceId)
6461
      oprot.writeFieldEnd()
6462
    if self.orderId is not None:
6463
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6464
      oprot.writeI64(self.orderId)
6465
      oprot.writeFieldEnd()
6466
    if self.createdTimestamp is not None:
6467
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
6468
      oprot.writeI64(self.createdTimestamp)
6469
      oprot.writeFieldEnd()
6470
    if self.promisedShippingTimestamp is not None:
6471
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
6472
      oprot.writeI64(self.promisedShippingTimestamp)
6473
      oprot.writeFieldEnd()
6474
    if self.quantity is not None:
6475
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
6476
      oprot.writeDouble(self.quantity)
6477
      oprot.writeFieldEnd()
6478
    oprot.writeFieldStop()
6479
    oprot.writeStructEnd()
6480
 
6481
  def validate(self):
6482
    return
6483
 
6484
 
6485
  def __repr__(self):
6486
    L = ['%s=%r' % (key, value)
6487
      for key, value in self.__dict__.iteritems()]
6488
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6489
 
6490
  def __eq__(self, other):
6491
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6492
 
6493
  def __ne__(self, other):
6494
    return not (self == other)
6495
 
6496
class updateReservationForOrder_result:
6497
  """
6498
  Attributes:
6499
   - success
6500
   - cex
6501
  """
6502
 
6503
  thrift_spec = (
6504
    (0, TType.BOOL, 'success', None, None, ), # 0
6505
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6506
  )
6507
 
6508
  def __init__(self, success=None, cex=None,):
6509
    self.success = success
6510
    self.cex = cex
6511
 
6512
  def read(self, iprot):
6513
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6514
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6515
      return
6516
    iprot.readStructBegin()
6517
    while True:
6518
      (fname, ftype, fid) = iprot.readFieldBegin()
6519
      if ftype == TType.STOP:
6520
        break
6521
      if fid == 0:
6522
        if ftype == TType.BOOL:
6523
          self.success = iprot.readBool();
6524
        else:
6525
          iprot.skip(ftype)
6526
      elif fid == 1:
6527
        if ftype == TType.STRUCT:
6528
          self.cex = InventoryServiceException()
6529
          self.cex.read(iprot)
6530
        else:
6531
          iprot.skip(ftype)
6532
      else:
6533
        iprot.skip(ftype)
6534
      iprot.readFieldEnd()
6535
    iprot.readStructEnd()
6536
 
6537
  def write(self, oprot):
6538
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6539
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6540
      return
6541
    oprot.writeStructBegin('updateReservationForOrder_result')
6542
    if self.success is not None:
6543
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6544
      oprot.writeBool(self.success)
6545
      oprot.writeFieldEnd()
6546
    if self.cex is not None:
6547
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6548
      self.cex.write(oprot)
6549
      oprot.writeFieldEnd()
6550
    oprot.writeFieldStop()
6551
    oprot.writeStructEnd()
6552
 
6553
  def validate(self):
6554
    return
6555
 
6556
 
6557
  def __repr__(self):
6558
    L = ['%s=%r' % (key, value)
6559
      for key, value in self.__dict__.iteritems()]
6560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6561
 
6562
  def __eq__(self, other):
6563
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6564
 
6565
  def __ne__(self, other):
6566
    return not (self == other)
6567
 
5944 mandeep.dh 6568
class reduceReservationCount_args:
6569
  """
6570
  Attributes:
6571
   - itemId
6572
   - warehouseId
5966 rajveer 6573
   - sourceId
6574
   - orderId
5944 mandeep.dh 6575
   - quantity
6576
  """
6577
 
6578
  thrift_spec = (
6579
    None, # 0
6580
    (1, TType.I64, 'itemId', None, None, ), # 1
6581
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 6582
    (3, TType.I64, 'sourceId', None, None, ), # 3
6583
    (4, TType.I64, 'orderId', None, None, ), # 4
6584
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
5944 mandeep.dh 6585
  )
6586
 
5966 rajveer 6587
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, quantity=None,):
5944 mandeep.dh 6588
    self.itemId = itemId
6589
    self.warehouseId = warehouseId
5966 rajveer 6590
    self.sourceId = sourceId
6591
    self.orderId = orderId
5944 mandeep.dh 6592
    self.quantity = quantity
6593
 
6594
  def read(self, iprot):
6595
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6596
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6597
      return
6598
    iprot.readStructBegin()
6599
    while True:
6600
      (fname, ftype, fid) = iprot.readFieldBegin()
6601
      if ftype == TType.STOP:
6602
        break
6603
      if fid == 1:
6604
        if ftype == TType.I64:
6605
          self.itemId = iprot.readI64();
6606
        else:
6607
          iprot.skip(ftype)
6608
      elif fid == 2:
6609
        if ftype == TType.I64:
6610
          self.warehouseId = iprot.readI64();
6611
        else:
6612
          iprot.skip(ftype)
6613
      elif fid == 3:
5966 rajveer 6614
        if ftype == TType.I64:
6615
          self.sourceId = iprot.readI64();
6616
        else:
6617
          iprot.skip(ftype)
6618
      elif fid == 4:
6619
        if ftype == TType.I64:
6620
          self.orderId = iprot.readI64();
6621
        else:
6622
          iprot.skip(ftype)
6623
      elif fid == 5:
5944 mandeep.dh 6624
        if ftype == TType.DOUBLE:
6625
          self.quantity = iprot.readDouble();
6626
        else:
6627
          iprot.skip(ftype)
6628
      else:
6629
        iprot.skip(ftype)
6630
      iprot.readFieldEnd()
6631
    iprot.readStructEnd()
6632
 
6633
  def write(self, oprot):
6634
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6635
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6636
      return
6637
    oprot.writeStructBegin('reduceReservationCount_args')
6638
    if self.itemId is not None:
6639
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6640
      oprot.writeI64(self.itemId)
6641
      oprot.writeFieldEnd()
6642
    if self.warehouseId is not None:
6643
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6644
      oprot.writeI64(self.warehouseId)
6645
      oprot.writeFieldEnd()
5966 rajveer 6646
    if self.sourceId is not None:
6647
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6648
      oprot.writeI64(self.sourceId)
6649
      oprot.writeFieldEnd()
6650
    if self.orderId is not None:
6651
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6652
      oprot.writeI64(self.orderId)
6653
      oprot.writeFieldEnd()
5944 mandeep.dh 6654
    if self.quantity is not None:
5966 rajveer 6655
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
5944 mandeep.dh 6656
      oprot.writeDouble(self.quantity)
6657
      oprot.writeFieldEnd()
6658
    oprot.writeFieldStop()
6659
    oprot.writeStructEnd()
6660
 
6661
  def validate(self):
6662
    return
6663
 
6664
 
6665
  def __repr__(self):
6666
    L = ['%s=%r' % (key, value)
6667
      for key, value in self.__dict__.iteritems()]
6668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6669
 
6670
  def __eq__(self, other):
6671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6672
 
6673
  def __ne__(self, other):
6674
    return not (self == other)
6675
 
6676
class reduceReservationCount_result:
6677
  """
6678
  Attributes:
6679
   - success
6680
   - cex
6681
  """
6682
 
6683
  thrift_spec = (
6684
    (0, TType.BOOL, 'success', None, None, ), # 0
6685
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6686
  )
6687
 
6688
  def __init__(self, success=None, cex=None,):
6689
    self.success = success
6690
    self.cex = cex
6691
 
6692
  def read(self, iprot):
6693
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6694
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6695
      return
6696
    iprot.readStructBegin()
6697
    while True:
6698
      (fname, ftype, fid) = iprot.readFieldBegin()
6699
      if ftype == TType.STOP:
6700
        break
6701
      if fid == 0:
6702
        if ftype == TType.BOOL:
6703
          self.success = iprot.readBool();
6704
        else:
6705
          iprot.skip(ftype)
6706
      elif fid == 1:
6707
        if ftype == TType.STRUCT:
6708
          self.cex = InventoryServiceException()
6709
          self.cex.read(iprot)
6710
        else:
6711
          iprot.skip(ftype)
6712
      else:
6713
        iprot.skip(ftype)
6714
      iprot.readFieldEnd()
6715
    iprot.readStructEnd()
6716
 
6717
  def write(self, oprot):
6718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6720
      return
6721
    oprot.writeStructBegin('reduceReservationCount_result')
6722
    if self.success is not None:
6723
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6724
      oprot.writeBool(self.success)
6725
      oprot.writeFieldEnd()
6726
    if self.cex is not None:
6727
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6728
      self.cex.write(oprot)
6729
      oprot.writeFieldEnd()
6730
    oprot.writeFieldStop()
6731
    oprot.writeStructEnd()
6732
 
6733
  def validate(self):
6734
    return
6735
 
6736
 
6737
  def __repr__(self):
6738
    L = ['%s=%r' % (key, value)
6739
      for key, value in self.__dict__.iteritems()]
6740
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6741
 
6742
  def __eq__(self, other):
6743
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6744
 
6745
  def __ne__(self, other):
6746
    return not (self == other)
6747
 
6748
class getItemPricing_args:
6749
  """
6750
  Attributes:
6751
   - itemId
6752
   - vendorId
6753
  """
6754
 
6755
  thrift_spec = (
6756
    None, # 0
6757
    (1, TType.I64, 'itemId', None, None, ), # 1
6758
    (2, TType.I64, 'vendorId', None, None, ), # 2
6759
  )
6760
 
6761
  def __init__(self, itemId=None, vendorId=None,):
6762
    self.itemId = itemId
6763
    self.vendorId = vendorId
6764
 
6765
  def read(self, iprot):
6766
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6767
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6768
      return
6769
    iprot.readStructBegin()
6770
    while True:
6771
      (fname, ftype, fid) = iprot.readFieldBegin()
6772
      if ftype == TType.STOP:
6773
        break
6774
      if fid == 1:
6775
        if ftype == TType.I64:
6776
          self.itemId = iprot.readI64();
6777
        else:
6778
          iprot.skip(ftype)
6779
      elif fid == 2:
6780
        if ftype == TType.I64:
6781
          self.vendorId = iprot.readI64();
6782
        else:
6783
          iprot.skip(ftype)
6784
      else:
6785
        iprot.skip(ftype)
6786
      iprot.readFieldEnd()
6787
    iprot.readStructEnd()
6788
 
6789
  def write(self, oprot):
6790
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6791
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6792
      return
6793
    oprot.writeStructBegin('getItemPricing_args')
6794
    if self.itemId is not None:
6795
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6796
      oprot.writeI64(self.itemId)
6797
      oprot.writeFieldEnd()
6798
    if self.vendorId is not None:
6799
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6800
      oprot.writeI64(self.vendorId)
6801
      oprot.writeFieldEnd()
6802
    oprot.writeFieldStop()
6803
    oprot.writeStructEnd()
6804
 
6805
  def validate(self):
6806
    return
6807
 
6808
 
6809
  def __repr__(self):
6810
    L = ['%s=%r' % (key, value)
6811
      for key, value in self.__dict__.iteritems()]
6812
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6813
 
6814
  def __eq__(self, other):
6815
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6816
 
6817
  def __ne__(self, other):
6818
    return not (self == other)
6819
 
6820
class getItemPricing_result:
6821
  """
6822
  Attributes:
6823
   - success
6824
   - cex
6825
  """
6826
 
6827
  thrift_spec = (
6828
    (0, TType.STRUCT, 'success', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 0
6829
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6830
  )
6831
 
6832
  def __init__(self, success=None, cex=None,):
6833
    self.success = success
6834
    self.cex = cex
6835
 
6836
  def read(self, iprot):
6837
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6838
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6839
      return
6840
    iprot.readStructBegin()
6841
    while True:
6842
      (fname, ftype, fid) = iprot.readFieldBegin()
6843
      if ftype == TType.STOP:
6844
        break
6845
      if fid == 0:
6846
        if ftype == TType.STRUCT:
6847
          self.success = VendorItemPricing()
6848
          self.success.read(iprot)
6849
        else:
6850
          iprot.skip(ftype)
6851
      elif fid == 1:
6852
        if ftype == TType.STRUCT:
6853
          self.cex = InventoryServiceException()
6854
          self.cex.read(iprot)
6855
        else:
6856
          iprot.skip(ftype)
6857
      else:
6858
        iprot.skip(ftype)
6859
      iprot.readFieldEnd()
6860
    iprot.readStructEnd()
6861
 
6862
  def write(self, oprot):
6863
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6864
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6865
      return
6866
    oprot.writeStructBegin('getItemPricing_result')
6867
    if self.success is not None:
6868
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6869
      self.success.write(oprot)
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 getAllItemPricing_args:
6894
  """
6895
  Attributes:
6896
   - itemId
6897
  """
6898
 
6899
  thrift_spec = (
6900
    None, # 0
6901
    (1, TType.I64, 'itemId', None, None, ), # 1
6902
  )
6903
 
6904
  def __init__(self, itemId=None,):
6905
    self.itemId = itemId
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.I64:
6918
          self.itemId = iprot.readI64();
6919
        else:
6920
          iprot.skip(ftype)
6921
      else:
6922
        iprot.skip(ftype)
6923
      iprot.readFieldEnd()
6924
    iprot.readStructEnd()
6925
 
6926
  def write(self, oprot):
6927
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6928
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6929
      return
6930
    oprot.writeStructBegin('getAllItemPricing_args')
6931
    if self.itemId is not None:
6932
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6933
      oprot.writeI64(self.itemId)
6934
      oprot.writeFieldEnd()
6935
    oprot.writeFieldStop()
6936
    oprot.writeStructEnd()
6937
 
6938
  def validate(self):
6939
    return
6940
 
6941
 
6942
  def __repr__(self):
6943
    L = ['%s=%r' % (key, value)
6944
      for key, value in self.__dict__.iteritems()]
6945
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6946
 
6947
  def __eq__(self, other):
6948
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6949
 
6950
  def __ne__(self, other):
6951
    return not (self == other)
6952
 
6953
class getAllItemPricing_result:
6954
  """
6955
  Attributes:
6956
   - success
6957
   - cex
6958
  """
6959
 
6960
  thrift_spec = (
6961
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
6962
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6963
  )
6964
 
6965
  def __init__(self, success=None, cex=None,):
6966
    self.success = success
6967
    self.cex = cex
6968
 
6969
  def read(self, iprot):
6970
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6971
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6972
      return
6973
    iprot.readStructBegin()
6974
    while True:
6975
      (fname, ftype, fid) = iprot.readFieldBegin()
6976
      if ftype == TType.STOP:
6977
        break
6978
      if fid == 0:
6979
        if ftype == TType.LIST:
6980
          self.success = []
8182 amar.kumar 6981
          (_etype69, _size66) = iprot.readListBegin()
6982
          for _i70 in xrange(_size66):
6983
            _elem71 = VendorItemPricing()
6984
            _elem71.read(iprot)
6985
            self.success.append(_elem71)
5944 mandeep.dh 6986
          iprot.readListEnd()
6987
        else:
6988
          iprot.skip(ftype)
6989
      elif fid == 1:
6990
        if ftype == TType.STRUCT:
6991
          self.cex = InventoryServiceException()
6992
          self.cex.read(iprot)
6993
        else:
6994
          iprot.skip(ftype)
6995
      else:
6996
        iprot.skip(ftype)
6997
      iprot.readFieldEnd()
6998
    iprot.readStructEnd()
6999
 
7000
  def write(self, oprot):
7001
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7002
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7003
      return
7004
    oprot.writeStructBegin('getAllItemPricing_result')
7005
    if self.success is not None:
7006
      oprot.writeFieldBegin('success', TType.LIST, 0)
7007
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7008
      for iter72 in self.success:
7009
        iter72.write(oprot)
5944 mandeep.dh 7010
      oprot.writeListEnd()
7011
      oprot.writeFieldEnd()
7012
    if self.cex is not None:
7013
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7014
      self.cex.write(oprot)
7015
      oprot.writeFieldEnd()
7016
    oprot.writeFieldStop()
7017
    oprot.writeStructEnd()
7018
 
7019
  def validate(self):
7020
    return
7021
 
7022
 
7023
  def __repr__(self):
7024
    L = ['%s=%r' % (key, value)
7025
      for key, value in self.__dict__.iteritems()]
7026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7027
 
7028
  def __eq__(self, other):
7029
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7030
 
7031
  def __ne__(self, other):
7032
    return not (self == other)
7033
 
7034
class addVendorItemPricing_args:
7035
  """
7036
  Attributes:
7037
   - vendorItemPricing
7038
  """
7039
 
7040
  thrift_spec = (
7041
    None, # 0
7042
    (1, TType.STRUCT, 'vendorItemPricing', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 1
7043
  )
7044
 
7045
  def __init__(self, vendorItemPricing=None,):
7046
    self.vendorItemPricing = vendorItemPricing
7047
 
7048
  def read(self, iprot):
7049
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7050
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7051
      return
7052
    iprot.readStructBegin()
7053
    while True:
7054
      (fname, ftype, fid) = iprot.readFieldBegin()
7055
      if ftype == TType.STOP:
7056
        break
7057
      if fid == 1:
7058
        if ftype == TType.STRUCT:
7059
          self.vendorItemPricing = VendorItemPricing()
7060
          self.vendorItemPricing.read(iprot)
7061
        else:
7062
          iprot.skip(ftype)
7063
      else:
7064
        iprot.skip(ftype)
7065
      iprot.readFieldEnd()
7066
    iprot.readStructEnd()
7067
 
7068
  def write(self, oprot):
7069
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7070
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7071
      return
7072
    oprot.writeStructBegin('addVendorItemPricing_args')
7073
    if self.vendorItemPricing is not None:
7074
      oprot.writeFieldBegin('vendorItemPricing', TType.STRUCT, 1)
7075
      self.vendorItemPricing.write(oprot)
7076
      oprot.writeFieldEnd()
7077
    oprot.writeFieldStop()
7078
    oprot.writeStructEnd()
7079
 
7080
  def validate(self):
7081
    return
7082
 
7083
 
7084
  def __repr__(self):
7085
    L = ['%s=%r' % (key, value)
7086
      for key, value in self.__dict__.iteritems()]
7087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7088
 
7089
  def __eq__(self, other):
7090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7091
 
7092
  def __ne__(self, other):
7093
    return not (self == other)
7094
 
7095
class addVendorItemPricing_result:
7096
  """
7097
  Attributes:
7098
   - cex
7099
  """
7100
 
7101
  thrift_spec = (
7102
    None, # 0
7103
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7104
  )
7105
 
7106
  def __init__(self, cex=None,):
7107
    self.cex = cex
7108
 
7109
  def read(self, iprot):
7110
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7111
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7112
      return
7113
    iprot.readStructBegin()
7114
    while True:
7115
      (fname, ftype, fid) = iprot.readFieldBegin()
7116
      if ftype == TType.STOP:
7117
        break
7118
      if fid == 1:
7119
        if ftype == TType.STRUCT:
7120
          self.cex = InventoryServiceException()
7121
          self.cex.read(iprot)
7122
        else:
7123
          iprot.skip(ftype)
7124
      else:
7125
        iprot.skip(ftype)
7126
      iprot.readFieldEnd()
7127
    iprot.readStructEnd()
7128
 
7129
  def write(self, oprot):
7130
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7131
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7132
      return
7133
    oprot.writeStructBegin('addVendorItemPricing_result')
7134
    if self.cex is not None:
7135
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7136
      self.cex.write(oprot)
7137
      oprot.writeFieldEnd()
7138
    oprot.writeFieldStop()
7139
    oprot.writeStructEnd()
7140
 
7141
  def validate(self):
7142
    return
7143
 
7144
 
7145
  def __repr__(self):
7146
    L = ['%s=%r' % (key, value)
7147
      for key, value in self.__dict__.iteritems()]
7148
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7149
 
7150
  def __eq__(self, other):
7151
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7152
 
7153
  def __ne__(self, other):
7154
    return not (self == other)
7155
 
7156
class getVendor_args:
7157
  """
7158
  Attributes:
7159
   - vendorId
7160
  """
7161
 
7162
  thrift_spec = (
7163
    None, # 0
7164
    (1, TType.I64, 'vendorId', None, None, ), # 1
7165
  )
7166
 
7167
  def __init__(self, vendorId=None,):
7168
    self.vendorId = vendorId
7169
 
7170
  def read(self, iprot):
7171
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7172
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7173
      return
7174
    iprot.readStructBegin()
7175
    while True:
7176
      (fname, ftype, fid) = iprot.readFieldBegin()
7177
      if ftype == TType.STOP:
7178
        break
7179
      if fid == 1:
7180
        if ftype == TType.I64:
7181
          self.vendorId = iprot.readI64();
7182
        else:
7183
          iprot.skip(ftype)
7184
      else:
7185
        iprot.skip(ftype)
7186
      iprot.readFieldEnd()
7187
    iprot.readStructEnd()
7188
 
7189
  def write(self, oprot):
7190
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7191
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7192
      return
7193
    oprot.writeStructBegin('getVendor_args')
7194
    if self.vendorId is not None:
7195
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
7196
      oprot.writeI64(self.vendorId)
7197
      oprot.writeFieldEnd()
7198
    oprot.writeFieldStop()
7199
    oprot.writeStructEnd()
7200
 
7201
  def validate(self):
7202
    return
7203
 
7204
 
7205
  def __repr__(self):
7206
    L = ['%s=%r' % (key, value)
7207
      for key, value in self.__dict__.iteritems()]
7208
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7209
 
7210
  def __eq__(self, other):
7211
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7212
 
7213
  def __ne__(self, other):
7214
    return not (self == other)
7215
 
7216
class getVendor_result:
7217
  """
7218
  Attributes:
7219
   - success
7220
  """
7221
 
7222
  thrift_spec = (
7223
    (0, TType.STRUCT, 'success', (Vendor, Vendor.thrift_spec), None, ), # 0
7224
  )
7225
 
7226
  def __init__(self, success=None,):
7227
    self.success = success
7228
 
7229
  def read(self, iprot):
7230
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7231
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7232
      return
7233
    iprot.readStructBegin()
7234
    while True:
7235
      (fname, ftype, fid) = iprot.readFieldBegin()
7236
      if ftype == TType.STOP:
7237
        break
7238
      if fid == 0:
7239
        if ftype == TType.STRUCT:
7240
          self.success = Vendor()
7241
          self.success.read(iprot)
7242
        else:
7243
          iprot.skip(ftype)
7244
      else:
7245
        iprot.skip(ftype)
7246
      iprot.readFieldEnd()
7247
    iprot.readStructEnd()
7248
 
7249
  def write(self, oprot):
7250
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7251
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7252
      return
7253
    oprot.writeStructBegin('getVendor_result')
7254
    if self.success is not None:
7255
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7256
      self.success.write(oprot)
7257
      oprot.writeFieldEnd()
7258
    oprot.writeFieldStop()
7259
    oprot.writeStructEnd()
7260
 
7261
  def validate(self):
7262
    return
7263
 
7264
 
7265
  def __repr__(self):
7266
    L = ['%s=%r' % (key, value)
7267
      for key, value in self.__dict__.iteritems()]
7268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7269
 
7270
  def __eq__(self, other):
7271
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7272
 
7273
  def __ne__(self, other):
7274
    return not (self == other)
7275
 
7276
class getAllVendors_args:
7277
 
7278
  thrift_spec = (
7279
  )
7280
 
7281
  def read(self, iprot):
7282
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7283
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7284
      return
7285
    iprot.readStructBegin()
7286
    while True:
7287
      (fname, ftype, fid) = iprot.readFieldBegin()
7288
      if ftype == TType.STOP:
7289
        break
7290
      else:
7291
        iprot.skip(ftype)
7292
      iprot.readFieldEnd()
7293
    iprot.readStructEnd()
7294
 
7295
  def write(self, oprot):
7296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7297
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7298
      return
7299
    oprot.writeStructBegin('getAllVendors_args')
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 getAllVendors_result:
7319
  """
7320
  Attributes:
7321
   - success
7322
  """
7323
 
7324
  thrift_spec = (
7325
    (0, TType.LIST, 'success', (TType.STRUCT,(Vendor, Vendor.thrift_spec)), None, ), # 0
7326
  )
7327
 
7328
  def __init__(self, success=None,):
7329
    self.success = success
7330
 
7331
  def read(self, iprot):
7332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7334
      return
7335
    iprot.readStructBegin()
7336
    while True:
7337
      (fname, ftype, fid) = iprot.readFieldBegin()
7338
      if ftype == TType.STOP:
7339
        break
7340
      if fid == 0:
7341
        if ftype == TType.LIST:
7342
          self.success = []
8182 amar.kumar 7343
          (_etype76, _size73) = iprot.readListBegin()
7344
          for _i77 in xrange(_size73):
7345
            _elem78 = Vendor()
7346
            _elem78.read(iprot)
7347
            self.success.append(_elem78)
5944 mandeep.dh 7348
          iprot.readListEnd()
7349
        else:
7350
          iprot.skip(ftype)
7351
      else:
7352
        iprot.skip(ftype)
7353
      iprot.readFieldEnd()
7354
    iprot.readStructEnd()
7355
 
7356
  def write(self, oprot):
7357
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7358
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7359
      return
7360
    oprot.writeStructBegin('getAllVendors_result')
7361
    if self.success is not None:
7362
      oprot.writeFieldBegin('success', TType.LIST, 0)
7363
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7364
      for iter79 in self.success:
7365
        iter79.write(oprot)
5944 mandeep.dh 7366
      oprot.writeListEnd()
7367
      oprot.writeFieldEnd()
7368
    oprot.writeFieldStop()
7369
    oprot.writeStructEnd()
7370
 
7371
  def validate(self):
7372
    return
7373
 
7374
 
7375
  def __repr__(self):
7376
    L = ['%s=%r' % (key, value)
7377
      for key, value in self.__dict__.iteritems()]
7378
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7379
 
7380
  def __eq__(self, other):
7381
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7382
 
7383
  def __ne__(self, other):
7384
    return not (self == other)
7385
 
7386
class addVendorItemMapping_args:
7387
  """
7388
  Attributes:
7389
   - key
7390
   - vendorItemMapping
7391
  """
7392
 
7393
  thrift_spec = (
7394
    None, # 0
7395
    (1, TType.STRING, 'key', None, None, ), # 1
7396
    (2, TType.STRUCT, 'vendorItemMapping', (VendorItemMapping, VendorItemMapping.thrift_spec), None, ), # 2
7397
  )
7398
 
7399
  def __init__(self, key=None, vendorItemMapping=None,):
7400
    self.key = key
7401
    self.vendorItemMapping = vendorItemMapping
7402
 
7403
  def read(self, iprot):
7404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7406
      return
7407
    iprot.readStructBegin()
7408
    while True:
7409
      (fname, ftype, fid) = iprot.readFieldBegin()
7410
      if ftype == TType.STOP:
7411
        break
7412
      if fid == 1:
7413
        if ftype == TType.STRING:
7414
          self.key = iprot.readString();
7415
        else:
7416
          iprot.skip(ftype)
7417
      elif fid == 2:
7418
        if ftype == TType.STRUCT:
7419
          self.vendorItemMapping = VendorItemMapping()
7420
          self.vendorItemMapping.read(iprot)
7421
        else:
7422
          iprot.skip(ftype)
7423
      else:
7424
        iprot.skip(ftype)
7425
      iprot.readFieldEnd()
7426
    iprot.readStructEnd()
7427
 
7428
  def write(self, oprot):
7429
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7430
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7431
      return
7432
    oprot.writeStructBegin('addVendorItemMapping_args')
7433
    if self.key is not None:
7434
      oprot.writeFieldBegin('key', TType.STRING, 1)
7435
      oprot.writeString(self.key)
7436
      oprot.writeFieldEnd()
7437
    if self.vendorItemMapping is not None:
7438
      oprot.writeFieldBegin('vendorItemMapping', TType.STRUCT, 2)
7439
      self.vendorItemMapping.write(oprot)
7440
      oprot.writeFieldEnd()
7441
    oprot.writeFieldStop()
7442
    oprot.writeStructEnd()
7443
 
7444
  def validate(self):
7445
    return
7446
 
7447
 
7448
  def __repr__(self):
7449
    L = ['%s=%r' % (key, value)
7450
      for key, value in self.__dict__.iteritems()]
7451
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7452
 
7453
  def __eq__(self, other):
7454
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7455
 
7456
  def __ne__(self, other):
7457
    return not (self == other)
7458
 
7459
class addVendorItemMapping_result:
7460
  """
7461
  Attributes:
7462
   - cex
7463
  """
7464
 
7465
  thrift_spec = (
7466
    None, # 0
7467
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7468
  )
7469
 
7470
  def __init__(self, cex=None,):
7471
    self.cex = cex
7472
 
7473
  def read(self, iprot):
7474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7476
      return
7477
    iprot.readStructBegin()
7478
    while True:
7479
      (fname, ftype, fid) = iprot.readFieldBegin()
7480
      if ftype == TType.STOP:
7481
        break
7482
      if fid == 1:
7483
        if ftype == TType.STRUCT:
7484
          self.cex = InventoryServiceException()
7485
          self.cex.read(iprot)
7486
        else:
7487
          iprot.skip(ftype)
7488
      else:
7489
        iprot.skip(ftype)
7490
      iprot.readFieldEnd()
7491
    iprot.readStructEnd()
7492
 
7493
  def write(self, oprot):
7494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7496
      return
7497
    oprot.writeStructBegin('addVendorItemMapping_result')
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 getVendorItemMappings_args:
7521
  """
7522
  Attributes:
7523
   - itemId
7524
  """
7525
 
7526
  thrift_spec = (
7527
    None, # 0
7528
    (1, TType.I64, 'itemId', None, None, ), # 1
7529
  )
7530
 
7531
  def __init__(self, itemId=None,):
7532
    self.itemId = itemId
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.itemId = 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('getVendorItemMappings_args')
7558
    if self.itemId is not None:
7559
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7560
      oprot.writeI64(self.itemId)
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 getVendorItemMappings_result:
7581
  """
7582
  Attributes:
7583
   - success
7584
   - cex
7585
  """
7586
 
7587
  thrift_spec = (
7588
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
7589
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7590
  )
7591
 
7592
  def __init__(self, success=None, cex=None,):
7593
    self.success = success
7594
    self.cex = cex
7595
 
7596
  def read(self, iprot):
7597
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7598
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7599
      return
7600
    iprot.readStructBegin()
7601
    while True:
7602
      (fname, ftype, fid) = iprot.readFieldBegin()
7603
      if ftype == TType.STOP:
7604
        break
7605
      if fid == 0:
7606
        if ftype == TType.LIST:
7607
          self.success = []
8182 amar.kumar 7608
          (_etype83, _size80) = iprot.readListBegin()
7609
          for _i84 in xrange(_size80):
7610
            _elem85 = VendorItemMapping()
7611
            _elem85.read(iprot)
7612
            self.success.append(_elem85)
5944 mandeep.dh 7613
          iprot.readListEnd()
7614
        else:
7615
          iprot.skip(ftype)
7616
      elif fid == 1:
7617
        if ftype == TType.STRUCT:
7618
          self.cex = InventoryServiceException()
7619
          self.cex.read(iprot)
7620
        else:
7621
          iprot.skip(ftype)
7622
      else:
7623
        iprot.skip(ftype)
7624
      iprot.readFieldEnd()
7625
    iprot.readStructEnd()
7626
 
7627
  def write(self, oprot):
7628
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7629
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7630
      return
7631
    oprot.writeStructBegin('getVendorItemMappings_result')
7632
    if self.success is not None:
7633
      oprot.writeFieldBegin('success', TType.LIST, 0)
7634
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7635
      for iter86 in self.success:
7636
        iter86.write(oprot)
5944 mandeep.dh 7637
      oprot.writeListEnd()
7638
      oprot.writeFieldEnd()
7639
    if self.cex is not None:
7640
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7641
      self.cex.write(oprot)
7642
      oprot.writeFieldEnd()
7643
    oprot.writeFieldStop()
7644
    oprot.writeStructEnd()
7645
 
7646
  def validate(self):
7647
    return
7648
 
7649
 
7650
  def __repr__(self):
7651
    L = ['%s=%r' % (key, value)
7652
      for key, value in self.__dict__.iteritems()]
7653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7654
 
7655
  def __eq__(self, other):
7656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7657
 
7658
  def __ne__(self, other):
7659
    return not (self == other)
7660
 
7661
class getPendingOrdersInventory_args:
7662
  """
7663
  Attributes:
7664
   - vendorid
7665
  """
7666
 
7667
  thrift_spec = (
7668
    None, # 0
7669
    (1, TType.I64, 'vendorid', None, None, ), # 1
7670
  )
7671
 
7672
  def __init__(self, vendorid=None,):
7673
    self.vendorid = vendorid
7674
 
7675
  def read(self, iprot):
7676
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7677
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7678
      return
7679
    iprot.readStructBegin()
7680
    while True:
7681
      (fname, ftype, fid) = iprot.readFieldBegin()
7682
      if ftype == TType.STOP:
7683
        break
7684
      if fid == 1:
7685
        if ftype == TType.I64:
7686
          self.vendorid = iprot.readI64();
7687
        else:
7688
          iprot.skip(ftype)
7689
      else:
7690
        iprot.skip(ftype)
7691
      iprot.readFieldEnd()
7692
    iprot.readStructEnd()
7693
 
7694
  def write(self, oprot):
7695
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7696
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7697
      return
7698
    oprot.writeStructBegin('getPendingOrdersInventory_args')
7699
    if self.vendorid is not None:
7700
      oprot.writeFieldBegin('vendorid', TType.I64, 1)
7701
      oprot.writeI64(self.vendorid)
7702
      oprot.writeFieldEnd()
7703
    oprot.writeFieldStop()
7704
    oprot.writeStructEnd()
7705
 
7706
  def validate(self):
7707
    return
7708
 
7709
 
7710
  def __repr__(self):
7711
    L = ['%s=%r' % (key, value)
7712
      for key, value in self.__dict__.iteritems()]
7713
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7714
 
7715
  def __eq__(self, other):
7716
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7717
 
7718
  def __ne__(self, other):
7719
    return not (self == other)
7720
 
7721
class getPendingOrdersInventory_result:
7722
  """
7723
  Attributes:
7724
   - success
7725
  """
7726
 
7727
  thrift_spec = (
7728
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
7729
  )
7730
 
7731
  def __init__(self, success=None,):
7732
    self.success = success
7733
 
7734
  def read(self, iprot):
7735
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7736
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7737
      return
7738
    iprot.readStructBegin()
7739
    while True:
7740
      (fname, ftype, fid) = iprot.readFieldBegin()
7741
      if ftype == TType.STOP:
7742
        break
7743
      if fid == 0:
7744
        if ftype == TType.LIST:
7745
          self.success = []
8182 amar.kumar 7746
          (_etype90, _size87) = iprot.readListBegin()
7747
          for _i91 in xrange(_size87):
7748
            _elem92 = AvailableAndReservedStock()
7749
            _elem92.read(iprot)
7750
            self.success.append(_elem92)
5944 mandeep.dh 7751
          iprot.readListEnd()
7752
        else:
7753
          iprot.skip(ftype)
7754
      else:
7755
        iprot.skip(ftype)
7756
      iprot.readFieldEnd()
7757
    iprot.readStructEnd()
7758
 
7759
  def write(self, oprot):
7760
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7761
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7762
      return
7763
    oprot.writeStructBegin('getPendingOrdersInventory_result')
7764
    if self.success is not None:
7765
      oprot.writeFieldBegin('success', TType.LIST, 0)
7766
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7767
      for iter93 in self.success:
7768
        iter93.write(oprot)
5944 mandeep.dh 7769
      oprot.writeListEnd()
7770
      oprot.writeFieldEnd()
7771
    oprot.writeFieldStop()
7772
    oprot.writeStructEnd()
7773
 
7774
  def validate(self):
7775
    return
7776
 
7777
 
7778
  def __repr__(self):
7779
    L = ['%s=%r' % (key, value)
7780
      for key, value in self.__dict__.iteritems()]
7781
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7782
 
7783
  def __eq__(self, other):
7784
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7785
 
7786
  def __ne__(self, other):
7787
    return not (self == other)
7788
 
7789
class getWarehouses_args:
7790
  """
7791
  Attributes:
7792
   - warehouseType
7793
   - inventoryType
7794
   - vendorId
7795
   - billingWarehouseId
7796
   - shippingWarehouseId
7797
  """
7798
 
7799
  thrift_spec = (
7800
    None, # 0
7801
    (1, TType.I32, 'warehouseType', None, None, ), # 1
7802
    (2, TType.I32, 'inventoryType', None, None, ), # 2
7803
    (3, TType.I64, 'vendorId', None, None, ), # 3
7804
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
7805
    (5, TType.I64, 'shippingWarehouseId', None, None, ), # 5
7806
  )
7807
 
7808
  def __init__(self, warehouseType=None, inventoryType=None, vendorId=None, billingWarehouseId=None, shippingWarehouseId=None,):
7809
    self.warehouseType = warehouseType
7810
    self.inventoryType = inventoryType
7811
    self.vendorId = vendorId
7812
    self.billingWarehouseId = billingWarehouseId
7813
    self.shippingWarehouseId = shippingWarehouseId
7814
 
7815
  def read(self, iprot):
7816
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7817
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7818
      return
7819
    iprot.readStructBegin()
7820
    while True:
7821
      (fname, ftype, fid) = iprot.readFieldBegin()
7822
      if ftype == TType.STOP:
7823
        break
7824
      if fid == 1:
7825
        if ftype == TType.I32:
7826
          self.warehouseType = iprot.readI32();
7827
        else:
7828
          iprot.skip(ftype)
7829
      elif fid == 2:
7830
        if ftype == TType.I32:
7831
          self.inventoryType = iprot.readI32();
7832
        else:
7833
          iprot.skip(ftype)
7834
      elif fid == 3:
7835
        if ftype == TType.I64:
7836
          self.vendorId = iprot.readI64();
7837
        else:
7838
          iprot.skip(ftype)
7839
      elif fid == 4:
7840
        if ftype == TType.I64:
7841
          self.billingWarehouseId = iprot.readI64();
7842
        else:
7843
          iprot.skip(ftype)
7844
      elif fid == 5:
7845
        if ftype == TType.I64:
7846
          self.shippingWarehouseId = iprot.readI64();
7847
        else:
7848
          iprot.skip(ftype)
7849
      else:
7850
        iprot.skip(ftype)
7851
      iprot.readFieldEnd()
7852
    iprot.readStructEnd()
7853
 
7854
  def write(self, oprot):
7855
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7856
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7857
      return
7858
    oprot.writeStructBegin('getWarehouses_args')
7859
    if self.warehouseType is not None:
7860
      oprot.writeFieldBegin('warehouseType', TType.I32, 1)
7861
      oprot.writeI32(self.warehouseType)
7862
      oprot.writeFieldEnd()
7863
    if self.inventoryType is not None:
7864
      oprot.writeFieldBegin('inventoryType', TType.I32, 2)
7865
      oprot.writeI32(self.inventoryType)
7866
      oprot.writeFieldEnd()
7867
    if self.vendorId is not None:
7868
      oprot.writeFieldBegin('vendorId', TType.I64, 3)
7869
      oprot.writeI64(self.vendorId)
7870
      oprot.writeFieldEnd()
7871
    if self.billingWarehouseId is not None:
7872
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
7873
      oprot.writeI64(self.billingWarehouseId)
7874
      oprot.writeFieldEnd()
7875
    if self.shippingWarehouseId is not None:
7876
      oprot.writeFieldBegin('shippingWarehouseId', TType.I64, 5)
7877
      oprot.writeI64(self.shippingWarehouseId)
7878
      oprot.writeFieldEnd()
7879
    oprot.writeFieldStop()
7880
    oprot.writeStructEnd()
7881
 
7882
  def validate(self):
7883
    return
7884
 
7885
 
7886
  def __repr__(self):
7887
    L = ['%s=%r' % (key, value)
7888
      for key, value in self.__dict__.iteritems()]
7889
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7890
 
7891
  def __eq__(self, other):
7892
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7893
 
7894
  def __ne__(self, other):
7895
    return not (self == other)
7896
 
7897
class getWarehouses_result:
7898
  """
7899
  Attributes:
7900
   - success
7901
  """
7902
 
7903
  thrift_spec = (
7904
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
7905
  )
7906
 
7907
  def __init__(self, success=None,):
7908
    self.success = success
7909
 
7910
  def read(self, iprot):
7911
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7912
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7913
      return
7914
    iprot.readStructBegin()
7915
    while True:
7916
      (fname, ftype, fid) = iprot.readFieldBegin()
7917
      if ftype == TType.STOP:
7918
        break
7919
      if fid == 0:
7920
        if ftype == TType.LIST:
7921
          self.success = []
8182 amar.kumar 7922
          (_etype97, _size94) = iprot.readListBegin()
7923
          for _i98 in xrange(_size94):
7924
            _elem99 = Warehouse()
7925
            _elem99.read(iprot)
7926
            self.success.append(_elem99)
5944 mandeep.dh 7927
          iprot.readListEnd()
7928
        else:
7929
          iprot.skip(ftype)
7930
      else:
7931
        iprot.skip(ftype)
7932
      iprot.readFieldEnd()
7933
    iprot.readStructEnd()
7934
 
7935
  def write(self, oprot):
7936
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7937
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7938
      return
7939
    oprot.writeStructBegin('getWarehouses_result')
7940
    if self.success is not None:
7941
      oprot.writeFieldBegin('success', TType.LIST, 0)
7942
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7943
      for iter100 in self.success:
7944
        iter100.write(oprot)
5944 mandeep.dh 7945
      oprot.writeListEnd()
7946
      oprot.writeFieldEnd()
7947
    oprot.writeFieldStop()
7948
    oprot.writeStructEnd()
7949
 
7950
  def validate(self):
7951
    return
7952
 
7953
 
7954
  def __repr__(self):
7955
    L = ['%s=%r' % (key, value)
7956
      for key, value in self.__dict__.iteritems()]
7957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7958
 
7959
  def __eq__(self, other):
7960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7961
 
7962
  def __ne__(self, other):
7963
    return not (self == other)
7964
 
7965
class resetAvailability_args:
7966
  """
7967
  Attributes:
7968
   - itemKey
7969
   - vendorId
7970
   - quantity
7971
   - warehouseId
7972
  """
7973
 
7974
  thrift_spec = (
7975
    None, # 0
7976
    (1, TType.STRING, 'itemKey', None, None, ), # 1
7977
    (2, TType.I64, 'vendorId', None, None, ), # 2
7978
    (3, TType.I64, 'quantity', None, None, ), # 3
7979
    (4, TType.I64, 'warehouseId', None, None, ), # 4
7980
  )
7981
 
7982
  def __init__(self, itemKey=None, vendorId=None, quantity=None, warehouseId=None,):
7983
    self.itemKey = itemKey
7984
    self.vendorId = vendorId
7985
    self.quantity = quantity
7986
    self.warehouseId = warehouseId
7987
 
7988
  def read(self, iprot):
7989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7991
      return
7992
    iprot.readStructBegin()
7993
    while True:
7994
      (fname, ftype, fid) = iprot.readFieldBegin()
7995
      if ftype == TType.STOP:
7996
        break
7997
      if fid == 1:
7998
        if ftype == TType.STRING:
7999
          self.itemKey = iprot.readString();
8000
        else:
8001
          iprot.skip(ftype)
8002
      elif fid == 2:
8003
        if ftype == TType.I64:
8004
          self.vendorId = iprot.readI64();
8005
        else:
8006
          iprot.skip(ftype)
8007
      elif fid == 3:
8008
        if ftype == TType.I64:
8009
          self.quantity = iprot.readI64();
8010
        else:
8011
          iprot.skip(ftype)
8012
      elif fid == 4:
8013
        if ftype == TType.I64:
8014
          self.warehouseId = iprot.readI64();
8015
        else:
8016
          iprot.skip(ftype)
8017
      else:
8018
        iprot.skip(ftype)
8019
      iprot.readFieldEnd()
8020
    iprot.readStructEnd()
8021
 
8022
  def write(self, oprot):
8023
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8024
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8025
      return
8026
    oprot.writeStructBegin('resetAvailability_args')
8027
    if self.itemKey is not None:
8028
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
8029
      oprot.writeString(self.itemKey)
8030
      oprot.writeFieldEnd()
8031
    if self.vendorId is not None:
8032
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
8033
      oprot.writeI64(self.vendorId)
8034
      oprot.writeFieldEnd()
8035
    if self.quantity is not None:
8036
      oprot.writeFieldBegin('quantity', TType.I64, 3)
8037
      oprot.writeI64(self.quantity)
8038
      oprot.writeFieldEnd()
8039
    if self.warehouseId is not None:
8040
      oprot.writeFieldBegin('warehouseId', TType.I64, 4)
8041
      oprot.writeI64(self.warehouseId)
8042
      oprot.writeFieldEnd()
8043
    oprot.writeFieldStop()
8044
    oprot.writeStructEnd()
8045
 
8046
  def validate(self):
8047
    return
8048
 
8049
 
8050
  def __repr__(self):
8051
    L = ['%s=%r' % (key, value)
8052
      for key, value in self.__dict__.iteritems()]
8053
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8054
 
8055
  def __eq__(self, other):
8056
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8057
 
8058
  def __ne__(self, other):
8059
    return not (self == other)
8060
 
8061
class resetAvailability_result:
8062
  """
8063
  Attributes:
8064
   - cex
8065
  """
8066
 
8067
  thrift_spec = (
8068
    None, # 0
8069
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8070
  )
8071
 
8072
  def __init__(self, cex=None,):
8073
    self.cex = cex
8074
 
8075
  def read(self, iprot):
8076
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8077
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8078
      return
8079
    iprot.readStructBegin()
8080
    while True:
8081
      (fname, ftype, fid) = iprot.readFieldBegin()
8082
      if ftype == TType.STOP:
8083
        break
8084
      if fid == 1:
8085
        if ftype == TType.STRUCT:
8086
          self.cex = InventoryServiceException()
8087
          self.cex.read(iprot)
8088
        else:
8089
          iprot.skip(ftype)
8090
      else:
8091
        iprot.skip(ftype)
8092
      iprot.readFieldEnd()
8093
    iprot.readStructEnd()
8094
 
8095
  def write(self, oprot):
8096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8098
      return
8099
    oprot.writeStructBegin('resetAvailability_result')
8100
    if self.cex is not None:
8101
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8102
      self.cex.write(oprot)
8103
      oprot.writeFieldEnd()
8104
    oprot.writeFieldStop()
8105
    oprot.writeStructEnd()
8106
 
8107
  def validate(self):
8108
    return
8109
 
8110
 
8111
  def __repr__(self):
8112
    L = ['%s=%r' % (key, value)
8113
      for key, value in self.__dict__.iteritems()]
8114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8115
 
8116
  def __eq__(self, other):
8117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8118
 
8119
  def __ne__(self, other):
8120
    return not (self == other)
8121
 
8122
class resetAvailabilityForWarehouse_args:
8123
  """
8124
  Attributes:
8125
   - warehouseId
8126
  """
8127
 
8128
  thrift_spec = (
8129
    None, # 0
8130
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8131
  )
8132
 
8133
  def __init__(self, warehouseId=None,):
8134
    self.warehouseId = warehouseId
8135
 
8136
  def read(self, iprot):
8137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8139
      return
8140
    iprot.readStructBegin()
8141
    while True:
8142
      (fname, ftype, fid) = iprot.readFieldBegin()
8143
      if ftype == TType.STOP:
8144
        break
8145
      if fid == 1:
8146
        if ftype == TType.I64:
8147
          self.warehouseId = iprot.readI64();
8148
        else:
8149
          iprot.skip(ftype)
8150
      else:
8151
        iprot.skip(ftype)
8152
      iprot.readFieldEnd()
8153
    iprot.readStructEnd()
8154
 
8155
  def write(self, oprot):
8156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8158
      return
8159
    oprot.writeStructBegin('resetAvailabilityForWarehouse_args')
8160
    if self.warehouseId is not None:
8161
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8162
      oprot.writeI64(self.warehouseId)
8163
      oprot.writeFieldEnd()
8164
    oprot.writeFieldStop()
8165
    oprot.writeStructEnd()
8166
 
8167
  def validate(self):
8168
    return
8169
 
8170
 
8171
  def __repr__(self):
8172
    L = ['%s=%r' % (key, value)
8173
      for key, value in self.__dict__.iteritems()]
8174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8175
 
8176
  def __eq__(self, other):
8177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8178
 
8179
  def __ne__(self, other):
8180
    return not (self == other)
8181
 
8182
class resetAvailabilityForWarehouse_result:
8183
  """
8184
  Attributes:
8185
   - cex
8186
  """
8187
 
8188
  thrift_spec = (
8189
    None, # 0
8190
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8191
  )
8192
 
8193
  def __init__(self, cex=None,):
8194
    self.cex = cex
8195
 
8196
  def read(self, iprot):
8197
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8198
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8199
      return
8200
    iprot.readStructBegin()
8201
    while True:
8202
      (fname, ftype, fid) = iprot.readFieldBegin()
8203
      if ftype == TType.STOP:
8204
        break
8205
      if fid == 1:
8206
        if ftype == TType.STRUCT:
8207
          self.cex = InventoryServiceException()
8208
          self.cex.read(iprot)
8209
        else:
8210
          iprot.skip(ftype)
8211
      else:
8212
        iprot.skip(ftype)
8213
      iprot.readFieldEnd()
8214
    iprot.readStructEnd()
8215
 
8216
  def write(self, oprot):
8217
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8218
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8219
      return
8220
    oprot.writeStructBegin('resetAvailabilityForWarehouse_result')
8221
    if self.cex is not None:
8222
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8223
      self.cex.write(oprot)
8224
      oprot.writeFieldEnd()
8225
    oprot.writeFieldStop()
8226
    oprot.writeStructEnd()
8227
 
8228
  def validate(self):
8229
    return
8230
 
8231
 
8232
  def __repr__(self):
8233
    L = ['%s=%r' % (key, value)
8234
      for key, value in self.__dict__.iteritems()]
8235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8236
 
8237
  def __eq__(self, other):
8238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8239
 
8240
  def __ne__(self, other):
8241
    return not (self == other)
8242
 
8243
class getItemKeysToBeProcessed_args:
8244
  """
8245
  Attributes:
8246
   - warehouseId
8247
  """
8248
 
8249
  thrift_spec = (
8250
    None, # 0
8251
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8252
  )
8253
 
8254
  def __init__(self, warehouseId=None,):
8255
    self.warehouseId = warehouseId
8256
 
8257
  def read(self, iprot):
8258
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8259
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8260
      return
8261
    iprot.readStructBegin()
8262
    while True:
8263
      (fname, ftype, fid) = iprot.readFieldBegin()
8264
      if ftype == TType.STOP:
8265
        break
8266
      if fid == 1:
8267
        if ftype == TType.I64:
8268
          self.warehouseId = iprot.readI64();
8269
        else:
8270
          iprot.skip(ftype)
8271
      else:
8272
        iprot.skip(ftype)
8273
      iprot.readFieldEnd()
8274
    iprot.readStructEnd()
8275
 
8276
  def write(self, oprot):
8277
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8278
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8279
      return
8280
    oprot.writeStructBegin('getItemKeysToBeProcessed_args')
8281
    if self.warehouseId is not None:
8282
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8283
      oprot.writeI64(self.warehouseId)
8284
      oprot.writeFieldEnd()
8285
    oprot.writeFieldStop()
8286
    oprot.writeStructEnd()
8287
 
8288
  def validate(self):
8289
    return
8290
 
8291
 
8292
  def __repr__(self):
8293
    L = ['%s=%r' % (key, value)
8294
      for key, value in self.__dict__.iteritems()]
8295
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8296
 
8297
  def __eq__(self, other):
8298
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8299
 
8300
  def __ne__(self, other):
8301
    return not (self == other)
8302
 
8303
class getItemKeysToBeProcessed_result:
8304
  """
8305
  Attributes:
8306
   - success
8307
  """
8308
 
8309
  thrift_spec = (
8310
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
8311
  )
8312
 
8313
  def __init__(self, success=None,):
8314
    self.success = success
8315
 
8316
  def read(self, iprot):
8317
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8318
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8319
      return
8320
    iprot.readStructBegin()
8321
    while True:
8322
      (fname, ftype, fid) = iprot.readFieldBegin()
8323
      if ftype == TType.STOP:
8324
        break
8325
      if fid == 0:
8326
        if ftype == TType.LIST:
8327
          self.success = []
8182 amar.kumar 8328
          (_etype104, _size101) = iprot.readListBegin()
8329
          for _i105 in xrange(_size101):
8330
            _elem106 = iprot.readString();
8331
            self.success.append(_elem106)
5944 mandeep.dh 8332
          iprot.readListEnd()
8333
        else:
8334
          iprot.skip(ftype)
8335
      else:
8336
        iprot.skip(ftype)
8337
      iprot.readFieldEnd()
8338
    iprot.readStructEnd()
8339
 
8340
  def write(self, oprot):
8341
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8342
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8343
      return
8344
    oprot.writeStructBegin('getItemKeysToBeProcessed_result')
8345
    if self.success is not None:
8346
      oprot.writeFieldBegin('success', TType.LIST, 0)
8347
      oprot.writeListBegin(TType.STRING, len(self.success))
8182 amar.kumar 8348
      for iter107 in self.success:
8349
        oprot.writeString(iter107)
5944 mandeep.dh 8350
      oprot.writeListEnd()
8351
      oprot.writeFieldEnd()
8352
    oprot.writeFieldStop()
8353
    oprot.writeStructEnd()
8354
 
8355
  def validate(self):
8356
    return
8357
 
8358
 
8359
  def __repr__(self):
8360
    L = ['%s=%r' % (key, value)
8361
      for key, value in self.__dict__.iteritems()]
8362
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8363
 
8364
  def __eq__(self, other):
8365
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8366
 
8367
  def __ne__(self, other):
8368
    return not (self == other)
8369
 
8370
class markMissedInventoryUpdatesAsProcessed_args:
8371
  """
8372
  Attributes:
8373
   - itemKey
8374
   - warehouseId
8375
  """
8376
 
8377
  thrift_spec = (
8378
    None, # 0
8379
    (1, TType.STRING, 'itemKey', None, None, ), # 1
8380
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8381
  )
8382
 
8383
  def __init__(self, itemKey=None, warehouseId=None,):
8384
    self.itemKey = itemKey
8385
    self.warehouseId = warehouseId
8386
 
8387
  def read(self, iprot):
8388
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8389
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8390
      return
8391
    iprot.readStructBegin()
8392
    while True:
8393
      (fname, ftype, fid) = iprot.readFieldBegin()
8394
      if ftype == TType.STOP:
8395
        break
8396
      if fid == 1:
8397
        if ftype == TType.STRING:
8398
          self.itemKey = iprot.readString();
8399
        else:
8400
          iprot.skip(ftype)
8401
      elif fid == 2:
8402
        if ftype == TType.I64:
8403
          self.warehouseId = iprot.readI64();
8404
        else:
8405
          iprot.skip(ftype)
8406
      else:
8407
        iprot.skip(ftype)
8408
      iprot.readFieldEnd()
8409
    iprot.readStructEnd()
8410
 
8411
  def write(self, oprot):
8412
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8413
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8414
      return
8415
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_args')
8416
    if self.itemKey is not None:
8417
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
8418
      oprot.writeString(self.itemKey)
8419
      oprot.writeFieldEnd()
8420
    if self.warehouseId is not None:
8421
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8422
      oprot.writeI64(self.warehouseId)
8423
      oprot.writeFieldEnd()
8424
    oprot.writeFieldStop()
8425
    oprot.writeStructEnd()
8426
 
8427
  def validate(self):
8428
    return
8429
 
8430
 
8431
  def __repr__(self):
8432
    L = ['%s=%r' % (key, value)
8433
      for key, value in self.__dict__.iteritems()]
8434
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8435
 
8436
  def __eq__(self, other):
8437
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8438
 
8439
  def __ne__(self, other):
8440
    return not (self == other)
8441
 
8442
class markMissedInventoryUpdatesAsProcessed_result:
8443
 
8444
  thrift_spec = (
8445
  )
8446
 
8447
  def read(self, iprot):
8448
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8449
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8450
      return
8451
    iprot.readStructBegin()
8452
    while True:
8453
      (fname, ftype, fid) = iprot.readFieldBegin()
8454
      if ftype == TType.STOP:
8455
        break
8456
      else:
8457
        iprot.skip(ftype)
8458
      iprot.readFieldEnd()
8459
    iprot.readStructEnd()
8460
 
8461
  def write(self, oprot):
8462
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8463
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8464
      return
8465
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_result')
8466
    oprot.writeFieldStop()
8467
    oprot.writeStructEnd()
8468
 
8469
  def validate(self):
8470
    return
8471
 
8472
 
8473
  def __repr__(self):
8474
    L = ['%s=%r' % (key, value)
8475
      for key, value in self.__dict__.iteritems()]
8476
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8477
 
8478
  def __eq__(self, other):
8479
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8480
 
8481
  def __ne__(self, other):
8482
    return not (self == other)
8483
 
8484
class getIgnoredItemKeys_args:
8485
 
8486
  thrift_spec = (
8487
  )
8488
 
8489
  def read(self, iprot):
8490
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8491
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8492
      return
8493
    iprot.readStructBegin()
8494
    while True:
8495
      (fname, ftype, fid) = iprot.readFieldBegin()
8496
      if ftype == TType.STOP:
8497
        break
8498
      else:
8499
        iprot.skip(ftype)
8500
      iprot.readFieldEnd()
8501
    iprot.readStructEnd()
8502
 
8503
  def write(self, oprot):
8504
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8505
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8506
      return
8507
    oprot.writeStructBegin('getIgnoredItemKeys_args')
8508
    oprot.writeFieldStop()
8509
    oprot.writeStructEnd()
8510
 
8511
  def validate(self):
8512
    return
8513
 
8514
 
8515
  def __repr__(self):
8516
    L = ['%s=%r' % (key, value)
8517
      for key, value in self.__dict__.iteritems()]
8518
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8519
 
8520
  def __eq__(self, other):
8521
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8522
 
8523
  def __ne__(self, other):
8524
    return not (self == other)
8525
 
8526
class getIgnoredItemKeys_result:
8527
  """
8528
  Attributes:
8529
   - success
8530
  """
8531
 
8532
  thrift_spec = (
8533
    (0, TType.MAP, 'success', (TType.STRING,None,TType.MAP,(TType.I64,None,TType.I64,None)), None, ), # 0
8534
  )
8535
 
8536
  def __init__(self, success=None,):
8537
    self.success = success
8538
 
8539
  def read(self, iprot):
8540
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8541
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8542
      return
8543
    iprot.readStructBegin()
8544
    while True:
8545
      (fname, ftype, fid) = iprot.readFieldBegin()
8546
      if ftype == TType.STOP:
8547
        break
8548
      if fid == 0:
8549
        if ftype == TType.MAP:
8550
          self.success = {}
8182 amar.kumar 8551
          (_ktype109, _vtype110, _size108 ) = iprot.readMapBegin() 
8552
          for _i112 in xrange(_size108):
8553
            _key113 = iprot.readString();
8554
            _val114 = {}
8555
            (_ktype116, _vtype117, _size115 ) = iprot.readMapBegin() 
8556
            for _i119 in xrange(_size115):
8557
              _key120 = iprot.readI64();
8558
              _val121 = iprot.readI64();
8559
              _val114[_key120] = _val121
5944 mandeep.dh 8560
            iprot.readMapEnd()
8182 amar.kumar 8561
            self.success[_key113] = _val114
5944 mandeep.dh 8562
          iprot.readMapEnd()
8563
        else:
8564
          iprot.skip(ftype)
8565
      else:
8566
        iprot.skip(ftype)
8567
      iprot.readFieldEnd()
8568
    iprot.readStructEnd()
8569
 
8570
  def write(self, oprot):
8571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8573
      return
8574
    oprot.writeStructBegin('getIgnoredItemKeys_result')
8575
    if self.success is not None:
8576
      oprot.writeFieldBegin('success', TType.MAP, 0)
8577
      oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.success))
8182 amar.kumar 8578
      for kiter122,viter123 in self.success.items():
8579
        oprot.writeString(kiter122)
8580
        oprot.writeMapBegin(TType.I64, TType.I64, len(viter123))
8581
        for kiter124,viter125 in viter123.items():
8582
          oprot.writeI64(kiter124)
8583
          oprot.writeI64(viter125)
5944 mandeep.dh 8584
        oprot.writeMapEnd()
8585
      oprot.writeMapEnd()
8586
      oprot.writeFieldEnd()
8587
    oprot.writeFieldStop()
8588
    oprot.writeStructEnd()
8589
 
8590
  def validate(self):
8591
    return
8592
 
8593
 
8594
  def __repr__(self):
8595
    L = ['%s=%r' % (key, value)
8596
      for key, value in self.__dict__.iteritems()]
8597
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8598
 
8599
  def __eq__(self, other):
8600
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8601
 
8602
  def __ne__(self, other):
8603
    return not (self == other)
8604
 
8605
class addBadInventory_args:
8606
  """
8607
  Attributes:
8608
   - itemId
8609
   - warehouseId
8610
   - quantity
8611
  """
8612
 
8613
  thrift_spec = (
8614
    None, # 0
8615
    (1, TType.I64, 'itemId', None, None, ), # 1
8616
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8617
    (3, TType.I64, 'quantity', None, None, ), # 3
8618
  )
8619
 
8620
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
8621
    self.itemId = itemId
8622
    self.warehouseId = warehouseId
8623
    self.quantity = quantity
8624
 
8625
  def read(self, iprot):
8626
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8627
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8628
      return
8629
    iprot.readStructBegin()
8630
    while True:
8631
      (fname, ftype, fid) = iprot.readFieldBegin()
8632
      if ftype == TType.STOP:
8633
        break
8634
      if fid == 1:
8635
        if ftype == TType.I64:
8636
          self.itemId = iprot.readI64();
8637
        else:
8638
          iprot.skip(ftype)
8639
      elif fid == 2:
8640
        if ftype == TType.I64:
8641
          self.warehouseId = iprot.readI64();
8642
        else:
8643
          iprot.skip(ftype)
8644
      elif fid == 3:
8645
        if ftype == TType.I64:
8646
          self.quantity = iprot.readI64();
8647
        else:
8648
          iprot.skip(ftype)
8649
      else:
8650
        iprot.skip(ftype)
8651
      iprot.readFieldEnd()
8652
    iprot.readStructEnd()
8653
 
8654
  def write(self, oprot):
8655
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8656
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8657
      return
8658
    oprot.writeStructBegin('addBadInventory_args')
8659
    if self.itemId is not None:
8660
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8661
      oprot.writeI64(self.itemId)
8662
      oprot.writeFieldEnd()
8663
    if self.warehouseId is not None:
8664
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8665
      oprot.writeI64(self.warehouseId)
8666
      oprot.writeFieldEnd()
8667
    if self.quantity is not None:
8668
      oprot.writeFieldBegin('quantity', TType.I64, 3)
8669
      oprot.writeI64(self.quantity)
8670
      oprot.writeFieldEnd()
8671
    oprot.writeFieldStop()
8672
    oprot.writeStructEnd()
8673
 
8674
  def validate(self):
8675
    return
8676
 
8677
 
8678
  def __repr__(self):
8679
    L = ['%s=%r' % (key, value)
8680
      for key, value in self.__dict__.iteritems()]
8681
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8682
 
8683
  def __eq__(self, other):
8684
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8685
 
8686
  def __ne__(self, other):
8687
    return not (self == other)
8688
 
8689
class addBadInventory_result:
8690
  """
8691
  Attributes:
8692
   - cex
8693
  """
8694
 
8695
  thrift_spec = (
8696
    None, # 0
8697
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8698
  )
8699
 
8700
  def __init__(self, cex=None,):
8701
    self.cex = cex
8702
 
8703
  def read(self, iprot):
8704
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8705
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8706
      return
8707
    iprot.readStructBegin()
8708
    while True:
8709
      (fname, ftype, fid) = iprot.readFieldBegin()
8710
      if ftype == TType.STOP:
8711
        break
8712
      if fid == 1:
8713
        if ftype == TType.STRUCT:
8714
          self.cex = InventoryServiceException()
8715
          self.cex.read(iprot)
8716
        else:
8717
          iprot.skip(ftype)
8718
      else:
8719
        iprot.skip(ftype)
8720
      iprot.readFieldEnd()
8721
    iprot.readStructEnd()
8722
 
8723
  def write(self, oprot):
8724
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8725
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8726
      return
8727
    oprot.writeStructBegin('addBadInventory_result')
8728
    if self.cex is not None:
8729
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8730
      self.cex.write(oprot)
8731
      oprot.writeFieldEnd()
8732
    oprot.writeFieldStop()
8733
    oprot.writeStructEnd()
8734
 
8735
  def validate(self):
8736
    return
8737
 
8738
 
8739
  def __repr__(self):
8740
    L = ['%s=%r' % (key, value)
8741
      for key, value in self.__dict__.iteritems()]
8742
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8743
 
8744
  def __eq__(self, other):
8745
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8746
 
8747
  def __ne__(self, other):
8748
    return not (self == other)
8749
 
8750
class getShippingLocations_args:
8751
 
8752
  thrift_spec = (
8753
  )
8754
 
8755
  def read(self, iprot):
8756
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8757
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8758
      return
8759
    iprot.readStructBegin()
8760
    while True:
8761
      (fname, ftype, fid) = iprot.readFieldBegin()
8762
      if ftype == TType.STOP:
8763
        break
8764
      else:
8765
        iprot.skip(ftype)
8766
      iprot.readFieldEnd()
8767
    iprot.readStructEnd()
8768
 
8769
  def write(self, oprot):
8770
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8771
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8772
      return
8773
    oprot.writeStructBegin('getShippingLocations_args')
8774
    oprot.writeFieldStop()
8775
    oprot.writeStructEnd()
8776
 
8777
  def validate(self):
8778
    return
8779
 
8780
 
8781
  def __repr__(self):
8782
    L = ['%s=%r' % (key, value)
8783
      for key, value in self.__dict__.iteritems()]
8784
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8785
 
8786
  def __eq__(self, other):
8787
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8788
 
8789
  def __ne__(self, other):
8790
    return not (self == other)
8791
 
8792
class getShippingLocations_result:
8793
  """
8794
  Attributes:
8795
   - success
8796
  """
8797
 
8798
  thrift_spec = (
8799
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
8800
  )
8801
 
8802
  def __init__(self, success=None,):
8803
    self.success = success
8804
 
8805
  def read(self, iprot):
8806
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8807
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8808
      return
8809
    iprot.readStructBegin()
8810
    while True:
8811
      (fname, ftype, fid) = iprot.readFieldBegin()
8812
      if ftype == TType.STOP:
8813
        break
8814
      if fid == 0:
8815
        if ftype == TType.LIST:
8816
          self.success = []
8182 amar.kumar 8817
          (_etype129, _size126) = iprot.readListBegin()
8818
          for _i130 in xrange(_size126):
8819
            _elem131 = Warehouse()
8820
            _elem131.read(iprot)
8821
            self.success.append(_elem131)
5944 mandeep.dh 8822
          iprot.readListEnd()
8823
        else:
8824
          iprot.skip(ftype)
8825
      else:
8826
        iprot.skip(ftype)
8827
      iprot.readFieldEnd()
8828
    iprot.readStructEnd()
8829
 
8830
  def write(self, oprot):
8831
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8832
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8833
      return
8834
    oprot.writeStructBegin('getShippingLocations_result')
8835
    if self.success is not None:
8836
      oprot.writeFieldBegin('success', TType.LIST, 0)
8837
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8838
      for iter132 in self.success:
8839
        iter132.write(oprot)
5944 mandeep.dh 8840
      oprot.writeListEnd()
8841
      oprot.writeFieldEnd()
8842
    oprot.writeFieldStop()
8843
    oprot.writeStructEnd()
8844
 
8845
  def validate(self):
8846
    return
8847
 
8848
 
8849
  def __repr__(self):
8850
    L = ['%s=%r' % (key, value)
8851
      for key, value in self.__dict__.iteritems()]
8852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8853
 
8854
  def __eq__(self, other):
8855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8856
 
8857
  def __ne__(self, other):
8858
    return not (self == other)
8859
 
8860
class getAllVendorItemMappings_args:
8861
 
8862
  thrift_spec = (
8863
  )
8864
 
8865
  def read(self, iprot):
8866
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8867
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8868
      return
8869
    iprot.readStructBegin()
8870
    while True:
8871
      (fname, ftype, fid) = iprot.readFieldBegin()
8872
      if ftype == TType.STOP:
8873
        break
8874
      else:
8875
        iprot.skip(ftype)
8876
      iprot.readFieldEnd()
8877
    iprot.readStructEnd()
8878
 
8879
  def write(self, oprot):
8880
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8881
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8882
      return
8883
    oprot.writeStructBegin('getAllVendorItemMappings_args')
8884
    oprot.writeFieldStop()
8885
    oprot.writeStructEnd()
8886
 
8887
  def validate(self):
8888
    return
8889
 
8890
 
8891
  def __repr__(self):
8892
    L = ['%s=%r' % (key, value)
8893
      for key, value in self.__dict__.iteritems()]
8894
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8895
 
8896
  def __eq__(self, other):
8897
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8898
 
8899
  def __ne__(self, other):
8900
    return not (self == other)
8901
 
8902
class getAllVendorItemMappings_result:
8903
  """
8904
  Attributes:
8905
   - success
8906
  """
8907
 
8908
  thrift_spec = (
8909
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
8910
  )
8911
 
8912
  def __init__(self, success=None,):
8913
    self.success = success
8914
 
8915
  def read(self, iprot):
8916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8918
      return
8919
    iprot.readStructBegin()
8920
    while True:
8921
      (fname, ftype, fid) = iprot.readFieldBegin()
8922
      if ftype == TType.STOP:
8923
        break
8924
      if fid == 0:
8925
        if ftype == TType.LIST:
8926
          self.success = []
8182 amar.kumar 8927
          (_etype136, _size133) = iprot.readListBegin()
8928
          for _i137 in xrange(_size133):
8929
            _elem138 = VendorItemMapping()
8930
            _elem138.read(iprot)
8931
            self.success.append(_elem138)
5944 mandeep.dh 8932
          iprot.readListEnd()
8933
        else:
8934
          iprot.skip(ftype)
8935
      else:
8936
        iprot.skip(ftype)
8937
      iprot.readFieldEnd()
8938
    iprot.readStructEnd()
8939
 
8940
  def write(self, oprot):
8941
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8942
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8943
      return
8944
    oprot.writeStructBegin('getAllVendorItemMappings_result')
8945
    if self.success is not None:
8946
      oprot.writeFieldBegin('success', TType.LIST, 0)
8947
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8948
      for iter139 in self.success:
8949
        iter139.write(oprot)
5944 mandeep.dh 8950
      oprot.writeListEnd()
8951
      oprot.writeFieldEnd()
8952
    oprot.writeFieldStop()
8953
    oprot.writeStructEnd()
8954
 
8955
  def validate(self):
8956
    return
8957
 
8958
 
8959
  def __repr__(self):
8960
    L = ['%s=%r' % (key, value)
8961
      for key, value in self.__dict__.iteritems()]
8962
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8963
 
8964
  def __eq__(self, other):
8965
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8966
 
8967
  def __ne__(self, other):
8968
    return not (self == other)
8969
 
8970
class getInventorySnapshot_args:
8971
  """
8972
  Attributes:
8973
   - warehouseId
8974
  """
8975
 
8976
  thrift_spec = (
8977
    None, # 0
8978
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8979
  )
8980
 
8981
  def __init__(self, warehouseId=None,):
8982
    self.warehouseId = warehouseId
8983
 
8984
  def read(self, iprot):
8985
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8986
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8987
      return
8988
    iprot.readStructBegin()
8989
    while True:
8990
      (fname, ftype, fid) = iprot.readFieldBegin()
8991
      if ftype == TType.STOP:
8992
        break
8993
      if fid == 1:
8994
        if ftype == TType.I64:
8995
          self.warehouseId = iprot.readI64();
8996
        else:
8997
          iprot.skip(ftype)
8998
      else:
8999
        iprot.skip(ftype)
9000
      iprot.readFieldEnd()
9001
    iprot.readStructEnd()
9002
 
9003
  def write(self, oprot):
9004
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9005
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9006
      return
9007
    oprot.writeStructBegin('getInventorySnapshot_args')
9008
    if self.warehouseId is not None:
9009
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9010
      oprot.writeI64(self.warehouseId)
9011
      oprot.writeFieldEnd()
9012
    oprot.writeFieldStop()
9013
    oprot.writeStructEnd()
9014
 
9015
  def validate(self):
9016
    return
9017
 
9018
 
9019
  def __repr__(self):
9020
    L = ['%s=%r' % (key, value)
9021
      for key, value in self.__dict__.iteritems()]
9022
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9023
 
9024
  def __eq__(self, other):
9025
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9026
 
9027
  def __ne__(self, other):
9028
    return not (self == other)
9029
 
9030
class getInventorySnapshot_result:
9031
  """
9032
  Attributes:
9033
   - success
9034
  """
9035
 
9036
  thrift_spec = (
9037
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ItemInventory, ItemInventory.thrift_spec)), None, ), # 0
9038
  )
9039
 
9040
  def __init__(self, success=None,):
9041
    self.success = success
9042
 
9043
  def read(self, iprot):
9044
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9045
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9046
      return
9047
    iprot.readStructBegin()
9048
    while True:
9049
      (fname, ftype, fid) = iprot.readFieldBegin()
9050
      if ftype == TType.STOP:
9051
        break
9052
      if fid == 0:
9053
        if ftype == TType.MAP:
9054
          self.success = {}
8182 amar.kumar 9055
          (_ktype141, _vtype142, _size140 ) = iprot.readMapBegin() 
9056
          for _i144 in xrange(_size140):
9057
            _key145 = iprot.readI64();
9058
            _val146 = ItemInventory()
9059
            _val146.read(iprot)
9060
            self.success[_key145] = _val146
5944 mandeep.dh 9061
          iprot.readMapEnd()
9062
        else:
9063
          iprot.skip(ftype)
9064
      else:
9065
        iprot.skip(ftype)
9066
      iprot.readFieldEnd()
9067
    iprot.readStructEnd()
9068
 
9069
  def write(self, oprot):
9070
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9071
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9072
      return
9073
    oprot.writeStructBegin('getInventorySnapshot_result')
9074
    if self.success is not None:
9075
      oprot.writeFieldBegin('success', TType.MAP, 0)
9076
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
8182 amar.kumar 9077
      for kiter147,viter148 in self.success.items():
9078
        oprot.writeI64(kiter147)
9079
        viter148.write(oprot)
5944 mandeep.dh 9080
      oprot.writeMapEnd()
9081
      oprot.writeFieldEnd()
9082
    oprot.writeFieldStop()
9083
    oprot.writeStructEnd()
9084
 
9085
  def validate(self):
9086
    return
9087
 
9088
 
9089
  def __repr__(self):
9090
    L = ['%s=%r' % (key, value)
9091
      for key, value in self.__dict__.iteritems()]
9092
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9093
 
9094
  def __eq__(self, other):
9095
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9096
 
9097
  def __ne__(self, other):
9098
    return not (self == other)
9099
 
9100
class clearItemAvailabilityCache_args:
9101
 
9102
  thrift_spec = (
9103
  )
9104
 
9105
  def read(self, iprot):
9106
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9107
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9108
      return
9109
    iprot.readStructBegin()
9110
    while True:
9111
      (fname, ftype, fid) = iprot.readFieldBegin()
9112
      if ftype == TType.STOP:
9113
        break
9114
      else:
9115
        iprot.skip(ftype)
9116
      iprot.readFieldEnd()
9117
    iprot.readStructEnd()
9118
 
9119
  def write(self, oprot):
9120
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9121
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9122
      return
9123
    oprot.writeStructBegin('clearItemAvailabilityCache_args')
9124
    oprot.writeFieldStop()
9125
    oprot.writeStructEnd()
9126
 
9127
  def validate(self):
9128
    return
9129
 
9130
 
9131
  def __repr__(self):
9132
    L = ['%s=%r' % (key, value)
9133
      for key, value in self.__dict__.iteritems()]
9134
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9135
 
9136
  def __eq__(self, other):
9137
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9138
 
9139
  def __ne__(self, other):
9140
    return not (self == other)
9141
 
9142
class clearItemAvailabilityCache_result:
9143
 
9144
  thrift_spec = (
9145
  )
9146
 
9147
  def read(self, iprot):
9148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9150
      return
9151
    iprot.readStructBegin()
9152
    while True:
9153
      (fname, ftype, fid) = iprot.readFieldBegin()
9154
      if ftype == TType.STOP:
9155
        break
9156
      else:
9157
        iprot.skip(ftype)
9158
      iprot.readFieldEnd()
9159
    iprot.readStructEnd()
9160
 
9161
  def write(self, oprot):
9162
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9163
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9164
      return
9165
    oprot.writeStructBegin('clearItemAvailabilityCache_result')
9166
    oprot.writeFieldStop()
9167
    oprot.writeStructEnd()
9168
 
9169
  def validate(self):
9170
    return
9171
 
9172
 
9173
  def __repr__(self):
9174
    L = ['%s=%r' % (key, value)
9175
      for key, value in self.__dict__.iteritems()]
9176
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9177
 
9178
  def __eq__(self, other):
9179
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9180
 
9181
  def __ne__(self, other):
9182
    return not (self == other)
9183
 
9184
class updateVendorString_args:
9185
  """
9186
  Attributes:
9187
   - warehouseId
9188
   - vendorString
9189
  """
9190
 
9191
  thrift_spec = (
9192
    None, # 0
9193
    (1, TType.I64, 'warehouseId', None, None, ), # 1
9194
    (2, TType.STRING, 'vendorString', None, None, ), # 2
9195
  )
9196
 
9197
  def __init__(self, warehouseId=None, vendorString=None,):
9198
    self.warehouseId = warehouseId
9199
    self.vendorString = vendorString
9200
 
9201
  def read(self, iprot):
9202
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9203
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9204
      return
9205
    iprot.readStructBegin()
9206
    while True:
9207
      (fname, ftype, fid) = iprot.readFieldBegin()
9208
      if ftype == TType.STOP:
9209
        break
9210
      if fid == 1:
9211
        if ftype == TType.I64:
9212
          self.warehouseId = iprot.readI64();
9213
        else:
9214
          iprot.skip(ftype)
9215
      elif fid == 2:
9216
        if ftype == TType.STRING:
9217
          self.vendorString = iprot.readString();
9218
        else:
9219
          iprot.skip(ftype)
9220
      else:
9221
        iprot.skip(ftype)
9222
      iprot.readFieldEnd()
9223
    iprot.readStructEnd()
9224
 
9225
  def write(self, oprot):
9226
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9227
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9228
      return
9229
    oprot.writeStructBegin('updateVendorString_args')
9230
    if self.warehouseId is not None:
9231
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9232
      oprot.writeI64(self.warehouseId)
9233
      oprot.writeFieldEnd()
9234
    if self.vendorString is not None:
9235
      oprot.writeFieldBegin('vendorString', TType.STRING, 2)
9236
      oprot.writeString(self.vendorString)
9237
      oprot.writeFieldEnd()
9238
    oprot.writeFieldStop()
9239
    oprot.writeStructEnd()
9240
 
9241
  def validate(self):
9242
    return
9243
 
9244
 
9245
  def __repr__(self):
9246
    L = ['%s=%r' % (key, value)
9247
      for key, value in self.__dict__.iteritems()]
9248
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9249
 
9250
  def __eq__(self, other):
9251
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9252
 
9253
  def __ne__(self, other):
9254
    return not (self == other)
9255
 
9256
class updateVendorString_result:
9257
 
9258
  thrift_spec = (
9259
  )
9260
 
9261
  def read(self, iprot):
9262
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9263
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9264
      return
9265
    iprot.readStructBegin()
9266
    while True:
9267
      (fname, ftype, fid) = iprot.readFieldBegin()
9268
      if ftype == TType.STOP:
9269
        break
9270
      else:
9271
        iprot.skip(ftype)
9272
      iprot.readFieldEnd()
9273
    iprot.readStructEnd()
9274
 
9275
  def write(self, oprot):
9276
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9277
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9278
      return
9279
    oprot.writeStructBegin('updateVendorString_result')
9280
    oprot.writeFieldStop()
9281
    oprot.writeStructEnd()
9282
 
9283
  def validate(self):
9284
    return
9285
 
9286
 
9287
  def __repr__(self):
9288
    L = ['%s=%r' % (key, value)
9289
      for key, value in self.__dict__.iteritems()]
9290
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9291
 
9292
  def __eq__(self, other):
9293
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9294
 
9295
  def __ne__(self, other):
9296
    return not (self == other)
6096 amit.gupta 9297
 
9298
class clearItemAvailabilityCacheForItem_args:
9299
  """
9300
  Attributes:
9301
   - item_id
9302
  """
9303
 
9304
  thrift_spec = (
9305
    None, # 0
9306
    (1, TType.I64, 'item_id', None, None, ), # 1
9307
  )
9308
 
9309
  def __init__(self, item_id=None,):
9310
    self.item_id = item_id
9311
 
9312
  def read(self, iprot):
9313
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9314
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9315
      return
9316
    iprot.readStructBegin()
9317
    while True:
9318
      (fname, ftype, fid) = iprot.readFieldBegin()
9319
      if ftype == TType.STOP:
9320
        break
9321
      if fid == 1:
9322
        if ftype == TType.I64:
9323
          self.item_id = iprot.readI64();
9324
        else:
9325
          iprot.skip(ftype)
9326
      else:
9327
        iprot.skip(ftype)
9328
      iprot.readFieldEnd()
9329
    iprot.readStructEnd()
9330
 
9331
  def write(self, oprot):
9332
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9333
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9334
      return
9335
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_args')
9336
    if self.item_id is not None:
9337
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9338
      oprot.writeI64(self.item_id)
9339
      oprot.writeFieldEnd()
9340
    oprot.writeFieldStop()
9341
    oprot.writeStructEnd()
9342
 
9343
  def validate(self):
9344
    return
9345
 
9346
 
9347
  def __repr__(self):
9348
    L = ['%s=%r' % (key, value)
9349
      for key, value in self.__dict__.iteritems()]
9350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9351
 
9352
  def __eq__(self, other):
9353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9354
 
9355
  def __ne__(self, other):
9356
    return not (self == other)
9357
 
9358
class clearItemAvailabilityCacheForItem_result:
9359
 
9360
  thrift_spec = (
9361
  )
9362
 
9363
  def read(self, iprot):
9364
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9365
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9366
      return
9367
    iprot.readStructBegin()
9368
    while True:
9369
      (fname, ftype, fid) = iprot.readFieldBegin()
9370
      if ftype == TType.STOP:
9371
        break
9372
      else:
9373
        iprot.skip(ftype)
9374
      iprot.readFieldEnd()
9375
    iprot.readStructEnd()
9376
 
9377
  def write(self, oprot):
9378
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9379
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9380
      return
9381
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_result')
9382
    oprot.writeFieldStop()
9383
    oprot.writeStructEnd()
9384
 
9385
  def validate(self):
9386
    return
9387
 
9388
 
9389
  def __repr__(self):
9390
    L = ['%s=%r' % (key, value)
9391
      for key, value in self.__dict__.iteritems()]
9392
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9393
 
9394
  def __eq__(self, other):
9395
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9396
 
9397
  def __ne__(self, other):
9398
    return not (self == other)
6467 amar.kumar 9399
 
9400
class getOurWarehouseIdForVendor_args:
9401
  """
9402
  Attributes:
9403
   - vendorId
7718 amar.kumar 9404
   - billingWarehouseId
6467 amar.kumar 9405
  """
9406
 
9407
  thrift_spec = (
9408
    None, # 0
9409
    (1, TType.I64, 'vendorId', None, None, ), # 1
7718 amar.kumar 9410
    (2, TType.I64, 'billingWarehouseId', None, None, ), # 2
6467 amar.kumar 9411
  )
9412
 
7718 amar.kumar 9413
  def __init__(self, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 9414
    self.vendorId = vendorId
7718 amar.kumar 9415
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 9416
 
9417
  def read(self, iprot):
9418
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9419
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9420
      return
9421
    iprot.readStructBegin()
9422
    while True:
9423
      (fname, ftype, fid) = iprot.readFieldBegin()
9424
      if ftype == TType.STOP:
9425
        break
9426
      if fid == 1:
9427
        if ftype == TType.I64:
9428
          self.vendorId = iprot.readI64();
9429
        else:
9430
          iprot.skip(ftype)
7718 amar.kumar 9431
      elif fid == 2:
9432
        if ftype == TType.I64:
9433
          self.billingWarehouseId = iprot.readI64();
9434
        else:
9435
          iprot.skip(ftype)
6467 amar.kumar 9436
      else:
9437
        iprot.skip(ftype)
9438
      iprot.readFieldEnd()
9439
    iprot.readStructEnd()
9440
 
9441
  def write(self, oprot):
9442
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9443
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9444
      return
9445
    oprot.writeStructBegin('getOurWarehouseIdForVendor_args')
9446
    if self.vendorId is not None:
9447
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
9448
      oprot.writeI64(self.vendorId)
9449
      oprot.writeFieldEnd()
7718 amar.kumar 9450
    if self.billingWarehouseId is not None:
9451
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 2)
9452
      oprot.writeI64(self.billingWarehouseId)
9453
      oprot.writeFieldEnd()
6467 amar.kumar 9454
    oprot.writeFieldStop()
9455
    oprot.writeStructEnd()
9456
 
9457
  def validate(self):
9458
    return
9459
 
9460
 
9461
  def __repr__(self):
9462
    L = ['%s=%r' % (key, value)
9463
      for key, value in self.__dict__.iteritems()]
9464
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9465
 
9466
  def __eq__(self, other):
9467
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9468
 
9469
  def __ne__(self, other):
9470
    return not (self == other)
9471
 
9472
class getOurWarehouseIdForVendor_result:
9473
  """
9474
  Attributes:
9475
   - success
9476
  """
9477
 
9478
  thrift_spec = (
9479
    (0, TType.I64, 'success', None, None, ), # 0
9480
  )
9481
 
9482
  def __init__(self, success=None,):
9483
    self.success = success
9484
 
9485
  def read(self, iprot):
9486
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9487
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9488
      return
9489
    iprot.readStructBegin()
9490
    while True:
9491
      (fname, ftype, fid) = iprot.readFieldBegin()
9492
      if ftype == TType.STOP:
9493
        break
9494
      if fid == 0:
9495
        if ftype == TType.I64:
9496
          self.success = iprot.readI64();
9497
        else:
9498
          iprot.skip(ftype)
9499
      else:
9500
        iprot.skip(ftype)
9501
      iprot.readFieldEnd()
9502
    iprot.readStructEnd()
9503
 
9504
  def write(self, oprot):
9505
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9506
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9507
      return
9508
    oprot.writeStructBegin('getOurWarehouseIdForVendor_result')
9509
    if self.success is not None:
9510
      oprot.writeFieldBegin('success', TType.I64, 0)
9511
      oprot.writeI64(self.success)
9512
      oprot.writeFieldEnd()
9513
    oprot.writeFieldStop()
9514
    oprot.writeStructEnd()
9515
 
9516
  def validate(self):
9517
    return
9518
 
9519
 
9520
  def __repr__(self):
9521
    L = ['%s=%r' % (key, value)
9522
      for key, value in self.__dict__.iteritems()]
9523
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9524
 
9525
  def __eq__(self, other):
9526
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9527
 
9528
  def __ne__(self, other):
9529
    return not (self == other)
6484 amar.kumar 9530
 
9531
class getItemAvailabilitiesAtOurWarehouses_args:
9532
  """
9533
  Attributes:
9534
   - item_ids
9535
  """
9536
 
9537
  thrift_spec = (
9538
    None, # 0
9539
    (1, TType.LIST, 'item_ids', (TType.I64,None), None, ), # 1
9540
  )
9541
 
9542
  def __init__(self, item_ids=None,):
9543
    self.item_ids = item_ids
9544
 
9545
  def read(self, iprot):
9546
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9547
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9548
      return
9549
    iprot.readStructBegin()
9550
    while True:
9551
      (fname, ftype, fid) = iprot.readFieldBegin()
9552
      if ftype == TType.STOP:
9553
        break
9554
      if fid == 1:
9555
        if ftype == TType.LIST:
9556
          self.item_ids = []
8182 amar.kumar 9557
          (_etype152, _size149) = iprot.readListBegin()
9558
          for _i153 in xrange(_size149):
9559
            _elem154 = iprot.readI64();
9560
            self.item_ids.append(_elem154)
6484 amar.kumar 9561
          iprot.readListEnd()
9562
        else:
9563
          iprot.skip(ftype)
9564
      else:
9565
        iprot.skip(ftype)
9566
      iprot.readFieldEnd()
9567
    iprot.readStructEnd()
9568
 
9569
  def write(self, oprot):
9570
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9571
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9572
      return
9573
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_args')
9574
    if self.item_ids is not None:
9575
      oprot.writeFieldBegin('item_ids', TType.LIST, 1)
9576
      oprot.writeListBegin(TType.I64, len(self.item_ids))
8182 amar.kumar 9577
      for iter155 in self.item_ids:
9578
        oprot.writeI64(iter155)
6484 amar.kumar 9579
      oprot.writeListEnd()
9580
      oprot.writeFieldEnd()
9581
    oprot.writeFieldStop()
9582
    oprot.writeStructEnd()
9583
 
9584
  def validate(self):
9585
    return
9586
 
9587
 
9588
  def __repr__(self):
9589
    L = ['%s=%r' % (key, value)
9590
      for key, value in self.__dict__.iteritems()]
9591
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9592
 
9593
  def __eq__(self, other):
9594
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9595
 
9596
  def __ne__(self, other):
9597
    return not (self == other)
9598
 
9599
class getItemAvailabilitiesAtOurWarehouses_result:
9600
  """
9601
  Attributes:
9602
   - success
9603
  """
9604
 
9605
  thrift_spec = (
9606
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
9607
  )
9608
 
9609
  def __init__(self, success=None,):
9610
    self.success = success
9611
 
9612
  def read(self, iprot):
9613
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9614
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9615
      return
9616
    iprot.readStructBegin()
9617
    while True:
9618
      (fname, ftype, fid) = iprot.readFieldBegin()
9619
      if ftype == TType.STOP:
9620
        break
9621
      if fid == 0:
9622
        if ftype == TType.MAP:
9623
          self.success = {}
8182 amar.kumar 9624
          (_ktype157, _vtype158, _size156 ) = iprot.readMapBegin() 
9625
          for _i160 in xrange(_size156):
9626
            _key161 = iprot.readI64();
9627
            _val162 = iprot.readI64();
9628
            self.success[_key161] = _val162
6484 amar.kumar 9629
          iprot.readMapEnd()
9630
        else:
9631
          iprot.skip(ftype)
9632
      else:
9633
        iprot.skip(ftype)
9634
      iprot.readFieldEnd()
9635
    iprot.readStructEnd()
9636
 
9637
  def write(self, oprot):
9638
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9639
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9640
      return
9641
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_result')
9642
    if self.success is not None:
9643
      oprot.writeFieldBegin('success', TType.MAP, 0)
9644
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
8182 amar.kumar 9645
      for kiter163,viter164 in self.success.items():
9646
        oprot.writeI64(kiter163)
9647
        oprot.writeI64(viter164)
6484 amar.kumar 9648
      oprot.writeMapEnd()
9649
      oprot.writeFieldEnd()
9650
    oprot.writeFieldStop()
9651
    oprot.writeStructEnd()
9652
 
9653
  def validate(self):
9654
    return
9655
 
9656
 
9657
  def __repr__(self):
9658
    L = ['%s=%r' % (key, value)
9659
      for key, value in self.__dict__.iteritems()]
9660
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9661
 
9662
  def __eq__(self, other):
9663
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9664
 
9665
  def __ne__(self, other):
9666
    return not (self == other)
6531 vikram.rag 9667
 
9668
class getMonitoredWarehouseForVendors_args:
9669
  """
9670
  Attributes:
9671
   - vendorIds
9672
  """
9673
 
9674
  thrift_spec = (
9675
    None, # 0
9676
    (1, TType.LIST, 'vendorIds', (TType.I64,None), None, ), # 1
9677
  )
9678
 
9679
  def __init__(self, vendorIds=None,):
9680
    self.vendorIds = vendorIds
9681
 
9682
  def read(self, iprot):
9683
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9684
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9685
      return
9686
    iprot.readStructBegin()
9687
    while True:
9688
      (fname, ftype, fid) = iprot.readFieldBegin()
9689
      if ftype == TType.STOP:
9690
        break
9691
      if fid == 1:
9692
        if ftype == TType.LIST:
9693
          self.vendorIds = []
8182 amar.kumar 9694
          (_etype168, _size165) = iprot.readListBegin()
9695
          for _i169 in xrange(_size165):
9696
            _elem170 = iprot.readI64();
9697
            self.vendorIds.append(_elem170)
6531 vikram.rag 9698
          iprot.readListEnd()
9699
        else:
9700
          iprot.skip(ftype)
9701
      else:
9702
        iprot.skip(ftype)
9703
      iprot.readFieldEnd()
9704
    iprot.readStructEnd()
9705
 
9706
  def write(self, oprot):
9707
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9708
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9709
      return
9710
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_args')
9711
    if self.vendorIds is not None:
9712
      oprot.writeFieldBegin('vendorIds', TType.LIST, 1)
9713
      oprot.writeListBegin(TType.I64, len(self.vendorIds))
8182 amar.kumar 9714
      for iter171 in self.vendorIds:
9715
        oprot.writeI64(iter171)
6531 vikram.rag 9716
      oprot.writeListEnd()
9717
      oprot.writeFieldEnd()
9718
    oprot.writeFieldStop()
9719
    oprot.writeStructEnd()
9720
 
9721
  def validate(self):
9722
    return
9723
 
9724
 
9725
  def __repr__(self):
9726
    L = ['%s=%r' % (key, value)
9727
      for key, value in self.__dict__.iteritems()]
9728
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9729
 
9730
  def __eq__(self, other):
9731
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9732
 
9733
  def __ne__(self, other):
9734
    return not (self == other)
9735
 
9736
class getMonitoredWarehouseForVendors_result:
9737
  """
9738
  Attributes:
9739
   - success
9740
  """
9741
 
9742
  thrift_spec = (
9743
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9744
  )
9745
 
9746
  def __init__(self, success=None,):
9747
    self.success = success
9748
 
9749
  def read(self, iprot):
9750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9752
      return
9753
    iprot.readStructBegin()
9754
    while True:
9755
      (fname, ftype, fid) = iprot.readFieldBegin()
9756
      if ftype == TType.STOP:
9757
        break
9758
      if fid == 0:
9759
        if ftype == TType.LIST:
9760
          self.success = []
8182 amar.kumar 9761
          (_etype175, _size172) = iprot.readListBegin()
9762
          for _i176 in xrange(_size172):
9763
            _elem177 = iprot.readI64();
9764
            self.success.append(_elem177)
6531 vikram.rag 9765
          iprot.readListEnd()
9766
        else:
9767
          iprot.skip(ftype)
9768
      else:
9769
        iprot.skip(ftype)
9770
      iprot.readFieldEnd()
9771
    iprot.readStructEnd()
9772
 
9773
  def write(self, oprot):
9774
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9775
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9776
      return
9777
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_result')
9778
    if self.success is not None:
9779
      oprot.writeFieldBegin('success', TType.LIST, 0)
9780
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 9781
      for iter178 in self.success:
9782
        oprot.writeI64(iter178)
6531 vikram.rag 9783
      oprot.writeListEnd()
9784
      oprot.writeFieldEnd()
9785
    oprot.writeFieldStop()
9786
    oprot.writeStructEnd()
9787
 
9788
  def validate(self):
9789
    return
9790
 
9791
 
9792
  def __repr__(self):
9793
    L = ['%s=%r' % (key, value)
9794
      for key, value in self.__dict__.iteritems()]
9795
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9796
 
9797
  def __eq__(self, other):
9798
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9799
 
9800
  def __ne__(self, other):
9801
    return not (self == other)
9802
 
9803
class getIgnoredWarehouseidsAndItemids_args:
9804
 
9805
  thrift_spec = (
9806
  )
9807
 
9808
  def read(self, iprot):
9809
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9810
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9811
      return
9812
    iprot.readStructBegin()
9813
    while True:
9814
      (fname, ftype, fid) = iprot.readFieldBegin()
9815
      if ftype == TType.STOP:
9816
        break
9817
      else:
9818
        iprot.skip(ftype)
9819
      iprot.readFieldEnd()
9820
    iprot.readStructEnd()
9821
 
9822
  def write(self, oprot):
9823
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9824
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9825
      return
9826
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_args')
9827
    oprot.writeFieldStop()
9828
    oprot.writeStructEnd()
9829
 
9830
  def validate(self):
9831
    return
9832
 
9833
 
9834
  def __repr__(self):
9835
    L = ['%s=%r' % (key, value)
9836
      for key, value in self.__dict__.iteritems()]
9837
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9838
 
9839
  def __eq__(self, other):
9840
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9841
 
9842
  def __ne__(self, other):
9843
    return not (self == other)
9844
 
9845
class getIgnoredWarehouseidsAndItemids_result:
9846
  """
9847
  Attributes:
9848
   - success
9849
  """
9850
 
9851
  thrift_spec = (
9852
    (0, TType.LIST, 'success', (TType.STRUCT,(IgnoredInventoryUpdateItems, IgnoredInventoryUpdateItems.thrift_spec)), None, ), # 0
9853
  )
9854
 
9855
  def __init__(self, success=None,):
9856
    self.success = success
9857
 
9858
  def read(self, iprot):
9859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9861
      return
9862
    iprot.readStructBegin()
9863
    while True:
9864
      (fname, ftype, fid) = iprot.readFieldBegin()
9865
      if ftype == TType.STOP:
9866
        break
9867
      if fid == 0:
9868
        if ftype == TType.LIST:
9869
          self.success = []
8182 amar.kumar 9870
          (_etype182, _size179) = iprot.readListBegin()
9871
          for _i183 in xrange(_size179):
9872
            _elem184 = IgnoredInventoryUpdateItems()
9873
            _elem184.read(iprot)
9874
            self.success.append(_elem184)
6531 vikram.rag 9875
          iprot.readListEnd()
9876
        else:
9877
          iprot.skip(ftype)
9878
      else:
9879
        iprot.skip(ftype)
9880
      iprot.readFieldEnd()
9881
    iprot.readStructEnd()
9882
 
9883
  def write(self, oprot):
9884
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9885
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9886
      return
9887
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_result')
9888
    if self.success is not None:
9889
      oprot.writeFieldBegin('success', TType.LIST, 0)
9890
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 9891
      for iter185 in self.success:
9892
        iter185.write(oprot)
6531 vikram.rag 9893
      oprot.writeListEnd()
9894
      oprot.writeFieldEnd()
9895
    oprot.writeFieldStop()
9896
    oprot.writeStructEnd()
9897
 
9898
  def validate(self):
9899
    return
9900
 
9901
 
9902
  def __repr__(self):
9903
    L = ['%s=%r' % (key, value)
9904
      for key, value in self.__dict__.iteritems()]
9905
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9906
 
9907
  def __eq__(self, other):
9908
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9909
 
9910
  def __ne__(self, other):
9911
    return not (self == other)
9912
 
9913
class insertItemtoIgnoreInventoryUpdatelist_args:
9914
  """
9915
  Attributes:
9916
   - item_id
9917
   - warehouse_id
9918
  """
9919
 
9920
  thrift_spec = (
9921
    None, # 0
9922
    (1, TType.I64, 'item_id', None, None, ), # 1
9923
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
9924
  )
9925
 
9926
  def __init__(self, item_id=None, warehouse_id=None,):
9927
    self.item_id = item_id
9928
    self.warehouse_id = warehouse_id
9929
 
9930
  def read(self, iprot):
9931
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9932
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9933
      return
9934
    iprot.readStructBegin()
9935
    while True:
9936
      (fname, ftype, fid) = iprot.readFieldBegin()
9937
      if ftype == TType.STOP:
9938
        break
9939
      if fid == 1:
9940
        if ftype == TType.I64:
9941
          self.item_id = iprot.readI64();
9942
        else:
9943
          iprot.skip(ftype)
9944
      elif fid == 2:
9945
        if ftype == TType.I64:
9946
          self.warehouse_id = iprot.readI64();
9947
        else:
9948
          iprot.skip(ftype)
9949
      else:
9950
        iprot.skip(ftype)
9951
      iprot.readFieldEnd()
9952
    iprot.readStructEnd()
9953
 
9954
  def write(self, oprot):
9955
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9956
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9957
      return
9958
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_args')
9959
    if self.item_id is not None:
9960
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9961
      oprot.writeI64(self.item_id)
9962
      oprot.writeFieldEnd()
9963
    if self.warehouse_id is not None:
9964
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
9965
      oprot.writeI64(self.warehouse_id)
9966
      oprot.writeFieldEnd()
9967
    oprot.writeFieldStop()
9968
    oprot.writeStructEnd()
9969
 
9970
  def validate(self):
9971
    return
9972
 
9973
 
9974
  def __repr__(self):
9975
    L = ['%s=%r' % (key, value)
9976
      for key, value in self.__dict__.iteritems()]
9977
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9978
 
9979
  def __eq__(self, other):
9980
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9981
 
9982
  def __ne__(self, other):
9983
    return not (self == other)
9984
 
9985
class insertItemtoIgnoreInventoryUpdatelist_result:
9986
  """
9987
  Attributes:
9988
   - success
9989
  """
9990
 
9991
  thrift_spec = (
9992
    (0, TType.BOOL, 'success', None, None, ), # 0
9993
  )
9994
 
9995
  def __init__(self, success=None,):
9996
    self.success = success
9997
 
9998
  def read(self, iprot):
9999
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10000
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10001
      return
10002
    iprot.readStructBegin()
10003
    while True:
10004
      (fname, ftype, fid) = iprot.readFieldBegin()
10005
      if ftype == TType.STOP:
10006
        break
10007
      if fid == 0:
10008
        if ftype == TType.BOOL:
10009
          self.success = iprot.readBool();
10010
        else:
10011
          iprot.skip(ftype)
10012
      else:
10013
        iprot.skip(ftype)
10014
      iprot.readFieldEnd()
10015
    iprot.readStructEnd()
10016
 
10017
  def write(self, oprot):
10018
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10019
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10020
      return
10021
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_result')
10022
    if self.success is not None:
10023
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10024
      oprot.writeBool(self.success)
10025
      oprot.writeFieldEnd()
10026
    oprot.writeFieldStop()
10027
    oprot.writeStructEnd()
10028
 
10029
  def validate(self):
10030
    return
10031
 
10032
 
10033
  def __repr__(self):
10034
    L = ['%s=%r' % (key, value)
10035
      for key, value in self.__dict__.iteritems()]
10036
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10037
 
10038
  def __eq__(self, other):
10039
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10040
 
10041
  def __ne__(self, other):
10042
    return not (self == other)
10043
 
10044
class deleteItemFromIgnoredInventoryUpdateList_args:
10045
  """
10046
  Attributes:
10047
   - item_id
10048
   - warehouse_id
10049
  """
10050
 
10051
  thrift_spec = (
10052
    None, # 0
10053
    (1, TType.I64, 'item_id', None, None, ), # 1
10054
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
10055
  )
10056
 
10057
  def __init__(self, item_id=None, warehouse_id=None,):
10058
    self.item_id = item_id
10059
    self.warehouse_id = warehouse_id
10060
 
10061
  def read(self, iprot):
10062
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10063
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10064
      return
10065
    iprot.readStructBegin()
10066
    while True:
10067
      (fname, ftype, fid) = iprot.readFieldBegin()
10068
      if ftype == TType.STOP:
10069
        break
10070
      if fid == 1:
10071
        if ftype == TType.I64:
10072
          self.item_id = iprot.readI64();
10073
        else:
10074
          iprot.skip(ftype)
10075
      elif fid == 2:
10076
        if ftype == TType.I64:
10077
          self.warehouse_id = iprot.readI64();
10078
        else:
10079
          iprot.skip(ftype)
10080
      else:
10081
        iprot.skip(ftype)
10082
      iprot.readFieldEnd()
10083
    iprot.readStructEnd()
10084
 
10085
  def write(self, oprot):
10086
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10087
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10088
      return
10089
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_args')
10090
    if self.item_id is not None:
10091
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10092
      oprot.writeI64(self.item_id)
10093
      oprot.writeFieldEnd()
10094
    if self.warehouse_id is not None:
10095
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
10096
      oprot.writeI64(self.warehouse_id)
10097
      oprot.writeFieldEnd()
10098
    oprot.writeFieldStop()
10099
    oprot.writeStructEnd()
10100
 
10101
  def validate(self):
10102
    return
10103
 
10104
 
10105
  def __repr__(self):
10106
    L = ['%s=%r' % (key, value)
10107
      for key, value in self.__dict__.iteritems()]
10108
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10109
 
10110
  def __eq__(self, other):
10111
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10112
 
10113
  def __ne__(self, other):
10114
    return not (self == other)
10115
 
10116
class deleteItemFromIgnoredInventoryUpdateList_result:
10117
  """
10118
  Attributes:
10119
   - success
10120
  """
10121
 
10122
  thrift_spec = (
10123
    (0, TType.BOOL, 'success', None, None, ), # 0
10124
  )
10125
 
10126
  def __init__(self, success=None,):
10127
    self.success = success
10128
 
10129
  def read(self, iprot):
10130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10132
      return
10133
    iprot.readStructBegin()
10134
    while True:
10135
      (fname, ftype, fid) = iprot.readFieldBegin()
10136
      if ftype == TType.STOP:
10137
        break
10138
      if fid == 0:
10139
        if ftype == TType.BOOL:
10140
          self.success = iprot.readBool();
10141
        else:
10142
          iprot.skip(ftype)
10143
      else:
10144
        iprot.skip(ftype)
10145
      iprot.readFieldEnd()
10146
    iprot.readStructEnd()
10147
 
10148
  def write(self, oprot):
10149
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10150
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10151
      return
10152
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_result')
10153
    if self.success is not None:
10154
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10155
      oprot.writeBool(self.success)
10156
      oprot.writeFieldEnd()
10157
    oprot.writeFieldStop()
10158
    oprot.writeStructEnd()
10159
 
10160
  def validate(self):
10161
    return
10162
 
10163
 
10164
  def __repr__(self):
10165
    L = ['%s=%r' % (key, value)
10166
      for key, value in self.__dict__.iteritems()]
10167
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10168
 
10169
  def __eq__(self, other):
10170
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10171
 
10172
  def __ne__(self, other):
10173
    return not (self == other)
10174
 
10175
class getAllIgnoredInventoryupdateItemsCount_args:
10176
 
10177
  thrift_spec = (
10178
  )
10179
 
10180
  def read(self, iprot):
10181
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10182
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10183
      return
10184
    iprot.readStructBegin()
10185
    while True:
10186
      (fname, ftype, fid) = iprot.readFieldBegin()
10187
      if ftype == TType.STOP:
10188
        break
10189
      else:
10190
        iprot.skip(ftype)
10191
      iprot.readFieldEnd()
10192
    iprot.readStructEnd()
10193
 
10194
  def write(self, oprot):
10195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10197
      return
10198
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_args')
10199
    oprot.writeFieldStop()
10200
    oprot.writeStructEnd()
10201
 
10202
  def validate(self):
10203
    return
10204
 
10205
 
10206
  def __repr__(self):
10207
    L = ['%s=%r' % (key, value)
10208
      for key, value in self.__dict__.iteritems()]
10209
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10210
 
10211
  def __eq__(self, other):
10212
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10213
 
10214
  def __ne__(self, other):
10215
    return not (self == other)
10216
 
10217
class getAllIgnoredInventoryupdateItemsCount_result:
10218
  """
10219
  Attributes:
10220
   - success
10221
  """
10222
 
10223
  thrift_spec = (
10224
    (0, TType.I32, 'success', None, None, ), # 0
10225
  )
10226
 
10227
  def __init__(self, success=None,):
10228
    self.success = success
10229
 
10230
  def read(self, iprot):
10231
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10232
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10233
      return
10234
    iprot.readStructBegin()
10235
    while True:
10236
      (fname, ftype, fid) = iprot.readFieldBegin()
10237
      if ftype == TType.STOP:
10238
        break
10239
      if fid == 0:
10240
        if ftype == TType.I32:
10241
          self.success = iprot.readI32();
10242
        else:
10243
          iprot.skip(ftype)
10244
      else:
10245
        iprot.skip(ftype)
10246
      iprot.readFieldEnd()
10247
    iprot.readStructEnd()
10248
 
10249
  def write(self, oprot):
10250
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10251
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10252
      return
10253
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_result')
10254
    if self.success is not None:
10255
      oprot.writeFieldBegin('success', TType.I32, 0)
10256
      oprot.writeI32(self.success)
10257
      oprot.writeFieldEnd()
10258
    oprot.writeFieldStop()
10259
    oprot.writeStructEnd()
10260
 
10261
  def validate(self):
10262
    return
10263
 
10264
 
10265
  def __repr__(self):
10266
    L = ['%s=%r' % (key, value)
10267
      for key, value in self.__dict__.iteritems()]
10268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10269
 
10270
  def __eq__(self, other):
10271
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10272
 
10273
  def __ne__(self, other):
10274
    return not (self == other)
10275
 
10276
class getIgnoredInventoryUpdateItemids_args:
10277
  """
10278
  Attributes:
10279
   - offset
10280
   - limit
10281
  """
10282
 
10283
  thrift_spec = (
10284
    None, # 0
10285
    (1, TType.I32, 'offset', None, None, ), # 1
10286
    (2, TType.I32, 'limit', None, None, ), # 2
10287
  )
10288
 
10289
  def __init__(self, offset=None, limit=None,):
10290
    self.offset = offset
10291
    self.limit = limit
10292
 
10293
  def read(self, iprot):
10294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10296
      return
10297
    iprot.readStructBegin()
10298
    while True:
10299
      (fname, ftype, fid) = iprot.readFieldBegin()
10300
      if ftype == TType.STOP:
10301
        break
10302
      if fid == 1:
10303
        if ftype == TType.I32:
10304
          self.offset = iprot.readI32();
10305
        else:
10306
          iprot.skip(ftype)
10307
      elif fid == 2:
10308
        if ftype == TType.I32:
10309
          self.limit = iprot.readI32();
10310
        else:
10311
          iprot.skip(ftype)
10312
      else:
10313
        iprot.skip(ftype)
10314
      iprot.readFieldEnd()
10315
    iprot.readStructEnd()
10316
 
10317
  def write(self, oprot):
10318
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10319
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10320
      return
10321
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_args')
10322
    if self.offset is not None:
10323
      oprot.writeFieldBegin('offset', TType.I32, 1)
10324
      oprot.writeI32(self.offset)
10325
      oprot.writeFieldEnd()
10326
    if self.limit is not None:
10327
      oprot.writeFieldBegin('limit', TType.I32, 2)
10328
      oprot.writeI32(self.limit)
10329
      oprot.writeFieldEnd()
10330
    oprot.writeFieldStop()
10331
    oprot.writeStructEnd()
10332
 
10333
  def validate(self):
10334
    return
10335
 
10336
 
10337
  def __repr__(self):
10338
    L = ['%s=%r' % (key, value)
10339
      for key, value in self.__dict__.iteritems()]
10340
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10341
 
10342
  def __eq__(self, other):
10343
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10344
 
10345
  def __ne__(self, other):
10346
    return not (self == other)
10347
 
10348
class getIgnoredInventoryUpdateItemids_result:
10349
  """
10350
  Attributes:
10351
   - success
10352
  """
10353
 
10354
  thrift_spec = (
10355
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10356
  )
10357
 
10358
  def __init__(self, success=None,):
10359
    self.success = success
10360
 
10361
  def read(self, iprot):
10362
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10363
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10364
      return
10365
    iprot.readStructBegin()
10366
    while True:
10367
      (fname, ftype, fid) = iprot.readFieldBegin()
10368
      if ftype == TType.STOP:
10369
        break
10370
      if fid == 0:
10371
        if ftype == TType.LIST:
10372
          self.success = []
8182 amar.kumar 10373
          (_etype189, _size186) = iprot.readListBegin()
10374
          for _i190 in xrange(_size186):
10375
            _elem191 = iprot.readI64();
10376
            self.success.append(_elem191)
6531 vikram.rag 10377
          iprot.readListEnd()
10378
        else:
10379
          iprot.skip(ftype)
10380
      else:
10381
        iprot.skip(ftype)
10382
      iprot.readFieldEnd()
10383
    iprot.readStructEnd()
10384
 
10385
  def write(self, oprot):
10386
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10387
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10388
      return
10389
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_result')
10390
    if self.success is not None:
10391
      oprot.writeFieldBegin('success', TType.LIST, 0)
10392
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 10393
      for iter192 in self.success:
10394
        oprot.writeI64(iter192)
6531 vikram.rag 10395
      oprot.writeListEnd()
10396
      oprot.writeFieldEnd()
10397
    oprot.writeFieldStop()
10398
    oprot.writeStructEnd()
10399
 
10400
  def validate(self):
10401
    return
10402
 
10403
 
10404
  def __repr__(self):
10405
    L = ['%s=%r' % (key, value)
10406
      for key, value in self.__dict__.iteritems()]
10407
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10408
 
10409
  def __eq__(self, other):
10410
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10411
 
10412
  def __ne__(self, other):
10413
    return not (self == other)
6821 amar.kumar 10414
 
10415
class updateItemStockPurchaseParams_args:
10416
  """
10417
  Attributes:
10418
   - item_id
10419
   - numOfDaysStock
10420
   - minStockLevel
10421
  """
10422
 
10423
  thrift_spec = (
10424
    None, # 0
10425
    (1, TType.I64, 'item_id', None, None, ), # 1
10426
    (2, TType.I32, 'numOfDaysStock', None, None, ), # 2
10427
    (3, TType.I64, 'minStockLevel', None, None, ), # 3
10428
  )
10429
 
10430
  def __init__(self, item_id=None, numOfDaysStock=None, minStockLevel=None,):
10431
    self.item_id = item_id
10432
    self.numOfDaysStock = numOfDaysStock
10433
    self.minStockLevel = minStockLevel
10434
 
10435
  def read(self, iprot):
10436
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10437
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10438
      return
10439
    iprot.readStructBegin()
10440
    while True:
10441
      (fname, ftype, fid) = iprot.readFieldBegin()
10442
      if ftype == TType.STOP:
10443
        break
10444
      if fid == 1:
10445
        if ftype == TType.I64:
10446
          self.item_id = iprot.readI64();
10447
        else:
10448
          iprot.skip(ftype)
10449
      elif fid == 2:
10450
        if ftype == TType.I32:
10451
          self.numOfDaysStock = iprot.readI32();
10452
        else:
10453
          iprot.skip(ftype)
10454
      elif fid == 3:
10455
        if ftype == TType.I64:
10456
          self.minStockLevel = iprot.readI64();
10457
        else:
10458
          iprot.skip(ftype)
10459
      else:
10460
        iprot.skip(ftype)
10461
      iprot.readFieldEnd()
10462
    iprot.readStructEnd()
10463
 
10464
  def write(self, oprot):
10465
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10466
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10467
      return
10468
    oprot.writeStructBegin('updateItemStockPurchaseParams_args')
10469
    if self.item_id is not None:
10470
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10471
      oprot.writeI64(self.item_id)
10472
      oprot.writeFieldEnd()
10473
    if self.numOfDaysStock is not None:
10474
      oprot.writeFieldBegin('numOfDaysStock', TType.I32, 2)
10475
      oprot.writeI32(self.numOfDaysStock)
10476
      oprot.writeFieldEnd()
10477
    if self.minStockLevel is not None:
10478
      oprot.writeFieldBegin('minStockLevel', TType.I64, 3)
10479
      oprot.writeI64(self.minStockLevel)
10480
      oprot.writeFieldEnd()
10481
    oprot.writeFieldStop()
10482
    oprot.writeStructEnd()
10483
 
10484
  def validate(self):
10485
    return
10486
 
10487
 
10488
  def __repr__(self):
10489
    L = ['%s=%r' % (key, value)
10490
      for key, value in self.__dict__.iteritems()]
10491
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10492
 
10493
  def __eq__(self, other):
10494
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10495
 
10496
  def __ne__(self, other):
10497
    return not (self == other)
10498
 
10499
class updateItemStockPurchaseParams_result:
10500
 
10501
  thrift_spec = (
10502
  )
10503
 
10504
  def read(self, iprot):
10505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10507
      return
10508
    iprot.readStructBegin()
10509
    while True:
10510
      (fname, ftype, fid) = iprot.readFieldBegin()
10511
      if ftype == TType.STOP:
10512
        break
10513
      else:
10514
        iprot.skip(ftype)
10515
      iprot.readFieldEnd()
10516
    iprot.readStructEnd()
10517
 
10518
  def write(self, oprot):
10519
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10520
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10521
      return
10522
    oprot.writeStructBegin('updateItemStockPurchaseParams_result')
10523
    oprot.writeFieldStop()
10524
    oprot.writeStructEnd()
10525
 
10526
  def validate(self):
10527
    return
10528
 
10529
 
10530
  def __repr__(self):
10531
    L = ['%s=%r' % (key, value)
10532
      for key, value in self.__dict__.iteritems()]
10533
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10534
 
10535
  def __eq__(self, other):
10536
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10537
 
10538
  def __ne__(self, other):
10539
    return not (self == other)
10540
 
10541
class getItemStockPurchaseParams_args:
10542
  """
10543
  Attributes:
10544
   - itemId
10545
  """
10546
 
10547
  thrift_spec = (
10548
    None, # 0
10549
    (1, TType.I64, 'itemId', None, None, ), # 1
10550
  )
10551
 
10552
  def __init__(self, itemId=None,):
10553
    self.itemId = itemId
10554
 
10555
  def read(self, iprot):
10556
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10557
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10558
      return
10559
    iprot.readStructBegin()
10560
    while True:
10561
      (fname, ftype, fid) = iprot.readFieldBegin()
10562
      if ftype == TType.STOP:
10563
        break
10564
      if fid == 1:
10565
        if ftype == TType.I64:
10566
          self.itemId = iprot.readI64();
10567
        else:
10568
          iprot.skip(ftype)
10569
      else:
10570
        iprot.skip(ftype)
10571
      iprot.readFieldEnd()
10572
    iprot.readStructEnd()
10573
 
10574
  def write(self, oprot):
10575
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10576
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10577
      return
10578
    oprot.writeStructBegin('getItemStockPurchaseParams_args')
10579
    if self.itemId is not None:
10580
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10581
      oprot.writeI64(self.itemId)
10582
      oprot.writeFieldEnd()
10583
    oprot.writeFieldStop()
10584
    oprot.writeStructEnd()
10585
 
10586
  def validate(self):
10587
    return
10588
 
10589
 
10590
  def __repr__(self):
10591
    L = ['%s=%r' % (key, value)
10592
      for key, value in self.__dict__.iteritems()]
10593
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10594
 
10595
  def __eq__(self, other):
10596
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10597
 
10598
  def __ne__(self, other):
10599
    return not (self == other)
10600
 
10601
class getItemStockPurchaseParams_result:
10602
  """
10603
  Attributes:
10604
   - success
10605
  """
10606
 
10607
  thrift_spec = (
10608
    (0, TType.STRUCT, 'success', (ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec), None, ), # 0
10609
  )
10610
 
10611
  def __init__(self, success=None,):
10612
    self.success = success
10613
 
10614
  def read(self, iprot):
10615
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10616
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10617
      return
10618
    iprot.readStructBegin()
10619
    while True:
10620
      (fname, ftype, fid) = iprot.readFieldBegin()
10621
      if ftype == TType.STOP:
10622
        break
10623
      if fid == 0:
10624
        if ftype == TType.STRUCT:
10625
          self.success = ItemStockPurchaseParams()
10626
          self.success.read(iprot)
10627
        else:
10628
          iprot.skip(ftype)
10629
      else:
10630
        iprot.skip(ftype)
10631
      iprot.readFieldEnd()
10632
    iprot.readStructEnd()
10633
 
10634
  def write(self, oprot):
10635
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10636
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10637
      return
10638
    oprot.writeStructBegin('getItemStockPurchaseParams_result')
10639
    if self.success is not None:
10640
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10641
      self.success.write(oprot)
10642
      oprot.writeFieldEnd()
10643
    oprot.writeFieldStop()
10644
    oprot.writeStructEnd()
10645
 
10646
  def validate(self):
10647
    return
10648
 
10649
 
10650
  def __repr__(self):
10651
    L = ['%s=%r' % (key, value)
10652
      for key, value in self.__dict__.iteritems()]
10653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10654
 
10655
  def __eq__(self, other):
10656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10657
 
10658
  def __ne__(self, other):
10659
    return not (self == other)
10660
 
10661
class addOosStatusForItem_args:
10662
  """
10663
  Attributes:
10664
   - oosStatusMap
10665
   - date
10666
  """
10667
 
10668
  thrift_spec = (
10669
    None, # 0
10670
    (1, TType.MAP, 'oosStatusMap', (TType.I64,None,TType.BOOL,None), None, ), # 1
10671
    (2, TType.I64, 'date', None, None, ), # 2
10672
  )
10673
 
10674
  def __init__(self, oosStatusMap=None, date=None,):
10675
    self.oosStatusMap = oosStatusMap
10676
    self.date = date
10677
 
10678
  def read(self, iprot):
10679
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10680
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10681
      return
10682
    iprot.readStructBegin()
10683
    while True:
10684
      (fname, ftype, fid) = iprot.readFieldBegin()
10685
      if ftype == TType.STOP:
10686
        break
10687
      if fid == 1:
10688
        if ftype == TType.MAP:
10689
          self.oosStatusMap = {}
8182 amar.kumar 10690
          (_ktype194, _vtype195, _size193 ) = iprot.readMapBegin() 
10691
          for _i197 in xrange(_size193):
10692
            _key198 = iprot.readI64();
10693
            _val199 = iprot.readBool();
10694
            self.oosStatusMap[_key198] = _val199
6821 amar.kumar 10695
          iprot.readMapEnd()
10696
        else:
10697
          iprot.skip(ftype)
10698
      elif fid == 2:
10699
        if ftype == TType.I64:
10700
          self.date = iprot.readI64();
10701
        else:
10702
          iprot.skip(ftype)
10703
      else:
10704
        iprot.skip(ftype)
10705
      iprot.readFieldEnd()
10706
    iprot.readStructEnd()
10707
 
10708
  def write(self, oprot):
10709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10711
      return
10712
    oprot.writeStructBegin('addOosStatusForItem_args')
10713
    if self.oosStatusMap is not None:
10714
      oprot.writeFieldBegin('oosStatusMap', TType.MAP, 1)
10715
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.oosStatusMap))
8182 amar.kumar 10716
      for kiter200,viter201 in self.oosStatusMap.items():
10717
        oprot.writeI64(kiter200)
10718
        oprot.writeBool(viter201)
6821 amar.kumar 10719
      oprot.writeMapEnd()
10720
      oprot.writeFieldEnd()
10721
    if self.date is not None:
10722
      oprot.writeFieldBegin('date', TType.I64, 2)
10723
      oprot.writeI64(self.date)
10724
      oprot.writeFieldEnd()
10725
    oprot.writeFieldStop()
10726
    oprot.writeStructEnd()
10727
 
10728
  def validate(self):
10729
    return
10730
 
10731
 
10732
  def __repr__(self):
10733
    L = ['%s=%r' % (key, value)
10734
      for key, value in self.__dict__.iteritems()]
10735
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10736
 
10737
  def __eq__(self, other):
10738
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10739
 
10740
  def __ne__(self, other):
10741
    return not (self == other)
10742
 
10743
class addOosStatusForItem_result:
10744
 
10745
  thrift_spec = (
10746
  )
10747
 
10748
  def read(self, iprot):
10749
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10750
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10751
      return
10752
    iprot.readStructBegin()
10753
    while True:
10754
      (fname, ftype, fid) = iprot.readFieldBegin()
10755
      if ftype == TType.STOP:
10756
        break
10757
      else:
10758
        iprot.skip(ftype)
10759
      iprot.readFieldEnd()
10760
    iprot.readStructEnd()
10761
 
10762
  def write(self, oprot):
10763
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10764
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10765
      return
10766
    oprot.writeStructBegin('addOosStatusForItem_result')
10767
    oprot.writeFieldStop()
10768
    oprot.writeStructEnd()
10769
 
10770
  def validate(self):
10771
    return
10772
 
10773
 
10774
  def __repr__(self):
10775
    L = ['%s=%r' % (key, value)
10776
      for key, value in self.__dict__.iteritems()]
10777
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10778
 
10779
  def __eq__(self, other):
10780
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10781
 
10782
  def __ne__(self, other):
10783
    return not (self == other)
6832 amar.kumar 10784
 
10785
class getOosStatusesForXDaysForItem_args:
10786
  """
10787
  Attributes:
10788
   - itemId
9762 amar.kumar 10789
   - sourceId
6832 amar.kumar 10790
   - days
10791
  """
10792
 
10793
  thrift_spec = (
10794
    None, # 0
10795
    (1, TType.I64, 'itemId', None, None, ), # 1
9762 amar.kumar 10796
    (2, TType.I32, 'sourceId', None, None, ), # 2
10797
    (3, TType.I32, 'days', None, None, ), # 3
6832 amar.kumar 10798
  )
10799
 
9762 amar.kumar 10800
  def __init__(self, itemId=None, sourceId=None, days=None,):
6832 amar.kumar 10801
    self.itemId = itemId
9762 amar.kumar 10802
    self.sourceId = sourceId
6832 amar.kumar 10803
    self.days = days
10804
 
10805
  def read(self, iprot):
10806
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10807
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10808
      return
10809
    iprot.readStructBegin()
10810
    while True:
10811
      (fname, ftype, fid) = iprot.readFieldBegin()
10812
      if ftype == TType.STOP:
10813
        break
10814
      if fid == 1:
10815
        if ftype == TType.I64:
10816
          self.itemId = iprot.readI64();
10817
        else:
10818
          iprot.skip(ftype)
10819
      elif fid == 2:
10820
        if ftype == TType.I32:
9762 amar.kumar 10821
          self.sourceId = iprot.readI32();
10822
        else:
10823
          iprot.skip(ftype)
10824
      elif fid == 3:
10825
        if ftype == TType.I32:
6832 amar.kumar 10826
          self.days = iprot.readI32();
10827
        else:
10828
          iprot.skip(ftype)
10829
      else:
10830
        iprot.skip(ftype)
10831
      iprot.readFieldEnd()
10832
    iprot.readStructEnd()
10833
 
10834
  def write(self, oprot):
10835
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10836
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10837
      return
10838
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_args')
10839
    if self.itemId is not None:
10840
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10841
      oprot.writeI64(self.itemId)
10842
      oprot.writeFieldEnd()
9762 amar.kumar 10843
    if self.sourceId is not None:
10844
      oprot.writeFieldBegin('sourceId', TType.I32, 2)
10845
      oprot.writeI32(self.sourceId)
10846
      oprot.writeFieldEnd()
6832 amar.kumar 10847
    if self.days is not None:
9762 amar.kumar 10848
      oprot.writeFieldBegin('days', TType.I32, 3)
6832 amar.kumar 10849
      oprot.writeI32(self.days)
10850
      oprot.writeFieldEnd()
10851
    oprot.writeFieldStop()
10852
    oprot.writeStructEnd()
10853
 
10854
  def validate(self):
10855
    return
10856
 
10857
 
10858
  def __repr__(self):
10859
    L = ['%s=%r' % (key, value)
10860
      for key, value in self.__dict__.iteritems()]
10861
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10862
 
10863
  def __eq__(self, other):
10864
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10865
 
10866
  def __ne__(self, other):
10867
    return not (self == other)
10868
 
10869
class getOosStatusesForXDaysForItem_result:
10870
  """
10871
  Attributes:
10872
   - success
10873
  """
10874
 
10875
  thrift_spec = (
10876
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.thrift_spec)), None, ), # 0
10877
  )
10878
 
10879
  def __init__(self, success=None,):
10880
    self.success = success
10881
 
10882
  def read(self, iprot):
10883
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10884
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10885
      return
10886
    iprot.readStructBegin()
10887
    while True:
10888
      (fname, ftype, fid) = iprot.readFieldBegin()
10889
      if ftype == TType.STOP:
10890
        break
10891
      if fid == 0:
10892
        if ftype == TType.LIST:
10893
          self.success = []
8182 amar.kumar 10894
          (_etype205, _size202) = iprot.readListBegin()
10895
          for _i206 in xrange(_size202):
10896
            _elem207 = OOSStatus()
10897
            _elem207.read(iprot)
10898
            self.success.append(_elem207)
6832 amar.kumar 10899
          iprot.readListEnd()
10900
        else:
10901
          iprot.skip(ftype)
10902
      else:
10903
        iprot.skip(ftype)
10904
      iprot.readFieldEnd()
10905
    iprot.readStructEnd()
10906
 
10907
  def write(self, oprot):
10908
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10909
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10910
      return
10911
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_result')
10912
    if self.success is not None:
10913
      oprot.writeFieldBegin('success', TType.LIST, 0)
10914
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10915
      for iter208 in self.success:
10916
        iter208.write(oprot)
6832 amar.kumar 10917
      oprot.writeListEnd()
10918
      oprot.writeFieldEnd()
10919
    oprot.writeFieldStop()
10920
    oprot.writeStructEnd()
10921
 
10922
  def validate(self):
10923
    return
10924
 
10925
 
10926
  def __repr__(self):
10927
    L = ['%s=%r' % (key, value)
10928
      for key, value in self.__dict__.iteritems()]
10929
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10930
 
10931
  def __eq__(self, other):
10932
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10933
 
10934
  def __ne__(self, other):
10935
    return not (self == other)
6857 amar.kumar 10936
 
10126 amar.kumar 10937
class getOosStatusesForXDays_args:
10938
  """
10939
  Attributes:
10940
   - sourceId
10941
   - days
10942
  """
6857 amar.kumar 10943
 
10944
  thrift_spec = (
10126 amar.kumar 10945
    None, # 0
10946
    (1, TType.I32, 'sourceId', None, None, ), # 1
10947
    (2, TType.I32, 'days', None, None, ), # 2
6857 amar.kumar 10948
  )
10949
 
10126 amar.kumar 10950
  def __init__(self, sourceId=None, days=None,):
10951
    self.sourceId = sourceId
10952
    self.days = days
10953
 
6857 amar.kumar 10954
  def read(self, iprot):
10955
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10956
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10957
      return
10958
    iprot.readStructBegin()
10959
    while True:
10960
      (fname, ftype, fid) = iprot.readFieldBegin()
10961
      if ftype == TType.STOP:
10962
        break
10126 amar.kumar 10963
      if fid == 1:
10964
        if ftype == TType.I32:
10965
          self.sourceId = iprot.readI32();
10966
        else:
10967
          iprot.skip(ftype)
10968
      elif fid == 2:
10969
        if ftype == TType.I32:
10970
          self.days = iprot.readI32();
10971
        else:
10972
          iprot.skip(ftype)
6857 amar.kumar 10973
      else:
10974
        iprot.skip(ftype)
10975
      iprot.readFieldEnd()
10976
    iprot.readStructEnd()
10977
 
10978
  def write(self, oprot):
10979
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10980
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10981
      return
10126 amar.kumar 10982
    oprot.writeStructBegin('getOosStatusesForXDays_args')
10983
    if self.sourceId is not None:
10984
      oprot.writeFieldBegin('sourceId', TType.I32, 1)
10985
      oprot.writeI32(self.sourceId)
10986
      oprot.writeFieldEnd()
10987
    if self.days is not None:
10988
      oprot.writeFieldBegin('days', TType.I32, 2)
10989
      oprot.writeI32(self.days)
10990
      oprot.writeFieldEnd()
6857 amar.kumar 10991
    oprot.writeFieldStop()
10992
    oprot.writeStructEnd()
10993
 
10994
  def validate(self):
10995
    return
10996
 
10997
 
10998
  def __repr__(self):
10999
    L = ['%s=%r' % (key, value)
11000
      for key, value in self.__dict__.iteritems()]
11001
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11002
 
11003
  def __eq__(self, other):
11004
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11005
 
11006
  def __ne__(self, other):
11007
    return not (self == other)
11008
 
10126 amar.kumar 11009
class getOosStatusesForXDays_result:
6857 amar.kumar 11010
  """
11011
  Attributes:
11012
   - success
11013
  """
11014
 
11015
  thrift_spec = (
10126 amar.kumar 11016
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.thrift_spec)), None, ), # 0
6857 amar.kumar 11017
  )
11018
 
11019
  def __init__(self, success=None,):
11020
    self.success = success
11021
 
11022
  def read(self, iprot):
11023
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11024
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11025
      return
11026
    iprot.readStructBegin()
11027
    while True:
11028
      (fname, ftype, fid) = iprot.readFieldBegin()
11029
      if ftype == TType.STOP:
11030
        break
11031
      if fid == 0:
11032
        if ftype == TType.LIST:
11033
          self.success = []
8182 amar.kumar 11034
          (_etype212, _size209) = iprot.readListBegin()
11035
          for _i213 in xrange(_size209):
10126 amar.kumar 11036
            _elem214 = OOSStatus()
8182 amar.kumar 11037
            _elem214.read(iprot)
11038
            self.success.append(_elem214)
6857 amar.kumar 11039
          iprot.readListEnd()
11040
        else:
11041
          iprot.skip(ftype)
11042
      else:
11043
        iprot.skip(ftype)
11044
      iprot.readFieldEnd()
11045
    iprot.readStructEnd()
11046
 
11047
  def write(self, oprot):
11048
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11049
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11050
      return
10126 amar.kumar 11051
    oprot.writeStructBegin('getOosStatusesForXDays_result')
6857 amar.kumar 11052
    if self.success is not None:
11053
      oprot.writeFieldBegin('success', TType.LIST, 0)
11054
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 11055
      for iter215 in self.success:
11056
        iter215.write(oprot)
6857 amar.kumar 11057
      oprot.writeListEnd()
11058
      oprot.writeFieldEnd()
11059
    oprot.writeFieldStop()
11060
    oprot.writeStructEnd()
11061
 
11062
  def validate(self):
11063
    return
11064
 
11065
 
11066
  def __repr__(self):
11067
    L = ['%s=%r' % (key, value)
11068
      for key, value in self.__dict__.iteritems()]
11069
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11070
 
11071
  def __eq__(self, other):
11072
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11073
 
11074
  def __ne__(self, other):
11075
    return not (self == other)
7149 amar.kumar 11076
 
10126 amar.kumar 11077
class getAllVendorItemPricing_args:
11078
  """
11079
  Attributes:
11080
   - itemId
11081
   - vendorId
11082
  """
7149 amar.kumar 11083
 
11084
  thrift_spec = (
10126 amar.kumar 11085
    None, # 0
11086
    (1, TType.I64, 'itemId', None, None, ), # 1
11087
    (2, TType.I64, 'vendorId', None, None, ), # 2
7149 amar.kumar 11088
  )
11089
 
10126 amar.kumar 11090
  def __init__(self, itemId=None, vendorId=None,):
11091
    self.itemId = itemId
11092
    self.vendorId = vendorId
11093
 
7149 amar.kumar 11094
  def read(self, iprot):
11095
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11096
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11097
      return
11098
    iprot.readStructBegin()
11099
    while True:
11100
      (fname, ftype, fid) = iprot.readFieldBegin()
11101
      if ftype == TType.STOP:
11102
        break
10126 amar.kumar 11103
      if fid == 1:
11104
        if ftype == TType.I64:
11105
          self.itemId = iprot.readI64();
11106
        else:
11107
          iprot.skip(ftype)
11108
      elif fid == 2:
11109
        if ftype == TType.I64:
11110
          self.vendorId = iprot.readI64();
11111
        else:
11112
          iprot.skip(ftype)
7149 amar.kumar 11113
      else:
11114
        iprot.skip(ftype)
11115
      iprot.readFieldEnd()
11116
    iprot.readStructEnd()
11117
 
11118
  def write(self, oprot):
11119
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11120
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11121
      return
10126 amar.kumar 11122
    oprot.writeStructBegin('getAllVendorItemPricing_args')
11123
    if self.itemId is not None:
11124
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11125
      oprot.writeI64(self.itemId)
11126
      oprot.writeFieldEnd()
11127
    if self.vendorId is not None:
11128
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
11129
      oprot.writeI64(self.vendorId)
11130
      oprot.writeFieldEnd()
7149 amar.kumar 11131
    oprot.writeFieldStop()
11132
    oprot.writeStructEnd()
11133
 
11134
  def validate(self):
11135
    return
11136
 
11137
 
11138
  def __repr__(self):
11139
    L = ['%s=%r' % (key, value)
11140
      for key, value in self.__dict__.iteritems()]
11141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11142
 
11143
  def __eq__(self, other):
11144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11145
 
11146
  def __ne__(self, other):
11147
    return not (self == other)
11148
 
10126 amar.kumar 11149
class getAllVendorItemPricing_result:
7149 amar.kumar 11150
  """
11151
  Attributes:
11152
   - success
11153
  """
11154
 
11155
  thrift_spec = (
10126 amar.kumar 11156
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
7149 amar.kumar 11157
  )
11158
 
11159
  def __init__(self, success=None,):
11160
    self.success = success
11161
 
11162
  def read(self, iprot):
11163
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11164
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11165
      return
11166
    iprot.readStructBegin()
11167
    while True:
11168
      (fname, ftype, fid) = iprot.readFieldBegin()
11169
      if ftype == TType.STOP:
11170
        break
11171
      if fid == 0:
11172
        if ftype == TType.LIST:
11173
          self.success = []
8182 amar.kumar 11174
          (_etype219, _size216) = iprot.readListBegin()
11175
          for _i220 in xrange(_size216):
10126 amar.kumar 11176
            _elem221 = VendorItemPricing()
8182 amar.kumar 11177
            _elem221.read(iprot)
11178
            self.success.append(_elem221)
7149 amar.kumar 11179
          iprot.readListEnd()
11180
        else:
11181
          iprot.skip(ftype)
11182
      else:
11183
        iprot.skip(ftype)
11184
      iprot.readFieldEnd()
11185
    iprot.readStructEnd()
11186
 
11187
  def write(self, oprot):
11188
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11189
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11190
      return
10126 amar.kumar 11191
    oprot.writeStructBegin('getAllVendorItemPricing_result')
7149 amar.kumar 11192
    if self.success is not None:
11193
      oprot.writeFieldBegin('success', TType.LIST, 0)
11194
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 11195
      for iter222 in self.success:
11196
        iter222.write(oprot)
7149 amar.kumar 11197
      oprot.writeListEnd()
11198
      oprot.writeFieldEnd()
11199
    oprot.writeFieldStop()
11200
    oprot.writeStructEnd()
11201
 
11202
  def validate(self):
11203
    return
11204
 
11205
 
11206
  def __repr__(self):
11207
    L = ['%s=%r' % (key, value)
11208
      for key, value in self.__dict__.iteritems()]
11209
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11210
 
11211
  def __eq__(self, other):
11212
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11213
 
11214
  def __ne__(self, other):
11215
    return not (self == other)
7281 kshitij.so 11216
 
10126 amar.kumar 11217
class getNonZeroItemStockPurchaseParams_args:
11218
 
11219
  thrift_spec = (
11220
  )
11221
 
11222
  def read(self, iprot):
11223
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11224
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11225
      return
11226
    iprot.readStructBegin()
11227
    while True:
11228
      (fname, ftype, fid) = iprot.readFieldBegin()
11229
      if ftype == TType.STOP:
11230
        break
11231
      else:
11232
        iprot.skip(ftype)
11233
      iprot.readFieldEnd()
11234
    iprot.readStructEnd()
11235
 
11236
  def write(self, oprot):
11237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11239
      return
11240
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_args')
11241
    oprot.writeFieldStop()
11242
    oprot.writeStructEnd()
11243
 
11244
  def validate(self):
11245
    return
11246
 
11247
 
11248
  def __repr__(self):
11249
    L = ['%s=%r' % (key, value)
11250
      for key, value in self.__dict__.iteritems()]
11251
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11252
 
11253
  def __eq__(self, other):
11254
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11255
 
11256
  def __ne__(self, other):
11257
    return not (self == other)
11258
 
11259
class getNonZeroItemStockPurchaseParams_result:
11260
  """
11261
  Attributes:
11262
   - success
11263
  """
11264
 
11265
  thrift_spec = (
11266
    (0, TType.LIST, 'success', (TType.STRUCT,(ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec)), None, ), # 0
11267
  )
11268
 
11269
  def __init__(self, success=None,):
11270
    self.success = success
11271
 
11272
  def read(self, iprot):
11273
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11274
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11275
      return
11276
    iprot.readStructBegin()
11277
    while True:
11278
      (fname, ftype, fid) = iprot.readFieldBegin()
11279
      if ftype == TType.STOP:
11280
        break
11281
      if fid == 0:
11282
        if ftype == TType.LIST:
11283
          self.success = []
11284
          (_etype226, _size223) = iprot.readListBegin()
11285
          for _i227 in xrange(_size223):
11286
            _elem228 = ItemStockPurchaseParams()
11287
            _elem228.read(iprot)
11288
            self.success.append(_elem228)
11289
          iprot.readListEnd()
11290
        else:
11291
          iprot.skip(ftype)
11292
      else:
11293
        iprot.skip(ftype)
11294
      iprot.readFieldEnd()
11295
    iprot.readStructEnd()
11296
 
11297
  def write(self, oprot):
11298
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11299
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11300
      return
11301
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_result')
11302
    if self.success is not None:
11303
      oprot.writeFieldBegin('success', TType.LIST, 0)
11304
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11305
      for iter229 in self.success:
11306
        iter229.write(oprot)
11307
      oprot.writeListEnd()
11308
      oprot.writeFieldEnd()
11309
    oprot.writeFieldStop()
11310
    oprot.writeStructEnd()
11311
 
11312
  def validate(self):
11313
    return
11314
 
11315
 
11316
  def __repr__(self):
11317
    L = ['%s=%r' % (key, value)
11318
      for key, value in self.__dict__.iteritems()]
11319
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11320
 
11321
  def __eq__(self, other):
11322
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11323
 
11324
  def __ne__(self, other):
11325
    return not (self == other)
11326
 
11327
class getBillableInventoryAndPendingOrders_args:
11328
 
11329
  thrift_spec = (
11330
  )
11331
 
11332
  def read(self, iprot):
11333
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11334
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11335
      return
11336
    iprot.readStructBegin()
11337
    while True:
11338
      (fname, ftype, fid) = iprot.readFieldBegin()
11339
      if ftype == TType.STOP:
11340
        break
11341
      else:
11342
        iprot.skip(ftype)
11343
      iprot.readFieldEnd()
11344
    iprot.readStructEnd()
11345
 
11346
  def write(self, oprot):
11347
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11348
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11349
      return
11350
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_args')
11351
    oprot.writeFieldStop()
11352
    oprot.writeStructEnd()
11353
 
11354
  def validate(self):
11355
    return
11356
 
11357
 
11358
  def __repr__(self):
11359
    L = ['%s=%r' % (key, value)
11360
      for key, value in self.__dict__.iteritems()]
11361
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11362
 
11363
  def __eq__(self, other):
11364
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11365
 
11366
  def __ne__(self, other):
11367
    return not (self == other)
11368
 
11369
class getBillableInventoryAndPendingOrders_result:
11370
  """
11371
  Attributes:
11372
   - success
11373
  """
11374
 
11375
  thrift_spec = (
11376
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
11377
  )
11378
 
11379
  def __init__(self, success=None,):
11380
    self.success = success
11381
 
11382
  def read(self, iprot):
11383
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11384
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11385
      return
11386
    iprot.readStructBegin()
11387
    while True:
11388
      (fname, ftype, fid) = iprot.readFieldBegin()
11389
      if ftype == TType.STOP:
11390
        break
11391
      if fid == 0:
11392
        if ftype == TType.LIST:
11393
          self.success = []
11394
          (_etype233, _size230) = iprot.readListBegin()
11395
          for _i234 in xrange(_size230):
11396
            _elem235 = AvailableAndReservedStock()
11397
            _elem235.read(iprot)
11398
            self.success.append(_elem235)
11399
          iprot.readListEnd()
11400
        else:
11401
          iprot.skip(ftype)
11402
      else:
11403
        iprot.skip(ftype)
11404
      iprot.readFieldEnd()
11405
    iprot.readStructEnd()
11406
 
11407
  def write(self, oprot):
11408
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11409
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11410
      return
11411
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_result')
11412
    if self.success is not None:
11413
      oprot.writeFieldBegin('success', TType.LIST, 0)
11414
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11415
      for iter236 in self.success:
11416
        iter236.write(oprot)
11417
      oprot.writeListEnd()
11418
      oprot.writeFieldEnd()
11419
    oprot.writeFieldStop()
11420
    oprot.writeStructEnd()
11421
 
11422
  def validate(self):
11423
    return
11424
 
11425
 
11426
  def __repr__(self):
11427
    L = ['%s=%r' % (key, value)
11428
      for key, value in self.__dict__.iteritems()]
11429
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11430
 
11431
  def __eq__(self, other):
11432
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11433
 
11434
  def __ne__(self, other):
11435
    return not (self == other)
11436
 
7281 kshitij.so 11437
class getWarehouseName_args:
11438
  """
11439
  Attributes:
11440
   - warehouse_id
11441
  """
11442
 
11443
  thrift_spec = (
11444
    None, # 0
11445
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
11446
  )
11447
 
11448
  def __init__(self, warehouse_id=None,):
11449
    self.warehouse_id = warehouse_id
11450
 
11451
  def read(self, iprot):
11452
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11453
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11454
      return
11455
    iprot.readStructBegin()
11456
    while True:
11457
      (fname, ftype, fid) = iprot.readFieldBegin()
11458
      if ftype == TType.STOP:
11459
        break
11460
      if fid == 1:
11461
        if ftype == TType.I64:
11462
          self.warehouse_id = iprot.readI64();
11463
        else:
11464
          iprot.skip(ftype)
11465
      else:
11466
        iprot.skip(ftype)
11467
      iprot.readFieldEnd()
11468
    iprot.readStructEnd()
11469
 
11470
  def write(self, oprot):
11471
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11472
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11473
      return
11474
    oprot.writeStructBegin('getWarehouseName_args')
11475
    if self.warehouse_id is not None:
11476
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
11477
      oprot.writeI64(self.warehouse_id)
11478
      oprot.writeFieldEnd()
11479
    oprot.writeFieldStop()
11480
    oprot.writeStructEnd()
11481
 
11482
  def validate(self):
11483
    return
11484
 
11485
 
11486
  def __repr__(self):
11487
    L = ['%s=%r' % (key, value)
11488
      for key, value in self.__dict__.iteritems()]
11489
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11490
 
11491
  def __eq__(self, other):
11492
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11493
 
11494
  def __ne__(self, other):
11495
    return not (self == other)
11496
 
11497
class getWarehouseName_result:
11498
  """
11499
  Attributes:
11500
   - success
11501
  """
11502
 
11503
  thrift_spec = (
11504
    (0, TType.STRING, 'success', None, None, ), # 0
11505
  )
11506
 
11507
  def __init__(self, success=None,):
11508
    self.success = success
11509
 
11510
  def read(self, iprot):
11511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11513
      return
11514
    iprot.readStructBegin()
11515
    while True:
11516
      (fname, ftype, fid) = iprot.readFieldBegin()
11517
      if ftype == TType.STOP:
11518
        break
11519
      if fid == 0:
11520
        if ftype == TType.STRING:
11521
          self.success = iprot.readString();
11522
        else:
11523
          iprot.skip(ftype)
11524
      else:
11525
        iprot.skip(ftype)
11526
      iprot.readFieldEnd()
11527
    iprot.readStructEnd()
11528
 
11529
  def write(self, oprot):
11530
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11531
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11532
      return
11533
    oprot.writeStructBegin('getWarehouseName_result')
11534
    if self.success is not None:
11535
      oprot.writeFieldBegin('success', TType.STRING, 0)
11536
      oprot.writeString(self.success)
11537
      oprot.writeFieldEnd()
11538
    oprot.writeFieldStop()
11539
    oprot.writeStructEnd()
11540
 
11541
  def validate(self):
11542
    return
11543
 
11544
 
11545
  def __repr__(self):
11546
    L = ['%s=%r' % (key, value)
11547
      for key, value in self.__dict__.iteritems()]
11548
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11549
 
11550
  def __eq__(self, other):
11551
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11552
 
11553
  def __ne__(self, other):
11554
    return not (self == other)
11555
 
11556
class getAmazonInventoryForItem_args:
11557
  """
11558
  Attributes:
11559
   - item_id
11560
  """
11561
 
11562
  thrift_spec = (
11563
    None, # 0
11564
    (1, TType.I64, 'item_id', None, None, ), # 1
11565
  )
11566
 
11567
  def __init__(self, item_id=None,):
11568
    self.item_id = item_id
11569
 
11570
  def read(self, iprot):
11571
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11572
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11573
      return
11574
    iprot.readStructBegin()
11575
    while True:
11576
      (fname, ftype, fid) = iprot.readFieldBegin()
11577
      if ftype == TType.STOP:
11578
        break
11579
      if fid == 1:
11580
        if ftype == TType.I64:
11581
          self.item_id = iprot.readI64();
11582
        else:
11583
          iprot.skip(ftype)
11584
      else:
11585
        iprot.skip(ftype)
11586
      iprot.readFieldEnd()
11587
    iprot.readStructEnd()
11588
 
11589
  def write(self, oprot):
11590
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11591
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11592
      return
11593
    oprot.writeStructBegin('getAmazonInventoryForItem_args')
11594
    if self.item_id is not None:
11595
      oprot.writeFieldBegin('item_id', TType.I64, 1)
11596
      oprot.writeI64(self.item_id)
11597
      oprot.writeFieldEnd()
11598
    oprot.writeFieldStop()
11599
    oprot.writeStructEnd()
11600
 
11601
  def validate(self):
11602
    return
11603
 
11604
 
11605
  def __repr__(self):
11606
    L = ['%s=%r' % (key, value)
11607
      for key, value in self.__dict__.iteritems()]
11608
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11609
 
11610
  def __eq__(self, other):
11611
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11612
 
11613
  def __ne__(self, other):
11614
    return not (self == other)
11615
 
11616
class getAmazonInventoryForItem_result:
11617
  """
11618
  Attributes:
11619
   - success
11620
  """
11621
 
11622
  thrift_spec = (
11623
    (0, TType.STRUCT, 'success', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 0
11624
  )
11625
 
11626
  def __init__(self, success=None,):
11627
    self.success = success
11628
 
11629
  def read(self, iprot):
11630
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11631
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11632
      return
11633
    iprot.readStructBegin()
11634
    while True:
11635
      (fname, ftype, fid) = iprot.readFieldBegin()
11636
      if ftype == TType.STOP:
11637
        break
11638
      if fid == 0:
11639
        if ftype == TType.STRUCT:
11640
          self.success = AmazonInventorySnapshot()
11641
          self.success.read(iprot)
11642
        else:
11643
          iprot.skip(ftype)
11644
      else:
11645
        iprot.skip(ftype)
11646
      iprot.readFieldEnd()
11647
    iprot.readStructEnd()
11648
 
11649
  def write(self, oprot):
11650
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11651
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11652
      return
11653
    oprot.writeStructBegin('getAmazonInventoryForItem_result')
11654
    if self.success is not None:
11655
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11656
      self.success.write(oprot)
11657
      oprot.writeFieldEnd()
11658
    oprot.writeFieldStop()
11659
    oprot.writeStructEnd()
11660
 
11661
  def validate(self):
11662
    return
11663
 
11664
 
11665
  def __repr__(self):
11666
    L = ['%s=%r' % (key, value)
11667
      for key, value in self.__dict__.iteritems()]
11668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11669
 
11670
  def __eq__(self, other):
11671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11672
 
11673
  def __ne__(self, other):
11674
    return not (self == other)
11675
 
11676
class getAllAmazonInventory_args:
11677
 
11678
  thrift_spec = (
11679
  )
11680
 
11681
  def read(self, iprot):
11682
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11683
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11684
      return
11685
    iprot.readStructBegin()
11686
    while True:
11687
      (fname, ftype, fid) = iprot.readFieldBegin()
11688
      if ftype == TType.STOP:
11689
        break
11690
      else:
11691
        iprot.skip(ftype)
11692
      iprot.readFieldEnd()
11693
    iprot.readStructEnd()
11694
 
11695
  def write(self, oprot):
11696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11698
      return
11699
    oprot.writeStructBegin('getAllAmazonInventory_args')
11700
    oprot.writeFieldStop()
11701
    oprot.writeStructEnd()
11702
 
11703
  def validate(self):
11704
    return
11705
 
11706
 
11707
  def __repr__(self):
11708
    L = ['%s=%r' % (key, value)
11709
      for key, value in self.__dict__.iteritems()]
11710
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11711
 
11712
  def __eq__(self, other):
11713
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11714
 
11715
  def __ne__(self, other):
11716
    return not (self == other)
11717
 
11718
class getAllAmazonInventory_result:
11719
  """
11720
  Attributes:
11721
   - success
11722
  """
11723
 
11724
  thrift_spec = (
11725
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec)), None, ), # 0
11726
  )
11727
 
11728
  def __init__(self, success=None,):
11729
    self.success = success
11730
 
11731
  def read(self, iprot):
11732
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11733
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11734
      return
11735
    iprot.readStructBegin()
11736
    while True:
11737
      (fname, ftype, fid) = iprot.readFieldBegin()
11738
      if ftype == TType.STOP:
11739
        break
11740
      if fid == 0:
11741
        if ftype == TType.LIST:
11742
          self.success = []
10126 amar.kumar 11743
          (_etype240, _size237) = iprot.readListBegin()
11744
          for _i241 in xrange(_size237):
11745
            _elem242 = AmazonInventorySnapshot()
11746
            _elem242.read(iprot)
11747
            self.success.append(_elem242)
7281 kshitij.so 11748
          iprot.readListEnd()
11749
        else:
11750
          iprot.skip(ftype)
11751
      else:
11752
        iprot.skip(ftype)
11753
      iprot.readFieldEnd()
11754
    iprot.readStructEnd()
11755
 
11756
  def write(self, oprot):
11757
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11758
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11759
      return
11760
    oprot.writeStructBegin('getAllAmazonInventory_result')
11761
    if self.success is not None:
11762
      oprot.writeFieldBegin('success', TType.LIST, 0)
11763
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10126 amar.kumar 11764
      for iter243 in self.success:
11765
        iter243.write(oprot)
7281 kshitij.so 11766
      oprot.writeListEnd()
11767
      oprot.writeFieldEnd()
11768
    oprot.writeFieldStop()
11769
    oprot.writeStructEnd()
11770
 
11771
  def validate(self):
11772
    return
11773
 
11774
 
11775
  def __repr__(self):
11776
    L = ['%s=%r' % (key, value)
11777
      for key, value in self.__dict__.iteritems()]
11778
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11779
 
11780
  def __eq__(self, other):
11781
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11782
 
11783
  def __ne__(self, other):
11784
    return not (self == other)
11785
 
11786
class addOrUpdateAmazonInventoryForItem_args:
11787
  """
11788
  Attributes:
11789
   - amazonInventorySnapshot
10450 vikram.rag 11790
   - time
7281 kshitij.so 11791
  """
11792
 
11793
  thrift_spec = (
11794
    None, # 0
11795
    (1, TType.STRUCT, 'amazonInventorySnapshot', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 1
10450 vikram.rag 11796
    (2, TType.I64, 'time', None, None, ), # 2
7281 kshitij.so 11797
  )
11798
 
10450 vikram.rag 11799
  def __init__(self, amazonInventorySnapshot=None, time=None,):
7281 kshitij.so 11800
    self.amazonInventorySnapshot = amazonInventorySnapshot
10450 vikram.rag 11801
    self.time = time
7281 kshitij.so 11802
 
11803
  def read(self, iprot):
11804
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11805
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11806
      return
11807
    iprot.readStructBegin()
11808
    while True:
11809
      (fname, ftype, fid) = iprot.readFieldBegin()
11810
      if ftype == TType.STOP:
11811
        break
11812
      if fid == 1:
11813
        if ftype == TType.STRUCT:
11814
          self.amazonInventorySnapshot = AmazonInventorySnapshot()
11815
          self.amazonInventorySnapshot.read(iprot)
11816
        else:
11817
          iprot.skip(ftype)
10450 vikram.rag 11818
      elif fid == 2:
11819
        if ftype == TType.I64:
11820
          self.time = iprot.readI64();
11821
        else:
11822
          iprot.skip(ftype)
7281 kshitij.so 11823
      else:
11824
        iprot.skip(ftype)
11825
      iprot.readFieldEnd()
11826
    iprot.readStructEnd()
11827
 
11828
  def write(self, oprot):
11829
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11830
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11831
      return
11832
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_args')
11833
    if self.amazonInventorySnapshot is not None:
11834
      oprot.writeFieldBegin('amazonInventorySnapshot', TType.STRUCT, 1)
11835
      self.amazonInventorySnapshot.write(oprot)
11836
      oprot.writeFieldEnd()
10450 vikram.rag 11837
    if self.time is not None:
11838
      oprot.writeFieldBegin('time', TType.I64, 2)
11839
      oprot.writeI64(self.time)
11840
      oprot.writeFieldEnd()
7281 kshitij.so 11841
    oprot.writeFieldStop()
11842
    oprot.writeStructEnd()
11843
 
11844
  def validate(self):
11845
    return
11846
 
11847
 
11848
  def __repr__(self):
11849
    L = ['%s=%r' % (key, value)
11850
      for key, value in self.__dict__.iteritems()]
11851
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11852
 
11853
  def __eq__(self, other):
11854
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11855
 
11856
  def __ne__(self, other):
11857
    return not (self == other)
11858
 
11859
class addOrUpdateAmazonInventoryForItem_result:
11860
 
11861
  thrift_spec = (
11862
  )
11863
 
11864
  def read(self, iprot):
11865
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11866
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11867
      return
11868
    iprot.readStructBegin()
11869
    while True:
11870
      (fname, ftype, fid) = iprot.readFieldBegin()
11871
      if ftype == TType.STOP:
11872
        break
11873
      else:
11874
        iprot.skip(ftype)
11875
      iprot.readFieldEnd()
11876
    iprot.readStructEnd()
11877
 
11878
  def write(self, oprot):
11879
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11880
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11881
      return
11882
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_result')
11883
    oprot.writeFieldStop()
11884
    oprot.writeStructEnd()
11885
 
11886
  def validate(self):
11887
    return
11888
 
11889
 
11890
  def __repr__(self):
11891
    L = ['%s=%r' % (key, value)
11892
      for key, value in self.__dict__.iteritems()]
11893
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11894
 
11895
  def __eq__(self, other):
11896
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11897
 
11898
  def __ne__(self, other):
11899
    return not (self == other)
7972 amar.kumar 11900
 
11901
class getLastNdaySaleForItem_args:
11902
  """
11903
  Attributes:
11904
   - itemId
11905
   - numberOfDays
11906
  """
11907
 
11908
  thrift_spec = (
11909
    None, # 0
11910
    (1, TType.I64, 'itemId', None, None, ), # 1
11911
    (2, TType.I64, 'numberOfDays', None, None, ), # 2
11912
  )
11913
 
11914
  def __init__(self, itemId=None, numberOfDays=None,):
11915
    self.itemId = itemId
11916
    self.numberOfDays = numberOfDays
11917
 
11918
  def read(self, iprot):
11919
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11920
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11921
      return
11922
    iprot.readStructBegin()
11923
    while True:
11924
      (fname, ftype, fid) = iprot.readFieldBegin()
11925
      if ftype == TType.STOP:
11926
        break
11927
      if fid == 1:
11928
        if ftype == TType.I64:
11929
          self.itemId = iprot.readI64();
11930
        else:
11931
          iprot.skip(ftype)
11932
      elif fid == 2:
11933
        if ftype == TType.I64:
11934
          self.numberOfDays = iprot.readI64();
11935
        else:
11936
          iprot.skip(ftype)
11937
      else:
11938
        iprot.skip(ftype)
11939
      iprot.readFieldEnd()
11940
    iprot.readStructEnd()
11941
 
11942
  def write(self, oprot):
11943
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11944
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11945
      return
11946
    oprot.writeStructBegin('getLastNdaySaleForItem_args')
11947
    if self.itemId is not None:
11948
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11949
      oprot.writeI64(self.itemId)
11950
      oprot.writeFieldEnd()
11951
    if self.numberOfDays is not None:
11952
      oprot.writeFieldBegin('numberOfDays', TType.I64, 2)
11953
      oprot.writeI64(self.numberOfDays)
11954
      oprot.writeFieldEnd()
11955
    oprot.writeFieldStop()
11956
    oprot.writeStructEnd()
11957
 
11958
  def validate(self):
11959
    return
11960
 
11961
 
11962
  def __repr__(self):
11963
    L = ['%s=%r' % (key, value)
11964
      for key, value in self.__dict__.iteritems()]
11965
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11966
 
11967
  def __eq__(self, other):
11968
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11969
 
11970
  def __ne__(self, other):
11971
    return not (self == other)
11972
 
11973
class getLastNdaySaleForItem_result:
11974
  """
11975
  Attributes:
11976
   - success
11977
  """
11978
 
11979
  thrift_spec = (
11980
    (0, TType.STRING, 'success', None, None, ), # 0
11981
  )
11982
 
11983
  def __init__(self, success=None,):
11984
    self.success = success
11985
 
11986
  def read(self, iprot):
11987
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11988
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11989
      return
11990
    iprot.readStructBegin()
11991
    while True:
11992
      (fname, ftype, fid) = iprot.readFieldBegin()
11993
      if ftype == TType.STOP:
11994
        break
11995
      if fid == 0:
11996
        if ftype == TType.STRING:
11997
          self.success = iprot.readString();
11998
        else:
11999
          iprot.skip(ftype)
12000
      else:
12001
        iprot.skip(ftype)
12002
      iprot.readFieldEnd()
12003
    iprot.readStructEnd()
12004
 
12005
  def write(self, oprot):
12006
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12007
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12008
      return
12009
    oprot.writeStructBegin('getLastNdaySaleForItem_result')
12010
    if self.success is not None:
12011
      oprot.writeFieldBegin('success', TType.STRING, 0)
12012
      oprot.writeString(self.success)
12013
      oprot.writeFieldEnd()
12014
    oprot.writeFieldStop()
12015
    oprot.writeStructEnd()
12016
 
12017
  def validate(self):
12018
    return
12019
 
12020
 
12021
  def __repr__(self):
12022
    L = ['%s=%r' % (key, value)
12023
      for key, value in self.__dict__.iteritems()]
12024
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12025
 
12026
  def __eq__(self, other):
12027
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12028
 
12029
  def __ne__(self, other):
12030
    return not (self == other)
8182 amar.kumar 12031
 
8282 kshitij.so 12032
class addOrUpdateAmazonFbaInventory_args:
12033
  """
12034
  Attributes:
12035
   - amazonfbainventorysnapshot
12036
  """
12037
 
12038
  thrift_spec = (
12039
    None, # 0
12040
    (1, TType.STRUCT, 'amazonfbainventorysnapshot', (AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec), None, ), # 1
12041
  )
12042
 
12043
  def __init__(self, amazonfbainventorysnapshot=None,):
12044
    self.amazonfbainventorysnapshot = amazonfbainventorysnapshot
12045
 
12046
  def read(self, iprot):
12047
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12048
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12049
      return
12050
    iprot.readStructBegin()
12051
    while True:
12052
      (fname, ftype, fid) = iprot.readFieldBegin()
12053
      if ftype == TType.STOP:
12054
        break
12055
      if fid == 1:
12056
        if ftype == TType.STRUCT:
12057
          self.amazonfbainventorysnapshot = AmazonFbaInventorySnapshot()
12058
          self.amazonfbainventorysnapshot.read(iprot)
12059
        else:
12060
          iprot.skip(ftype)
12061
      else:
12062
        iprot.skip(ftype)
12063
      iprot.readFieldEnd()
12064
    iprot.readStructEnd()
12065
 
12066
  def write(self, oprot):
12067
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12068
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12069
      return
12070
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_args')
12071
    if self.amazonfbainventorysnapshot is not None:
12072
      oprot.writeFieldBegin('amazonfbainventorysnapshot', TType.STRUCT, 1)
12073
      self.amazonfbainventorysnapshot.write(oprot)
12074
      oprot.writeFieldEnd()
12075
    oprot.writeFieldStop()
12076
    oprot.writeStructEnd()
12077
 
12078
  def validate(self):
12079
    return
12080
 
12081
 
12082
  def __repr__(self):
12083
    L = ['%s=%r' % (key, value)
12084
      for key, value in self.__dict__.iteritems()]
12085
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12086
 
12087
  def __eq__(self, other):
12088
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12089
 
12090
  def __ne__(self, other):
12091
    return not (self == other)
12092
 
12093
class addOrUpdateAmazonFbaInventory_result:
12094
 
12095
  thrift_spec = (
12096
  )
12097
 
12098
  def read(self, iprot):
12099
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12100
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12101
      return
12102
    iprot.readStructBegin()
12103
    while True:
12104
      (fname, ftype, fid) = iprot.readFieldBegin()
12105
      if ftype == TType.STOP:
12106
        break
12107
      else:
12108
        iprot.skip(ftype)
12109
      iprot.readFieldEnd()
12110
    iprot.readStructEnd()
12111
 
12112
  def write(self, oprot):
12113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12115
      return
12116
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_result')
12117
    oprot.writeFieldStop()
12118
    oprot.writeStructEnd()
12119
 
12120
  def validate(self):
12121
    return
12122
 
12123
 
12124
  def __repr__(self):
12125
    L = ['%s=%r' % (key, value)
12126
      for key, value in self.__dict__.iteritems()]
12127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12128
 
12129
  def __eq__(self, other):
12130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12131
 
12132
  def __ne__(self, other):
12133
    return not (self == other)
12134
 
8182 amar.kumar 12135
class addUpdateHoldInventory_args:
12136
  """
12137
  Attributes:
12138
   - itemId
12139
   - warehouseId
12140
   - holdQuantity
12141
   - source
12142
  """
12143
 
12144
  thrift_spec = (
12145
    None, # 0
12146
    (1, TType.I64, 'itemId', None, None, ), # 1
12147
    (2, TType.I64, 'warehouseId', None, None, ), # 2
12148
    (3, TType.I64, 'holdQuantity', None, None, ), # 3
12149
    (4, TType.I64, 'source', None, None, ), # 4
12150
  )
12151
 
12152
  def __init__(self, itemId=None, warehouseId=None, holdQuantity=None, source=None,):
12153
    self.itemId = itemId
12154
    self.warehouseId = warehouseId
12155
    self.holdQuantity = holdQuantity
12156
    self.source = source
12157
 
12158
  def read(self, iprot):
12159
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12160
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12161
      return
12162
    iprot.readStructBegin()
12163
    while True:
12164
      (fname, ftype, fid) = iprot.readFieldBegin()
12165
      if ftype == TType.STOP:
12166
        break
12167
      if fid == 1:
12168
        if ftype == TType.I64:
12169
          self.itemId = iprot.readI64();
12170
        else:
12171
          iprot.skip(ftype)
12172
      elif fid == 2:
12173
        if ftype == TType.I64:
12174
          self.warehouseId = iprot.readI64();
12175
        else:
12176
          iprot.skip(ftype)
12177
      elif fid == 3:
12178
        if ftype == TType.I64:
12179
          self.holdQuantity = iprot.readI64();
12180
        else:
12181
          iprot.skip(ftype)
12182
      elif fid == 4:
12183
        if ftype == TType.I64:
12184
          self.source = iprot.readI64();
12185
        else:
12186
          iprot.skip(ftype)
12187
      else:
12188
        iprot.skip(ftype)
12189
      iprot.readFieldEnd()
12190
    iprot.readStructEnd()
12191
 
12192
  def write(self, oprot):
12193
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12194
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12195
      return
12196
    oprot.writeStructBegin('addUpdateHoldInventory_args')
12197
    if self.itemId is not None:
12198
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12199
      oprot.writeI64(self.itemId)
12200
      oprot.writeFieldEnd()
12201
    if self.warehouseId is not None:
12202
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
12203
      oprot.writeI64(self.warehouseId)
12204
      oprot.writeFieldEnd()
12205
    if self.holdQuantity is not None:
12206
      oprot.writeFieldBegin('holdQuantity', TType.I64, 3)
12207
      oprot.writeI64(self.holdQuantity)
12208
      oprot.writeFieldEnd()
12209
    if self.source is not None:
12210
      oprot.writeFieldBegin('source', TType.I64, 4)
12211
      oprot.writeI64(self.source)
12212
      oprot.writeFieldEnd()
12213
    oprot.writeFieldStop()
12214
    oprot.writeStructEnd()
12215
 
12216
  def validate(self):
12217
    return
12218
 
12219
 
12220
  def __repr__(self):
12221
    L = ['%s=%r' % (key, value)
12222
      for key, value in self.__dict__.iteritems()]
12223
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12224
 
12225
  def __eq__(self, other):
12226
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12227
 
12228
  def __ne__(self, other):
12229
    return not (self == other)
12230
 
12231
class addUpdateHoldInventory_result:
9762 amar.kumar 12232
  """
12233
  Attributes:
12234
   - cex
12235
  """
8182 amar.kumar 12236
 
12237
  thrift_spec = (
9762 amar.kumar 12238
    None, # 0
12239
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8182 amar.kumar 12240
  )
12241
 
9762 amar.kumar 12242
  def __init__(self, cex=None,):
12243
    self.cex = cex
12244
 
8182 amar.kumar 12245
  def read(self, iprot):
12246
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12247
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12248
      return
12249
    iprot.readStructBegin()
12250
    while True:
12251
      (fname, ftype, fid) = iprot.readFieldBegin()
12252
      if ftype == TType.STOP:
12253
        break
9762 amar.kumar 12254
      if fid == 1:
12255
        if ftype == TType.STRUCT:
12256
          self.cex = InventoryServiceException()
12257
          self.cex.read(iprot)
12258
        else:
12259
          iprot.skip(ftype)
8182 amar.kumar 12260
      else:
12261
        iprot.skip(ftype)
12262
      iprot.readFieldEnd()
12263
    iprot.readStructEnd()
12264
 
12265
  def write(self, oprot):
12266
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12267
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12268
      return
12269
    oprot.writeStructBegin('addUpdateHoldInventory_result')
9762 amar.kumar 12270
    if self.cex is not None:
12271
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12272
      self.cex.write(oprot)
12273
      oprot.writeFieldEnd()
8182 amar.kumar 12274
    oprot.writeFieldStop()
12275
    oprot.writeStructEnd()
12276
 
12277
  def validate(self):
12278
    return
12279
 
12280
 
12281
  def __repr__(self):
12282
    L = ['%s=%r' % (key, value)
12283
      for key, value in self.__dict__.iteritems()]
12284
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12285
 
12286
  def __eq__(self, other):
12287
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12288
 
12289
  def __ne__(self, other):
12290
    return not (self == other)
8282 kshitij.so 12291
 
12292
class getAmazonFbaItemInventory_args:
12293
  """
12294
  Attributes:
12295
   - itemId
12296
  """
12297
 
12298
  thrift_spec = (
12299
    None, # 0
12300
    (1, TType.I64, 'itemId', None, None, ), # 1
12301
  )
12302
 
12303
  def __init__(self, itemId=None,):
12304
    self.itemId = itemId
12305
 
12306
  def read(self, iprot):
12307
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12308
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12309
      return
12310
    iprot.readStructBegin()
12311
    while True:
12312
      (fname, ftype, fid) = iprot.readFieldBegin()
12313
      if ftype == TType.STOP:
12314
        break
12315
      if fid == 1:
12316
        if ftype == TType.I64:
12317
          self.itemId = iprot.readI64();
12318
        else:
12319
          iprot.skip(ftype)
12320
      else:
12321
        iprot.skip(ftype)
12322
      iprot.readFieldEnd()
12323
    iprot.readStructEnd()
12324
 
12325
  def write(self, oprot):
12326
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12327
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12328
      return
12329
    oprot.writeStructBegin('getAmazonFbaItemInventory_args')
12330
    if self.itemId is not None:
12331
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12332
      oprot.writeI64(self.itemId)
12333
      oprot.writeFieldEnd()
12334
    oprot.writeFieldStop()
12335
    oprot.writeStructEnd()
12336
 
12337
  def validate(self):
12338
    return
12339
 
12340
 
12341
  def __repr__(self):
12342
    L = ['%s=%r' % (key, value)
12343
      for key, value in self.__dict__.iteritems()]
12344
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12345
 
12346
  def __eq__(self, other):
12347
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12348
 
12349
  def __ne__(self, other):
12350
    return not (self == other)
12351
 
12352
class getAmazonFbaItemInventory_result:
12353
  """
12354
  Attributes:
12355
   - success
12356
  """
12357
 
12358
  thrift_spec = (
11173 vikram.rag 12359
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
8282 kshitij.so 12360
  )
12361
 
12362
  def __init__(self, success=None,):
12363
    self.success = success
12364
 
12365
  def read(self, iprot):
12366
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12367
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12368
      return
12369
    iprot.readStructBegin()
12370
    while True:
12371
      (fname, ftype, fid) = iprot.readFieldBegin()
12372
      if ftype == TType.STOP:
12373
        break
12374
      if fid == 0:
11173 vikram.rag 12375
        if ftype == TType.LIST:
12376
          self.success = []
12377
          (_etype247, _size244) = iprot.readListBegin()
12378
          for _i248 in xrange(_size244):
12379
            _elem249 = AmazonFbaInventorySnapshot()
12380
            _elem249.read(iprot)
12381
            self.success.append(_elem249)
12382
          iprot.readListEnd()
8282 kshitij.so 12383
        else:
12384
          iprot.skip(ftype)
12385
      else:
12386
        iprot.skip(ftype)
12387
      iprot.readFieldEnd()
12388
    iprot.readStructEnd()
12389
 
12390
  def write(self, oprot):
12391
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12392
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12393
      return
12394
    oprot.writeStructBegin('getAmazonFbaItemInventory_result')
12395
    if self.success is not None:
11173 vikram.rag 12396
      oprot.writeFieldBegin('success', TType.LIST, 0)
12397
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12398
      for iter250 in self.success:
12399
        iter250.write(oprot)
12400
      oprot.writeListEnd()
8282 kshitij.so 12401
      oprot.writeFieldEnd()
12402
    oprot.writeFieldStop()
12403
    oprot.writeStructEnd()
12404
 
12405
  def validate(self):
12406
    return
12407
 
12408
 
12409
  def __repr__(self):
12410
    L = ['%s=%r' % (key, value)
12411
      for key, value in self.__dict__.iteritems()]
12412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12413
 
12414
  def __eq__(self, other):
12415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12416
 
12417
  def __ne__(self, other):
12418
    return not (self == other)
12419
 
8363 vikram.rag 12420
class getAllAmazonFbaItemInventory_args:
8282 kshitij.so 12421
 
12422
  thrift_spec = (
12423
  )
12424
 
12425
  def read(self, iprot):
12426
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12427
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12428
      return
12429
    iprot.readStructBegin()
12430
    while True:
12431
      (fname, ftype, fid) = iprot.readFieldBegin()
12432
      if ftype == TType.STOP:
12433
        break
12434
      else:
12435
        iprot.skip(ftype)
12436
      iprot.readFieldEnd()
12437
    iprot.readStructEnd()
12438
 
12439
  def write(self, oprot):
12440
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12441
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12442
      return
8363 vikram.rag 12443
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_args')
8282 kshitij.so 12444
    oprot.writeFieldStop()
12445
    oprot.writeStructEnd()
12446
 
12447
  def validate(self):
12448
    return
12449
 
12450
 
12451
  def __repr__(self):
12452
    L = ['%s=%r' % (key, value)
12453
      for key, value in self.__dict__.iteritems()]
12454
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12455
 
12456
  def __eq__(self, other):
12457
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12458
 
12459
  def __ne__(self, other):
12460
    return not (self == other)
12461
 
8363 vikram.rag 12462
class getAllAmazonFbaItemInventory_result:
8282 kshitij.so 12463
  """
12464
  Attributes:
12465
   - success
12466
  """
12467
 
12468
  thrift_spec = (
12469
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
12470
  )
12471
 
12472
  def __init__(self, success=None,):
12473
    self.success = success
12474
 
12475
  def read(self, iprot):
12476
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12477
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12478
      return
12479
    iprot.readStructBegin()
12480
    while True:
12481
      (fname, ftype, fid) = iprot.readFieldBegin()
12482
      if ftype == TType.STOP:
12483
        break
12484
      if fid == 0:
12485
        if ftype == TType.LIST:
12486
          self.success = []
11173 vikram.rag 12487
          (_etype254, _size251) = iprot.readListBegin()
12488
          for _i255 in xrange(_size251):
12489
            _elem256 = AmazonFbaInventorySnapshot()
12490
            _elem256.read(iprot)
12491
            self.success.append(_elem256)
8282 kshitij.so 12492
          iprot.readListEnd()
12493
        else:
12494
          iprot.skip(ftype)
12495
      else:
12496
        iprot.skip(ftype)
12497
      iprot.readFieldEnd()
12498
    iprot.readStructEnd()
12499
 
12500
  def write(self, oprot):
12501
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12502
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12503
      return
8363 vikram.rag 12504
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_result')
8282 kshitij.so 12505
    if self.success is not None:
12506
      oprot.writeFieldBegin('success', TType.LIST, 0)
12507
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 12508
      for iter257 in self.success:
12509
        iter257.write(oprot)
8282 kshitij.so 12510
      oprot.writeListEnd()
12511
      oprot.writeFieldEnd()
12512
    oprot.writeFieldStop()
12513
    oprot.writeStructEnd()
12514
 
12515
  def validate(self):
12516
    return
12517
 
12518
 
12519
  def __repr__(self):
12520
    L = ['%s=%r' % (key, value)
12521
      for key, value in self.__dict__.iteritems()]
12522
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12523
 
12524
  def __eq__(self, other):
12525
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12526
 
12527
  def __ne__(self, other):
12528
    return not (self == other)
8363 vikram.rag 12529
 
12530
class getOursGoodWarehouseIdsForLocation_args:
12531
  """
12532
  Attributes:
12533
   - state_id
12534
  """
12535
 
12536
  thrift_spec = (
12537
    None, # 0
12538
    (1, TType.I64, 'state_id', None, None, ), # 1
12539
  )
12540
 
12541
  def __init__(self, state_id=None,):
12542
    self.state_id = state_id
12543
 
12544
  def read(self, iprot):
12545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12547
      return
12548
    iprot.readStructBegin()
12549
    while True:
12550
      (fname, ftype, fid) = iprot.readFieldBegin()
12551
      if ftype == TType.STOP:
12552
        break
12553
      if fid == 1:
12554
        if ftype == TType.I64:
12555
          self.state_id = iprot.readI64();
12556
        else:
12557
          iprot.skip(ftype)
12558
      else:
12559
        iprot.skip(ftype)
12560
      iprot.readFieldEnd()
12561
    iprot.readStructEnd()
12562
 
12563
  def write(self, oprot):
12564
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12565
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12566
      return
12567
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_args')
12568
    if self.state_id is not None:
12569
      oprot.writeFieldBegin('state_id', TType.I64, 1)
12570
      oprot.writeI64(self.state_id)
12571
      oprot.writeFieldEnd()
12572
    oprot.writeFieldStop()
12573
    oprot.writeStructEnd()
12574
 
12575
  def validate(self):
12576
    return
12577
 
12578
 
12579
  def __repr__(self):
12580
    L = ['%s=%r' % (key, value)
12581
      for key, value in self.__dict__.iteritems()]
12582
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12583
 
12584
  def __eq__(self, other):
12585
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12586
 
12587
  def __ne__(self, other):
12588
    return not (self == other)
12589
 
12590
class getOursGoodWarehouseIdsForLocation_result:
12591
  """
12592
  Attributes:
12593
   - success
12594
  """
12595
 
12596
  thrift_spec = (
12597
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12598
  )
12599
 
12600
  def __init__(self, success=None,):
12601
    self.success = success
12602
 
12603
  def read(self, iprot):
12604
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12605
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12606
      return
12607
    iprot.readStructBegin()
12608
    while True:
12609
      (fname, ftype, fid) = iprot.readFieldBegin()
12610
      if ftype == TType.STOP:
12611
        break
12612
      if fid == 0:
12613
        if ftype == TType.LIST:
12614
          self.success = []
11173 vikram.rag 12615
          (_etype261, _size258) = iprot.readListBegin()
12616
          for _i262 in xrange(_size258):
12617
            _elem263 = iprot.readI64();
12618
            self.success.append(_elem263)
8363 vikram.rag 12619
          iprot.readListEnd()
12620
        else:
12621
          iprot.skip(ftype)
12622
      else:
12623
        iprot.skip(ftype)
12624
      iprot.readFieldEnd()
12625
    iprot.readStructEnd()
12626
 
12627
  def write(self, oprot):
12628
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12629
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12630
      return
12631
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_result')
12632
    if self.success is not None:
12633
      oprot.writeFieldBegin('success', TType.LIST, 0)
12634
      oprot.writeListBegin(TType.I64, len(self.success))
11173 vikram.rag 12635
      for iter264 in self.success:
12636
        oprot.writeI64(iter264)
8363 vikram.rag 12637
      oprot.writeListEnd()
12638
      oprot.writeFieldEnd()
12639
    oprot.writeFieldStop()
12640
    oprot.writeStructEnd()
12641
 
12642
  def validate(self):
12643
    return
12644
 
12645
 
12646
  def __repr__(self):
12647
    L = ['%s=%r' % (key, value)
12648
      for key, value in self.__dict__.iteritems()]
12649
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12650
 
12651
  def __eq__(self, other):
12652
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12653
 
12654
  def __ne__(self, other):
12655
    return not (self == other)
8955 vikram.rag 12656
 
12657
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_args:
12658
  """
12659
  Attributes:
12660
   - id
12661
   - warehouse_id
12662
   - source
12663
  """
12664
 
12665
  thrift_spec = (
12666
    None, # 0
12667
    (1, TType.I64, 'id', None, None, ), # 1
12668
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
12669
    (3, TType.I64, 'source', None, None, ), # 3
12670
  )
12671
 
12672
  def __init__(self, id=None, warehouse_id=None, source=None,):
12673
    self.id = id
12674
    self.warehouse_id = warehouse_id
12675
    self.source = source
12676
 
12677
  def read(self, iprot):
12678
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12679
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12680
      return
12681
    iprot.readStructBegin()
12682
    while True:
12683
      (fname, ftype, fid) = iprot.readFieldBegin()
12684
      if ftype == TType.STOP:
12685
        break
12686
      if fid == 1:
12687
        if ftype == TType.I64:
12688
          self.id = iprot.readI64();
12689
        else:
12690
          iprot.skip(ftype)
12691
      elif fid == 2:
12692
        if ftype == TType.I64:
12693
          self.warehouse_id = iprot.readI64();
12694
        else:
12695
          iprot.skip(ftype)
12696
      elif fid == 3:
12697
        if ftype == TType.I64:
12698
          self.source = iprot.readI64();
12699
        else:
12700
          iprot.skip(ftype)
12701
      else:
12702
        iprot.skip(ftype)
12703
      iprot.readFieldEnd()
12704
    iprot.readStructEnd()
12705
 
12706
  def write(self, oprot):
12707
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12708
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12709
      return
12710
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_args')
12711
    if self.id is not None:
12712
      oprot.writeFieldBegin('id', TType.I64, 1)
12713
      oprot.writeI64(self.id)
12714
      oprot.writeFieldEnd()
12715
    if self.warehouse_id is not None:
12716
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
12717
      oprot.writeI64(self.warehouse_id)
12718
      oprot.writeFieldEnd()
12719
    if self.source is not None:
12720
      oprot.writeFieldBegin('source', TType.I64, 3)
12721
      oprot.writeI64(self.source)
12722
      oprot.writeFieldEnd()
12723
    oprot.writeFieldStop()
12724
    oprot.writeStructEnd()
12725
 
12726
  def validate(self):
12727
    return
12728
 
12729
 
12730
  def __repr__(self):
12731
    L = ['%s=%r' % (key, value)
12732
      for key, value in self.__dict__.iteritems()]
12733
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12734
 
12735
  def __eq__(self, other):
12736
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12737
 
12738
  def __ne__(self, other):
12739
    return not (self == other)
12740
 
12741
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_result:
12742
  """
12743
  Attributes:
12744
   - success
12745
  """
12746
 
12747
  thrift_spec = (
12748
    (0, TType.I64, 'success', None, None, ), # 0
12749
  )
12750
 
12751
  def __init__(self, success=None,):
12752
    self.success = success
12753
 
12754
  def read(self, iprot):
12755
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12756
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12757
      return
12758
    iprot.readStructBegin()
12759
    while True:
12760
      (fname, ftype, fid) = iprot.readFieldBegin()
12761
      if ftype == TType.STOP:
12762
        break
12763
      if fid == 0:
12764
        if ftype == TType.I64:
12765
          self.success = iprot.readI64();
12766
        else:
12767
          iprot.skip(ftype)
12768
      else:
12769
        iprot.skip(ftype)
12770
      iprot.readFieldEnd()
12771
    iprot.readStructEnd()
12772
 
12773
  def write(self, oprot):
12774
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12775
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12776
      return
12777
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_result')
12778
    if self.success is not None:
12779
      oprot.writeFieldBegin('success', TType.I64, 0)
12780
      oprot.writeI64(self.success)
12781
      oprot.writeFieldEnd()
12782
    oprot.writeFieldStop()
12783
    oprot.writeStructEnd()
12784
 
12785
  def validate(self):
12786
    return
12787
 
12788
 
12789
  def __repr__(self):
12790
    L = ['%s=%r' % (key, value)
12791
      for key, value in self.__dict__.iteritems()]
12792
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12793
 
12794
  def __eq__(self, other):
12795
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12796
 
12797
  def __ne__(self, other):
12798
    return not (self == other)
9404 vikram.rag 12799
 
12800
class getSnapdealInventoryForItem_args:
12801
  """
12802
  Attributes:
12803
   - item_id
12804
  """
12805
 
12806
  thrift_spec = (
12807
    None, # 0
12808
    (1, TType.I64, 'item_id', None, None, ), # 1
12809
  )
12810
 
12811
  def __init__(self, item_id=None,):
12812
    self.item_id = item_id
12813
 
12814
  def read(self, iprot):
12815
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12816
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12817
      return
12818
    iprot.readStructBegin()
12819
    while True:
12820
      (fname, ftype, fid) = iprot.readFieldBegin()
12821
      if ftype == TType.STOP:
12822
        break
12823
      if fid == 1:
12824
        if ftype == TType.I64:
12825
          self.item_id = iprot.readI64();
12826
        else:
12827
          iprot.skip(ftype)
12828
      else:
12829
        iprot.skip(ftype)
12830
      iprot.readFieldEnd()
12831
    iprot.readStructEnd()
12832
 
12833
  def write(self, oprot):
12834
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12835
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12836
      return
12837
    oprot.writeStructBegin('getSnapdealInventoryForItem_args')
12838
    if self.item_id is not None:
12839
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12840
      oprot.writeI64(self.item_id)
12841
      oprot.writeFieldEnd()
12842
    oprot.writeFieldStop()
12843
    oprot.writeStructEnd()
12844
 
12845
  def validate(self):
12846
    return
12847
 
12848
 
12849
  def __repr__(self):
12850
    L = ['%s=%r' % (key, value)
12851
      for key, value in self.__dict__.iteritems()]
12852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12853
 
12854
  def __eq__(self, other):
12855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12856
 
12857
  def __ne__(self, other):
12858
    return not (self == other)
12859
 
12860
class getSnapdealInventoryForItem_result:
12861
  """
12862
  Attributes:
12863
   - success
12864
  """
12865
 
12866
  thrift_spec = (
12867
    (0, TType.STRUCT, 'success', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 0
12868
  )
12869
 
12870
  def __init__(self, success=None,):
12871
    self.success = success
12872
 
12873
  def read(self, iprot):
12874
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12875
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12876
      return
12877
    iprot.readStructBegin()
12878
    while True:
12879
      (fname, ftype, fid) = iprot.readFieldBegin()
12880
      if ftype == TType.STOP:
12881
        break
12882
      if fid == 0:
12883
        if ftype == TType.STRUCT:
12884
          self.success = SnapdealInventoryItem()
12885
          self.success.read(iprot)
12886
        else:
12887
          iprot.skip(ftype)
12888
      else:
12889
        iprot.skip(ftype)
12890
      iprot.readFieldEnd()
12891
    iprot.readStructEnd()
12892
 
12893
  def write(self, oprot):
12894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12896
      return
12897
    oprot.writeStructBegin('getSnapdealInventoryForItem_result')
12898
    if self.success is not None:
12899
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12900
      self.success.write(oprot)
12901
      oprot.writeFieldEnd()
12902
    oprot.writeFieldStop()
12903
    oprot.writeStructEnd()
12904
 
12905
  def validate(self):
12906
    return
12907
 
12908
 
12909
  def __repr__(self):
12910
    L = ['%s=%r' % (key, value)
12911
      for key, value in self.__dict__.iteritems()]
12912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12913
 
12914
  def __eq__(self, other):
12915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12916
 
12917
  def __ne__(self, other):
12918
    return not (self == other)
12919
 
12920
class addOrUpdateSnapdealInventoryForItem_args:
12921
  """
12922
  Attributes:
12923
   - snapdealinventoryitem
12924
  """
12925
 
12926
  thrift_spec = (
12927
    None, # 0
12928
    (1, TType.STRUCT, 'snapdealinventoryitem', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 1
12929
  )
12930
 
12931
  def __init__(self, snapdealinventoryitem=None,):
12932
    self.snapdealinventoryitem = snapdealinventoryitem
12933
 
12934
  def read(self, iprot):
12935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12937
      return
12938
    iprot.readStructBegin()
12939
    while True:
12940
      (fname, ftype, fid) = iprot.readFieldBegin()
12941
      if ftype == TType.STOP:
12942
        break
12943
      if fid == 1:
12944
        if ftype == TType.STRUCT:
12945
          self.snapdealinventoryitem = SnapdealInventoryItem()
12946
          self.snapdealinventoryitem.read(iprot)
12947
        else:
12948
          iprot.skip(ftype)
12949
      else:
12950
        iprot.skip(ftype)
12951
      iprot.readFieldEnd()
12952
    iprot.readStructEnd()
12953
 
12954
  def write(self, oprot):
12955
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12956
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12957
      return
12958
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_args')
12959
    if self.snapdealinventoryitem is not None:
12960
      oprot.writeFieldBegin('snapdealinventoryitem', TType.STRUCT, 1)
12961
      self.snapdealinventoryitem.write(oprot)
12962
      oprot.writeFieldEnd()
12963
    oprot.writeFieldStop()
12964
    oprot.writeStructEnd()
12965
 
12966
  def validate(self):
12967
    return
12968
 
12969
 
12970
  def __repr__(self):
12971
    L = ['%s=%r' % (key, value)
12972
      for key, value in self.__dict__.iteritems()]
12973
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12974
 
12975
  def __eq__(self, other):
12976
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12977
 
12978
  def __ne__(self, other):
12979
    return not (self == other)
12980
 
12981
class addOrUpdateSnapdealInventoryForItem_result:
12982
 
12983
  thrift_spec = (
12984
  )
12985
 
12986
  def read(self, iprot):
12987
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12988
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12989
      return
12990
    iprot.readStructBegin()
12991
    while True:
12992
      (fname, ftype, fid) = iprot.readFieldBegin()
12993
      if ftype == TType.STOP:
12994
        break
12995
      else:
12996
        iprot.skip(ftype)
12997
      iprot.readFieldEnd()
12998
    iprot.readStructEnd()
12999
 
13000
  def write(self, oprot):
13001
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13002
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13003
      return
13004
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_result')
13005
    oprot.writeFieldStop()
13006
    oprot.writeStructEnd()
13007
 
13008
  def validate(self):
13009
    return
13010
 
13011
 
13012
  def __repr__(self):
13013
    L = ['%s=%r' % (key, value)
13014
      for key, value in self.__dict__.iteritems()]
13015
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13016
 
13017
  def __eq__(self, other):
13018
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13019
 
13020
  def __ne__(self, other):
13021
    return not (self == other)
13022
 
13023
class getNlcForWarehouse_args:
13024
  """
13025
  Attributes:
13026
   - warehouse_id
13027
   - item_id
13028
  """
13029
 
13030
  thrift_spec = (
13031
    None, # 0
13032
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
13033
    (2, TType.I64, 'item_id', None, None, ), # 2
13034
  )
13035
 
13036
  def __init__(self, warehouse_id=None, item_id=None,):
13037
    self.warehouse_id = warehouse_id
13038
    self.item_id = item_id
13039
 
13040
  def read(self, iprot):
13041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13043
      return
13044
    iprot.readStructBegin()
13045
    while True:
13046
      (fname, ftype, fid) = iprot.readFieldBegin()
13047
      if ftype == TType.STOP:
13048
        break
13049
      if fid == 1:
13050
        if ftype == TType.I64:
13051
          self.warehouse_id = iprot.readI64();
13052
        else:
13053
          iprot.skip(ftype)
13054
      elif fid == 2:
13055
        if ftype == TType.I64:
13056
          self.item_id = iprot.readI64();
13057
        else:
13058
          iprot.skip(ftype)
13059
      else:
13060
        iprot.skip(ftype)
13061
      iprot.readFieldEnd()
13062
    iprot.readStructEnd()
13063
 
13064
  def write(self, oprot):
13065
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13066
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13067
      return
13068
    oprot.writeStructBegin('getNlcForWarehouse_args')
13069
    if self.warehouse_id is not None:
13070
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
13071
      oprot.writeI64(self.warehouse_id)
13072
      oprot.writeFieldEnd()
13073
    if self.item_id is not None:
13074
      oprot.writeFieldBegin('item_id', TType.I64, 2)
13075
      oprot.writeI64(self.item_id)
13076
      oprot.writeFieldEnd()
13077
    oprot.writeFieldStop()
13078
    oprot.writeStructEnd()
13079
 
13080
  def validate(self):
13081
    return
13082
 
13083
 
13084
  def __repr__(self):
13085
    L = ['%s=%r' % (key, value)
13086
      for key, value in self.__dict__.iteritems()]
13087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13088
 
13089
  def __eq__(self, other):
13090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13091
 
13092
  def __ne__(self, other):
13093
    return not (self == other)
13094
 
13095
class getNlcForWarehouse_result:
13096
  """
13097
  Attributes:
13098
   - success
13099
  """
13100
 
13101
  thrift_spec = (
13102
    (0, TType.DOUBLE, 'success', None, None, ), # 0
13103
  )
13104
 
13105
  def __init__(self, success=None,):
13106
    self.success = success
13107
 
13108
  def read(self, iprot):
13109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13111
      return
13112
    iprot.readStructBegin()
13113
    while True:
13114
      (fname, ftype, fid) = iprot.readFieldBegin()
13115
      if ftype == TType.STOP:
13116
        break
13117
      if fid == 0:
13118
        if ftype == TType.DOUBLE:
13119
          self.success = iprot.readDouble();
13120
        else:
13121
          iprot.skip(ftype)
13122
      else:
13123
        iprot.skip(ftype)
13124
      iprot.readFieldEnd()
13125
    iprot.readStructEnd()
13126
 
13127
  def write(self, oprot):
13128
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13129
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13130
      return
13131
    oprot.writeStructBegin('getNlcForWarehouse_result')
13132
    if self.success is not None:
13133
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
13134
      oprot.writeDouble(self.success)
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)
9456 vikram.rag 13153
 
9640 amar.kumar 13154
class getHeldInventoryMapForItem_args:
13155
  """
13156
  Attributes:
13157
   - item_id
13158
   - warehouse_id
13159
  """
13160
 
13161
  thrift_spec = (
13162
    None, # 0
13163
    (1, TType.I64, 'item_id', None, None, ), # 1
13164
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
13165
  )
13166
 
13167
  def __init__(self, item_id=None, warehouse_id=None,):
13168
    self.item_id = item_id
13169
    self.warehouse_id = warehouse_id
13170
 
13171
  def read(self, iprot):
13172
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13173
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13174
      return
13175
    iprot.readStructBegin()
13176
    while True:
13177
      (fname, ftype, fid) = iprot.readFieldBegin()
13178
      if ftype == TType.STOP:
13179
        break
13180
      if fid == 1:
13181
        if ftype == TType.I64:
13182
          self.item_id = iprot.readI64();
13183
        else:
13184
          iprot.skip(ftype)
13185
      elif fid == 2:
13186
        if ftype == TType.I64:
13187
          self.warehouse_id = iprot.readI64();
13188
        else:
13189
          iprot.skip(ftype)
13190
      else:
13191
        iprot.skip(ftype)
13192
      iprot.readFieldEnd()
13193
    iprot.readStructEnd()
13194
 
13195
  def write(self, oprot):
13196
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13197
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13198
      return
13199
    oprot.writeStructBegin('getHeldInventoryMapForItem_args')
13200
    if self.item_id is not None:
13201
      oprot.writeFieldBegin('item_id', TType.I64, 1)
13202
      oprot.writeI64(self.item_id)
13203
      oprot.writeFieldEnd()
13204
    if self.warehouse_id is not None:
13205
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
13206
      oprot.writeI64(self.warehouse_id)
13207
      oprot.writeFieldEnd()
13208
    oprot.writeFieldStop()
13209
    oprot.writeStructEnd()
13210
 
13211
  def validate(self):
13212
    return
13213
 
13214
 
13215
  def __repr__(self):
13216
    L = ['%s=%r' % (key, value)
13217
      for key, value in self.__dict__.iteritems()]
13218
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13219
 
13220
  def __eq__(self, other):
13221
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13222
 
13223
  def __ne__(self, other):
13224
    return not (self == other)
13225
 
13226
class getHeldInventoryMapForItem_result:
13227
  """
13228
  Attributes:
13229
   - success
13230
  """
13231
 
13232
  thrift_spec = (
13233
    (0, TType.MAP, 'success', (TType.I32,None,TType.I64,None), None, ), # 0
13234
  )
13235
 
13236
  def __init__(self, success=None,):
13237
    self.success = success
13238
 
13239
  def read(self, iprot):
13240
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13241
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13242
      return
13243
    iprot.readStructBegin()
13244
    while True:
13245
      (fname, ftype, fid) = iprot.readFieldBegin()
13246
      if ftype == TType.STOP:
13247
        break
13248
      if fid == 0:
13249
        if ftype == TType.MAP:
13250
          self.success = {}
11173 vikram.rag 13251
          (_ktype266, _vtype267, _size265 ) = iprot.readMapBegin() 
13252
          for _i269 in xrange(_size265):
13253
            _key270 = iprot.readI32();
13254
            _val271 = iprot.readI64();
13255
            self.success[_key270] = _val271
9640 amar.kumar 13256
          iprot.readMapEnd()
13257
        else:
13258
          iprot.skip(ftype)
13259
      else:
13260
        iprot.skip(ftype)
13261
      iprot.readFieldEnd()
13262
    iprot.readStructEnd()
13263
 
13264
  def write(self, oprot):
13265
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13266
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13267
      return
13268
    oprot.writeStructBegin('getHeldInventoryMapForItem_result')
13269
    if self.success is not None:
13270
      oprot.writeFieldBegin('success', TType.MAP, 0)
13271
      oprot.writeMapBegin(TType.I32, TType.I64, len(self.success))
11173 vikram.rag 13272
      for kiter272,viter273 in self.success.items():
13273
        oprot.writeI32(kiter272)
13274
        oprot.writeI64(viter273)
9640 amar.kumar 13275
      oprot.writeMapEnd()
13276
      oprot.writeFieldEnd()
13277
    oprot.writeFieldStop()
13278
    oprot.writeStructEnd()
13279
 
13280
  def validate(self):
13281
    return
13282
 
13283
 
13284
  def __repr__(self):
13285
    L = ['%s=%r' % (key, value)
13286
      for key, value in self.__dict__.iteritems()]
13287
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13288
 
13289
  def __eq__(self, other):
13290
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13291
 
13292
  def __ne__(self, other):
13293
    return not (self == other)
13294
 
9495 vikram.rag 13295
class addOrUpdateAllAmazonFbaInventory_args:
13296
  """
13297
  Attributes:
13298
   - allamazonfbainventorysnapshot
13299
  """
9456 vikram.rag 13300
 
9495 vikram.rag 13301
  thrift_spec = None
13302
  def __init__(self, allamazonfbainventorysnapshot=None,):
13303
    self.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 13304
 
13305
  def read(self, iprot):
13306
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13307
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13308
      return
13309
    iprot.readStructBegin()
13310
    while True:
13311
      (fname, ftype, fid) = iprot.readFieldBegin()
13312
      if ftype == TType.STOP:
13313
        break
9495 vikram.rag 13314
      if fid == -1:
13315
        if ftype == TType.LIST:
13316
          self.allamazonfbainventorysnapshot = []
11173 vikram.rag 13317
          (_etype277, _size274) = iprot.readListBegin()
13318
          for _i278 in xrange(_size274):
13319
            _elem279 = AmazonFbaInventorySnapshot()
13320
            _elem279.read(iprot)
13321
            self.allamazonfbainventorysnapshot.append(_elem279)
9495 vikram.rag 13322
          iprot.readListEnd()
13323
        else:
13324
          iprot.skip(ftype)
9456 vikram.rag 13325
      else:
13326
        iprot.skip(ftype)
13327
      iprot.readFieldEnd()
13328
    iprot.readStructEnd()
13329
 
13330
  def write(self, oprot):
13331
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13332
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13333
      return
9495 vikram.rag 13334
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_args')
13335
    if self.allamazonfbainventorysnapshot is not None:
13336
      oprot.writeFieldBegin('allamazonfbainventorysnapshot', TType.LIST, -1)
13337
      oprot.writeListBegin(TType.STRUCT, len(self.allamazonfbainventorysnapshot))
11173 vikram.rag 13338
      for iter280 in self.allamazonfbainventorysnapshot:
13339
        iter280.write(oprot)
9495 vikram.rag 13340
      oprot.writeListEnd()
13341
      oprot.writeFieldEnd()
9456 vikram.rag 13342
    oprot.writeFieldStop()
13343
    oprot.writeStructEnd()
13344
 
13345
  def validate(self):
13346
    return
13347
 
13348
 
13349
  def __repr__(self):
13350
    L = ['%s=%r' % (key, value)
13351
      for key, value in self.__dict__.iteritems()]
13352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13353
 
13354
  def __eq__(self, other):
13355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13356
 
13357
  def __ne__(self, other):
13358
    return not (self == other)
13359
 
9495 vikram.rag 13360
class addOrUpdateAllAmazonFbaInventory_result:
9456 vikram.rag 13361
 
13362
  thrift_spec = (
13363
  )
13364
 
13365
  def read(self, iprot):
13366
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13367
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13368
      return
13369
    iprot.readStructBegin()
13370
    while True:
13371
      (fname, ftype, fid) = iprot.readFieldBegin()
13372
      if ftype == TType.STOP:
13373
        break
13374
      else:
13375
        iprot.skip(ftype)
13376
      iprot.readFieldEnd()
13377
    iprot.readStructEnd()
13378
 
13379
  def write(self, oprot):
13380
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13381
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13382
      return
9495 vikram.rag 13383
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_result')
9456 vikram.rag 13384
    oprot.writeFieldStop()
13385
    oprot.writeStructEnd()
13386
 
13387
  def validate(self):
13388
    return
13389
 
13390
 
13391
  def __repr__(self):
13392
    L = ['%s=%r' % (key, value)
13393
      for key, value in self.__dict__.iteritems()]
13394
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13395
 
13396
  def __eq__(self, other):
13397
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13398
 
13399
  def __ne__(self, other):
13400
    return not (self == other)
9482 vikram.rag 13401
 
9495 vikram.rag 13402
class addOrUpdateAllSnapdealInventory_args:
9482 vikram.rag 13403
  """
13404
  Attributes:
9495 vikram.rag 13405
   - allsnapdealinventorysnapshot
9482 vikram.rag 13406
  """
13407
 
13408
  thrift_spec = None
9495 vikram.rag 13409
  def __init__(self, allsnapdealinventorysnapshot=None,):
13410
    self.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 13411
 
13412
  def read(self, iprot):
13413
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13414
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13415
      return
13416
    iprot.readStructBegin()
13417
    while True:
13418
      (fname, ftype, fid) = iprot.readFieldBegin()
13419
      if ftype == TType.STOP:
13420
        break
13421
      if fid == -1:
13422
        if ftype == TType.LIST:
9495 vikram.rag 13423
          self.allsnapdealinventorysnapshot = []
11173 vikram.rag 13424
          (_etype284, _size281) = iprot.readListBegin()
13425
          for _i285 in xrange(_size281):
13426
            _elem286 = SnapdealInventoryItem()
13427
            _elem286.read(iprot)
13428
            self.allsnapdealinventorysnapshot.append(_elem286)
9482 vikram.rag 13429
          iprot.readListEnd()
13430
        else:
13431
          iprot.skip(ftype)
13432
      else:
13433
        iprot.skip(ftype)
13434
      iprot.readFieldEnd()
13435
    iprot.readStructEnd()
13436
 
13437
  def write(self, oprot):
13438
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13439
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13440
      return
9495 vikram.rag 13441
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_args')
13442
    if self.allsnapdealinventorysnapshot is not None:
13443
      oprot.writeFieldBegin('allsnapdealinventorysnapshot', TType.LIST, -1)
13444
      oprot.writeListBegin(TType.STRUCT, len(self.allsnapdealinventorysnapshot))
11173 vikram.rag 13445
      for iter287 in self.allsnapdealinventorysnapshot:
13446
        iter287.write(oprot)
9482 vikram.rag 13447
      oprot.writeListEnd()
13448
      oprot.writeFieldEnd()
13449
    oprot.writeFieldStop()
13450
    oprot.writeStructEnd()
13451
 
13452
  def validate(self):
13453
    return
13454
 
13455
 
13456
  def __repr__(self):
13457
    L = ['%s=%r' % (key, value)
13458
      for key, value in self.__dict__.iteritems()]
13459
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13460
 
13461
  def __eq__(self, other):
13462
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13463
 
13464
  def __ne__(self, other):
13465
    return not (self == other)
13466
 
9495 vikram.rag 13467
class addOrUpdateAllSnapdealInventory_result:
9482 vikram.rag 13468
 
13469
  thrift_spec = (
13470
  )
13471
 
13472
  def read(self, iprot):
13473
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13474
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13475
      return
13476
    iprot.readStructBegin()
13477
    while True:
13478
      (fname, ftype, fid) = iprot.readFieldBegin()
13479
      if ftype == TType.STOP:
13480
        break
13481
      else:
13482
        iprot.skip(ftype)
13483
      iprot.readFieldEnd()
13484
    iprot.readStructEnd()
13485
 
13486
  def write(self, oprot):
13487
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13488
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13489
      return
9495 vikram.rag 13490
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_result')
9482 vikram.rag 13491
    oprot.writeFieldStop()
13492
    oprot.writeStructEnd()
13493
 
13494
  def validate(self):
13495
    return
13496
 
13497
 
13498
  def __repr__(self):
13499
    L = ['%s=%r' % (key, value)
13500
      for key, value in self.__dict__.iteritems()]
13501
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13502
 
13503
  def __eq__(self, other):
13504
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13505
 
13506
  def __ne__(self, other):
13507
    return not (self == other)
9495 vikram.rag 13508
 
13509
class getSnapdealInventorySnapshot_args:
13510
 
13511
  thrift_spec = (
13512
  )
13513
 
13514
  def read(self, iprot):
13515
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13516
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13517
      return
13518
    iprot.readStructBegin()
13519
    while True:
13520
      (fname, ftype, fid) = iprot.readFieldBegin()
13521
      if ftype == TType.STOP:
13522
        break
13523
      else:
13524
        iprot.skip(ftype)
13525
      iprot.readFieldEnd()
13526
    iprot.readStructEnd()
13527
 
13528
  def write(self, oprot):
13529
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13530
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13531
      return
13532
    oprot.writeStructBegin('getSnapdealInventorySnapshot_args')
13533
    oprot.writeFieldStop()
13534
    oprot.writeStructEnd()
13535
 
13536
  def validate(self):
13537
    return
13538
 
13539
 
13540
  def __repr__(self):
13541
    L = ['%s=%r' % (key, value)
13542
      for key, value in self.__dict__.iteritems()]
13543
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13544
 
13545
  def __eq__(self, other):
13546
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13547
 
13548
  def __ne__(self, other):
13549
    return not (self == other)
13550
 
13551
class getSnapdealInventorySnapshot_result:
13552
  """
13553
  Attributes:
13554
   - success
13555
  """
13556
 
13557
  thrift_spec = (
13558
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec)), None, ), # 0
13559
  )
13560
 
13561
  def __init__(self, success=None,):
13562
    self.success = success
13563
 
13564
  def read(self, iprot):
13565
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13566
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13567
      return
13568
    iprot.readStructBegin()
13569
    while True:
13570
      (fname, ftype, fid) = iprot.readFieldBegin()
13571
      if ftype == TType.STOP:
13572
        break
13573
      if fid == 0:
13574
        if ftype == TType.LIST:
13575
          self.success = []
11173 vikram.rag 13576
          (_etype291, _size288) = iprot.readListBegin()
13577
          for _i292 in xrange(_size288):
13578
            _elem293 = SnapdealInventoryItem()
13579
            _elem293.read(iprot)
13580
            self.success.append(_elem293)
9495 vikram.rag 13581
          iprot.readListEnd()
13582
        else:
13583
          iprot.skip(ftype)
13584
      else:
13585
        iprot.skip(ftype)
13586
      iprot.readFieldEnd()
13587
    iprot.readStructEnd()
13588
 
13589
  def write(self, oprot):
13590
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13591
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13592
      return
13593
    oprot.writeStructBegin('getSnapdealInventorySnapshot_result')
13594
    if self.success is not None:
13595
      oprot.writeFieldBegin('success', TType.LIST, 0)
13596
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 13597
      for iter294 in self.success:
13598
        iter294.write(oprot)
9495 vikram.rag 13599
      oprot.writeListEnd()
13600
      oprot.writeFieldEnd()
13601
    oprot.writeFieldStop()
13602
    oprot.writeStructEnd()
13603
 
13604
  def validate(self):
13605
    return
13606
 
13607
 
13608
  def __repr__(self):
13609
    L = ['%s=%r' % (key, value)
13610
      for key, value in self.__dict__.iteritems()]
13611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13612
 
13613
  def __eq__(self, other):
13614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13615
 
13616
  def __ne__(self, other):
13617
    return not (self == other)
9761 amar.kumar 13618
 
13619
class getHoldInventoryDetails_args:
13620
  """
13621
  Attributes:
13622
   - itemId
13623
   - warehouseId
13624
   - source
13625
  """
13626
 
13627
  thrift_spec = (
13628
    None, # 0
13629
    (1, TType.I64, 'itemId', None, None, ), # 1
13630
    (2, TType.I64, 'warehouseId', None, None, ), # 2
13631
    (3, TType.I64, 'source', None, None, ), # 3
13632
  )
13633
 
13634
  def __init__(self, itemId=None, warehouseId=None, source=None,):
13635
    self.itemId = itemId
13636
    self.warehouseId = warehouseId
13637
    self.source = source
13638
 
13639
  def read(self, iprot):
13640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13642
      return
13643
    iprot.readStructBegin()
13644
    while True:
13645
      (fname, ftype, fid) = iprot.readFieldBegin()
13646
      if ftype == TType.STOP:
13647
        break
13648
      if fid == 1:
13649
        if ftype == TType.I64:
13650
          self.itemId = iprot.readI64();
13651
        else:
13652
          iprot.skip(ftype)
13653
      elif fid == 2:
13654
        if ftype == TType.I64:
13655
          self.warehouseId = iprot.readI64();
13656
        else:
13657
          iprot.skip(ftype)
13658
      elif fid == 3:
13659
        if ftype == TType.I64:
13660
          self.source = iprot.readI64();
13661
        else:
13662
          iprot.skip(ftype)
13663
      else:
13664
        iprot.skip(ftype)
13665
      iprot.readFieldEnd()
13666
    iprot.readStructEnd()
13667
 
13668
  def write(self, oprot):
13669
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13670
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13671
      return
13672
    oprot.writeStructBegin('getHoldInventoryDetails_args')
13673
    if self.itemId is not None:
13674
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13675
      oprot.writeI64(self.itemId)
13676
      oprot.writeFieldEnd()
13677
    if self.warehouseId is not None:
13678
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
13679
      oprot.writeI64(self.warehouseId)
13680
      oprot.writeFieldEnd()
13681
    if self.source is not None:
13682
      oprot.writeFieldBegin('source', TType.I64, 3)
13683
      oprot.writeI64(self.source)
13684
      oprot.writeFieldEnd()
13685
    oprot.writeFieldStop()
13686
    oprot.writeStructEnd()
13687
 
13688
  def validate(self):
13689
    return
13690
 
13691
 
13692
  def __repr__(self):
13693
    L = ['%s=%r' % (key, value)
13694
      for key, value in self.__dict__.iteritems()]
13695
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13696
 
13697
  def __eq__(self, other):
13698
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13699
 
13700
  def __ne__(self, other):
13701
    return not (self == other)
13702
 
13703
class getHoldInventoryDetails_result:
13704
  """
13705
  Attributes:
13706
   - success
13707
  """
13708
 
13709
  thrift_spec = (
13710
    (0, TType.LIST, 'success', (TType.STRUCT,(HoldInventoryDetail, HoldInventoryDetail.thrift_spec)), None, ), # 0
13711
  )
13712
 
13713
  def __init__(self, success=None,):
13714
    self.success = success
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
      if fid == 0:
13726
        if ftype == TType.LIST:
13727
          self.success = []
11173 vikram.rag 13728
          (_etype298, _size295) = iprot.readListBegin()
13729
          for _i299 in xrange(_size295):
13730
            _elem300 = HoldInventoryDetail()
13731
            _elem300.read(iprot)
13732
            self.success.append(_elem300)
9761 amar.kumar 13733
          iprot.readListEnd()
13734
        else:
13735
          iprot.skip(ftype)
13736
      else:
13737
        iprot.skip(ftype)
13738
      iprot.readFieldEnd()
13739
    iprot.readStructEnd()
13740
 
13741
  def write(self, oprot):
13742
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13743
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13744
      return
13745
    oprot.writeStructBegin('getHoldInventoryDetails_result')
13746
    if self.success is not None:
13747
      oprot.writeFieldBegin('success', TType.LIST, 0)
13748
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 13749
      for iter301 in self.success:
13750
        iter301.write(oprot)
9761 amar.kumar 13751
      oprot.writeListEnd()
13752
      oprot.writeFieldEnd()
13753
    oprot.writeFieldStop()
13754
    oprot.writeStructEnd()
13755
 
13756
  def validate(self):
13757
    return
13758
 
13759
 
13760
  def __repr__(self):
13761
    L = ['%s=%r' % (key, value)
13762
      for key, value in self.__dict__.iteritems()]
13763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13764
 
13765
  def __eq__(self, other):
13766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13767
 
13768
  def __ne__(self, other):
13769
    return not (self == other)
10050 vikram.rag 13770
 
13771
class addOrUpdateFlipkartInventorySnapshot_args:
13772
  """
13773
  Attributes:
13774
   - flipkartInventorySnapshot
10450 vikram.rag 13775
   - time
10050 vikram.rag 13776
  """
13777
 
10450 vikram.rag 13778
  thrift_spec = (
13779
    None, # 0
13780
    (1, TType.LIST, 'flipkartInventorySnapshot', (TType.STRUCT,(FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec)), None, ), # 1
13781
    (2, TType.I64, 'time', None, None, ), # 2
13782
  )
13783
 
13784
  def __init__(self, flipkartInventorySnapshot=None, time=None,):
10050 vikram.rag 13785
    self.flipkartInventorySnapshot = flipkartInventorySnapshot
10450 vikram.rag 13786
    self.time = time
10050 vikram.rag 13787
 
13788
  def read(self, iprot):
13789
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13790
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13791
      return
13792
    iprot.readStructBegin()
13793
    while True:
13794
      (fname, ftype, fid) = iprot.readFieldBegin()
13795
      if ftype == TType.STOP:
13796
        break
10450 vikram.rag 13797
      if fid == 1:
10050 vikram.rag 13798
        if ftype == TType.LIST:
13799
          self.flipkartInventorySnapshot = []
11173 vikram.rag 13800
          (_etype305, _size302) = iprot.readListBegin()
13801
          for _i306 in xrange(_size302):
13802
            _elem307 = FlipkartInventorySnapshot()
13803
            _elem307.read(iprot)
13804
            self.flipkartInventorySnapshot.append(_elem307)
10050 vikram.rag 13805
          iprot.readListEnd()
13806
        else:
13807
          iprot.skip(ftype)
10450 vikram.rag 13808
      elif fid == 2:
13809
        if ftype == TType.I64:
13810
          self.time = iprot.readI64();
13811
        else:
13812
          iprot.skip(ftype)
10050 vikram.rag 13813
      else:
13814
        iprot.skip(ftype)
13815
      iprot.readFieldEnd()
13816
    iprot.readStructEnd()
13817
 
13818
  def write(self, oprot):
13819
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13820
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13821
      return
13822
    oprot.writeStructBegin('addOrUpdateFlipkartInventorySnapshot_args')
13823
    if self.flipkartInventorySnapshot is not None:
10450 vikram.rag 13824
      oprot.writeFieldBegin('flipkartInventorySnapshot', TType.LIST, 1)
10050 vikram.rag 13825
      oprot.writeListBegin(TType.STRUCT, len(self.flipkartInventorySnapshot))
11173 vikram.rag 13826
      for iter308 in self.flipkartInventorySnapshot:
13827
        iter308.write(oprot)
10050 vikram.rag 13828
      oprot.writeListEnd()
13829
      oprot.writeFieldEnd()
10450 vikram.rag 13830
    if self.time is not None:
13831
      oprot.writeFieldBegin('time', TType.I64, 2)
13832
      oprot.writeI64(self.time)
13833
      oprot.writeFieldEnd()
10050 vikram.rag 13834
    oprot.writeFieldStop()
13835
    oprot.writeStructEnd()
13836
 
13837
  def validate(self):
13838
    return
13839
 
13840
 
13841
  def __repr__(self):
13842
    L = ['%s=%r' % (key, value)
13843
      for key, value in self.__dict__.iteritems()]
13844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13845
 
13846
  def __eq__(self, other):
13847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13848
 
13849
  def __ne__(self, other):
13850
    return not (self == other)
13851
 
13852
class addOrUpdateFlipkartInventorySnapshot_result:
13853
 
13854
  thrift_spec = (
13855
  )
13856
 
13857
  def read(self, iprot):
13858
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13859
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13860
      return
13861
    iprot.readStructBegin()
13862
    while True:
13863
      (fname, ftype, fid) = iprot.readFieldBegin()
13864
      if ftype == TType.STOP:
13865
        break
13866
      else:
13867
        iprot.skip(ftype)
13868
      iprot.readFieldEnd()
13869
    iprot.readStructEnd()
13870
 
13871
  def write(self, oprot):
13872
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13873
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13874
      return
13875
    oprot.writeStructBegin('addOrUpdateFlipkartInventorySnapshot_result')
13876
    oprot.writeFieldStop()
13877
    oprot.writeStructEnd()
13878
 
13879
  def validate(self):
13880
    return
13881
 
13882
 
13883
  def __repr__(self):
13884
    L = ['%s=%r' % (key, value)
13885
      for key, value in self.__dict__.iteritems()]
13886
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13887
 
13888
  def __eq__(self, other):
13889
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13890
 
13891
  def __ne__(self, other):
13892
    return not (self == other)
13893
 
13894
class getFlipkartInventorySnapshot_args:
13895
 
13896
  thrift_spec = (
13897
  )
13898
 
13899
  def read(self, iprot):
13900
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13901
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13902
      return
13903
    iprot.readStructBegin()
13904
    while True:
13905
      (fname, ftype, fid) = iprot.readFieldBegin()
13906
      if ftype == TType.STOP:
13907
        break
13908
      else:
13909
        iprot.skip(ftype)
13910
      iprot.readFieldEnd()
13911
    iprot.readStructEnd()
13912
 
13913
  def write(self, oprot):
13914
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13915
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13916
      return
13917
    oprot.writeStructBegin('getFlipkartInventorySnapshot_args')
13918
    oprot.writeFieldStop()
13919
    oprot.writeStructEnd()
13920
 
13921
  def validate(self):
13922
    return
13923
 
13924
 
13925
  def __repr__(self):
13926
    L = ['%s=%r' % (key, value)
13927
      for key, value in self.__dict__.iteritems()]
13928
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13929
 
13930
  def __eq__(self, other):
13931
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13932
 
13933
  def __ne__(self, other):
13934
    return not (self == other)
13935
 
13936
class getFlipkartInventorySnapshot_result:
13937
  """
13938
  Attributes:
13939
   - success
13940
  """
13941
 
13942
  thrift_spec = (
13943
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec)), None, ), # 0
13944
  )
13945
 
13946
  def __init__(self, success=None,):
13947
    self.success = success
13948
 
13949
  def read(self, iprot):
13950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13952
      return
13953
    iprot.readStructBegin()
13954
    while True:
13955
      (fname, ftype, fid) = iprot.readFieldBegin()
13956
      if ftype == TType.STOP:
13957
        break
13958
      if fid == 0:
13959
        if ftype == TType.LIST:
13960
          self.success = []
11173 vikram.rag 13961
          (_etype312, _size309) = iprot.readListBegin()
13962
          for _i313 in xrange(_size309):
13963
            _elem314 = FlipkartInventorySnapshot()
13964
            _elem314.read(iprot)
13965
            self.success.append(_elem314)
10050 vikram.rag 13966
          iprot.readListEnd()
13967
        else:
13968
          iprot.skip(ftype)
13969
      else:
13970
        iprot.skip(ftype)
13971
      iprot.readFieldEnd()
13972
    iprot.readStructEnd()
13973
 
13974
  def write(self, oprot):
13975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13977
      return
13978
    oprot.writeStructBegin('getFlipkartInventorySnapshot_result')
13979
    if self.success is not None:
13980
      oprot.writeFieldBegin('success', TType.LIST, 0)
13981
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 13982
      for iter315 in self.success:
13983
        iter315.write(oprot)
10050 vikram.rag 13984
      oprot.writeListEnd()
13985
      oprot.writeFieldEnd()
13986
    oprot.writeFieldStop()
13987
    oprot.writeStructEnd()
13988
 
13989
  def validate(self):
13990
    return
13991
 
13992
 
13993
  def __repr__(self):
13994
    L = ['%s=%r' % (key, value)
13995
      for key, value in self.__dict__.iteritems()]
13996
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13997
 
13998
  def __eq__(self, other):
13999
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14000
 
14001
  def __ne__(self, other):
14002
    return not (self == other)
10097 kshitij.so 14003
 
14004
class getFlipkartlInventoryForItem_args:
14005
  """
14006
  Attributes:
14007
   - item_id
14008
  """
14009
 
14010
  thrift_spec = (
14011
    None, # 0
14012
    (1, TType.I64, 'item_id', None, None, ), # 1
14013
  )
14014
 
14015
  def __init__(self, item_id=None,):
14016
    self.item_id = item_id
14017
 
14018
  def read(self, iprot):
14019
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14020
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14021
      return
14022
    iprot.readStructBegin()
14023
    while True:
14024
      (fname, ftype, fid) = iprot.readFieldBegin()
14025
      if ftype == TType.STOP:
14026
        break
14027
      if fid == 1:
14028
        if ftype == TType.I64:
14029
          self.item_id = iprot.readI64();
14030
        else:
14031
          iprot.skip(ftype)
14032
      else:
14033
        iprot.skip(ftype)
14034
      iprot.readFieldEnd()
14035
    iprot.readStructEnd()
14036
 
14037
  def write(self, oprot):
14038
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14039
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14040
      return
14041
    oprot.writeStructBegin('getFlipkartlInventoryForItem_args')
14042
    if self.item_id is not None:
14043
      oprot.writeFieldBegin('item_id', TType.I64, 1)
14044
      oprot.writeI64(self.item_id)
14045
      oprot.writeFieldEnd()
14046
    oprot.writeFieldStop()
14047
    oprot.writeStructEnd()
14048
 
14049
  def validate(self):
14050
    return
14051
 
14052
 
14053
  def __repr__(self):
14054
    L = ['%s=%r' % (key, value)
14055
      for key, value in self.__dict__.iteritems()]
14056
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14057
 
14058
  def __eq__(self, other):
14059
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14060
 
14061
  def __ne__(self, other):
14062
    return not (self == other)
14063
 
14064
class getFlipkartlInventoryForItem_result:
14065
  """
14066
  Attributes:
14067
   - success
14068
  """
14069
 
14070
  thrift_spec = (
14071
    (0, TType.STRUCT, 'success', (FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec), None, ), # 0
14072
  )
14073
 
14074
  def __init__(self, success=None,):
14075
    self.success = success
14076
 
14077
  def read(self, iprot):
14078
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14079
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14080
      return
14081
    iprot.readStructBegin()
14082
    while True:
14083
      (fname, ftype, fid) = iprot.readFieldBegin()
14084
      if ftype == TType.STOP:
14085
        break
14086
      if fid == 0:
14087
        if ftype == TType.STRUCT:
14088
          self.success = FlipkartInventorySnapshot()
14089
          self.success.read(iprot)
14090
        else:
14091
          iprot.skip(ftype)
14092
      else:
14093
        iprot.skip(ftype)
14094
      iprot.readFieldEnd()
14095
    iprot.readStructEnd()
14096
 
14097
  def write(self, oprot):
14098
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14099
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14100
      return
14101
    oprot.writeStructBegin('getFlipkartlInventoryForItem_result')
14102
    if self.success is not None:
14103
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
14104
      self.success.write(oprot)
14105
      oprot.writeFieldEnd()
14106
    oprot.writeFieldStop()
14107
    oprot.writeStructEnd()
14108
 
14109
  def validate(self):
14110
    return
14111
 
14112
 
14113
  def __repr__(self):
14114
    L = ['%s=%r' % (key, value)
14115
      for key, value in self.__dict__.iteritems()]
14116
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14117
 
14118
  def __eq__(self, other):
14119
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14120
 
14121
  def __ne__(self, other):
14122
    return not (self == other)
10485 vikram.rag 14123
 
14124
class getStateMaster_args:
14125
 
14126
  thrift_spec = (
14127
  )
14128
 
14129
  def read(self, iprot):
14130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14132
      return
14133
    iprot.readStructBegin()
14134
    while True:
14135
      (fname, ftype, fid) = iprot.readFieldBegin()
14136
      if ftype == TType.STOP:
14137
        break
14138
      else:
14139
        iprot.skip(ftype)
14140
      iprot.readFieldEnd()
14141
    iprot.readStructEnd()
14142
 
14143
  def write(self, oprot):
14144
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14145
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14146
      return
14147
    oprot.writeStructBegin('getStateMaster_args')
14148
    oprot.writeFieldStop()
14149
    oprot.writeStructEnd()
14150
 
14151
  def validate(self):
14152
    return
14153
 
14154
 
14155
  def __repr__(self):
14156
    L = ['%s=%r' % (key, value)
14157
      for key, value in self.__dict__.iteritems()]
14158
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14159
 
14160
  def __eq__(self, other):
14161
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14162
 
14163
  def __ne__(self, other):
14164
    return not (self == other)
14165
 
14166
class getStateMaster_result:
14167
  """
14168
  Attributes:
14169
   - success
14170
  """
14171
 
14172
  thrift_spec = (
12280 amit.gupta 14173
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(StateInfo, StateInfo.thrift_spec)), None, ), # 0
10485 vikram.rag 14174
  )
14175
 
14176
  def __init__(self, success=None,):
14177
    self.success = success
14178
 
14179
  def read(self, iprot):
14180
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14181
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14182
      return
14183
    iprot.readStructBegin()
14184
    while True:
14185
      (fname, ftype, fid) = iprot.readFieldBegin()
14186
      if ftype == TType.STOP:
14187
        break
14188
      if fid == 0:
14189
        if ftype == TType.MAP:
14190
          self.success = {}
11173 vikram.rag 14191
          (_ktype317, _vtype318, _size316 ) = iprot.readMapBegin() 
14192
          for _i320 in xrange(_size316):
14193
            _key321 = iprot.readI64();
12280 amit.gupta 14194
            _val322 = StateInfo()
14195
            _val322.read(iprot)
11173 vikram.rag 14196
            self.success[_key321] = _val322
10485 vikram.rag 14197
          iprot.readMapEnd()
14198
        else:
14199
          iprot.skip(ftype)
14200
      else:
14201
        iprot.skip(ftype)
14202
      iprot.readFieldEnd()
14203
    iprot.readStructEnd()
14204
 
14205
  def write(self, oprot):
14206
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14207
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14208
      return
14209
    oprot.writeStructBegin('getStateMaster_result')
14210
    if self.success is not None:
14211
      oprot.writeFieldBegin('success', TType.MAP, 0)
12280 amit.gupta 14212
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
11173 vikram.rag 14213
      for kiter323,viter324 in self.success.items():
14214
        oprot.writeI64(kiter323)
12280 amit.gupta 14215
        viter324.write(oprot)
10485 vikram.rag 14216
      oprot.writeMapEnd()
14217
      oprot.writeFieldEnd()
14218
    oprot.writeFieldStop()
14219
    oprot.writeStructEnd()
14220
 
14221
  def validate(self):
14222
    return
14223
 
14224
 
14225
  def __repr__(self):
14226
    L = ['%s=%r' % (key, value)
14227
      for key, value in self.__dict__.iteritems()]
14228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14229
 
14230
  def __eq__(self, other):
14231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14232
 
14233
  def __ne__(self, other):
14234
    return not (self == other)
10544 vikram.rag 14235
 
14236
class updateSnapdealStockAtEOD_args:
14237
  """
14238
  Attributes:
14239
   - allsnapdealstock
14240
  """
14241
 
14242
  thrift_spec = None
14243
  def __init__(self, allsnapdealstock=None,):
14244
    self.allsnapdealstock = allsnapdealstock
14245
 
14246
  def read(self, iprot):
14247
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14248
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14249
      return
14250
    iprot.readStructBegin()
14251
    while True:
14252
      (fname, ftype, fid) = iprot.readFieldBegin()
14253
      if ftype == TType.STOP:
14254
        break
14255
      if fid == -1:
14256
        if ftype == TType.LIST:
14257
          self.allsnapdealstock = []
11173 vikram.rag 14258
          (_etype328, _size325) = iprot.readListBegin()
14259
          for _i329 in xrange(_size325):
14260
            _elem330 = SnapdealStockAtEOD()
14261
            _elem330.read(iprot)
14262
            self.allsnapdealstock.append(_elem330)
10544 vikram.rag 14263
          iprot.readListEnd()
14264
        else:
14265
          iprot.skip(ftype)
14266
      else:
14267
        iprot.skip(ftype)
14268
      iprot.readFieldEnd()
14269
    iprot.readStructEnd()
14270
 
14271
  def write(self, oprot):
14272
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14273
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14274
      return
14275
    oprot.writeStructBegin('updateSnapdealStockAtEOD_args')
14276
    if self.allsnapdealstock is not None:
14277
      oprot.writeFieldBegin('allsnapdealstock', TType.LIST, -1)
14278
      oprot.writeListBegin(TType.STRUCT, len(self.allsnapdealstock))
11173 vikram.rag 14279
      for iter331 in self.allsnapdealstock:
14280
        iter331.write(oprot)
10544 vikram.rag 14281
      oprot.writeListEnd()
14282
      oprot.writeFieldEnd()
14283
    oprot.writeFieldStop()
14284
    oprot.writeStructEnd()
14285
 
14286
  def validate(self):
14287
    return
14288
 
14289
 
14290
  def __repr__(self):
14291
    L = ['%s=%r' % (key, value)
14292
      for key, value in self.__dict__.iteritems()]
14293
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14294
 
14295
  def __eq__(self, other):
14296
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14297
 
14298
  def __ne__(self, other):
14299
    return not (self == other)
14300
 
14301
class updateSnapdealStockAtEOD_result:
14302
 
14303
  thrift_spec = (
14304
  )
14305
 
14306
  def read(self, iprot):
14307
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14308
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14309
      return
14310
    iprot.readStructBegin()
14311
    while True:
14312
      (fname, ftype, fid) = iprot.readFieldBegin()
14313
      if ftype == TType.STOP:
14314
        break
14315
      else:
14316
        iprot.skip(ftype)
14317
      iprot.readFieldEnd()
14318
    iprot.readStructEnd()
14319
 
14320
  def write(self, oprot):
14321
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14322
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14323
      return
14324
    oprot.writeStructBegin('updateSnapdealStockAtEOD_result')
14325
    oprot.writeFieldStop()
14326
    oprot.writeStructEnd()
14327
 
14328
  def validate(self):
14329
    return
14330
 
14331
 
14332
  def __repr__(self):
14333
    L = ['%s=%r' % (key, value)
14334
      for key, value in self.__dict__.iteritems()]
14335
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14336
 
14337
  def __eq__(self, other):
14338
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14339
 
14340
  def __ne__(self, other):
14341
    return not (self == other)
14342
 
14343
class updateFlipkartStockAtEOD_args:
14344
  """
14345
  Attributes:
14346
   - allflipkartstock
14347
  """
14348
 
14349
  thrift_spec = None
14350
  def __init__(self, allflipkartstock=None,):
14351
    self.allflipkartstock = allflipkartstock
14352
 
14353
  def read(self, iprot):
14354
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14355
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14356
      return
14357
    iprot.readStructBegin()
14358
    while True:
14359
      (fname, ftype, fid) = iprot.readFieldBegin()
14360
      if ftype == TType.STOP:
14361
        break
14362
      if fid == -1:
14363
        if ftype == TType.LIST:
14364
          self.allflipkartstock = []
11173 vikram.rag 14365
          (_etype335, _size332) = iprot.readListBegin()
14366
          for _i336 in xrange(_size332):
14367
            _elem337 = FlipkartStockAtEOD()
14368
            _elem337.read(iprot)
14369
            self.allflipkartstock.append(_elem337)
10544 vikram.rag 14370
          iprot.readListEnd()
14371
        else:
14372
          iprot.skip(ftype)
14373
      else:
14374
        iprot.skip(ftype)
14375
      iprot.readFieldEnd()
14376
    iprot.readStructEnd()
14377
 
14378
  def write(self, oprot):
14379
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14380
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14381
      return
14382
    oprot.writeStructBegin('updateFlipkartStockAtEOD_args')
14383
    if self.allflipkartstock is not None:
14384
      oprot.writeFieldBegin('allflipkartstock', TType.LIST, -1)
14385
      oprot.writeListBegin(TType.STRUCT, len(self.allflipkartstock))
11173 vikram.rag 14386
      for iter338 in self.allflipkartstock:
14387
        iter338.write(oprot)
10544 vikram.rag 14388
      oprot.writeListEnd()
14389
      oprot.writeFieldEnd()
14390
    oprot.writeFieldStop()
14391
    oprot.writeStructEnd()
14392
 
14393
  def validate(self):
14394
    return
14395
 
14396
 
14397
  def __repr__(self):
14398
    L = ['%s=%r' % (key, value)
14399
      for key, value in self.__dict__.iteritems()]
14400
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14401
 
14402
  def __eq__(self, other):
14403
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14404
 
14405
  def __ne__(self, other):
14406
    return not (self == other)
14407
 
14408
class updateFlipkartStockAtEOD_result:
14409
 
14410
  thrift_spec = (
14411
  )
14412
 
14413
  def read(self, iprot):
14414
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14415
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14416
      return
14417
    iprot.readStructBegin()
14418
    while True:
14419
      (fname, ftype, fid) = iprot.readFieldBegin()
14420
      if ftype == TType.STOP:
14421
        break
14422
      else:
14423
        iprot.skip(ftype)
14424
      iprot.readFieldEnd()
14425
    iprot.readStructEnd()
14426
 
14427
  def write(self, oprot):
14428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14429
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14430
      return
14431
    oprot.writeStructBegin('updateFlipkartStockAtEOD_result')
14432
    oprot.writeFieldStop()
14433
    oprot.writeStructEnd()
14434
 
14435
  def validate(self):
14436
    return
14437
 
14438
 
14439
  def __repr__(self):
14440
    L = ['%s=%r' % (key, value)
14441
      for key, value in self.__dict__.iteritems()]
14442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14443
 
14444
  def __eq__(self, other):
14445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14446
 
14447
  def __ne__(self, other):
14448
    return not (self == other)
12363 kshitij.so 14449
 
14450
class getWanNlcForSource_args:
14451
  """
14452
  Attributes:
14453
   - item_id
14454
   - source
14455
  """
14456
 
14457
  thrift_spec = (
14458
    None, # 0
14459
    (1, TType.I64, 'item_id', None, None, ), # 1
14460
    (2, TType.I64, 'source', None, None, ), # 2
14461
  )
14462
 
14463
  def __init__(self, item_id=None, source=None,):
14464
    self.item_id = item_id
14465
    self.source = source
14466
 
14467
  def read(self, iprot):
14468
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14469
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14470
      return
14471
    iprot.readStructBegin()
14472
    while True:
14473
      (fname, ftype, fid) = iprot.readFieldBegin()
14474
      if ftype == TType.STOP:
14475
        break
14476
      if fid == 1:
14477
        if ftype == TType.I64:
14478
          self.item_id = iprot.readI64();
14479
        else:
14480
          iprot.skip(ftype)
14481
      elif fid == 2:
14482
        if ftype == TType.I64:
14483
          self.source = iprot.readI64();
14484
        else:
14485
          iprot.skip(ftype)
14486
      else:
14487
        iprot.skip(ftype)
14488
      iprot.readFieldEnd()
14489
    iprot.readStructEnd()
14490
 
14491
  def write(self, oprot):
14492
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14493
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14494
      return
14495
    oprot.writeStructBegin('getWanNlcForSource_args')
14496
    if self.item_id is not None:
14497
      oprot.writeFieldBegin('item_id', TType.I64, 1)
14498
      oprot.writeI64(self.item_id)
14499
      oprot.writeFieldEnd()
14500
    if self.source is not None:
14501
      oprot.writeFieldBegin('source', TType.I64, 2)
14502
      oprot.writeI64(self.source)
14503
      oprot.writeFieldEnd()
14504
    oprot.writeFieldStop()
14505
    oprot.writeStructEnd()
14506
 
14507
  def validate(self):
14508
    return
14509
 
14510
 
14511
  def __repr__(self):
14512
    L = ['%s=%r' % (key, value)
14513
      for key, value in self.__dict__.iteritems()]
14514
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14515
 
14516
  def __eq__(self, other):
14517
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14518
 
14519
  def __ne__(self, other):
14520
    return not (self == other)
14521
 
14522
class getWanNlcForSource_result:
14523
  """
14524
  Attributes:
14525
   - success
14526
  """
14527
 
14528
  thrift_spec = (
14529
    (0, TType.DOUBLE, 'success', None, None, ), # 0
14530
  )
14531
 
14532
  def __init__(self, success=None,):
14533
    self.success = success
14534
 
14535
  def read(self, iprot):
14536
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14537
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14538
      return
14539
    iprot.readStructBegin()
14540
    while True:
14541
      (fname, ftype, fid) = iprot.readFieldBegin()
14542
      if ftype == TType.STOP:
14543
        break
14544
      if fid == 0:
14545
        if ftype == TType.DOUBLE:
14546
          self.success = iprot.readDouble();
14547
        else:
14548
          iprot.skip(ftype)
14549
      else:
14550
        iprot.skip(ftype)
14551
      iprot.readFieldEnd()
14552
    iprot.readStructEnd()
14553
 
14554
  def write(self, oprot):
14555
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14556
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14557
      return
14558
    oprot.writeStructBegin('getWanNlcForSource_result')
14559
    if self.success is not None:
14560
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
14561
      oprot.writeDouble(self.success)
14562
      oprot.writeFieldEnd()
14563
    oprot.writeFieldStop()
14564
    oprot.writeStructEnd()
14565
 
14566
  def validate(self):
14567
    return
14568
 
14569
 
14570
  def __repr__(self):
14571
    L = ['%s=%r' % (key, value)
14572
      for key, value in self.__dict__.iteritems()]
14573
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14574
 
14575
  def __eq__(self, other):
14576
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14577
 
14578
  def __ne__(self, other):
14579
    return not (self == other)
14580
 
14581
class getAllAvailableAmazonFbaItemInventory_args:
14582
 
14583
  thrift_spec = (
14584
  )
14585
 
14586
  def read(self, iprot):
14587
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14588
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14589
      return
14590
    iprot.readStructBegin()
14591
    while True:
14592
      (fname, ftype, fid) = iprot.readFieldBegin()
14593
      if ftype == TType.STOP:
14594
        break
14595
      else:
14596
        iprot.skip(ftype)
14597
      iprot.readFieldEnd()
14598
    iprot.readStructEnd()
14599
 
14600
  def write(self, oprot):
14601
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14602
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14603
      return
14604
    oprot.writeStructBegin('getAllAvailableAmazonFbaItemInventory_args')
14605
    oprot.writeFieldStop()
14606
    oprot.writeStructEnd()
14607
 
14608
  def validate(self):
14609
    return
14610
 
14611
 
14612
  def __repr__(self):
14613
    L = ['%s=%r' % (key, value)
14614
      for key, value in self.__dict__.iteritems()]
14615
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14616
 
14617
  def __eq__(self, other):
14618
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14619
 
14620
  def __ne__(self, other):
14621
    return not (self == other)
14622
 
14623
class getAllAvailableAmazonFbaItemInventory_result:
14624
  """
14625
  Attributes:
14626
   - success
14627
  """
14628
 
14629
  thrift_spec = (
14630
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
14631
  )
14632
 
14633
  def __init__(self, success=None,):
14634
    self.success = success
14635
 
14636
  def read(self, iprot):
14637
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14638
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14639
      return
14640
    iprot.readStructBegin()
14641
    while True:
14642
      (fname, ftype, fid) = iprot.readFieldBegin()
14643
      if ftype == TType.STOP:
14644
        break
14645
      if fid == 0:
14646
        if ftype == TType.LIST:
14647
          self.success = []
14648
          (_etype342, _size339) = iprot.readListBegin()
14649
          for _i343 in xrange(_size339):
14650
            _elem344 = AmazonFbaInventorySnapshot()
14651
            _elem344.read(iprot)
14652
            self.success.append(_elem344)
14653
          iprot.readListEnd()
14654
        else:
14655
          iprot.skip(ftype)
14656
      else:
14657
        iprot.skip(ftype)
14658
      iprot.readFieldEnd()
14659
    iprot.readStructEnd()
14660
 
14661
  def write(self, oprot):
14662
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14663
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14664
      return
14665
    oprot.writeStructBegin('getAllAvailableAmazonFbaItemInventory_result')
14666
    if self.success is not None:
14667
      oprot.writeFieldBegin('success', TType.LIST, 0)
14668
      oprot.writeListBegin(TType.STRUCT, len(self.success))
14669
      for iter345 in self.success:
14670
        iter345.write(oprot)
14671
      oprot.writeListEnd()
14672
      oprot.writeFieldEnd()
14673
    oprot.writeFieldStop()
14674
    oprot.writeStructEnd()
14675
 
14676
  def validate(self):
14677
    return
14678
 
14679
 
14680
  def __repr__(self):
14681
    L = ['%s=%r' % (key, value)
14682
      for key, value in self.__dict__.iteritems()]
14683
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14684
 
14685
  def __eq__(self, other):
14686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14687
 
14688
  def __ne__(self, other):
14689
    return not (self == other)
17990 kshitij.so 14690
 
14691
class updateItemAvailabilityForItemIds_args:
14692
  """
14693
  Attributes:
14694
   - itemIds
14695
  """
14696
 
14697
  thrift_spec = (
14698
    None, # 0
14699
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
14700
  )
14701
 
14702
  def __init__(self, itemIds=None,):
14703
    self.itemIds = itemIds
14704
 
14705
  def read(self, iprot):
14706
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14707
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14708
      return
14709
    iprot.readStructBegin()
14710
    while True:
14711
      (fname, ftype, fid) = iprot.readFieldBegin()
14712
      if ftype == TType.STOP:
14713
        break
14714
      if fid == 1:
14715
        if ftype == TType.LIST:
14716
          self.itemIds = []
14717
          (_etype349, _size346) = iprot.readListBegin()
14718
          for _i350 in xrange(_size346):
14719
            _elem351 = iprot.readI64();
14720
            self.itemIds.append(_elem351)
14721
          iprot.readListEnd()
14722
        else:
14723
          iprot.skip(ftype)
14724
      else:
14725
        iprot.skip(ftype)
14726
      iprot.readFieldEnd()
14727
    iprot.readStructEnd()
14728
 
14729
  def write(self, oprot):
14730
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14731
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14732
      return
14733
    oprot.writeStructBegin('updateItemAvailabilityForItemIds_args')
14734
    if self.itemIds is not None:
14735
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
14736
      oprot.writeListBegin(TType.I64, len(self.itemIds))
14737
      for iter352 in self.itemIds:
14738
        oprot.writeI64(iter352)
14739
      oprot.writeListEnd()
14740
      oprot.writeFieldEnd()
14741
    oprot.writeFieldStop()
14742
    oprot.writeStructEnd()
14743
 
14744
  def validate(self):
14745
    return
14746
 
14747
 
14748
  def __repr__(self):
14749
    L = ['%s=%r' % (key, value)
14750
      for key, value in self.__dict__.iteritems()]
14751
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14752
 
14753
  def __eq__(self, other):
14754
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14755
 
14756
  def __ne__(self, other):
14757
    return not (self == other)
14758
 
14759
class updateItemAvailabilityForItemIds_result:
14760
  """
14761
  Attributes:
14762
   - success
14763
  """
14764
 
14765
  thrift_spec = (
14766
    (0, TType.BOOL, 'success', None, None, ), # 0
14767
  )
14768
 
14769
  def __init__(self, success=None,):
14770
    self.success = success
14771
 
14772
  def read(self, iprot):
14773
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14774
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14775
      return
14776
    iprot.readStructBegin()
14777
    while True:
14778
      (fname, ftype, fid) = iprot.readFieldBegin()
14779
      if ftype == TType.STOP:
14780
        break
14781
      if fid == 0:
14782
        if ftype == TType.BOOL:
14783
          self.success = iprot.readBool();
14784
        else:
14785
          iprot.skip(ftype)
14786
      else:
14787
        iprot.skip(ftype)
14788
      iprot.readFieldEnd()
14789
    iprot.readStructEnd()
14790
 
14791
  def write(self, oprot):
14792
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14793
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14794
      return
14795
    oprot.writeStructBegin('updateItemAvailabilityForItemIds_result')
14796
    if self.success is not None:
14797
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14798
      oprot.writeBool(self.success)
14799
      oprot.writeFieldEnd()
14800
    oprot.writeFieldStop()
14801
    oprot.writeStructEnd()
14802
 
14803
  def validate(self):
14804
    return
14805
 
14806
 
14807
  def __repr__(self):
14808
    L = ['%s=%r' % (key, value)
14809
      for key, value in self.__dict__.iteritems()]
14810
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14811
 
14812
  def __eq__(self, other):
14813
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14814
 
14815
  def __ne__(self, other):
14816
    return not (self == other)