Subversion Repositories SmartDukaan

Rev

Rev 12280 | Rev 17990 | 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
 
671
 
5944 mandeep.dh 672
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
673
  def __init__(self, iprot, oprot=None):
674
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
675
 
676
  def addWarehouse(self, warehouse):
677
    """
678
    Parameters:
679
     - warehouse
680
    """
681
    self.send_addWarehouse(warehouse)
682
    return self.recv_addWarehouse()
683
 
684
  def send_addWarehouse(self, warehouse):
685
    self._oprot.writeMessageBegin('addWarehouse', TMessageType.CALL, self._seqid)
686
    args = addWarehouse_args()
687
    args.warehouse = warehouse
688
    args.write(self._oprot)
689
    self._oprot.writeMessageEnd()
690
    self._oprot.trans.flush()
691
 
692
  def recv_addWarehouse(self, ):
693
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
694
    if mtype == TMessageType.EXCEPTION:
695
      x = TApplicationException()
696
      x.read(self._iprot)
697
      self._iprot.readMessageEnd()
698
      raise x
699
    result = addWarehouse_result()
700
    result.read(self._iprot)
701
    self._iprot.readMessageEnd()
702
    if result.success is not None:
703
      return result.success
704
    if result.cex is not None:
705
      raise result.cex
706
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
707
 
708
  def addVendor(self, vendor):
709
    """
710
    add a new vendor
711
 
712
    Parameters:
713
     - vendor
714
    """
715
    self.send_addVendor(vendor)
716
    return self.recv_addVendor()
717
 
718
  def send_addVendor(self, vendor):
719
    self._oprot.writeMessageBegin('addVendor', TMessageType.CALL, self._seqid)
720
    args = addVendor_args()
721
    args.vendor = vendor
722
    args.write(self._oprot)
723
    self._oprot.writeMessageEnd()
724
    self._oprot.trans.flush()
725
 
726
  def recv_addVendor(self, ):
727
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
728
    if mtype == TMessageType.EXCEPTION:
729
      x = TApplicationException()
730
      x.read(self._iprot)
731
      self._iprot.readMessageEnd()
732
      raise x
733
    result = addVendor_result()
734
    result.read(self._iprot)
735
    self._iprot.readMessageEnd()
736
    if result.success is not None:
737
      return result.success
738
    if result.cex is not None:
739
      raise result.cex
740
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
741
 
742
  def updateInventoryHistory(self, warehouse_id, timestamp, availability):
743
    """
744
    Stores the incremental warehouse updates of items.
745
 
746
    Parameters:
747
     - warehouse_id
748
     - timestamp
749
     - availability
750
    """
751
    self.send_updateInventoryHistory(warehouse_id, timestamp, availability)
752
    self.recv_updateInventoryHistory()
753
 
754
  def send_updateInventoryHistory(self, warehouse_id, timestamp, availability):
755
    self._oprot.writeMessageBegin('updateInventoryHistory', TMessageType.CALL, self._seqid)
756
    args = updateInventoryHistory_args()
757
    args.warehouse_id = warehouse_id
758
    args.timestamp = timestamp
759
    args.availability = availability
760
    args.write(self._oprot)
761
    self._oprot.writeMessageEnd()
762
    self._oprot.trans.flush()
763
 
764
  def recv_updateInventoryHistory(self, ):
765
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
766
    if mtype == TMessageType.EXCEPTION:
767
      x = TApplicationException()
768
      x.read(self._iprot)
769
      self._iprot.readMessageEnd()
770
      raise x
771
    result = updateInventoryHistory_result()
772
    result.read(self._iprot)
773
    self._iprot.readMessageEnd()
774
    if result.cex is not None:
775
      raise result.cex
776
    return
777
 
778
  def updateInventory(self, warehouse_id, timestamp, availability):
779
    """
780
    Stores the final inventory stocks of items.
781
 
782
    Parameters:
783
     - warehouse_id
784
     - timestamp
785
     - availability
786
    """
787
    self.send_updateInventory(warehouse_id, timestamp, availability)
788
    self.recv_updateInventory()
789
 
790
  def send_updateInventory(self, warehouse_id, timestamp, availability):
791
    self._oprot.writeMessageBegin('updateInventory', TMessageType.CALL, self._seqid)
792
    args = updateInventory_args()
793
    args.warehouse_id = warehouse_id
794
    args.timestamp = timestamp
795
    args.availability = availability
796
    args.write(self._oprot)
797
    self._oprot.writeMessageEnd()
798
    self._oprot.trans.flush()
799
 
800
  def recv_updateInventory(self, ):
801
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
802
    if mtype == TMessageType.EXCEPTION:
803
      x = TApplicationException()
804
      x.read(self._iprot)
805
      self._iprot.readMessageEnd()
806
      raise x
807
    result = updateInventory_result()
808
    result.read(self._iprot)
809
    self._iprot.readMessageEnd()
810
    if result.cex is not None:
811
      raise result.cex
812
    return
813
 
814
  def addInventory(self, itemId, warehouseId, quantity):
815
    """
816
    Add the inventory to existing stock.
817
 
818
    Parameters:
819
     - itemId
820
     - warehouseId
821
     - quantity
822
    """
823
    self.send_addInventory(itemId, warehouseId, quantity)
824
    self.recv_addInventory()
825
 
826
  def send_addInventory(self, itemId, warehouseId, quantity):
827
    self._oprot.writeMessageBegin('addInventory', TMessageType.CALL, self._seqid)
828
    args = addInventory_args()
829
    args.itemId = itemId
830
    args.warehouseId = warehouseId
831
    args.quantity = quantity
832
    args.write(self._oprot)
833
    self._oprot.writeMessageEnd()
834
    self._oprot.trans.flush()
835
 
836
  def recv_addInventory(self, ):
837
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
838
    if mtype == TMessageType.EXCEPTION:
839
      x = TApplicationException()
840
      x.read(self._iprot)
841
      self._iprot.readMessageEnd()
842
      raise x
843
    result = addInventory_result()
844
    result.read(self._iprot)
845
    self._iprot.readMessageEnd()
846
    if result.cex is not None:
847
      raise result.cex
848
    return
849
 
850
  def retireWarehouse(self, warehouse_id):
851
    """
852
    Parameters:
853
     - warehouse_id
854
    """
855
    self.send_retireWarehouse(warehouse_id)
856
    self.recv_retireWarehouse()
857
 
858
  def send_retireWarehouse(self, warehouse_id):
859
    self._oprot.writeMessageBegin('retireWarehouse', TMessageType.CALL, self._seqid)
860
    args = retireWarehouse_args()
861
    args.warehouse_id = warehouse_id
862
    args.write(self._oprot)
863
    self._oprot.writeMessageEnd()
864
    self._oprot.trans.flush()
865
 
866
  def recv_retireWarehouse(self, ):
867
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
868
    if mtype == TMessageType.EXCEPTION:
869
      x = TApplicationException()
870
      x.read(self._iprot)
871
      self._iprot.readMessageEnd()
872
      raise x
873
    result = retireWarehouse_result()
874
    result.read(self._iprot)
875
    self._iprot.readMessageEnd()
876
    if result.cex is not None:
877
      raise result.cex
878
    return
879
 
880
  def getItemInventoryByItemId(self, item_id):
881
    """
882
    Parameters:
883
     - item_id
884
    """
885
    self.send_getItemInventoryByItemId(item_id)
886
    return self.recv_getItemInventoryByItemId()
887
 
888
  def send_getItemInventoryByItemId(self, item_id):
889
    self._oprot.writeMessageBegin('getItemInventoryByItemId', TMessageType.CALL, self._seqid)
890
    args = getItemInventoryByItemId_args()
891
    args.item_id = item_id
892
    args.write(self._oprot)
893
    self._oprot.writeMessageEnd()
894
    self._oprot.trans.flush()
895
 
896
  def recv_getItemInventoryByItemId(self, ):
897
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
898
    if mtype == TMessageType.EXCEPTION:
899
      x = TApplicationException()
900
      x.read(self._iprot)
901
      self._iprot.readMessageEnd()
902
      raise x
903
    result = getItemInventoryByItemId_result()
904
    result.read(self._iprot)
905
    self._iprot.readMessageEnd()
906
    if result.success is not None:
907
      return result.success
908
    if result.cex is not None:
909
      raise result.cex
910
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
911
 
912
  def getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
913
    """
914
    Parameters:
915
     - warehouse_id
916
     - item_id
917
    """
918
    self.send_getItemAvailibilityAtWarehouse(warehouse_id, item_id)
919
    return self.recv_getItemAvailibilityAtWarehouse()
920
 
921
  def send_getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
922
    self._oprot.writeMessageBegin('getItemAvailibilityAtWarehouse', TMessageType.CALL, self._seqid)
923
    args = getItemAvailibilityAtWarehouse_args()
924
    args.warehouse_id = warehouse_id
925
    args.item_id = item_id
926
    args.write(self._oprot)
927
    self._oprot.writeMessageEnd()
928
    self._oprot.trans.flush()
929
 
930
  def recv_getItemAvailibilityAtWarehouse(self, ):
931
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
932
    if mtype == TMessageType.EXCEPTION:
933
      x = TApplicationException()
934
      x.read(self._iprot)
935
      self._iprot.readMessageEnd()
936
      raise x
937
    result = getItemAvailibilityAtWarehouse_result()
938
    result.read(self._iprot)
939
    self._iprot.readMessageEnd()
940
    if result.success is not None:
941
      return result.success
942
    if result.cex is not None:
943
      raise result.cex
944
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
945
 
5978 rajveer 946
  def getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 947
    """
948
    Determines the warehouse that should be used to fulfil an order for the given item.
949
    It first checks all the warehouses which are in the logistics location given by the
950
    warehouse_loc parameter. If none of the warehouses there have any inventory, then the
951
    preferred warehouse for the item is used.
952
 
953
    Returns an ordered list of size 4 with following elements in the given order:
954
    1. Id of the fulfillment warehouse which was finally picked up.
955
    2. Expected delay added by the category manager.
956
    3. Id of the billing warehouse which was finally picked up.
957
 
958
    Parameters:
959
     - itemId
5978 rajveer 960
     - sourceId
5944 mandeep.dh 961
    """
5978 rajveer 962
    self.send_getItemAvailabilityAtLocation(itemId, sourceId)
5944 mandeep.dh 963
    return self.recv_getItemAvailabilityAtLocation()
964
 
5978 rajveer 965
  def send_getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 966
    self._oprot.writeMessageBegin('getItemAvailabilityAtLocation', TMessageType.CALL, self._seqid)
967
    args = getItemAvailabilityAtLocation_args()
968
    args.itemId = itemId
5978 rajveer 969
    args.sourceId = sourceId
5944 mandeep.dh 970
    args.write(self._oprot)
971
    self._oprot.writeMessageEnd()
972
    self._oprot.trans.flush()
973
 
974
  def recv_getItemAvailabilityAtLocation(self, ):
975
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
976
    if mtype == TMessageType.EXCEPTION:
977
      x = TApplicationException()
978
      x.read(self._iprot)
979
      self._iprot.readMessageEnd()
980
      raise x
981
    result = getItemAvailabilityAtLocation_result()
982
    result.read(self._iprot)
983
    self._iprot.readMessageEnd()
984
    if result.success is not None:
985
      return result.success
986
    if result.isex is not None:
987
      raise result.isex
988
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
989
 
990
  def getAllWarehouses(self, isActive):
991
    """
992
    Parameters:
993
     - isActive
994
    """
995
    self.send_getAllWarehouses(isActive)
996
    return self.recv_getAllWarehouses()
997
 
998
  def send_getAllWarehouses(self, isActive):
999
    self._oprot.writeMessageBegin('getAllWarehouses', TMessageType.CALL, self._seqid)
1000
    args = getAllWarehouses_args()
1001
    args.isActive = isActive
1002
    args.write(self._oprot)
1003
    self._oprot.writeMessageEnd()
1004
    self._oprot.trans.flush()
1005
 
1006
  def recv_getAllWarehouses(self, ):
1007
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1008
    if mtype == TMessageType.EXCEPTION:
1009
      x = TApplicationException()
1010
      x.read(self._iprot)
1011
      self._iprot.readMessageEnd()
1012
      raise x
1013
    result = getAllWarehouses_result()
1014
    result.read(self._iprot)
1015
    self._iprot.readMessageEnd()
1016
    if result.success is not None:
1017
      return result.success
1018
    if result.cex is not None:
1019
      raise result.cex
1020
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
1021
 
1022
  def getWarehouse(self, warehouse_id):
1023
    """
1024
    Returns the warehouse with the given id.
1025
 
1026
    Parameters:
1027
     - warehouse_id
1028
    """
1029
    self.send_getWarehouse(warehouse_id)
1030
    return self.recv_getWarehouse()
1031
 
1032
  def send_getWarehouse(self, warehouse_id):
1033
    self._oprot.writeMessageBegin('getWarehouse', TMessageType.CALL, self._seqid)
1034
    args = getWarehouse_args()
1035
    args.warehouse_id = warehouse_id
1036
    args.write(self._oprot)
1037
    self._oprot.writeMessageEnd()
1038
    self._oprot.trans.flush()
1039
 
1040
  def recv_getWarehouse(self, ):
1041
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1042
    if mtype == TMessageType.EXCEPTION:
1043
      x = TApplicationException()
1044
      x.read(self._iprot)
1045
      self._iprot.readMessageEnd()
1046
      raise x
1047
    result = getWarehouse_result()
1048
    result.read(self._iprot)
1049
    self._iprot.readMessageEnd()
1050
    if result.success is not None:
1051
      return result.success
1052
    if result.cex is not None:
1053
      raise result.cex
1054
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
1055
 
1056
  def getAllItemsForWarehouse(self, warehouse_id):
1057
    """
1058
    Parameters:
1059
     - warehouse_id
1060
    """
1061
    self.send_getAllItemsForWarehouse(warehouse_id)
1062
    return self.recv_getAllItemsForWarehouse()
1063
 
1064
  def send_getAllItemsForWarehouse(self, warehouse_id):
1065
    self._oprot.writeMessageBegin('getAllItemsForWarehouse', TMessageType.CALL, self._seqid)
1066
    args = getAllItemsForWarehouse_args()
1067
    args.warehouse_id = warehouse_id
1068
    args.write(self._oprot)
1069
    self._oprot.writeMessageEnd()
1070
    self._oprot.trans.flush()
1071
 
1072
  def recv_getAllItemsForWarehouse(self, ):
1073
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1074
    if mtype == TMessageType.EXCEPTION:
1075
      x = TApplicationException()
1076
      x.read(self._iprot)
1077
      self._iprot.readMessageEnd()
1078
      raise x
1079
    result = getAllItemsForWarehouse_result()
1080
    result.read(self._iprot)
1081
    self._iprot.readMessageEnd()
1082
    if result.success is not None:
1083
      return result.success
1084
    if result.cex is not None:
1085
      raise result.cex
1086
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
1087
 
5966 rajveer 1088
  def isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
5944 mandeep.dh 1089
    """
5978 rajveer 1090
    Depending on reservation in the table, verify if we can bill this order or not.
5966 rajveer 1091
 
1092
    Parameters:
1093
     - itemId
1094
     - warehouseId
1095
     - sourceId
1096
     - orderId
1097
    """
1098
    self.send_isOrderBillable(itemId, warehouseId, sourceId, orderId)
1099
    return self.recv_isOrderBillable()
1100
 
1101
  def send_isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
1102
    self._oprot.writeMessageBegin('isOrderBillable', TMessageType.CALL, self._seqid)
1103
    args = isOrderBillable_args()
1104
    args.itemId = itemId
1105
    args.warehouseId = warehouseId
1106
    args.sourceId = sourceId
1107
    args.orderId = orderId
1108
    args.write(self._oprot)
1109
    self._oprot.writeMessageEnd()
1110
    self._oprot.trans.flush()
1111
 
1112
  def recv_isOrderBillable(self, ):
1113
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1114
    if mtype == TMessageType.EXCEPTION:
1115
      x = TApplicationException()
1116
      x.read(self._iprot)
1117
      self._iprot.readMessageEnd()
1118
      raise x
1119
    result = isOrderBillable_result()
1120
    result.read(self._iprot)
1121
    self._iprot.readMessageEnd()
1122
    if result.success is not None:
1123
      return result.success
1124
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
1125
 
1126
  def reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1127
    """
5944 mandeep.dh 1128
    Increases the reservation count for an item in a warehouse. Should always succeed normally.
1129
 
1130
    Parameters:
1131
     - itemId
1132
     - warehouseId
5966 rajveer 1133
     - sourceId
1134
     - orderId
1135
     - createdTimestamp
1136
     - promisedShippingTimestamp
5944 mandeep.dh 1137
     - quantity
1138
    """
5966 rajveer 1139
    self.send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
5944 mandeep.dh 1140
    return self.recv_reserveItemInWarehouse()
1141
 
5966 rajveer 1142
  def send_reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
5944 mandeep.dh 1143
    self._oprot.writeMessageBegin('reserveItemInWarehouse', TMessageType.CALL, self._seqid)
1144
    args = reserveItemInWarehouse_args()
1145
    args.itemId = itemId
1146
    args.warehouseId = warehouseId
5966 rajveer 1147
    args.sourceId = sourceId
1148
    args.orderId = orderId
1149
    args.createdTimestamp = createdTimestamp
1150
    args.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 1151
    args.quantity = quantity
1152
    args.write(self._oprot)
1153
    self._oprot.writeMessageEnd()
1154
    self._oprot.trans.flush()
1155
 
1156
  def recv_reserveItemInWarehouse(self, ):
1157
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1158
    if mtype == TMessageType.EXCEPTION:
1159
      x = TApplicationException()
1160
      x.read(self._iprot)
1161
      self._iprot.readMessageEnd()
1162
      raise x
1163
    result = reserveItemInWarehouse_result()
1164
    result.read(self._iprot)
1165
    self._iprot.readMessageEnd()
1166
    if result.success is not None:
1167
      return result.success
1168
    if result.cex is not None:
1169
      raise result.cex
1170
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
1171
 
7968 amar.kumar 1172
  def updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1173
    """
1174
    Updates the reservation for Order
1175
 
1176
    Parameters:
1177
     - itemId
1178
     - warehouseId
1179
     - sourceId
1180
     - orderId
1181
     - createdTimestamp
1182
     - promisedShippingTimestamp
1183
     - quantity
1184
    """
1185
    self.send_updateReservationForOrder(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
1186
    return self.recv_updateReservationForOrder()
1187
 
1188
  def send_updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1189
    self._oprot.writeMessageBegin('updateReservationForOrder', TMessageType.CALL, self._seqid)
1190
    args = updateReservationForOrder_args()
1191
    args.itemId = itemId
1192
    args.warehouseId = warehouseId
1193
    args.sourceId = sourceId
1194
    args.orderId = orderId
1195
    args.createdTimestamp = createdTimestamp
1196
    args.promisedShippingTimestamp = promisedShippingTimestamp
1197
    args.quantity = quantity
1198
    args.write(self._oprot)
1199
    self._oprot.writeMessageEnd()
1200
    self._oprot.trans.flush()
1201
 
1202
  def recv_updateReservationForOrder(self, ):
1203
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1204
    if mtype == TMessageType.EXCEPTION:
1205
      x = TApplicationException()
1206
      x.read(self._iprot)
1207
      self._iprot.readMessageEnd()
1208
      raise x
1209
    result = updateReservationForOrder_result()
1210
    result.read(self._iprot)
1211
    self._iprot.readMessageEnd()
1212
    if result.success is not None:
1213
      return result.success
1214
    if result.cex is not None:
1215
      raise result.cex
1216
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateReservationForOrder failed: unknown result");
1217
 
5966 rajveer 1218
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1219
    """
1220
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
1221
 
1222
    Parameters:
1223
     - itemId
1224
     - warehouseId
5966 rajveer 1225
     - sourceId
1226
     - orderId
5944 mandeep.dh 1227
     - quantity
1228
    """
5966 rajveer 1229
    self.send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity)
5944 mandeep.dh 1230
    return self.recv_reduceReservationCount()
1231
 
5966 rajveer 1232
  def send_reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1233
    self._oprot.writeMessageBegin('reduceReservationCount', TMessageType.CALL, self._seqid)
1234
    args = reduceReservationCount_args()
1235
    args.itemId = itemId
1236
    args.warehouseId = warehouseId
5966 rajveer 1237
    args.sourceId = sourceId
1238
    args.orderId = orderId
5944 mandeep.dh 1239
    args.quantity = quantity
1240
    args.write(self._oprot)
1241
    self._oprot.writeMessageEnd()
1242
    self._oprot.trans.flush()
1243
 
1244
  def recv_reduceReservationCount(self, ):
1245
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1246
    if mtype == TMessageType.EXCEPTION:
1247
      x = TApplicationException()
1248
      x.read(self._iprot)
1249
      self._iprot.readMessageEnd()
1250
      raise x
1251
    result = reduceReservationCount_result()
1252
    result.read(self._iprot)
1253
    self._iprot.readMessageEnd()
1254
    if result.success is not None:
1255
      return result.success
1256
    if result.cex is not None:
1257
      raise result.cex
1258
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
1259
 
1260
  def getItemPricing(self, itemId, vendorId):
1261
    """
1262
    Returns the pricing information of an item associated with the vendor of the given warehouse.
1263
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
1264
 
1265
    Parameters:
1266
     - itemId
1267
     - vendorId
1268
    """
1269
    self.send_getItemPricing(itemId, vendorId)
1270
    return self.recv_getItemPricing()
1271
 
1272
  def send_getItemPricing(self, itemId, vendorId):
1273
    self._oprot.writeMessageBegin('getItemPricing', TMessageType.CALL, self._seqid)
1274
    args = getItemPricing_args()
1275
    args.itemId = itemId
1276
    args.vendorId = vendorId
1277
    args.write(self._oprot)
1278
    self._oprot.writeMessageEnd()
1279
    self._oprot.trans.flush()
1280
 
1281
  def recv_getItemPricing(self, ):
1282
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1283
    if mtype == TMessageType.EXCEPTION:
1284
      x = TApplicationException()
1285
      x.read(self._iprot)
1286
      self._iprot.readMessageEnd()
1287
      raise x
1288
    result = getItemPricing_result()
1289
    result.read(self._iprot)
1290
    self._iprot.readMessageEnd()
1291
    if result.success is not None:
1292
      return result.success
1293
    if result.cex is not None:
1294
      raise result.cex
1295
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
1296
 
1297
  def getAllItemPricing(self, itemId):
1298
    """
1299
    Returns the list of vendor pricing information of an item.
1300
    Raises an exception if item not found corresponding to itemId
1301
 
1302
    Parameters:
1303
     - itemId
1304
    """
1305
    self.send_getAllItemPricing(itemId)
1306
    return self.recv_getAllItemPricing()
1307
 
1308
  def send_getAllItemPricing(self, itemId):
1309
    self._oprot.writeMessageBegin('getAllItemPricing', TMessageType.CALL, self._seqid)
1310
    args = getAllItemPricing_args()
1311
    args.itemId = itemId
1312
    args.write(self._oprot)
1313
    self._oprot.writeMessageEnd()
1314
    self._oprot.trans.flush()
1315
 
1316
  def recv_getAllItemPricing(self, ):
1317
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1318
    if mtype == TMessageType.EXCEPTION:
1319
      x = TApplicationException()
1320
      x.read(self._iprot)
1321
      self._iprot.readMessageEnd()
1322
      raise x
1323
    result = getAllItemPricing_result()
1324
    result.read(self._iprot)
1325
    self._iprot.readMessageEnd()
1326
    if result.success is not None:
1327
      return result.success
1328
    if result.cex is not None:
1329
      raise result.cex
1330
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
1331
 
1332
  def addVendorItemPricing(self, vendorItemPricing):
1333
    """
1334
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
1335
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
1336
 
1337
    Parameters:
1338
     - vendorItemPricing
1339
    """
1340
    self.send_addVendorItemPricing(vendorItemPricing)
1341
    self.recv_addVendorItemPricing()
1342
 
1343
  def send_addVendorItemPricing(self, vendorItemPricing):
1344
    self._oprot.writeMessageBegin('addVendorItemPricing', TMessageType.CALL, self._seqid)
1345
    args = addVendorItemPricing_args()
1346
    args.vendorItemPricing = vendorItemPricing
1347
    args.write(self._oprot)
1348
    self._oprot.writeMessageEnd()
1349
    self._oprot.trans.flush()
1350
 
1351
  def recv_addVendorItemPricing(self, ):
1352
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1353
    if mtype == TMessageType.EXCEPTION:
1354
      x = TApplicationException()
1355
      x.read(self._iprot)
1356
      self._iprot.readMessageEnd()
1357
      raise x
1358
    result = addVendorItemPricing_result()
1359
    result.read(self._iprot)
1360
    self._iprot.readMessageEnd()
1361
    if result.cex is not None:
1362
      raise result.cex
1363
    return
1364
 
1365
  def getVendor(self, vendorId):
1366
    """
1367
    Returns a vendor given its id
1368
 
1369
    Parameters:
1370
     - vendorId
1371
    """
1372
    self.send_getVendor(vendorId)
1373
    return self.recv_getVendor()
1374
 
1375
  def send_getVendor(self, vendorId):
1376
    self._oprot.writeMessageBegin('getVendor', TMessageType.CALL, self._seqid)
1377
    args = getVendor_args()
1378
    args.vendorId = vendorId
1379
    args.write(self._oprot)
1380
    self._oprot.writeMessageEnd()
1381
    self._oprot.trans.flush()
1382
 
1383
  def recv_getVendor(self, ):
1384
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1385
    if mtype == TMessageType.EXCEPTION:
1386
      x = TApplicationException()
1387
      x.read(self._iprot)
1388
      self._iprot.readMessageEnd()
1389
      raise x
1390
    result = getVendor_result()
1391
    result.read(self._iprot)
1392
    self._iprot.readMessageEnd()
1393
    if result.success is not None:
1394
      return result.success
1395
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
1396
 
1397
  def getAllVendors(self, ):
1398
    """
1399
    Return list of all vendors
1400
    """
1401
    self.send_getAllVendors()
1402
    return self.recv_getAllVendors()
1403
 
1404
  def send_getAllVendors(self, ):
1405
    self._oprot.writeMessageBegin('getAllVendors', TMessageType.CALL, self._seqid)
1406
    args = getAllVendors_args()
1407
    args.write(self._oprot)
1408
    self._oprot.writeMessageEnd()
1409
    self._oprot.trans.flush()
1410
 
1411
  def recv_getAllVendors(self, ):
1412
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1413
    if mtype == TMessageType.EXCEPTION:
1414
      x = TApplicationException()
1415
      x.read(self._iprot)
1416
      self._iprot.readMessageEnd()
1417
      raise x
1418
    result = getAllVendors_result()
1419
    result.read(self._iprot)
1420
    self._iprot.readMessageEnd()
1421
    if result.success is not None:
1422
      return result.success
1423
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1424
 
1425
  def addVendorItemMapping(self, key, vendorItemMapping):
1426
    """
1427
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
1428
 
1429
    Parameters:
1430
     - key
1431
     - vendorItemMapping
1432
    """
1433
    self.send_addVendorItemMapping(key, vendorItemMapping)
1434
    self.recv_addVendorItemMapping()
1435
 
1436
  def send_addVendorItemMapping(self, key, vendorItemMapping):
1437
    self._oprot.writeMessageBegin('addVendorItemMapping', TMessageType.CALL, self._seqid)
1438
    args = addVendorItemMapping_args()
1439
    args.key = key
1440
    args.vendorItemMapping = vendorItemMapping
1441
    args.write(self._oprot)
1442
    self._oprot.writeMessageEnd()
1443
    self._oprot.trans.flush()
1444
 
1445
  def recv_addVendorItemMapping(self, ):
1446
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1447
    if mtype == TMessageType.EXCEPTION:
1448
      x = TApplicationException()
1449
      x.read(self._iprot)
1450
      self._iprot.readMessageEnd()
1451
      raise x
1452
    result = addVendorItemMapping_result()
1453
    result.read(self._iprot)
1454
    self._iprot.readMessageEnd()
1455
    if result.cex is not None:
1456
      raise result.cex
1457
    return
1458
 
1459
  def getVendorItemMappings(self, itemId):
1460
    """
1461
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
1462
    Raises an exception if item not found corresponding to itemId
1463
 
1464
    Parameters:
1465
     - itemId
1466
    """
1467
    self.send_getVendorItemMappings(itemId)
1468
    return self.recv_getVendorItemMappings()
1469
 
1470
  def send_getVendorItemMappings(self, itemId):
1471
    self._oprot.writeMessageBegin('getVendorItemMappings', TMessageType.CALL, self._seqid)
1472
    args = getVendorItemMappings_args()
1473
    args.itemId = itemId
1474
    args.write(self._oprot)
1475
    self._oprot.writeMessageEnd()
1476
    self._oprot.trans.flush()
1477
 
1478
  def recv_getVendorItemMappings(self, ):
1479
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1480
    if mtype == TMessageType.EXCEPTION:
1481
      x = TApplicationException()
1482
      x.read(self._iprot)
1483
      self._iprot.readMessageEnd()
1484
      raise x
1485
    result = getVendorItemMappings_result()
1486
    result.read(self._iprot)
1487
    self._iprot.readMessageEnd()
1488
    if result.success is not None:
1489
      return result.success
1490
    if result.cex is not None:
1491
      raise result.cex
1492
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
1493
 
1494
  def getPendingOrdersInventory(self, vendorid):
1495
    """
1496
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
1497
 
1498
    Parameters:
1499
     - vendorid
1500
    """
1501
    self.send_getPendingOrdersInventory(vendorid)
1502
    return self.recv_getPendingOrdersInventory()
1503
 
1504
  def send_getPendingOrdersInventory(self, vendorid):
1505
    self._oprot.writeMessageBegin('getPendingOrdersInventory', TMessageType.CALL, self._seqid)
1506
    args = getPendingOrdersInventory_args()
1507
    args.vendorid = vendorid
1508
    args.write(self._oprot)
1509
    self._oprot.writeMessageEnd()
1510
    self._oprot.trans.flush()
1511
 
1512
  def recv_getPendingOrdersInventory(self, ):
1513
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1514
    if mtype == TMessageType.EXCEPTION:
1515
      x = TApplicationException()
1516
      x.read(self._iprot)
1517
      self._iprot.readMessageEnd()
1518
      raise x
1519
    result = getPendingOrdersInventory_result()
1520
    result.read(self._iprot)
1521
    self._iprot.readMessageEnd()
1522
    if result.success is not None:
1523
      return result.success
1524
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1525
 
1526
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1527
    """
1528
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
1529
    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
1530
    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
1531
       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
1532
       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
1533
 
1534
    Parameters:
1535
     - warehouseType
1536
     - inventoryType
1537
     - vendorId
1538
     - billingWarehouseId
1539
     - shippingWarehouseId
1540
    """
1541
    self.send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId)
1542
    return self.recv_getWarehouses()
1543
 
1544
  def send_getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1545
    self._oprot.writeMessageBegin('getWarehouses', TMessageType.CALL, self._seqid)
1546
    args = getWarehouses_args()
1547
    args.warehouseType = warehouseType
1548
    args.inventoryType = inventoryType
1549
    args.vendorId = vendorId
1550
    args.billingWarehouseId = billingWarehouseId
1551
    args.shippingWarehouseId = shippingWarehouseId
1552
    args.write(self._oprot)
1553
    self._oprot.writeMessageEnd()
1554
    self._oprot.trans.flush()
1555
 
1556
  def recv_getWarehouses(self, ):
1557
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1558
    if mtype == TMessageType.EXCEPTION:
1559
      x = TApplicationException()
1560
      x.read(self._iprot)
1561
      self._iprot.readMessageEnd()
1562
      raise x
1563
    result = getWarehouses_result()
1564
    result.read(self._iprot)
1565
    self._iprot.readMessageEnd()
1566
    if result.success is not None:
1567
      return result.success
1568
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1569
 
1570
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1571
    """
1572
    Resets availability of an item to the quantity mentioned in a warehouse.
1573
 
1574
    Parameters:
1575
     - itemKey
1576
     - vendorId
1577
     - quantity
1578
     - warehouseId
1579
    """
1580
    self.send_resetAvailability(itemKey, vendorId, quantity, warehouseId)
1581
    self.recv_resetAvailability()
1582
 
1583
  def send_resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1584
    self._oprot.writeMessageBegin('resetAvailability', TMessageType.CALL, self._seqid)
1585
    args = resetAvailability_args()
1586
    args.itemKey = itemKey
1587
    args.vendorId = vendorId
1588
    args.quantity = quantity
1589
    args.warehouseId = warehouseId
1590
    args.write(self._oprot)
1591
    self._oprot.writeMessageEnd()
1592
    self._oprot.trans.flush()
1593
 
1594
  def recv_resetAvailability(self, ):
1595
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1596
    if mtype == TMessageType.EXCEPTION:
1597
      x = TApplicationException()
1598
      x.read(self._iprot)
1599
      self._iprot.readMessageEnd()
1600
      raise x
1601
    result = resetAvailability_result()
1602
    result.read(self._iprot)
1603
    self._iprot.readMessageEnd()
1604
    if result.cex is not None:
1605
      raise result.cex
1606
    return
1607
 
1608
  def resetAvailabilityForWarehouse(self, warehouseId):
1609
    """
1610
    Resets availability of a warehouse to zero.
1611
 
1612
    Parameters:
1613
     - warehouseId
1614
    """
1615
    self.send_resetAvailabilityForWarehouse(warehouseId)
1616
    self.recv_resetAvailabilityForWarehouse()
1617
 
1618
  def send_resetAvailabilityForWarehouse(self, warehouseId):
1619
    self._oprot.writeMessageBegin('resetAvailabilityForWarehouse', TMessageType.CALL, self._seqid)
1620
    args = resetAvailabilityForWarehouse_args()
1621
    args.warehouseId = warehouseId
1622
    args.write(self._oprot)
1623
    self._oprot.writeMessageEnd()
1624
    self._oprot.trans.flush()
1625
 
1626
  def recv_resetAvailabilityForWarehouse(self, ):
1627
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1628
    if mtype == TMessageType.EXCEPTION:
1629
      x = TApplicationException()
1630
      x.read(self._iprot)
1631
      self._iprot.readMessageEnd()
1632
      raise x
1633
    result = resetAvailabilityForWarehouse_result()
1634
    result.read(self._iprot)
1635
    self._iprot.readMessageEnd()
1636
    if result.cex is not None:
1637
      raise result.cex
1638
    return
1639
 
1640
  def getItemKeysToBeProcessed(self, warehouseId):
1641
    """
1642
    Returns the list of item keys which need to be processed for a given warehouse.
1643
    This is currently used by Support application to send item keys whose inventory needs
1644
    to be updated from PLB
1645
 
1646
    Parameters:
1647
     - warehouseId
1648
    """
1649
    self.send_getItemKeysToBeProcessed(warehouseId)
1650
    return self.recv_getItemKeysToBeProcessed()
1651
 
1652
  def send_getItemKeysToBeProcessed(self, warehouseId):
1653
    self._oprot.writeMessageBegin('getItemKeysToBeProcessed', TMessageType.CALL, self._seqid)
1654
    args = getItemKeysToBeProcessed_args()
1655
    args.warehouseId = warehouseId
1656
    args.write(self._oprot)
1657
    self._oprot.writeMessageEnd()
1658
    self._oprot.trans.flush()
1659
 
1660
  def recv_getItemKeysToBeProcessed(self, ):
1661
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1662
    if mtype == TMessageType.EXCEPTION:
1663
      x = TApplicationException()
1664
      x.read(self._iprot)
1665
      self._iprot.readMessageEnd()
1666
      raise x
1667
    result = getItemKeysToBeProcessed_result()
1668
    result.read(self._iprot)
1669
    self._iprot.readMessageEnd()
1670
    if result.success is not None:
1671
      return result.success
1672
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1673
 
1674
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1675
    """
1676
    Marks/Deletes missed inventory updates for a given key and warehouse.
1677
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
1678
 
1679
    Parameters:
1680
     - itemKey
1681
     - warehouseId
1682
    """
1683
    self.send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId)
1684
    self.recv_markMissedInventoryUpdatesAsProcessed()
1685
 
1686
  def send_markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1687
    self._oprot.writeMessageBegin('markMissedInventoryUpdatesAsProcessed', TMessageType.CALL, self._seqid)
1688
    args = markMissedInventoryUpdatesAsProcessed_args()
1689
    args.itemKey = itemKey
1690
    args.warehouseId = warehouseId
1691
    args.write(self._oprot)
1692
    self._oprot.writeMessageEnd()
1693
    self._oprot.trans.flush()
1694
 
1695
  def recv_markMissedInventoryUpdatesAsProcessed(self, ):
1696
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1697
    if mtype == TMessageType.EXCEPTION:
1698
      x = TApplicationException()
1699
      x.read(self._iprot)
1700
      self._iprot.readMessageEnd()
1701
      raise x
1702
    result = markMissedInventoryUpdatesAsProcessed_result()
1703
    result.read(self._iprot)
1704
    self._iprot.readMessageEnd()
1705
    return
1706
 
1707
  def getIgnoredItemKeys(self, ):
1708
    """
1709
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
1710
    and the timestamp from where alert was raised.
1711
    """
1712
    self.send_getIgnoredItemKeys()
1713
    return self.recv_getIgnoredItemKeys()
1714
 
1715
  def send_getIgnoredItemKeys(self, ):
1716
    self._oprot.writeMessageBegin('getIgnoredItemKeys', TMessageType.CALL, self._seqid)
1717
    args = getIgnoredItemKeys_args()
1718
    args.write(self._oprot)
1719
    self._oprot.writeMessageEnd()
1720
    self._oprot.trans.flush()
1721
 
1722
  def recv_getIgnoredItemKeys(self, ):
1723
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1724
    if mtype == TMessageType.EXCEPTION:
1725
      x = TApplicationException()
1726
      x.read(self._iprot)
1727
      self._iprot.readMessageEnd()
1728
      raise x
1729
    result = getIgnoredItemKeys_result()
1730
    result.read(self._iprot)
1731
    self._iprot.readMessageEnd()
1732
    if result.success is not None:
1733
      return result.success
1734
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1735
 
1736
  def addBadInventory(self, itemId, warehouseId, quantity):
1737
    """
1738
    Add the BAD type inventory to existing stock.
1739
 
1740
    Parameters:
1741
     - itemId
1742
     - warehouseId
1743
     - quantity
1744
    """
1745
    self.send_addBadInventory(itemId, warehouseId, quantity)
1746
    self.recv_addBadInventory()
1747
 
1748
  def send_addBadInventory(self, itemId, warehouseId, quantity):
1749
    self._oprot.writeMessageBegin('addBadInventory', TMessageType.CALL, self._seqid)
1750
    args = addBadInventory_args()
1751
    args.itemId = itemId
1752
    args.warehouseId = warehouseId
1753
    args.quantity = quantity
1754
    args.write(self._oprot)
1755
    self._oprot.writeMessageEnd()
1756
    self._oprot.trans.flush()
1757
 
1758
  def recv_addBadInventory(self, ):
1759
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1760
    if mtype == TMessageType.EXCEPTION:
1761
      x = TApplicationException()
1762
      x.read(self._iprot)
1763
      self._iprot.readMessageEnd()
1764
      raise x
1765
    result = addBadInventory_result()
1766
    result.read(self._iprot)
1767
    self._iprot.readMessageEnd()
1768
    if result.cex is not None:
1769
      raise result.cex
1770
    return
1771
 
1772
  def getShippingLocations(self, ):
1773
    """
1774
    Returns all shipping locations
1775
    """
1776
    self.send_getShippingLocations()
1777
    return self.recv_getShippingLocations()
1778
 
1779
  def send_getShippingLocations(self, ):
1780
    self._oprot.writeMessageBegin('getShippingLocations', TMessageType.CALL, self._seqid)
1781
    args = getShippingLocations_args()
1782
    args.write(self._oprot)
1783
    self._oprot.writeMessageEnd()
1784
    self._oprot.trans.flush()
1785
 
1786
  def recv_getShippingLocations(self, ):
1787
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1788
    if mtype == TMessageType.EXCEPTION:
1789
      x = TApplicationException()
1790
      x.read(self._iprot)
1791
      self._iprot.readMessageEnd()
1792
      raise x
1793
    result = getShippingLocations_result()
1794
    result.read(self._iprot)
1795
    self._iprot.readMessageEnd()
1796
    if result.success is not None:
1797
      return result.success
1798
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1799
 
1800
  def getAllVendorItemMappings(self, ):
1801
    """
1802
    Fetches all the vendor item mappings present.
1803
    """
1804
    self.send_getAllVendorItemMappings()
1805
    return self.recv_getAllVendorItemMappings()
1806
 
1807
  def send_getAllVendorItemMappings(self, ):
1808
    self._oprot.writeMessageBegin('getAllVendorItemMappings', TMessageType.CALL, self._seqid)
1809
    args = getAllVendorItemMappings_args()
1810
    args.write(self._oprot)
1811
    self._oprot.writeMessageEnd()
1812
    self._oprot.trans.flush()
1813
 
1814
  def recv_getAllVendorItemMappings(self, ):
1815
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1816
    if mtype == TMessageType.EXCEPTION:
1817
      x = TApplicationException()
1818
      x.read(self._iprot)
1819
      self._iprot.readMessageEnd()
1820
      raise x
1821
    result = getAllVendorItemMappings_result()
1822
    result.read(self._iprot)
1823
    self._iprot.readMessageEnd()
1824
    if result.success is not None:
1825
      return result.success
1826
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1827
 
1828
  def getInventorySnapshot(self, warehouseId):
1829
    """
1830
    Gets items' inventory for a warehouse
1831
    If warehouse is passed as zero, items' inventory across all warehouses is sent
1832
 
1833
    Parameters:
1834
     - warehouseId
1835
    """
1836
    self.send_getInventorySnapshot(warehouseId)
1837
    return self.recv_getInventorySnapshot()
1838
 
1839
  def send_getInventorySnapshot(self, warehouseId):
1840
    self._oprot.writeMessageBegin('getInventorySnapshot', TMessageType.CALL, self._seqid)
1841
    args = getInventorySnapshot_args()
1842
    args.warehouseId = warehouseId
1843
    args.write(self._oprot)
1844
    self._oprot.writeMessageEnd()
1845
    self._oprot.trans.flush()
1846
 
1847
  def recv_getInventorySnapshot(self, ):
1848
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1849
    if mtype == TMessageType.EXCEPTION:
1850
      x = TApplicationException()
1851
      x.read(self._iprot)
1852
      self._iprot.readMessageEnd()
1853
      raise x
1854
    result = getInventorySnapshot_result()
1855
    result.read(self._iprot)
1856
    self._iprot.readMessageEnd()
1857
    if result.success is not None:
1858
      return result.success
1859
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1860
 
1861
  def clearItemAvailabilityCache(self, ):
1862
    """
1863
    Clear item availability cache.
1864
    """
1865
    self.send_clearItemAvailabilityCache()
1866
    self.recv_clearItemAvailabilityCache()
1867
 
1868
  def send_clearItemAvailabilityCache(self, ):
1869
    self._oprot.writeMessageBegin('clearItemAvailabilityCache', TMessageType.CALL, self._seqid)
1870
    args = clearItemAvailabilityCache_args()
1871
    args.write(self._oprot)
1872
    self._oprot.writeMessageEnd()
1873
    self._oprot.trans.flush()
1874
 
1875
  def recv_clearItemAvailabilityCache(self, ):
1876
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1877
    if mtype == TMessageType.EXCEPTION:
1878
      x = TApplicationException()
1879
      x.read(self._iprot)
1880
      self._iprot.readMessageEnd()
1881
      raise x
1882
    result = clearItemAvailabilityCache_result()
1883
    result.read(self._iprot)
1884
    self._iprot.readMessageEnd()
1885
    return
1886
 
1887
  def updateVendorString(self, warehouseId, vendorString):
1888
    """
1889
    Parameters:
1890
     - warehouseId
1891
     - vendorString
1892
    """
1893
    self.send_updateVendorString(warehouseId, vendorString)
1894
    self.recv_updateVendorString()
1895
 
1896
  def send_updateVendorString(self, warehouseId, vendorString):
1897
    self._oprot.writeMessageBegin('updateVendorString', TMessageType.CALL, self._seqid)
1898
    args = updateVendorString_args()
1899
    args.warehouseId = warehouseId
1900
    args.vendorString = vendorString
1901
    args.write(self._oprot)
1902
    self._oprot.writeMessageEnd()
1903
    self._oprot.trans.flush()
1904
 
1905
  def recv_updateVendorString(self, ):
1906
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1907
    if mtype == TMessageType.EXCEPTION:
1908
      x = TApplicationException()
1909
      x.read(self._iprot)
1910
      self._iprot.readMessageEnd()
1911
      raise x
1912
    result = updateVendorString_result()
1913
    result.read(self._iprot)
1914
    self._iprot.readMessageEnd()
1915
    return
1916
 
6096 amit.gupta 1917
  def clearItemAvailabilityCacheForItem(self, item_id):
1918
    """
1919
    Parameters:
1920
     - item_id
1921
    """
1922
    self.send_clearItemAvailabilityCacheForItem(item_id)
1923
    self.recv_clearItemAvailabilityCacheForItem()
5944 mandeep.dh 1924
 
6096 amit.gupta 1925
  def send_clearItemAvailabilityCacheForItem(self, item_id):
1926
    self._oprot.writeMessageBegin('clearItemAvailabilityCacheForItem', TMessageType.CALL, self._seqid)
1927
    args = clearItemAvailabilityCacheForItem_args()
1928
    args.item_id = item_id
1929
    args.write(self._oprot)
1930
    self._oprot.writeMessageEnd()
1931
    self._oprot.trans.flush()
1932
 
1933
  def recv_clearItemAvailabilityCacheForItem(self, ):
1934
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1935
    if mtype == TMessageType.EXCEPTION:
1936
      x = TApplicationException()
1937
      x.read(self._iprot)
1938
      self._iprot.readMessageEnd()
1939
      raise x
1940
    result = clearItemAvailabilityCacheForItem_result()
1941
    result.read(self._iprot)
1942
    self._iprot.readMessageEnd()
1943
    return
1944
 
7718 amar.kumar 1945
  def getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1946
    """
1947
    Parameters:
1948
     - vendorId
7718 amar.kumar 1949
     - billingWarehouseId
6467 amar.kumar 1950
    """
7718 amar.kumar 1951
    self.send_getOurWarehouseIdForVendor(vendorId, billingWarehouseId)
6467 amar.kumar 1952
    return self.recv_getOurWarehouseIdForVendor()
6096 amit.gupta 1953
 
7718 amar.kumar 1954
  def send_getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1955
    self._oprot.writeMessageBegin('getOurWarehouseIdForVendor', TMessageType.CALL, self._seqid)
1956
    args = getOurWarehouseIdForVendor_args()
1957
    args.vendorId = vendorId
7718 amar.kumar 1958
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 1959
    args.write(self._oprot)
1960
    self._oprot.writeMessageEnd()
1961
    self._oprot.trans.flush()
1962
 
1963
  def recv_getOurWarehouseIdForVendor(self, ):
1964
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1965
    if mtype == TMessageType.EXCEPTION:
1966
      x = TApplicationException()
1967
      x.read(self._iprot)
1968
      self._iprot.readMessageEnd()
1969
      raise x
1970
    result = getOurWarehouseIdForVendor_result()
1971
    result.read(self._iprot)
1972
    self._iprot.readMessageEnd()
1973
    if result.success is not None:
1974
      return result.success
1975
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1976
 
6484 amar.kumar 1977
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1978
    """
1979
    Parameters:
1980
     - item_ids
1981
    """
1982
    self.send_getItemAvailabilitiesAtOurWarehouses(item_ids)
1983
    return self.recv_getItemAvailabilitiesAtOurWarehouses()
6467 amar.kumar 1984
 
6484 amar.kumar 1985
  def send_getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1986
    self._oprot.writeMessageBegin('getItemAvailabilitiesAtOurWarehouses', TMessageType.CALL, self._seqid)
1987
    args = getItemAvailabilitiesAtOurWarehouses_args()
1988
    args.item_ids = item_ids
1989
    args.write(self._oprot)
1990
    self._oprot.writeMessageEnd()
1991
    self._oprot.trans.flush()
1992
 
1993
  def recv_getItemAvailabilitiesAtOurWarehouses(self, ):
1994
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1995
    if mtype == TMessageType.EXCEPTION:
1996
      x = TApplicationException()
1997
      x.read(self._iprot)
1998
      self._iprot.readMessageEnd()
1999
      raise x
2000
    result = getItemAvailabilitiesAtOurWarehouses_result()
2001
    result.read(self._iprot)
2002
    self._iprot.readMessageEnd()
2003
    if result.success is not None:
2004
      return result.success
2005
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
2006
 
6531 vikram.rag 2007
  def getMonitoredWarehouseForVendors(self, vendorIds):
2008
    """
2009
    Parameters:
2010
     - vendorIds
2011
    """
2012
    self.send_getMonitoredWarehouseForVendors(vendorIds)
2013
    return self.recv_getMonitoredWarehouseForVendors()
6484 amar.kumar 2014
 
6531 vikram.rag 2015
  def send_getMonitoredWarehouseForVendors(self, vendorIds):
2016
    self._oprot.writeMessageBegin('getMonitoredWarehouseForVendors', TMessageType.CALL, self._seqid)
2017
    args = getMonitoredWarehouseForVendors_args()
2018
    args.vendorIds = vendorIds
2019
    args.write(self._oprot)
2020
    self._oprot.writeMessageEnd()
2021
    self._oprot.trans.flush()
2022
 
2023
  def recv_getMonitoredWarehouseForVendors(self, ):
2024
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2025
    if mtype == TMessageType.EXCEPTION:
2026
      x = TApplicationException()
2027
      x.read(self._iprot)
2028
      self._iprot.readMessageEnd()
2029
      raise x
2030
    result = getMonitoredWarehouseForVendors_result()
2031
    result.read(self._iprot)
2032
    self._iprot.readMessageEnd()
2033
    if result.success is not None:
2034
      return result.success
2035
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
2036
 
2037
  def getIgnoredWarehouseidsAndItemids(self, ):
2038
    self.send_getIgnoredWarehouseidsAndItemids()
2039
    return self.recv_getIgnoredWarehouseidsAndItemids()
2040
 
2041
  def send_getIgnoredWarehouseidsAndItemids(self, ):
2042
    self._oprot.writeMessageBegin('getIgnoredWarehouseidsAndItemids', TMessageType.CALL, self._seqid)
2043
    args = getIgnoredWarehouseidsAndItemids_args()
2044
    args.write(self._oprot)
2045
    self._oprot.writeMessageEnd()
2046
    self._oprot.trans.flush()
2047
 
2048
  def recv_getIgnoredWarehouseidsAndItemids(self, ):
2049
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2050
    if mtype == TMessageType.EXCEPTION:
2051
      x = TApplicationException()
2052
      x.read(self._iprot)
2053
      self._iprot.readMessageEnd()
2054
      raise x
2055
    result = getIgnoredWarehouseidsAndItemids_result()
2056
    result.read(self._iprot)
2057
    self._iprot.readMessageEnd()
2058
    if result.success is not None:
2059
      return result.success
2060
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
2061
 
2062
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2063
    """
2064
    Parameters:
2065
     - item_id
2066
     - warehouse_id
2067
    """
2068
    self.send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id)
2069
    return self.recv_insertItemtoIgnoreInventoryUpdatelist()
2070
 
2071
  def send_insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2072
    self._oprot.writeMessageBegin('insertItemtoIgnoreInventoryUpdatelist', TMessageType.CALL, self._seqid)
2073
    args = insertItemtoIgnoreInventoryUpdatelist_args()
2074
    args.item_id = item_id
2075
    args.warehouse_id = warehouse_id
2076
    args.write(self._oprot)
2077
    self._oprot.writeMessageEnd()
2078
    self._oprot.trans.flush()
2079
 
2080
  def recv_insertItemtoIgnoreInventoryUpdatelist(self, ):
2081
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2082
    if mtype == TMessageType.EXCEPTION:
2083
      x = TApplicationException()
2084
      x.read(self._iprot)
2085
      self._iprot.readMessageEnd()
2086
      raise x
2087
    result = insertItemtoIgnoreInventoryUpdatelist_result()
2088
    result.read(self._iprot)
2089
    self._iprot.readMessageEnd()
2090
    if result.success is not None:
2091
      return result.success
2092
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
2093
 
2094
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2095
    """
2096
    Parameters:
2097
     - item_id
2098
     - warehouse_id
2099
    """
2100
    self.send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id)
2101
    return self.recv_deleteItemFromIgnoredInventoryUpdateList()
2102
 
2103
  def send_deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2104
    self._oprot.writeMessageBegin('deleteItemFromIgnoredInventoryUpdateList', TMessageType.CALL, self._seqid)
2105
    args = deleteItemFromIgnoredInventoryUpdateList_args()
2106
    args.item_id = item_id
2107
    args.warehouse_id = warehouse_id
2108
    args.write(self._oprot)
2109
    self._oprot.writeMessageEnd()
2110
    self._oprot.trans.flush()
2111
 
2112
  def recv_deleteItemFromIgnoredInventoryUpdateList(self, ):
2113
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2114
    if mtype == TMessageType.EXCEPTION:
2115
      x = TApplicationException()
2116
      x.read(self._iprot)
2117
      self._iprot.readMessageEnd()
2118
      raise x
2119
    result = deleteItemFromIgnoredInventoryUpdateList_result()
2120
    result.read(self._iprot)
2121
    self._iprot.readMessageEnd()
2122
    if result.success is not None:
2123
      return result.success
2124
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
2125
 
2126
  def getAllIgnoredInventoryupdateItemsCount(self, ):
2127
    self.send_getAllIgnoredInventoryupdateItemsCount()
2128
    return self.recv_getAllIgnoredInventoryupdateItemsCount()
2129
 
2130
  def send_getAllIgnoredInventoryupdateItemsCount(self, ):
2131
    self._oprot.writeMessageBegin('getAllIgnoredInventoryupdateItemsCount', TMessageType.CALL, self._seqid)
2132
    args = getAllIgnoredInventoryupdateItemsCount_args()
2133
    args.write(self._oprot)
2134
    self._oprot.writeMessageEnd()
2135
    self._oprot.trans.flush()
2136
 
2137
  def recv_getAllIgnoredInventoryupdateItemsCount(self, ):
2138
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2139
    if mtype == TMessageType.EXCEPTION:
2140
      x = TApplicationException()
2141
      x.read(self._iprot)
2142
      self._iprot.readMessageEnd()
2143
      raise x
2144
    result = getAllIgnoredInventoryupdateItemsCount_result()
2145
    result.read(self._iprot)
2146
    self._iprot.readMessageEnd()
2147
    if result.success is not None:
2148
      return result.success
2149
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
2150
 
2151
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
2152
    """
2153
    Parameters:
2154
     - offset
2155
     - limit
2156
    """
2157
    self.send_getIgnoredInventoryUpdateItemids(offset, limit)
2158
    return self.recv_getIgnoredInventoryUpdateItemids()
2159
 
2160
  def send_getIgnoredInventoryUpdateItemids(self, offset, limit):
2161
    self._oprot.writeMessageBegin('getIgnoredInventoryUpdateItemids', TMessageType.CALL, self._seqid)
2162
    args = getIgnoredInventoryUpdateItemids_args()
2163
    args.offset = offset
2164
    args.limit = limit
2165
    args.write(self._oprot)
2166
    self._oprot.writeMessageEnd()
2167
    self._oprot.trans.flush()
2168
 
2169
  def recv_getIgnoredInventoryUpdateItemids(self, ):
2170
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2171
    if mtype == TMessageType.EXCEPTION:
2172
      x = TApplicationException()
2173
      x.read(self._iprot)
2174
      self._iprot.readMessageEnd()
2175
      raise x
2176
    result = getIgnoredInventoryUpdateItemids_result()
2177
    result.read(self._iprot)
2178
    self._iprot.readMessageEnd()
2179
    if result.success is not None:
2180
      return result.success
2181
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
2182
 
6821 amar.kumar 2183
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2184
    """
2185
    Parameters:
2186
     - item_id
2187
     - numOfDaysStock
2188
     - minStockLevel
2189
    """
2190
    self.send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel)
2191
    self.recv_updateItemStockPurchaseParams()
6531 vikram.rag 2192
 
6821 amar.kumar 2193
  def send_updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2194
    self._oprot.writeMessageBegin('updateItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2195
    args = updateItemStockPurchaseParams_args()
2196
    args.item_id = item_id
2197
    args.numOfDaysStock = numOfDaysStock
2198
    args.minStockLevel = minStockLevel
2199
    args.write(self._oprot)
2200
    self._oprot.writeMessageEnd()
2201
    self._oprot.trans.flush()
2202
 
2203
  def recv_updateItemStockPurchaseParams(self, ):
2204
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2205
    if mtype == TMessageType.EXCEPTION:
2206
      x = TApplicationException()
2207
      x.read(self._iprot)
2208
      self._iprot.readMessageEnd()
2209
      raise x
2210
    result = updateItemStockPurchaseParams_result()
2211
    result.read(self._iprot)
2212
    self._iprot.readMessageEnd()
2213
    return
2214
 
2215
  def getItemStockPurchaseParams(self, itemId):
2216
    """
2217
    Parameters:
2218
     - itemId
2219
    """
2220
    self.send_getItemStockPurchaseParams(itemId)
2221
    return self.recv_getItemStockPurchaseParams()
2222
 
2223
  def send_getItemStockPurchaseParams(self, itemId):
2224
    self._oprot.writeMessageBegin('getItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2225
    args = getItemStockPurchaseParams_args()
2226
    args.itemId = itemId
2227
    args.write(self._oprot)
2228
    self._oprot.writeMessageEnd()
2229
    self._oprot.trans.flush()
2230
 
2231
  def recv_getItemStockPurchaseParams(self, ):
2232
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2233
    if mtype == TMessageType.EXCEPTION:
2234
      x = TApplicationException()
2235
      x.read(self._iprot)
2236
      self._iprot.readMessageEnd()
2237
      raise x
2238
    result = getItemStockPurchaseParams_result()
2239
    result.read(self._iprot)
2240
    self._iprot.readMessageEnd()
2241
    if result.success is not None:
2242
      return result.success
2243
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
2244
 
2245
  def addOosStatusForItem(self, oosStatusMap, date):
2246
    """
2247
    Parameters:
2248
     - oosStatusMap
2249
     - date
2250
    """
2251
    self.send_addOosStatusForItem(oosStatusMap, date)
2252
    self.recv_addOosStatusForItem()
2253
 
2254
  def send_addOosStatusForItem(self, oosStatusMap, date):
2255
    self._oprot.writeMessageBegin('addOosStatusForItem', TMessageType.CALL, self._seqid)
2256
    args = addOosStatusForItem_args()
2257
    args.oosStatusMap = oosStatusMap
2258
    args.date = date
2259
    args.write(self._oprot)
2260
    self._oprot.writeMessageEnd()
2261
    self._oprot.trans.flush()
2262
 
2263
  def recv_addOosStatusForItem(self, ):
2264
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2265
    if mtype == TMessageType.EXCEPTION:
2266
      x = TApplicationException()
2267
      x.read(self._iprot)
2268
      self._iprot.readMessageEnd()
2269
      raise x
2270
    result = addOosStatusForItem_result()
2271
    result.read(self._iprot)
2272
    self._iprot.readMessageEnd()
2273
    return
2274
 
9762 amar.kumar 2275
  def getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2276
    """
2277
    Parameters:
2278
     - itemId
9762 amar.kumar 2279
     - sourceId
6832 amar.kumar 2280
     - days
2281
    """
9762 amar.kumar 2282
    self.send_getOosStatusesForXDaysForItem(itemId, sourceId, days)
6832 amar.kumar 2283
    return self.recv_getOosStatusesForXDaysForItem()
6821 amar.kumar 2284
 
9762 amar.kumar 2285
  def send_getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2286
    self._oprot.writeMessageBegin('getOosStatusesForXDaysForItem', TMessageType.CALL, self._seqid)
2287
    args = getOosStatusesForXDaysForItem_args()
2288
    args.itemId = itemId
9762 amar.kumar 2289
    args.sourceId = sourceId
6832 amar.kumar 2290
    args.days = days
2291
    args.write(self._oprot)
2292
    self._oprot.writeMessageEnd()
2293
    self._oprot.trans.flush()
2294
 
2295
  def recv_getOosStatusesForXDaysForItem(self, ):
2296
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2297
    if mtype == TMessageType.EXCEPTION:
2298
      x = TApplicationException()
2299
      x.read(self._iprot)
2300
      self._iprot.readMessageEnd()
2301
      raise x
2302
    result = getOosStatusesForXDaysForItem_result()
2303
    result.read(self._iprot)
2304
    self._iprot.readMessageEnd()
2305
    if result.success is not None:
2306
      return result.success
2307
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
2308
 
10126 amar.kumar 2309
  def getOosStatusesForXDays(self, sourceId, days):
2310
    """
2311
    Parameters:
2312
     - sourceId
2313
     - days
2314
    """
2315
    self.send_getOosStatusesForXDays(sourceId, days)
2316
    return self.recv_getOosStatusesForXDays()
2317
 
2318
  def send_getOosStatusesForXDays(self, sourceId, days):
2319
    self._oprot.writeMessageBegin('getOosStatusesForXDays', TMessageType.CALL, self._seqid)
2320
    args = getOosStatusesForXDays_args()
2321
    args.sourceId = sourceId
2322
    args.days = days
2323
    args.write(self._oprot)
2324
    self._oprot.writeMessageEnd()
2325
    self._oprot.trans.flush()
2326
 
2327
  def recv_getOosStatusesForXDays(self, ):
2328
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2329
    if mtype == TMessageType.EXCEPTION:
2330
      x = TApplicationException()
2331
      x.read(self._iprot)
2332
      self._iprot.readMessageEnd()
2333
      raise x
2334
    result = getOosStatusesForXDays_result()
2335
    result.read(self._iprot)
2336
    self._iprot.readMessageEnd()
2337
    if result.success is not None:
2338
      return result.success
2339
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDays failed: unknown result");
2340
 
2341
  def getAllVendorItemPricing(self, itemId, vendorId):
2342
    """
2343
    Parameters:
2344
     - itemId
2345
     - vendorId
2346
    """
2347
    self.send_getAllVendorItemPricing(itemId, vendorId)
2348
    return self.recv_getAllVendorItemPricing()
2349
 
2350
  def send_getAllVendorItemPricing(self, itemId, vendorId):
2351
    self._oprot.writeMessageBegin('getAllVendorItemPricing', TMessageType.CALL, self._seqid)
2352
    args = getAllVendorItemPricing_args()
2353
    args.itemId = itemId
2354
    args.vendorId = vendorId
2355
    args.write(self._oprot)
2356
    self._oprot.writeMessageEnd()
2357
    self._oprot.trans.flush()
2358
 
2359
  def recv_getAllVendorItemPricing(self, ):
2360
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2361
    if mtype == TMessageType.EXCEPTION:
2362
      x = TApplicationException()
2363
      x.read(self._iprot)
2364
      self._iprot.readMessageEnd()
2365
      raise x
2366
    result = getAllVendorItemPricing_result()
2367
    result.read(self._iprot)
2368
    self._iprot.readMessageEnd()
2369
    if result.success is not None:
2370
      return result.success
2371
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemPricing failed: unknown result");
2372
 
6857 amar.kumar 2373
  def getNonZeroItemStockPurchaseParams(self, ):
2374
    self.send_getNonZeroItemStockPurchaseParams()
2375
    return self.recv_getNonZeroItemStockPurchaseParams()
6832 amar.kumar 2376
 
6857 amar.kumar 2377
  def send_getNonZeroItemStockPurchaseParams(self, ):
2378
    self._oprot.writeMessageBegin('getNonZeroItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2379
    args = getNonZeroItemStockPurchaseParams_args()
2380
    args.write(self._oprot)
2381
    self._oprot.writeMessageEnd()
2382
    self._oprot.trans.flush()
2383
 
2384
  def recv_getNonZeroItemStockPurchaseParams(self, ):
2385
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2386
    if mtype == TMessageType.EXCEPTION:
2387
      x = TApplicationException()
2388
      x.read(self._iprot)
2389
      self._iprot.readMessageEnd()
2390
      raise x
2391
    result = getNonZeroItemStockPurchaseParams_result()
2392
    result.read(self._iprot)
2393
    self._iprot.readMessageEnd()
2394
    if result.success is not None:
2395
      return result.success
2396
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
2397
 
7149 amar.kumar 2398
  def getBillableInventoryAndPendingOrders(self, ):
2399
    """
2400
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
2401
    """
2402
    self.send_getBillableInventoryAndPendingOrders()
2403
    return self.recv_getBillableInventoryAndPendingOrders()
6857 amar.kumar 2404
 
7149 amar.kumar 2405
  def send_getBillableInventoryAndPendingOrders(self, ):
2406
    self._oprot.writeMessageBegin('getBillableInventoryAndPendingOrders', TMessageType.CALL, self._seqid)
2407
    args = getBillableInventoryAndPendingOrders_args()
2408
    args.write(self._oprot)
2409
    self._oprot.writeMessageEnd()
2410
    self._oprot.trans.flush()
2411
 
2412
  def recv_getBillableInventoryAndPendingOrders(self, ):
2413
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2414
    if mtype == TMessageType.EXCEPTION:
2415
      x = TApplicationException()
2416
      x.read(self._iprot)
2417
      self._iprot.readMessageEnd()
2418
      raise x
2419
    result = getBillableInventoryAndPendingOrders_result()
2420
    result.read(self._iprot)
2421
    self._iprot.readMessageEnd()
2422
    if result.success is not None:
2423
      return result.success
2424
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
2425
 
7281 kshitij.so 2426
  def getWarehouseName(self, warehouse_id):
2427
    """
2428
    Parameters:
2429
     - warehouse_id
2430
    """
2431
    self.send_getWarehouseName(warehouse_id)
2432
    return self.recv_getWarehouseName()
7149 amar.kumar 2433
 
7281 kshitij.so 2434
  def send_getWarehouseName(self, warehouse_id):
2435
    self._oprot.writeMessageBegin('getWarehouseName', TMessageType.CALL, self._seqid)
2436
    args = getWarehouseName_args()
2437
    args.warehouse_id = warehouse_id
2438
    args.write(self._oprot)
2439
    self._oprot.writeMessageEnd()
2440
    self._oprot.trans.flush()
2441
 
2442
  def recv_getWarehouseName(self, ):
2443
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2444
    if mtype == TMessageType.EXCEPTION:
2445
      x = TApplicationException()
2446
      x.read(self._iprot)
2447
      self._iprot.readMessageEnd()
2448
      raise x
2449
    result = getWarehouseName_result()
2450
    result.read(self._iprot)
2451
    self._iprot.readMessageEnd()
2452
    if result.success is not None:
2453
      return result.success
2454
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseName failed: unknown result");
2455
 
2456
  def getAmazonInventoryForItem(self, item_id):
2457
    """
2458
    Parameters:
2459
     - item_id
2460
    """
2461
    self.send_getAmazonInventoryForItem(item_id)
2462
    return self.recv_getAmazonInventoryForItem()
2463
 
2464
  def send_getAmazonInventoryForItem(self, item_id):
2465
    self._oprot.writeMessageBegin('getAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2466
    args = getAmazonInventoryForItem_args()
2467
    args.item_id = item_id
2468
    args.write(self._oprot)
2469
    self._oprot.writeMessageEnd()
2470
    self._oprot.trans.flush()
2471
 
2472
  def recv_getAmazonInventoryForItem(self, ):
2473
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2474
    if mtype == TMessageType.EXCEPTION:
2475
      x = TApplicationException()
2476
      x.read(self._iprot)
2477
      self._iprot.readMessageEnd()
2478
      raise x
2479
    result = getAmazonInventoryForItem_result()
2480
    result.read(self._iprot)
2481
    self._iprot.readMessageEnd()
2482
    if result.success is not None:
2483
      return result.success
2484
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonInventoryForItem failed: unknown result");
2485
 
2486
  def getAllAmazonInventory(self, ):
2487
    self.send_getAllAmazonInventory()
2488
    return self.recv_getAllAmazonInventory()
2489
 
2490
  def send_getAllAmazonInventory(self, ):
2491
    self._oprot.writeMessageBegin('getAllAmazonInventory', TMessageType.CALL, self._seqid)
2492
    args = getAllAmazonInventory_args()
2493
    args.write(self._oprot)
2494
    self._oprot.writeMessageEnd()
2495
    self._oprot.trans.flush()
2496
 
2497
  def recv_getAllAmazonInventory(self, ):
2498
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2499
    if mtype == TMessageType.EXCEPTION:
2500
      x = TApplicationException()
2501
      x.read(self._iprot)
2502
      self._iprot.readMessageEnd()
2503
      raise x
2504
    result = getAllAmazonInventory_result()
2505
    result.read(self._iprot)
2506
    self._iprot.readMessageEnd()
2507
    if result.success is not None:
2508
      return result.success
2509
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonInventory failed: unknown result");
2510
 
10450 vikram.rag 2511
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot, time):
7281 kshitij.so 2512
    """
2513
    Parameters:
2514
     - amazonInventorySnapshot
10450 vikram.rag 2515
     - time
7281 kshitij.so 2516
    """
10450 vikram.rag 2517
    self.send_addOrUpdateAmazonInventoryForItem(amazonInventorySnapshot, time)
7281 kshitij.so 2518
    self.recv_addOrUpdateAmazonInventoryForItem()
2519
 
10450 vikram.rag 2520
  def send_addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot, time):
7281 kshitij.so 2521
    self._oprot.writeMessageBegin('addOrUpdateAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2522
    args = addOrUpdateAmazonInventoryForItem_args()
2523
    args.amazonInventorySnapshot = amazonInventorySnapshot
10450 vikram.rag 2524
    args.time = time
7281 kshitij.so 2525
    args.write(self._oprot)
2526
    self._oprot.writeMessageEnd()
2527
    self._oprot.trans.flush()
2528
 
2529
  def recv_addOrUpdateAmazonInventoryForItem(self, ):
2530
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2531
    if mtype == TMessageType.EXCEPTION:
2532
      x = TApplicationException()
2533
      x.read(self._iprot)
2534
      self._iprot.readMessageEnd()
2535
      raise x
2536
    result = addOrUpdateAmazonInventoryForItem_result()
2537
    result.read(self._iprot)
2538
    self._iprot.readMessageEnd()
2539
    return
2540
 
7972 amar.kumar 2541
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
2542
    """
2543
    Parameters:
2544
     - itemId
2545
     - numberOfDays
2546
    """
2547
    self.send_getLastNdaySaleForItem(itemId, numberOfDays)
2548
    return self.recv_getLastNdaySaleForItem()
7281 kshitij.so 2549
 
7972 amar.kumar 2550
  def send_getLastNdaySaleForItem(self, itemId, numberOfDays):
2551
    self._oprot.writeMessageBegin('getLastNdaySaleForItem', TMessageType.CALL, self._seqid)
2552
    args = getLastNdaySaleForItem_args()
2553
    args.itemId = itemId
2554
    args.numberOfDays = numberOfDays
2555
    args.write(self._oprot)
2556
    self._oprot.writeMessageEnd()
2557
    self._oprot.trans.flush()
2558
 
2559
  def recv_getLastNdaySaleForItem(self, ):
2560
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2561
    if mtype == TMessageType.EXCEPTION:
2562
      x = TApplicationException()
2563
      x.read(self._iprot)
2564
      self._iprot.readMessageEnd()
2565
      raise x
2566
    result = getLastNdaySaleForItem_result()
2567
    result.read(self._iprot)
2568
    self._iprot.readMessageEnd()
2569
    if result.success is not None:
2570
      return result.success
2571
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastNdaySaleForItem failed: unknown result");
2572
 
8282 kshitij.so 2573
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2574
    """
2575
    Parameters:
2576
     - amazonfbainventorysnapshot
2577
    """
2578
    self.send_addOrUpdateAmazonFbaInventory(amazonfbainventorysnapshot)
2579
    self.recv_addOrUpdateAmazonFbaInventory()
2580
 
2581
  def send_addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2582
    self._oprot.writeMessageBegin('addOrUpdateAmazonFbaInventory', TMessageType.CALL, self._seqid)
2583
    args = addOrUpdateAmazonFbaInventory_args()
2584
    args.amazonfbainventorysnapshot = amazonfbainventorysnapshot
2585
    args.write(self._oprot)
2586
    self._oprot.writeMessageEnd()
2587
    self._oprot.trans.flush()
2588
 
2589
  def recv_addOrUpdateAmazonFbaInventory(self, ):
2590
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2591
    if mtype == TMessageType.EXCEPTION:
2592
      x = TApplicationException()
2593
      x.read(self._iprot)
2594
      self._iprot.readMessageEnd()
2595
      raise x
2596
    result = addOrUpdateAmazonFbaInventory_result()
2597
    result.read(self._iprot)
2598
    self._iprot.readMessageEnd()
2599
    return
2600
 
8182 amar.kumar 2601
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2602
    """
2603
    Parameters:
2604
     - itemId
2605
     - warehouseId
2606
     - holdQuantity
2607
     - source
2608
    """
2609
    self.send_addUpdateHoldInventory(itemId, warehouseId, holdQuantity, source)
2610
    self.recv_addUpdateHoldInventory()
7972 amar.kumar 2611
 
8182 amar.kumar 2612
  def send_addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2613
    self._oprot.writeMessageBegin('addUpdateHoldInventory', TMessageType.CALL, self._seqid)
2614
    args = addUpdateHoldInventory_args()
2615
    args.itemId = itemId
2616
    args.warehouseId = warehouseId
2617
    args.holdQuantity = holdQuantity
2618
    args.source = source
2619
    args.write(self._oprot)
2620
    self._oprot.writeMessageEnd()
2621
    self._oprot.trans.flush()
2622
 
2623
  def recv_addUpdateHoldInventory(self, ):
2624
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2625
    if mtype == TMessageType.EXCEPTION:
2626
      x = TApplicationException()
2627
      x.read(self._iprot)
2628
      self._iprot.readMessageEnd()
2629
      raise x
2630
    result = addUpdateHoldInventory_result()
2631
    result.read(self._iprot)
2632
    self._iprot.readMessageEnd()
9762 amar.kumar 2633
    if result.cex is not None:
2634
      raise result.cex
8182 amar.kumar 2635
    return
2636
 
8282 kshitij.so 2637
  def getAmazonFbaItemInventory(self, itemId):
2638
    """
2639
    Parameters:
2640
     - itemId
2641
    """
2642
    self.send_getAmazonFbaItemInventory(itemId)
2643
    return self.recv_getAmazonFbaItemInventory()
8182 amar.kumar 2644
 
8282 kshitij.so 2645
  def send_getAmazonFbaItemInventory(self, itemId):
2646
    self._oprot.writeMessageBegin('getAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2647
    args = getAmazonFbaItemInventory_args()
2648
    args.itemId = itemId
2649
    args.write(self._oprot)
2650
    self._oprot.writeMessageEnd()
2651
    self._oprot.trans.flush()
2652
 
2653
  def recv_getAmazonFbaItemInventory(self, ):
2654
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2655
    if mtype == TMessageType.EXCEPTION:
2656
      x = TApplicationException()
2657
      x.read(self._iprot)
2658
      self._iprot.readMessageEnd()
2659
      raise x
2660
    result = getAmazonFbaItemInventory_result()
2661
    result.read(self._iprot)
2662
    self._iprot.readMessageEnd()
2663
    if result.success is not None:
2664
      return result.success
2665
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonFbaItemInventory failed: unknown result");
2666
 
8363 vikram.rag 2667
  def getAllAmazonFbaItemInventory(self, ):
2668
    self.send_getAllAmazonFbaItemInventory()
2669
    return self.recv_getAllAmazonFbaItemInventory()
8282 kshitij.so 2670
 
8363 vikram.rag 2671
  def send_getAllAmazonFbaItemInventory(self, ):
2672
    self._oprot.writeMessageBegin('getAllAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2673
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 2674
    args.write(self._oprot)
2675
    self._oprot.writeMessageEnd()
2676
    self._oprot.trans.flush()
2677
 
8363 vikram.rag 2678
  def recv_getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 2679
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2680
    if mtype == TMessageType.EXCEPTION:
2681
      x = TApplicationException()
2682
      x.read(self._iprot)
2683
      self._iprot.readMessageEnd()
2684
      raise x
8363 vikram.rag 2685
    result = getAllAmazonFbaItemInventory_result()
8282 kshitij.so 2686
    result.read(self._iprot)
2687
    self._iprot.readMessageEnd()
2688
    if result.success is not None:
2689
      return result.success
8363 vikram.rag 2690
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonFbaItemInventory failed: unknown result");
8282 kshitij.so 2691
 
8363 vikram.rag 2692
  def getOursGoodWarehouseIdsForLocation(self, state_id):
2693
    """
2694
    Parameters:
2695
     - state_id
2696
    """
2697
    self.send_getOursGoodWarehouseIdsForLocation(state_id)
2698
    return self.recv_getOursGoodWarehouseIdsForLocation()
8282 kshitij.so 2699
 
8363 vikram.rag 2700
  def send_getOursGoodWarehouseIdsForLocation(self, state_id):
2701
    self._oprot.writeMessageBegin('getOursGoodWarehouseIdsForLocation', TMessageType.CALL, self._seqid)
2702
    args = getOursGoodWarehouseIdsForLocation_args()
2703
    args.state_id = state_id
2704
    args.write(self._oprot)
2705
    self._oprot.writeMessageEnd()
2706
    self._oprot.trans.flush()
2707
 
2708
  def recv_getOursGoodWarehouseIdsForLocation(self, ):
2709
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2710
    if mtype == TMessageType.EXCEPTION:
2711
      x = TApplicationException()
2712
      x.read(self._iprot)
2713
      self._iprot.readMessageEnd()
2714
      raise x
2715
    result = getOursGoodWarehouseIdsForLocation_result()
2716
    result.read(self._iprot)
2717
    self._iprot.readMessageEnd()
2718
    if result.success is not None:
2719
      return result.success
2720
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOursGoodWarehouseIdsForLocation failed: unknown result");
2721
 
8955 vikram.rag 2722
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2723
    """
2724
    Parameters:
2725
     - id
2726
     - warehouse_id
2727
     - source
2728
    """
2729
    self.send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(id, warehouse_id, source)
2730
    return self.recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource()
8363 vikram.rag 2731
 
8955 vikram.rag 2732
  def send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2733
    self._oprot.writeMessageBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource', TMessageType.CALL, self._seqid)
2734
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
2735
    args.id = id
2736
    args.warehouse_id = warehouse_id
2737
    args.source = source
2738
    args.write(self._oprot)
2739
    self._oprot.writeMessageEnd()
2740
    self._oprot.trans.flush()
2741
 
2742
  def recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, ):
2743
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2744
    if mtype == TMessageType.EXCEPTION:
2745
      x = TApplicationException()
2746
      x.read(self._iprot)
2747
      self._iprot.readMessageEnd()
2748
      raise x
2749
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
2750
    result.read(self._iprot)
2751
    self._iprot.readMessageEnd()
2752
    if result.success is not None:
2753
      return result.success
2754
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetailForItemForWarehouseIdExceptSource failed: unknown result");
2755
 
9404 vikram.rag 2756
  def getSnapdealInventoryForItem(self, item_id):
2757
    """
2758
    Parameters:
2759
     - item_id
2760
    """
2761
    self.send_getSnapdealInventoryForItem(item_id)
2762
    return self.recv_getSnapdealInventoryForItem()
8955 vikram.rag 2763
 
9404 vikram.rag 2764
  def send_getSnapdealInventoryForItem(self, item_id):
2765
    self._oprot.writeMessageBegin('getSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2766
    args = getSnapdealInventoryForItem_args()
2767
    args.item_id = item_id
2768
    args.write(self._oprot)
2769
    self._oprot.writeMessageEnd()
2770
    self._oprot.trans.flush()
2771
 
2772
  def recv_getSnapdealInventoryForItem(self, ):
2773
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2774
    if mtype == TMessageType.EXCEPTION:
2775
      x = TApplicationException()
2776
      x.read(self._iprot)
2777
      self._iprot.readMessageEnd()
2778
      raise x
2779
    result = getSnapdealInventoryForItem_result()
2780
    result.read(self._iprot)
2781
    self._iprot.readMessageEnd()
2782
    if result.success is not None:
2783
      return result.success
2784
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventoryForItem failed: unknown result");
2785
 
2786
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2787
    """
2788
    Parameters:
2789
     - snapdealinventoryitem
2790
    """
2791
    self.send_addOrUpdateSnapdealInventoryForItem(snapdealinventoryitem)
2792
    self.recv_addOrUpdateSnapdealInventoryForItem()
2793
 
2794
  def send_addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2795
    self._oprot.writeMessageBegin('addOrUpdateSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2796
    args = addOrUpdateSnapdealInventoryForItem_args()
2797
    args.snapdealinventoryitem = snapdealinventoryitem
2798
    args.write(self._oprot)
2799
    self._oprot.writeMessageEnd()
2800
    self._oprot.trans.flush()
2801
 
2802
  def recv_addOrUpdateSnapdealInventoryForItem(self, ):
2803
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2804
    if mtype == TMessageType.EXCEPTION:
2805
      x = TApplicationException()
2806
      x.read(self._iprot)
2807
      self._iprot.readMessageEnd()
2808
      raise x
2809
    result = addOrUpdateSnapdealInventoryForItem_result()
2810
    result.read(self._iprot)
2811
    self._iprot.readMessageEnd()
2812
    return
2813
 
2814
  def getNlcForWarehouse(self, warehouse_id, item_id):
2815
    """
2816
    Parameters:
2817
     - warehouse_id
2818
     - item_id
2819
    """
2820
    self.send_getNlcForWarehouse(warehouse_id, item_id)
2821
    return self.recv_getNlcForWarehouse()
2822
 
2823
  def send_getNlcForWarehouse(self, warehouse_id, item_id):
2824
    self._oprot.writeMessageBegin('getNlcForWarehouse', TMessageType.CALL, self._seqid)
2825
    args = getNlcForWarehouse_args()
2826
    args.warehouse_id = warehouse_id
2827
    args.item_id = item_id
2828
    args.write(self._oprot)
2829
    self._oprot.writeMessageEnd()
2830
    self._oprot.trans.flush()
2831
 
2832
  def recv_getNlcForWarehouse(self, ):
2833
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2834
    if mtype == TMessageType.EXCEPTION:
2835
      x = TApplicationException()
2836
      x.read(self._iprot)
2837
      self._iprot.readMessageEnd()
2838
      raise x
2839
    result = getNlcForWarehouse_result()
2840
    result.read(self._iprot)
2841
    self._iprot.readMessageEnd()
2842
    if result.success is not None:
2843
      return result.success
2844
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
2845
 
9640 amar.kumar 2846
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
2847
    """
2848
    Parameters:
2849
     - item_id
2850
     - warehouse_id
2851
    """
2852
    self.send_getHeldInventoryMapForItem(item_id, warehouse_id)
2853
    return self.recv_getHeldInventoryMapForItem()
2854
 
2855
  def send_getHeldInventoryMapForItem(self, item_id, warehouse_id):
2856
    self._oprot.writeMessageBegin('getHeldInventoryMapForItem', TMessageType.CALL, self._seqid)
2857
    args = getHeldInventoryMapForItem_args()
2858
    args.item_id = item_id
2859
    args.warehouse_id = warehouse_id
2860
    args.write(self._oprot)
2861
    self._oprot.writeMessageEnd()
2862
    self._oprot.trans.flush()
2863
 
2864
  def recv_getHeldInventoryMapForItem(self, ):
2865
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2866
    if mtype == TMessageType.EXCEPTION:
2867
      x = TApplicationException()
2868
      x.read(self._iprot)
2869
      self._iprot.readMessageEnd()
2870
      raise x
2871
    result = getHeldInventoryMapForItem_result()
2872
    result.read(self._iprot)
2873
    self._iprot.readMessageEnd()
2874
    if result.success is not None:
2875
      return result.success
2876
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHeldInventoryMapForItem failed: unknown result");
2877
 
9495 vikram.rag 2878
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2879
    """
2880
    Parameters:
2881
     - allamazonfbainventorysnapshot
2882
    """
2883
    self.send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot)
2884
    self.recv_addOrUpdateAllAmazonFbaInventory()
9404 vikram.rag 2885
 
9495 vikram.rag 2886
  def send_addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2887
    self._oprot.writeMessageBegin('addOrUpdateAllAmazonFbaInventory', TMessageType.CALL, self._seqid)
2888
    args = addOrUpdateAllAmazonFbaInventory_args()
2889
    args.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 2890
    args.write(self._oprot)
2891
    self._oprot.writeMessageEnd()
2892
    self._oprot.trans.flush()
2893
 
9495 vikram.rag 2894
  def recv_addOrUpdateAllAmazonFbaInventory(self, ):
9456 vikram.rag 2895
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2896
    if mtype == TMessageType.EXCEPTION:
2897
      x = TApplicationException()
2898
      x.read(self._iprot)
2899
      self._iprot.readMessageEnd()
2900
      raise x
9495 vikram.rag 2901
    result = addOrUpdateAllAmazonFbaInventory_result()
9456 vikram.rag 2902
    result.read(self._iprot)
2903
    self._iprot.readMessageEnd()
9495 vikram.rag 2904
    return
9456 vikram.rag 2905
 
9495 vikram.rag 2906
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
9482 vikram.rag 2907
    """
2908
    Parameters:
9495 vikram.rag 2909
     - allsnapdealinventorysnapshot
9482 vikram.rag 2910
    """
9495 vikram.rag 2911
    self.send_addOrUpdateAllSnapdealInventory(allsnapdealinventorysnapshot)
2912
    self.recv_addOrUpdateAllSnapdealInventory()
9456 vikram.rag 2913
 
9495 vikram.rag 2914
  def send_addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
2915
    self._oprot.writeMessageBegin('addOrUpdateAllSnapdealInventory', TMessageType.CALL, self._seqid)
2916
    args = addOrUpdateAllSnapdealInventory_args()
2917
    args.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 2918
    args.write(self._oprot)
2919
    self._oprot.writeMessageEnd()
2920
    self._oprot.trans.flush()
2921
 
9495 vikram.rag 2922
  def recv_addOrUpdateAllSnapdealInventory(self, ):
9482 vikram.rag 2923
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2924
    if mtype == TMessageType.EXCEPTION:
2925
      x = TApplicationException()
2926
      x.read(self._iprot)
2927
      self._iprot.readMessageEnd()
2928
      raise x
9495 vikram.rag 2929
    result = addOrUpdateAllSnapdealInventory_result()
9482 vikram.rag 2930
    result.read(self._iprot)
2931
    self._iprot.readMessageEnd()
2932
    return
2933
 
9495 vikram.rag 2934
  def getSnapdealInventorySnapshot(self, ):
2935
    self.send_getSnapdealInventorySnapshot()
2936
    return self.recv_getSnapdealInventorySnapshot()
9482 vikram.rag 2937
 
9495 vikram.rag 2938
  def send_getSnapdealInventorySnapshot(self, ):
2939
    self._oprot.writeMessageBegin('getSnapdealInventorySnapshot', TMessageType.CALL, self._seqid)
2940
    args = getSnapdealInventorySnapshot_args()
2941
    args.write(self._oprot)
2942
    self._oprot.writeMessageEnd()
2943
    self._oprot.trans.flush()
2944
 
2945
  def recv_getSnapdealInventorySnapshot(self, ):
2946
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2947
    if mtype == TMessageType.EXCEPTION:
2948
      x = TApplicationException()
2949
      x.read(self._iprot)
2950
      self._iprot.readMessageEnd()
2951
      raise x
2952
    result = getSnapdealInventorySnapshot_result()
2953
    result.read(self._iprot)
2954
    self._iprot.readMessageEnd()
2955
    if result.success is not None:
2956
      return result.success
2957
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventorySnapshot failed: unknown result");
2958
 
9761 amar.kumar 2959
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
2960
    """
2961
    Parameters:
2962
     - itemId
2963
     - warehouseId
2964
     - source
2965
    """
2966
    self.send_getHoldInventoryDetails(itemId, warehouseId, source)
2967
    return self.recv_getHoldInventoryDetails()
9495 vikram.rag 2968
 
9761 amar.kumar 2969
  def send_getHoldInventoryDetails(self, itemId, warehouseId, source):
2970
    self._oprot.writeMessageBegin('getHoldInventoryDetails', TMessageType.CALL, self._seqid)
2971
    args = getHoldInventoryDetails_args()
2972
    args.itemId = itemId
2973
    args.warehouseId = warehouseId
2974
    args.source = source
2975
    args.write(self._oprot)
2976
    self._oprot.writeMessageEnd()
2977
    self._oprot.trans.flush()
2978
 
2979
  def recv_getHoldInventoryDetails(self, ):
2980
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2981
    if mtype == TMessageType.EXCEPTION:
2982
      x = TApplicationException()
2983
      x.read(self._iprot)
2984
      self._iprot.readMessageEnd()
2985
      raise x
2986
    result = getHoldInventoryDetails_result()
2987
    result.read(self._iprot)
2988
    self._iprot.readMessageEnd()
2989
    if result.success is not None:
2990
      return result.success
2991
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetails failed: unknown result");
2992
 
10450 vikram.rag 2993
  def addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot, time):
10050 vikram.rag 2994
    """
2995
    Parameters:
2996
     - flipkartInventorySnapshot
10450 vikram.rag 2997
     - time
10050 vikram.rag 2998
    """
10450 vikram.rag 2999
    self.send_addOrUpdateFlipkartInventorySnapshot(flipkartInventorySnapshot, time)
10050 vikram.rag 3000
    self.recv_addOrUpdateFlipkartInventorySnapshot()
9761 amar.kumar 3001
 
10450 vikram.rag 3002
  def send_addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot, time):
10050 vikram.rag 3003
    self._oprot.writeMessageBegin('addOrUpdateFlipkartInventorySnapshot', TMessageType.CALL, self._seqid)
3004
    args = addOrUpdateFlipkartInventorySnapshot_args()
3005
    args.flipkartInventorySnapshot = flipkartInventorySnapshot
10450 vikram.rag 3006
    args.time = time
10050 vikram.rag 3007
    args.write(self._oprot)
3008
    self._oprot.writeMessageEnd()
3009
    self._oprot.trans.flush()
3010
 
3011
  def recv_addOrUpdateFlipkartInventorySnapshot(self, ):
3012
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3013
    if mtype == TMessageType.EXCEPTION:
3014
      x = TApplicationException()
3015
      x.read(self._iprot)
3016
      self._iprot.readMessageEnd()
3017
      raise x
3018
    result = addOrUpdateFlipkartInventorySnapshot_result()
3019
    result.read(self._iprot)
3020
    self._iprot.readMessageEnd()
3021
    return
3022
 
3023
  def getFlipkartInventorySnapshot(self, ):
3024
    self.send_getFlipkartInventorySnapshot()
3025
    return self.recv_getFlipkartInventorySnapshot()
3026
 
3027
  def send_getFlipkartInventorySnapshot(self, ):
3028
    self._oprot.writeMessageBegin('getFlipkartInventorySnapshot', TMessageType.CALL, self._seqid)
3029
    args = getFlipkartInventorySnapshot_args()
3030
    args.write(self._oprot)
3031
    self._oprot.writeMessageEnd()
3032
    self._oprot.trans.flush()
3033
 
3034
  def recv_getFlipkartInventorySnapshot(self, ):
3035
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3036
    if mtype == TMessageType.EXCEPTION:
3037
      x = TApplicationException()
3038
      x.read(self._iprot)
3039
      self._iprot.readMessageEnd()
3040
      raise x
3041
    result = getFlipkartInventorySnapshot_result()
3042
    result.read(self._iprot)
3043
    self._iprot.readMessageEnd()
3044
    if result.success is not None:
3045
      return result.success
3046
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartInventorySnapshot failed: unknown result");
3047
 
10097 kshitij.so 3048
  def getFlipkartlInventoryForItem(self, item_id):
3049
    """
3050
    Parameters:
3051
     - item_id
3052
    """
3053
    self.send_getFlipkartlInventoryForItem(item_id)
3054
    return self.recv_getFlipkartlInventoryForItem()
10050 vikram.rag 3055
 
10097 kshitij.so 3056
  def send_getFlipkartlInventoryForItem(self, item_id):
3057
    self._oprot.writeMessageBegin('getFlipkartlInventoryForItem', TMessageType.CALL, self._seqid)
3058
    args = getFlipkartlInventoryForItem_args()
3059
    args.item_id = item_id
3060
    args.write(self._oprot)
3061
    self._oprot.writeMessageEnd()
3062
    self._oprot.trans.flush()
3063
 
3064
  def recv_getFlipkartlInventoryForItem(self, ):
3065
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3066
    if mtype == TMessageType.EXCEPTION:
3067
      x = TApplicationException()
3068
      x.read(self._iprot)
3069
      self._iprot.readMessageEnd()
3070
      raise x
3071
    result = getFlipkartlInventoryForItem_result()
3072
    result.read(self._iprot)
3073
    self._iprot.readMessageEnd()
3074
    if result.success is not None:
3075
      return result.success
3076
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartlInventoryForItem failed: unknown result");
3077
 
10485 vikram.rag 3078
  def getStateMaster(self, ):
3079
    self.send_getStateMaster()
3080
    return self.recv_getStateMaster()
10097 kshitij.so 3081
 
10485 vikram.rag 3082
  def send_getStateMaster(self, ):
3083
    self._oprot.writeMessageBegin('getStateMaster', TMessageType.CALL, self._seqid)
3084
    args = getStateMaster_args()
3085
    args.write(self._oprot)
3086
    self._oprot.writeMessageEnd()
3087
    self._oprot.trans.flush()
3088
 
3089
  def recv_getStateMaster(self, ):
3090
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3091
    if mtype == TMessageType.EXCEPTION:
3092
      x = TApplicationException()
3093
      x.read(self._iprot)
3094
      self._iprot.readMessageEnd()
3095
      raise x
3096
    result = getStateMaster_result()
3097
    result.read(self._iprot)
3098
    self._iprot.readMessageEnd()
3099
    if result.success is not None:
3100
      return result.success
3101
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStateMaster failed: unknown result");
3102
 
10544 vikram.rag 3103
  def updateSnapdealStockAtEOD(self, allsnapdealstock):
3104
    """
3105
    Parameters:
3106
     - allsnapdealstock
3107
    """
3108
    self.send_updateSnapdealStockAtEOD(allsnapdealstock)
3109
    self.recv_updateSnapdealStockAtEOD()
10485 vikram.rag 3110
 
10544 vikram.rag 3111
  def send_updateSnapdealStockAtEOD(self, allsnapdealstock):
3112
    self._oprot.writeMessageBegin('updateSnapdealStockAtEOD', TMessageType.CALL, self._seqid)
3113
    args = updateSnapdealStockAtEOD_args()
3114
    args.allsnapdealstock = allsnapdealstock
3115
    args.write(self._oprot)
3116
    self._oprot.writeMessageEnd()
3117
    self._oprot.trans.flush()
3118
 
3119
  def recv_updateSnapdealStockAtEOD(self, ):
3120
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3121
    if mtype == TMessageType.EXCEPTION:
3122
      x = TApplicationException()
3123
      x.read(self._iprot)
3124
      self._iprot.readMessageEnd()
3125
      raise x
3126
    result = updateSnapdealStockAtEOD_result()
3127
    result.read(self._iprot)
3128
    self._iprot.readMessageEnd()
3129
    return
3130
 
3131
  def updateFlipkartStockAtEOD(self, allflipkartstock):
3132
    """
3133
    Parameters:
3134
     - allflipkartstock
3135
    """
3136
    self.send_updateFlipkartStockAtEOD(allflipkartstock)
3137
    self.recv_updateFlipkartStockAtEOD()
3138
 
3139
  def send_updateFlipkartStockAtEOD(self, allflipkartstock):
3140
    self._oprot.writeMessageBegin('updateFlipkartStockAtEOD', TMessageType.CALL, self._seqid)
3141
    args = updateFlipkartStockAtEOD_args()
3142
    args.allflipkartstock = allflipkartstock
3143
    args.write(self._oprot)
3144
    self._oprot.writeMessageEnd()
3145
    self._oprot.trans.flush()
3146
 
3147
  def recv_updateFlipkartStockAtEOD(self, ):
3148
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3149
    if mtype == TMessageType.EXCEPTION:
3150
      x = TApplicationException()
3151
      x.read(self._iprot)
3152
      self._iprot.readMessageEnd()
3153
      raise x
3154
    result = updateFlipkartStockAtEOD_result()
3155
    result.read(self._iprot)
3156
    self._iprot.readMessageEnd()
3157
    return
3158
 
12363 kshitij.so 3159
  def getWanNlcForSource(self, item_id, source):
3160
    """
3161
    Parameters:
3162
     - item_id
3163
     - source
3164
    """
3165
    self.send_getWanNlcForSource(item_id, source)
3166
    return self.recv_getWanNlcForSource()
10544 vikram.rag 3167
 
12363 kshitij.so 3168
  def send_getWanNlcForSource(self, item_id, source):
3169
    self._oprot.writeMessageBegin('getWanNlcForSource', TMessageType.CALL, self._seqid)
3170
    args = getWanNlcForSource_args()
3171
    args.item_id = item_id
3172
    args.source = source
3173
    args.write(self._oprot)
3174
    self._oprot.writeMessageEnd()
3175
    self._oprot.trans.flush()
3176
 
3177
  def recv_getWanNlcForSource(self, ):
3178
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3179
    if mtype == TMessageType.EXCEPTION:
3180
      x = TApplicationException()
3181
      x.read(self._iprot)
3182
      self._iprot.readMessageEnd()
3183
      raise x
3184
    result = getWanNlcForSource_result()
3185
    result.read(self._iprot)
3186
    self._iprot.readMessageEnd()
3187
    if result.success is not None:
3188
      return result.success
3189
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWanNlcForSource failed: unknown result");
3190
 
3191
  def getAllAvailableAmazonFbaItemInventory(self, ):
3192
    self.send_getAllAvailableAmazonFbaItemInventory()
3193
    return self.recv_getAllAvailableAmazonFbaItemInventory()
3194
 
3195
  def send_getAllAvailableAmazonFbaItemInventory(self, ):
3196
    self._oprot.writeMessageBegin('getAllAvailableAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
3197
    args = getAllAvailableAmazonFbaItemInventory_args()
3198
    args.write(self._oprot)
3199
    self._oprot.writeMessageEnd()
3200
    self._oprot.trans.flush()
3201
 
3202
  def recv_getAllAvailableAmazonFbaItemInventory(self, ):
3203
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3204
    if mtype == TMessageType.EXCEPTION:
3205
      x = TApplicationException()
3206
      x.read(self._iprot)
3207
      self._iprot.readMessageEnd()
3208
      raise x
3209
    result = getAllAvailableAmazonFbaItemInventory_result()
3210
    result.read(self._iprot)
3211
    self._iprot.readMessageEnd()
3212
    if result.success is not None:
3213
      return result.success
3214
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAvailableAmazonFbaItemInventory failed: unknown result");
3215
 
3216
 
5944 mandeep.dh 3217
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3218
  def __init__(self, handler):
3219
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3220
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
3221
    self._processMap["addVendor"] = Processor.process_addVendor
3222
    self._processMap["updateInventoryHistory"] = Processor.process_updateInventoryHistory
3223
    self._processMap["updateInventory"] = Processor.process_updateInventory
3224
    self._processMap["addInventory"] = Processor.process_addInventory
3225
    self._processMap["retireWarehouse"] = Processor.process_retireWarehouse
3226
    self._processMap["getItemInventoryByItemId"] = Processor.process_getItemInventoryByItemId
3227
    self._processMap["getItemAvailibilityAtWarehouse"] = Processor.process_getItemAvailibilityAtWarehouse
3228
    self._processMap["getItemAvailabilityAtLocation"] = Processor.process_getItemAvailabilityAtLocation
3229
    self._processMap["getAllWarehouses"] = Processor.process_getAllWarehouses
3230
    self._processMap["getWarehouse"] = Processor.process_getWarehouse
3231
    self._processMap["getAllItemsForWarehouse"] = Processor.process_getAllItemsForWarehouse
5966 rajveer 3232
    self._processMap["isOrderBillable"] = Processor.process_isOrderBillable
5944 mandeep.dh 3233
    self._processMap["reserveItemInWarehouse"] = Processor.process_reserveItemInWarehouse
7968 amar.kumar 3234
    self._processMap["updateReservationForOrder"] = Processor.process_updateReservationForOrder
5944 mandeep.dh 3235
    self._processMap["reduceReservationCount"] = Processor.process_reduceReservationCount
3236
    self._processMap["getItemPricing"] = Processor.process_getItemPricing
3237
    self._processMap["getAllItemPricing"] = Processor.process_getAllItemPricing
3238
    self._processMap["addVendorItemPricing"] = Processor.process_addVendorItemPricing
3239
    self._processMap["getVendor"] = Processor.process_getVendor
3240
    self._processMap["getAllVendors"] = Processor.process_getAllVendors
3241
    self._processMap["addVendorItemMapping"] = Processor.process_addVendorItemMapping
3242
    self._processMap["getVendorItemMappings"] = Processor.process_getVendorItemMappings
3243
    self._processMap["getPendingOrdersInventory"] = Processor.process_getPendingOrdersInventory
3244
    self._processMap["getWarehouses"] = Processor.process_getWarehouses
3245
    self._processMap["resetAvailability"] = Processor.process_resetAvailability
3246
    self._processMap["resetAvailabilityForWarehouse"] = Processor.process_resetAvailabilityForWarehouse
3247
    self._processMap["getItemKeysToBeProcessed"] = Processor.process_getItemKeysToBeProcessed
3248
    self._processMap["markMissedInventoryUpdatesAsProcessed"] = Processor.process_markMissedInventoryUpdatesAsProcessed
3249
    self._processMap["getIgnoredItemKeys"] = Processor.process_getIgnoredItemKeys
3250
    self._processMap["addBadInventory"] = Processor.process_addBadInventory
3251
    self._processMap["getShippingLocations"] = Processor.process_getShippingLocations
3252
    self._processMap["getAllVendorItemMappings"] = Processor.process_getAllVendorItemMappings
3253
    self._processMap["getInventorySnapshot"] = Processor.process_getInventorySnapshot
3254
    self._processMap["clearItemAvailabilityCache"] = Processor.process_clearItemAvailabilityCache
3255
    self._processMap["updateVendorString"] = Processor.process_updateVendorString
6096 amit.gupta 3256
    self._processMap["clearItemAvailabilityCacheForItem"] = Processor.process_clearItemAvailabilityCacheForItem
6467 amar.kumar 3257
    self._processMap["getOurWarehouseIdForVendor"] = Processor.process_getOurWarehouseIdForVendor
6484 amar.kumar 3258
    self._processMap["getItemAvailabilitiesAtOurWarehouses"] = Processor.process_getItemAvailabilitiesAtOurWarehouses
6531 vikram.rag 3259
    self._processMap["getMonitoredWarehouseForVendors"] = Processor.process_getMonitoredWarehouseForVendors
3260
    self._processMap["getIgnoredWarehouseidsAndItemids"] = Processor.process_getIgnoredWarehouseidsAndItemids
3261
    self._processMap["insertItemtoIgnoreInventoryUpdatelist"] = Processor.process_insertItemtoIgnoreInventoryUpdatelist
3262
    self._processMap["deleteItemFromIgnoredInventoryUpdateList"] = Processor.process_deleteItemFromIgnoredInventoryUpdateList
3263
    self._processMap["getAllIgnoredInventoryupdateItemsCount"] = Processor.process_getAllIgnoredInventoryupdateItemsCount
3264
    self._processMap["getIgnoredInventoryUpdateItemids"] = Processor.process_getIgnoredInventoryUpdateItemids
6821 amar.kumar 3265
    self._processMap["updateItemStockPurchaseParams"] = Processor.process_updateItemStockPurchaseParams
3266
    self._processMap["getItemStockPurchaseParams"] = Processor.process_getItemStockPurchaseParams
3267
    self._processMap["addOosStatusForItem"] = Processor.process_addOosStatusForItem
6832 amar.kumar 3268
    self._processMap["getOosStatusesForXDaysForItem"] = Processor.process_getOosStatusesForXDaysForItem
10126 amar.kumar 3269
    self._processMap["getOosStatusesForXDays"] = Processor.process_getOosStatusesForXDays
3270
    self._processMap["getAllVendorItemPricing"] = Processor.process_getAllVendorItemPricing
6857 amar.kumar 3271
    self._processMap["getNonZeroItemStockPurchaseParams"] = Processor.process_getNonZeroItemStockPurchaseParams
7149 amar.kumar 3272
    self._processMap["getBillableInventoryAndPendingOrders"] = Processor.process_getBillableInventoryAndPendingOrders
7281 kshitij.so 3273
    self._processMap["getWarehouseName"] = Processor.process_getWarehouseName
3274
    self._processMap["getAmazonInventoryForItem"] = Processor.process_getAmazonInventoryForItem
3275
    self._processMap["getAllAmazonInventory"] = Processor.process_getAllAmazonInventory
3276
    self._processMap["addOrUpdateAmazonInventoryForItem"] = Processor.process_addOrUpdateAmazonInventoryForItem
7972 amar.kumar 3277
    self._processMap["getLastNdaySaleForItem"] = Processor.process_getLastNdaySaleForItem
8282 kshitij.so 3278
    self._processMap["addOrUpdateAmazonFbaInventory"] = Processor.process_addOrUpdateAmazonFbaInventory
8182 amar.kumar 3279
    self._processMap["addUpdateHoldInventory"] = Processor.process_addUpdateHoldInventory
8282 kshitij.so 3280
    self._processMap["getAmazonFbaItemInventory"] = Processor.process_getAmazonFbaItemInventory
8363 vikram.rag 3281
    self._processMap["getAllAmazonFbaItemInventory"] = Processor.process_getAllAmazonFbaItemInventory
3282
    self._processMap["getOursGoodWarehouseIdsForLocation"] = Processor.process_getOursGoodWarehouseIdsForLocation
8955 vikram.rag 3283
    self._processMap["getHoldInventoryDetailForItemForWarehouseIdExceptSource"] = Processor.process_getHoldInventoryDetailForItemForWarehouseIdExceptSource
9404 vikram.rag 3284
    self._processMap["getSnapdealInventoryForItem"] = Processor.process_getSnapdealInventoryForItem
3285
    self._processMap["addOrUpdateSnapdealInventoryForItem"] = Processor.process_addOrUpdateSnapdealInventoryForItem
3286
    self._processMap["getNlcForWarehouse"] = Processor.process_getNlcForWarehouse
9640 amar.kumar 3287
    self._processMap["getHeldInventoryMapForItem"] = Processor.process_getHeldInventoryMapForItem
9482 vikram.rag 3288
    self._processMap["addOrUpdateAllAmazonFbaInventory"] = Processor.process_addOrUpdateAllAmazonFbaInventory
9495 vikram.rag 3289
    self._processMap["addOrUpdateAllSnapdealInventory"] = Processor.process_addOrUpdateAllSnapdealInventory
3290
    self._processMap["getSnapdealInventorySnapshot"] = Processor.process_getSnapdealInventorySnapshot
9761 amar.kumar 3291
    self._processMap["getHoldInventoryDetails"] = Processor.process_getHoldInventoryDetails
10050 vikram.rag 3292
    self._processMap["addOrUpdateFlipkartInventorySnapshot"] = Processor.process_addOrUpdateFlipkartInventorySnapshot
3293
    self._processMap["getFlipkartInventorySnapshot"] = Processor.process_getFlipkartInventorySnapshot
10097 kshitij.so 3294
    self._processMap["getFlipkartlInventoryForItem"] = Processor.process_getFlipkartlInventoryForItem
10485 vikram.rag 3295
    self._processMap["getStateMaster"] = Processor.process_getStateMaster
10544 vikram.rag 3296
    self._processMap["updateSnapdealStockAtEOD"] = Processor.process_updateSnapdealStockAtEOD
3297
    self._processMap["updateFlipkartStockAtEOD"] = Processor.process_updateFlipkartStockAtEOD
12363 kshitij.so 3298
    self._processMap["getWanNlcForSource"] = Processor.process_getWanNlcForSource
3299
    self._processMap["getAllAvailableAmazonFbaItemInventory"] = Processor.process_getAllAvailableAmazonFbaItemInventory
5944 mandeep.dh 3300
 
3301
  def process(self, iprot, oprot):
3302
    (name, type, seqid) = iprot.readMessageBegin()
3303
    if name not in self._processMap:
3304
      iprot.skip(TType.STRUCT)
3305
      iprot.readMessageEnd()
3306
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3307
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3308
      x.write(oprot)
3309
      oprot.writeMessageEnd()
3310
      oprot.trans.flush()
3311
      return
3312
    else:
3313
      self._processMap[name](self, seqid, iprot, oprot)
3314
    return True
3315
 
3316
  def process_addWarehouse(self, seqid, iprot, oprot):
3317
    args = addWarehouse_args()
3318
    args.read(iprot)
3319
    iprot.readMessageEnd()
3320
    result = addWarehouse_result()
3321
    try:
3322
      result.success = self._handler.addWarehouse(args.warehouse)
3323
    except InventoryServiceException, cex:
3324
      result.cex = cex
3325
    oprot.writeMessageBegin("addWarehouse", TMessageType.REPLY, seqid)
3326
    result.write(oprot)
3327
    oprot.writeMessageEnd()
3328
    oprot.trans.flush()
3329
 
3330
  def process_addVendor(self, seqid, iprot, oprot):
3331
    args = addVendor_args()
3332
    args.read(iprot)
3333
    iprot.readMessageEnd()
3334
    result = addVendor_result()
3335
    try:
3336
      result.success = self._handler.addVendor(args.vendor)
3337
    except InventoryServiceException, cex:
3338
      result.cex = cex
3339
    oprot.writeMessageBegin("addVendor", TMessageType.REPLY, seqid)
3340
    result.write(oprot)
3341
    oprot.writeMessageEnd()
3342
    oprot.trans.flush()
3343
 
3344
  def process_updateInventoryHistory(self, seqid, iprot, oprot):
3345
    args = updateInventoryHistory_args()
3346
    args.read(iprot)
3347
    iprot.readMessageEnd()
3348
    result = updateInventoryHistory_result()
3349
    try:
3350
      self._handler.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability)
3351
    except InventoryServiceException, cex:
3352
      result.cex = cex
3353
    oprot.writeMessageBegin("updateInventoryHistory", TMessageType.REPLY, seqid)
3354
    result.write(oprot)
3355
    oprot.writeMessageEnd()
3356
    oprot.trans.flush()
3357
 
3358
  def process_updateInventory(self, seqid, iprot, oprot):
3359
    args = updateInventory_args()
3360
    args.read(iprot)
3361
    iprot.readMessageEnd()
3362
    result = updateInventory_result()
3363
    try:
3364
      self._handler.updateInventory(args.warehouse_id, args.timestamp, args.availability)
3365
    except InventoryServiceException, cex:
3366
      result.cex = cex
3367
    oprot.writeMessageBegin("updateInventory", TMessageType.REPLY, seqid)
3368
    result.write(oprot)
3369
    oprot.writeMessageEnd()
3370
    oprot.trans.flush()
3371
 
3372
  def process_addInventory(self, seqid, iprot, oprot):
3373
    args = addInventory_args()
3374
    args.read(iprot)
3375
    iprot.readMessageEnd()
3376
    result = addInventory_result()
3377
    try:
3378
      self._handler.addInventory(args.itemId, args.warehouseId, args.quantity)
3379
    except InventoryServiceException, cex:
3380
      result.cex = cex
3381
    oprot.writeMessageBegin("addInventory", TMessageType.REPLY, seqid)
3382
    result.write(oprot)
3383
    oprot.writeMessageEnd()
3384
    oprot.trans.flush()
3385
 
3386
  def process_retireWarehouse(self, seqid, iprot, oprot):
3387
    args = retireWarehouse_args()
3388
    args.read(iprot)
3389
    iprot.readMessageEnd()
3390
    result = retireWarehouse_result()
3391
    try:
3392
      self._handler.retireWarehouse(args.warehouse_id)
3393
    except InventoryServiceException, cex:
3394
      result.cex = cex
3395
    oprot.writeMessageBegin("retireWarehouse", TMessageType.REPLY, seqid)
3396
    result.write(oprot)
3397
    oprot.writeMessageEnd()
3398
    oprot.trans.flush()
3399
 
3400
  def process_getItemInventoryByItemId(self, seqid, iprot, oprot):
3401
    args = getItemInventoryByItemId_args()
3402
    args.read(iprot)
3403
    iprot.readMessageEnd()
3404
    result = getItemInventoryByItemId_result()
3405
    try:
3406
      result.success = self._handler.getItemInventoryByItemId(args.item_id)
3407
    except InventoryServiceException, cex:
3408
      result.cex = cex
3409
    oprot.writeMessageBegin("getItemInventoryByItemId", TMessageType.REPLY, seqid)
3410
    result.write(oprot)
3411
    oprot.writeMessageEnd()
3412
    oprot.trans.flush()
3413
 
3414
  def process_getItemAvailibilityAtWarehouse(self, seqid, iprot, oprot):
3415
    args = getItemAvailibilityAtWarehouse_args()
3416
    args.read(iprot)
3417
    iprot.readMessageEnd()
3418
    result = getItemAvailibilityAtWarehouse_result()
3419
    try:
3420
      result.success = self._handler.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id)
3421
    except InventoryServiceException, cex:
3422
      result.cex = cex
3423
    oprot.writeMessageBegin("getItemAvailibilityAtWarehouse", TMessageType.REPLY, seqid)
3424
    result.write(oprot)
3425
    oprot.writeMessageEnd()
3426
    oprot.trans.flush()
3427
 
3428
  def process_getItemAvailabilityAtLocation(self, seqid, iprot, oprot):
3429
    args = getItemAvailabilityAtLocation_args()
3430
    args.read(iprot)
3431
    iprot.readMessageEnd()
3432
    result = getItemAvailabilityAtLocation_result()
3433
    try:
5978 rajveer 3434
      result.success = self._handler.getItemAvailabilityAtLocation(args.itemId, args.sourceId)
5944 mandeep.dh 3435
    except InventoryServiceException, isex:
3436
      result.isex = isex
3437
    oprot.writeMessageBegin("getItemAvailabilityAtLocation", TMessageType.REPLY, seqid)
3438
    result.write(oprot)
3439
    oprot.writeMessageEnd()
3440
    oprot.trans.flush()
3441
 
3442
  def process_getAllWarehouses(self, seqid, iprot, oprot):
3443
    args = getAllWarehouses_args()
3444
    args.read(iprot)
3445
    iprot.readMessageEnd()
3446
    result = getAllWarehouses_result()
3447
    try:
3448
      result.success = self._handler.getAllWarehouses(args.isActive)
3449
    except InventoryServiceException, cex:
3450
      result.cex = cex
3451
    oprot.writeMessageBegin("getAllWarehouses", TMessageType.REPLY, seqid)
3452
    result.write(oprot)
3453
    oprot.writeMessageEnd()
3454
    oprot.trans.flush()
3455
 
3456
  def process_getWarehouse(self, seqid, iprot, oprot):
3457
    args = getWarehouse_args()
3458
    args.read(iprot)
3459
    iprot.readMessageEnd()
3460
    result = getWarehouse_result()
3461
    try:
3462
      result.success = self._handler.getWarehouse(args.warehouse_id)
3463
    except InventoryServiceException, cex:
3464
      result.cex = cex
3465
    oprot.writeMessageBegin("getWarehouse", TMessageType.REPLY, seqid)
3466
    result.write(oprot)
3467
    oprot.writeMessageEnd()
3468
    oprot.trans.flush()
3469
 
3470
  def process_getAllItemsForWarehouse(self, seqid, iprot, oprot):
3471
    args = getAllItemsForWarehouse_args()
3472
    args.read(iprot)
3473
    iprot.readMessageEnd()
3474
    result = getAllItemsForWarehouse_result()
3475
    try:
3476
      result.success = self._handler.getAllItemsForWarehouse(args.warehouse_id)
3477
    except InventoryServiceException, cex:
3478
      result.cex = cex
3479
    oprot.writeMessageBegin("getAllItemsForWarehouse", TMessageType.REPLY, seqid)
3480
    result.write(oprot)
3481
    oprot.writeMessageEnd()
3482
    oprot.trans.flush()
3483
 
5966 rajveer 3484
  def process_isOrderBillable(self, seqid, iprot, oprot):
3485
    args = isOrderBillable_args()
3486
    args.read(iprot)
3487
    iprot.readMessageEnd()
3488
    result = isOrderBillable_result()
3489
    result.success = self._handler.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId)
3490
    oprot.writeMessageBegin("isOrderBillable", TMessageType.REPLY, seqid)
3491
    result.write(oprot)
3492
    oprot.writeMessageEnd()
3493
    oprot.trans.flush()
3494
 
5944 mandeep.dh 3495
  def process_reserveItemInWarehouse(self, seqid, iprot, oprot):
3496
    args = reserveItemInWarehouse_args()
3497
    args.read(iprot)
3498
    iprot.readMessageEnd()
3499
    result = reserveItemInWarehouse_result()
3500
    try:
5966 rajveer 3501
      result.success = self._handler.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
5944 mandeep.dh 3502
    except InventoryServiceException, cex:
3503
      result.cex = cex
3504
    oprot.writeMessageBegin("reserveItemInWarehouse", TMessageType.REPLY, seqid)
3505
    result.write(oprot)
3506
    oprot.writeMessageEnd()
3507
    oprot.trans.flush()
3508
 
7968 amar.kumar 3509
  def process_updateReservationForOrder(self, seqid, iprot, oprot):
3510
    args = updateReservationForOrder_args()
3511
    args.read(iprot)
3512
    iprot.readMessageEnd()
3513
    result = updateReservationForOrder_result()
3514
    try:
3515
      result.success = self._handler.updateReservationForOrder(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
3516
    except InventoryServiceException, cex:
3517
      result.cex = cex
3518
    oprot.writeMessageBegin("updateReservationForOrder", TMessageType.REPLY, seqid)
3519
    result.write(oprot)
3520
    oprot.writeMessageEnd()
3521
    oprot.trans.flush()
3522
 
5944 mandeep.dh 3523
  def process_reduceReservationCount(self, seqid, iprot, oprot):
3524
    args = reduceReservationCount_args()
3525
    args.read(iprot)
3526
    iprot.readMessageEnd()
3527
    result = reduceReservationCount_result()
3528
    try:
5966 rajveer 3529
      result.success = self._handler.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity)
5944 mandeep.dh 3530
    except InventoryServiceException, cex:
3531
      result.cex = cex
3532
    oprot.writeMessageBegin("reduceReservationCount", TMessageType.REPLY, seqid)
3533
    result.write(oprot)
3534
    oprot.writeMessageEnd()
3535
    oprot.trans.flush()
3536
 
3537
  def process_getItemPricing(self, seqid, iprot, oprot):
3538
    args = getItemPricing_args()
3539
    args.read(iprot)
3540
    iprot.readMessageEnd()
3541
    result = getItemPricing_result()
3542
    try:
3543
      result.success = self._handler.getItemPricing(args.itemId, args.vendorId)
3544
    except InventoryServiceException, cex:
3545
      result.cex = cex
3546
    oprot.writeMessageBegin("getItemPricing", TMessageType.REPLY, seqid)
3547
    result.write(oprot)
3548
    oprot.writeMessageEnd()
3549
    oprot.trans.flush()
3550
 
3551
  def process_getAllItemPricing(self, seqid, iprot, oprot):
3552
    args = getAllItemPricing_args()
3553
    args.read(iprot)
3554
    iprot.readMessageEnd()
3555
    result = getAllItemPricing_result()
3556
    try:
3557
      result.success = self._handler.getAllItemPricing(args.itemId)
3558
    except InventoryServiceException, cex:
3559
      result.cex = cex
3560
    oprot.writeMessageBegin("getAllItemPricing", TMessageType.REPLY, seqid)
3561
    result.write(oprot)
3562
    oprot.writeMessageEnd()
3563
    oprot.trans.flush()
3564
 
3565
  def process_addVendorItemPricing(self, seqid, iprot, oprot):
3566
    args = addVendorItemPricing_args()
3567
    args.read(iprot)
3568
    iprot.readMessageEnd()
3569
    result = addVendorItemPricing_result()
3570
    try:
3571
      self._handler.addVendorItemPricing(args.vendorItemPricing)
3572
    except InventoryServiceException, cex:
3573
      result.cex = cex
3574
    oprot.writeMessageBegin("addVendorItemPricing", TMessageType.REPLY, seqid)
3575
    result.write(oprot)
3576
    oprot.writeMessageEnd()
3577
    oprot.trans.flush()
3578
 
3579
  def process_getVendor(self, seqid, iprot, oprot):
3580
    args = getVendor_args()
3581
    args.read(iprot)
3582
    iprot.readMessageEnd()
3583
    result = getVendor_result()
3584
    result.success = self._handler.getVendor(args.vendorId)
3585
    oprot.writeMessageBegin("getVendor", TMessageType.REPLY, seqid)
3586
    result.write(oprot)
3587
    oprot.writeMessageEnd()
3588
    oprot.trans.flush()
3589
 
3590
  def process_getAllVendors(self, seqid, iprot, oprot):
3591
    args = getAllVendors_args()
3592
    args.read(iprot)
3593
    iprot.readMessageEnd()
3594
    result = getAllVendors_result()
3595
    result.success = self._handler.getAllVendors()
3596
    oprot.writeMessageBegin("getAllVendors", TMessageType.REPLY, seqid)
3597
    result.write(oprot)
3598
    oprot.writeMessageEnd()
3599
    oprot.trans.flush()
3600
 
3601
  def process_addVendorItemMapping(self, seqid, iprot, oprot):
3602
    args = addVendorItemMapping_args()
3603
    args.read(iprot)
3604
    iprot.readMessageEnd()
3605
    result = addVendorItemMapping_result()
3606
    try:
3607
      self._handler.addVendorItemMapping(args.key, args.vendorItemMapping)
3608
    except InventoryServiceException, cex:
3609
      result.cex = cex
3610
    oprot.writeMessageBegin("addVendorItemMapping", TMessageType.REPLY, seqid)
3611
    result.write(oprot)
3612
    oprot.writeMessageEnd()
3613
    oprot.trans.flush()
3614
 
3615
  def process_getVendorItemMappings(self, seqid, iprot, oprot):
3616
    args = getVendorItemMappings_args()
3617
    args.read(iprot)
3618
    iprot.readMessageEnd()
3619
    result = getVendorItemMappings_result()
3620
    try:
3621
      result.success = self._handler.getVendorItemMappings(args.itemId)
3622
    except InventoryServiceException, cex:
3623
      result.cex = cex
3624
    oprot.writeMessageBegin("getVendorItemMappings", TMessageType.REPLY, seqid)
3625
    result.write(oprot)
3626
    oprot.writeMessageEnd()
3627
    oprot.trans.flush()
3628
 
3629
  def process_getPendingOrdersInventory(self, seqid, iprot, oprot):
3630
    args = getPendingOrdersInventory_args()
3631
    args.read(iprot)
3632
    iprot.readMessageEnd()
3633
    result = getPendingOrdersInventory_result()
3634
    result.success = self._handler.getPendingOrdersInventory(args.vendorid)
3635
    oprot.writeMessageBegin("getPendingOrdersInventory", TMessageType.REPLY, seqid)
3636
    result.write(oprot)
3637
    oprot.writeMessageEnd()
3638
    oprot.trans.flush()
3639
 
3640
  def process_getWarehouses(self, seqid, iprot, oprot):
3641
    args = getWarehouses_args()
3642
    args.read(iprot)
3643
    iprot.readMessageEnd()
3644
    result = getWarehouses_result()
3645
    result.success = self._handler.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId)
3646
    oprot.writeMessageBegin("getWarehouses", TMessageType.REPLY, seqid)
3647
    result.write(oprot)
3648
    oprot.writeMessageEnd()
3649
    oprot.trans.flush()
3650
 
3651
  def process_resetAvailability(self, seqid, iprot, oprot):
3652
    args = resetAvailability_args()
3653
    args.read(iprot)
3654
    iprot.readMessageEnd()
3655
    result = resetAvailability_result()
3656
    try:
3657
      self._handler.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId)
3658
    except InventoryServiceException, cex:
3659
      result.cex = cex
3660
    oprot.writeMessageBegin("resetAvailability", TMessageType.REPLY, seqid)
3661
    result.write(oprot)
3662
    oprot.writeMessageEnd()
3663
    oprot.trans.flush()
3664
 
3665
  def process_resetAvailabilityForWarehouse(self, seqid, iprot, oprot):
3666
    args = resetAvailabilityForWarehouse_args()
3667
    args.read(iprot)
3668
    iprot.readMessageEnd()
3669
    result = resetAvailabilityForWarehouse_result()
3670
    try:
3671
      self._handler.resetAvailabilityForWarehouse(args.warehouseId)
3672
    except InventoryServiceException, cex:
3673
      result.cex = cex
3674
    oprot.writeMessageBegin("resetAvailabilityForWarehouse", TMessageType.REPLY, seqid)
3675
    result.write(oprot)
3676
    oprot.writeMessageEnd()
3677
    oprot.trans.flush()
3678
 
3679
  def process_getItemKeysToBeProcessed(self, seqid, iprot, oprot):
3680
    args = getItemKeysToBeProcessed_args()
3681
    args.read(iprot)
3682
    iprot.readMessageEnd()
3683
    result = getItemKeysToBeProcessed_result()
3684
    result.success = self._handler.getItemKeysToBeProcessed(args.warehouseId)
3685
    oprot.writeMessageBegin("getItemKeysToBeProcessed", TMessageType.REPLY, seqid)
3686
    result.write(oprot)
3687
    oprot.writeMessageEnd()
3688
    oprot.trans.flush()
3689
 
3690
  def process_markMissedInventoryUpdatesAsProcessed(self, seqid, iprot, oprot):
3691
    args = markMissedInventoryUpdatesAsProcessed_args()
3692
    args.read(iprot)
3693
    iprot.readMessageEnd()
3694
    result = markMissedInventoryUpdatesAsProcessed_result()
3695
    self._handler.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId)
3696
    oprot.writeMessageBegin("markMissedInventoryUpdatesAsProcessed", TMessageType.REPLY, seqid)
3697
    result.write(oprot)
3698
    oprot.writeMessageEnd()
3699
    oprot.trans.flush()
3700
 
3701
  def process_getIgnoredItemKeys(self, seqid, iprot, oprot):
3702
    args = getIgnoredItemKeys_args()
3703
    args.read(iprot)
3704
    iprot.readMessageEnd()
3705
    result = getIgnoredItemKeys_result()
3706
    result.success = self._handler.getIgnoredItemKeys()
3707
    oprot.writeMessageBegin("getIgnoredItemKeys", TMessageType.REPLY, seqid)
3708
    result.write(oprot)
3709
    oprot.writeMessageEnd()
3710
    oprot.trans.flush()
3711
 
3712
  def process_addBadInventory(self, seqid, iprot, oprot):
3713
    args = addBadInventory_args()
3714
    args.read(iprot)
3715
    iprot.readMessageEnd()
3716
    result = addBadInventory_result()
3717
    try:
3718
      self._handler.addBadInventory(args.itemId, args.warehouseId, args.quantity)
3719
    except InventoryServiceException, cex:
3720
      result.cex = cex
3721
    oprot.writeMessageBegin("addBadInventory", TMessageType.REPLY, seqid)
3722
    result.write(oprot)
3723
    oprot.writeMessageEnd()
3724
    oprot.trans.flush()
3725
 
3726
  def process_getShippingLocations(self, seqid, iprot, oprot):
3727
    args = getShippingLocations_args()
3728
    args.read(iprot)
3729
    iprot.readMessageEnd()
3730
    result = getShippingLocations_result()
3731
    result.success = self._handler.getShippingLocations()
3732
    oprot.writeMessageBegin("getShippingLocations", TMessageType.REPLY, seqid)
3733
    result.write(oprot)
3734
    oprot.writeMessageEnd()
3735
    oprot.trans.flush()
3736
 
3737
  def process_getAllVendorItemMappings(self, seqid, iprot, oprot):
3738
    args = getAllVendorItemMappings_args()
3739
    args.read(iprot)
3740
    iprot.readMessageEnd()
3741
    result = getAllVendorItemMappings_result()
3742
    result.success = self._handler.getAllVendorItemMappings()
3743
    oprot.writeMessageBegin("getAllVendorItemMappings", TMessageType.REPLY, seqid)
3744
    result.write(oprot)
3745
    oprot.writeMessageEnd()
3746
    oprot.trans.flush()
3747
 
3748
  def process_getInventorySnapshot(self, seqid, iprot, oprot):
3749
    args = getInventorySnapshot_args()
3750
    args.read(iprot)
3751
    iprot.readMessageEnd()
3752
    result = getInventorySnapshot_result()
3753
    result.success = self._handler.getInventorySnapshot(args.warehouseId)
3754
    oprot.writeMessageBegin("getInventorySnapshot", TMessageType.REPLY, seqid)
3755
    result.write(oprot)
3756
    oprot.writeMessageEnd()
3757
    oprot.trans.flush()
3758
 
3759
  def process_clearItemAvailabilityCache(self, seqid, iprot, oprot):
3760
    args = clearItemAvailabilityCache_args()
3761
    args.read(iprot)
3762
    iprot.readMessageEnd()
3763
    result = clearItemAvailabilityCache_result()
3764
    self._handler.clearItemAvailabilityCache()
3765
    oprot.writeMessageBegin("clearItemAvailabilityCache", TMessageType.REPLY, seqid)
3766
    result.write(oprot)
3767
    oprot.writeMessageEnd()
3768
    oprot.trans.flush()
3769
 
3770
  def process_updateVendorString(self, seqid, iprot, oprot):
3771
    args = updateVendorString_args()
3772
    args.read(iprot)
3773
    iprot.readMessageEnd()
3774
    result = updateVendorString_result()
3775
    self._handler.updateVendorString(args.warehouseId, args.vendorString)
3776
    oprot.writeMessageBegin("updateVendorString", TMessageType.REPLY, seqid)
3777
    result.write(oprot)
3778
    oprot.writeMessageEnd()
3779
    oprot.trans.flush()
3780
 
6096 amit.gupta 3781
  def process_clearItemAvailabilityCacheForItem(self, seqid, iprot, oprot):
3782
    args = clearItemAvailabilityCacheForItem_args()
3783
    args.read(iprot)
3784
    iprot.readMessageEnd()
3785
    result = clearItemAvailabilityCacheForItem_result()
3786
    self._handler.clearItemAvailabilityCacheForItem(args.item_id)
3787
    oprot.writeMessageBegin("clearItemAvailabilityCacheForItem", TMessageType.REPLY, seqid)
3788
    result.write(oprot)
3789
    oprot.writeMessageEnd()
3790
    oprot.trans.flush()
5944 mandeep.dh 3791
 
6467 amar.kumar 3792
  def process_getOurWarehouseIdForVendor(self, seqid, iprot, oprot):
3793
    args = getOurWarehouseIdForVendor_args()
3794
    args.read(iprot)
3795
    iprot.readMessageEnd()
3796
    result = getOurWarehouseIdForVendor_result()
7718 amar.kumar 3797
    result.success = self._handler.getOurWarehouseIdForVendor(args.vendorId, args.billingWarehouseId)
6467 amar.kumar 3798
    oprot.writeMessageBegin("getOurWarehouseIdForVendor", TMessageType.REPLY, seqid)
3799
    result.write(oprot)
3800
    oprot.writeMessageEnd()
3801
    oprot.trans.flush()
6096 amit.gupta 3802
 
6484 amar.kumar 3803
  def process_getItemAvailabilitiesAtOurWarehouses(self, seqid, iprot, oprot):
3804
    args = getItemAvailabilitiesAtOurWarehouses_args()
3805
    args.read(iprot)
3806
    iprot.readMessageEnd()
3807
    result = getItemAvailabilitiesAtOurWarehouses_result()
3808
    result.success = self._handler.getItemAvailabilitiesAtOurWarehouses(args.item_ids)
3809
    oprot.writeMessageBegin("getItemAvailabilitiesAtOurWarehouses", TMessageType.REPLY, seqid)
3810
    result.write(oprot)
3811
    oprot.writeMessageEnd()
3812
    oprot.trans.flush()
6467 amar.kumar 3813
 
6531 vikram.rag 3814
  def process_getMonitoredWarehouseForVendors(self, seqid, iprot, oprot):
3815
    args = getMonitoredWarehouseForVendors_args()
3816
    args.read(iprot)
3817
    iprot.readMessageEnd()
3818
    result = getMonitoredWarehouseForVendors_result()
3819
    result.success = self._handler.getMonitoredWarehouseForVendors(args.vendorIds)
3820
    oprot.writeMessageBegin("getMonitoredWarehouseForVendors", TMessageType.REPLY, seqid)
3821
    result.write(oprot)
3822
    oprot.writeMessageEnd()
3823
    oprot.trans.flush()
6484 amar.kumar 3824
 
6531 vikram.rag 3825
  def process_getIgnoredWarehouseidsAndItemids(self, seqid, iprot, oprot):
3826
    args = getIgnoredWarehouseidsAndItemids_args()
3827
    args.read(iprot)
3828
    iprot.readMessageEnd()
3829
    result = getIgnoredWarehouseidsAndItemids_result()
3830
    result.success = self._handler.getIgnoredWarehouseidsAndItemids()
3831
    oprot.writeMessageBegin("getIgnoredWarehouseidsAndItemids", TMessageType.REPLY, seqid)
3832
    result.write(oprot)
3833
    oprot.writeMessageEnd()
3834
    oprot.trans.flush()
3835
 
3836
  def process_insertItemtoIgnoreInventoryUpdatelist(self, seqid, iprot, oprot):
3837
    args = insertItemtoIgnoreInventoryUpdatelist_args()
3838
    args.read(iprot)
3839
    iprot.readMessageEnd()
3840
    result = insertItemtoIgnoreInventoryUpdatelist_result()
3841
    result.success = self._handler.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id)
3842
    oprot.writeMessageBegin("insertItemtoIgnoreInventoryUpdatelist", TMessageType.REPLY, seqid)
3843
    result.write(oprot)
3844
    oprot.writeMessageEnd()
3845
    oprot.trans.flush()
3846
 
3847
  def process_deleteItemFromIgnoredInventoryUpdateList(self, seqid, iprot, oprot):
3848
    args = deleteItemFromIgnoredInventoryUpdateList_args()
3849
    args.read(iprot)
3850
    iprot.readMessageEnd()
3851
    result = deleteItemFromIgnoredInventoryUpdateList_result()
3852
    result.success = self._handler.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id)
3853
    oprot.writeMessageBegin("deleteItemFromIgnoredInventoryUpdateList", TMessageType.REPLY, seqid)
3854
    result.write(oprot)
3855
    oprot.writeMessageEnd()
3856
    oprot.trans.flush()
3857
 
3858
  def process_getAllIgnoredInventoryupdateItemsCount(self, seqid, iprot, oprot):
3859
    args = getAllIgnoredInventoryupdateItemsCount_args()
3860
    args.read(iprot)
3861
    iprot.readMessageEnd()
3862
    result = getAllIgnoredInventoryupdateItemsCount_result()
3863
    result.success = self._handler.getAllIgnoredInventoryupdateItemsCount()
3864
    oprot.writeMessageBegin("getAllIgnoredInventoryupdateItemsCount", TMessageType.REPLY, seqid)
3865
    result.write(oprot)
3866
    oprot.writeMessageEnd()
3867
    oprot.trans.flush()
3868
 
3869
  def process_getIgnoredInventoryUpdateItemids(self, seqid, iprot, oprot):
3870
    args = getIgnoredInventoryUpdateItemids_args()
3871
    args.read(iprot)
3872
    iprot.readMessageEnd()
3873
    result = getIgnoredInventoryUpdateItemids_result()
3874
    result.success = self._handler.getIgnoredInventoryUpdateItemids(args.offset, args.limit)
3875
    oprot.writeMessageBegin("getIgnoredInventoryUpdateItemids", TMessageType.REPLY, seqid)
3876
    result.write(oprot)
3877
    oprot.writeMessageEnd()
3878
    oprot.trans.flush()
3879
 
6821 amar.kumar 3880
  def process_updateItemStockPurchaseParams(self, seqid, iprot, oprot):
3881
    args = updateItemStockPurchaseParams_args()
3882
    args.read(iprot)
3883
    iprot.readMessageEnd()
3884
    result = updateItemStockPurchaseParams_result()
3885
    self._handler.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel)
3886
    oprot.writeMessageBegin("updateItemStockPurchaseParams", TMessageType.REPLY, seqid)
3887
    result.write(oprot)
3888
    oprot.writeMessageEnd()
3889
    oprot.trans.flush()
6531 vikram.rag 3890
 
6821 amar.kumar 3891
  def process_getItemStockPurchaseParams(self, seqid, iprot, oprot):
3892
    args = getItemStockPurchaseParams_args()
3893
    args.read(iprot)
3894
    iprot.readMessageEnd()
3895
    result = getItemStockPurchaseParams_result()
3896
    result.success = self._handler.getItemStockPurchaseParams(args.itemId)
3897
    oprot.writeMessageBegin("getItemStockPurchaseParams", TMessageType.REPLY, seqid)
3898
    result.write(oprot)
3899
    oprot.writeMessageEnd()
3900
    oprot.trans.flush()
3901
 
3902
  def process_addOosStatusForItem(self, seqid, iprot, oprot):
3903
    args = addOosStatusForItem_args()
3904
    args.read(iprot)
3905
    iprot.readMessageEnd()
3906
    result = addOosStatusForItem_result()
3907
    self._handler.addOosStatusForItem(args.oosStatusMap, args.date)
3908
    oprot.writeMessageBegin("addOosStatusForItem", TMessageType.REPLY, seqid)
3909
    result.write(oprot)
3910
    oprot.writeMessageEnd()
3911
    oprot.trans.flush()
3912
 
6832 amar.kumar 3913
  def process_getOosStatusesForXDaysForItem(self, seqid, iprot, oprot):
3914
    args = getOosStatusesForXDaysForItem_args()
3915
    args.read(iprot)
3916
    iprot.readMessageEnd()
3917
    result = getOosStatusesForXDaysForItem_result()
9762 amar.kumar 3918
    result.success = self._handler.getOosStatusesForXDaysForItem(args.itemId, args.sourceId, args.days)
6832 amar.kumar 3919
    oprot.writeMessageBegin("getOosStatusesForXDaysForItem", TMessageType.REPLY, seqid)
3920
    result.write(oprot)
3921
    oprot.writeMessageEnd()
3922
    oprot.trans.flush()
6821 amar.kumar 3923
 
10126 amar.kumar 3924
  def process_getOosStatusesForXDays(self, seqid, iprot, oprot):
3925
    args = getOosStatusesForXDays_args()
3926
    args.read(iprot)
3927
    iprot.readMessageEnd()
3928
    result = getOosStatusesForXDays_result()
3929
    result.success = self._handler.getOosStatusesForXDays(args.sourceId, args.days)
3930
    oprot.writeMessageBegin("getOosStatusesForXDays", TMessageType.REPLY, seqid)
3931
    result.write(oprot)
3932
    oprot.writeMessageEnd()
3933
    oprot.trans.flush()
3934
 
3935
  def process_getAllVendorItemPricing(self, seqid, iprot, oprot):
3936
    args = getAllVendorItemPricing_args()
3937
    args.read(iprot)
3938
    iprot.readMessageEnd()
3939
    result = getAllVendorItemPricing_result()
3940
    result.success = self._handler.getAllVendorItemPricing(args.itemId, args.vendorId)
3941
    oprot.writeMessageBegin("getAllVendorItemPricing", TMessageType.REPLY, seqid)
3942
    result.write(oprot)
3943
    oprot.writeMessageEnd()
3944
    oprot.trans.flush()
3945
 
6857 amar.kumar 3946
  def process_getNonZeroItemStockPurchaseParams(self, seqid, iprot, oprot):
3947
    args = getNonZeroItemStockPurchaseParams_args()
3948
    args.read(iprot)
3949
    iprot.readMessageEnd()
3950
    result = getNonZeroItemStockPurchaseParams_result()
3951
    result.success = self._handler.getNonZeroItemStockPurchaseParams()
3952
    oprot.writeMessageBegin("getNonZeroItemStockPurchaseParams", TMessageType.REPLY, seqid)
3953
    result.write(oprot)
3954
    oprot.writeMessageEnd()
3955
    oprot.trans.flush()
6832 amar.kumar 3956
 
7149 amar.kumar 3957
  def process_getBillableInventoryAndPendingOrders(self, seqid, iprot, oprot):
3958
    args = getBillableInventoryAndPendingOrders_args()
3959
    args.read(iprot)
3960
    iprot.readMessageEnd()
3961
    result = getBillableInventoryAndPendingOrders_result()
3962
    result.success = self._handler.getBillableInventoryAndPendingOrders()
3963
    oprot.writeMessageBegin("getBillableInventoryAndPendingOrders", TMessageType.REPLY, seqid)
3964
    result.write(oprot)
3965
    oprot.writeMessageEnd()
3966
    oprot.trans.flush()
6857 amar.kumar 3967
 
7281 kshitij.so 3968
  def process_getWarehouseName(self, seqid, iprot, oprot):
3969
    args = getWarehouseName_args()
3970
    args.read(iprot)
3971
    iprot.readMessageEnd()
3972
    result = getWarehouseName_result()
3973
    result.success = self._handler.getWarehouseName(args.warehouse_id)
3974
    oprot.writeMessageBegin("getWarehouseName", TMessageType.REPLY, seqid)
3975
    result.write(oprot)
3976
    oprot.writeMessageEnd()
3977
    oprot.trans.flush()
7149 amar.kumar 3978
 
7281 kshitij.so 3979
  def process_getAmazonInventoryForItem(self, seqid, iprot, oprot):
3980
    args = getAmazonInventoryForItem_args()
3981
    args.read(iprot)
3982
    iprot.readMessageEnd()
3983
    result = getAmazonInventoryForItem_result()
3984
    result.success = self._handler.getAmazonInventoryForItem(args.item_id)
3985
    oprot.writeMessageBegin("getAmazonInventoryForItem", TMessageType.REPLY, seqid)
3986
    result.write(oprot)
3987
    oprot.writeMessageEnd()
3988
    oprot.trans.flush()
3989
 
3990
  def process_getAllAmazonInventory(self, seqid, iprot, oprot):
3991
    args = getAllAmazonInventory_args()
3992
    args.read(iprot)
3993
    iprot.readMessageEnd()
3994
    result = getAllAmazonInventory_result()
3995
    result.success = self._handler.getAllAmazonInventory()
3996
    oprot.writeMessageBegin("getAllAmazonInventory", TMessageType.REPLY, seqid)
3997
    result.write(oprot)
3998
    oprot.writeMessageEnd()
3999
    oprot.trans.flush()
4000
 
4001
  def process_addOrUpdateAmazonInventoryForItem(self, seqid, iprot, oprot):
4002
    args = addOrUpdateAmazonInventoryForItem_args()
4003
    args.read(iprot)
4004
    iprot.readMessageEnd()
4005
    result = addOrUpdateAmazonInventoryForItem_result()
10450 vikram.rag 4006
    self._handler.addOrUpdateAmazonInventoryForItem(args.amazonInventorySnapshot, args.time)
7281 kshitij.so 4007
    oprot.writeMessageBegin("addOrUpdateAmazonInventoryForItem", TMessageType.REPLY, seqid)
4008
    result.write(oprot)
4009
    oprot.writeMessageEnd()
4010
    oprot.trans.flush()
4011
 
7972 amar.kumar 4012
  def process_getLastNdaySaleForItem(self, seqid, iprot, oprot):
4013
    args = getLastNdaySaleForItem_args()
4014
    args.read(iprot)
4015
    iprot.readMessageEnd()
4016
    result = getLastNdaySaleForItem_result()
4017
    result.success = self._handler.getLastNdaySaleForItem(args.itemId, args.numberOfDays)
4018
    oprot.writeMessageBegin("getLastNdaySaleForItem", TMessageType.REPLY, seqid)
4019
    result.write(oprot)
4020
    oprot.writeMessageEnd()
4021
    oprot.trans.flush()
7281 kshitij.so 4022
 
8282 kshitij.so 4023
  def process_addOrUpdateAmazonFbaInventory(self, seqid, iprot, oprot):
4024
    args = addOrUpdateAmazonFbaInventory_args()
4025
    args.read(iprot)
4026
    iprot.readMessageEnd()
4027
    result = addOrUpdateAmazonFbaInventory_result()
4028
    self._handler.addOrUpdateAmazonFbaInventory(args.amazonfbainventorysnapshot)
4029
    oprot.writeMessageBegin("addOrUpdateAmazonFbaInventory", TMessageType.REPLY, seqid)
4030
    result.write(oprot)
4031
    oprot.writeMessageEnd()
4032
    oprot.trans.flush()
4033
 
8182 amar.kumar 4034
  def process_addUpdateHoldInventory(self, seqid, iprot, oprot):
4035
    args = addUpdateHoldInventory_args()
4036
    args.read(iprot)
4037
    iprot.readMessageEnd()
4038
    result = addUpdateHoldInventory_result()
9762 amar.kumar 4039
    try:
4040
      self._handler.addUpdateHoldInventory(args.itemId, args.warehouseId, args.holdQuantity, args.source)
4041
    except InventoryServiceException, cex:
4042
      result.cex = cex
8182 amar.kumar 4043
    oprot.writeMessageBegin("addUpdateHoldInventory", TMessageType.REPLY, seqid)
4044
    result.write(oprot)
4045
    oprot.writeMessageEnd()
4046
    oprot.trans.flush()
7972 amar.kumar 4047
 
8282 kshitij.so 4048
  def process_getAmazonFbaItemInventory(self, seqid, iprot, oprot):
4049
    args = getAmazonFbaItemInventory_args()
4050
    args.read(iprot)
4051
    iprot.readMessageEnd()
4052
    result = getAmazonFbaItemInventory_result()
4053
    result.success = self._handler.getAmazonFbaItemInventory(args.itemId)
4054
    oprot.writeMessageBegin("getAmazonFbaItemInventory", TMessageType.REPLY, seqid)
4055
    result.write(oprot)
4056
    oprot.writeMessageEnd()
4057
    oprot.trans.flush()
8182 amar.kumar 4058
 
8363 vikram.rag 4059
  def process_getAllAmazonFbaItemInventory(self, seqid, iprot, oprot):
4060
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 4061
    args.read(iprot)
4062
    iprot.readMessageEnd()
8363 vikram.rag 4063
    result = getAllAmazonFbaItemInventory_result()
4064
    result.success = self._handler.getAllAmazonFbaItemInventory()
4065
    oprot.writeMessageBegin("getAllAmazonFbaItemInventory", TMessageType.REPLY, seqid)
8282 kshitij.so 4066
    result.write(oprot)
4067
    oprot.writeMessageEnd()
4068
    oprot.trans.flush()
4069
 
8363 vikram.rag 4070
  def process_getOursGoodWarehouseIdsForLocation(self, seqid, iprot, oprot):
4071
    args = getOursGoodWarehouseIdsForLocation_args()
4072
    args.read(iprot)
4073
    iprot.readMessageEnd()
4074
    result = getOursGoodWarehouseIdsForLocation_result()
4075
    result.success = self._handler.getOursGoodWarehouseIdsForLocation(args.state_id)
4076
    oprot.writeMessageBegin("getOursGoodWarehouseIdsForLocation", TMessageType.REPLY, seqid)
4077
    result.write(oprot)
4078
    oprot.writeMessageEnd()
4079
    oprot.trans.flush()
8282 kshitij.so 4080
 
8955 vikram.rag 4081
  def process_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, seqid, iprot, oprot):
4082
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
4083
    args.read(iprot)
4084
    iprot.readMessageEnd()
4085
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
4086
    result.success = self._handler.getHoldInventoryDetailForItemForWarehouseIdExceptSource(args.id, args.warehouse_id, args.source)
4087
    oprot.writeMessageBegin("getHoldInventoryDetailForItemForWarehouseIdExceptSource", TMessageType.REPLY, seqid)
4088
    result.write(oprot)
4089
    oprot.writeMessageEnd()
4090
    oprot.trans.flush()
8363 vikram.rag 4091
 
9404 vikram.rag 4092
  def process_getSnapdealInventoryForItem(self, seqid, iprot, oprot):
4093
    args = getSnapdealInventoryForItem_args()
4094
    args.read(iprot)
4095
    iprot.readMessageEnd()
4096
    result = getSnapdealInventoryForItem_result()
4097
    result.success = self._handler.getSnapdealInventoryForItem(args.item_id)
4098
    oprot.writeMessageBegin("getSnapdealInventoryForItem", TMessageType.REPLY, seqid)
4099
    result.write(oprot)
4100
    oprot.writeMessageEnd()
4101
    oprot.trans.flush()
8955 vikram.rag 4102
 
9404 vikram.rag 4103
  def process_addOrUpdateSnapdealInventoryForItem(self, seqid, iprot, oprot):
4104
    args = addOrUpdateSnapdealInventoryForItem_args()
4105
    args.read(iprot)
4106
    iprot.readMessageEnd()
4107
    result = addOrUpdateSnapdealInventoryForItem_result()
4108
    self._handler.addOrUpdateSnapdealInventoryForItem(args.snapdealinventoryitem)
4109
    oprot.writeMessageBegin("addOrUpdateSnapdealInventoryForItem", TMessageType.REPLY, seqid)
4110
    result.write(oprot)
4111
    oprot.writeMessageEnd()
4112
    oprot.trans.flush()
4113
 
4114
  def process_getNlcForWarehouse(self, seqid, iprot, oprot):
4115
    args = getNlcForWarehouse_args()
4116
    args.read(iprot)
4117
    iprot.readMessageEnd()
4118
    result = getNlcForWarehouse_result()
4119
    result.success = self._handler.getNlcForWarehouse(args.warehouse_id, args.item_id)
4120
    oprot.writeMessageBegin("getNlcForWarehouse", TMessageType.REPLY, seqid)
4121
    result.write(oprot)
4122
    oprot.writeMessageEnd()
4123
    oprot.trans.flush()
4124
 
9640 amar.kumar 4125
  def process_getHeldInventoryMapForItem(self, seqid, iprot, oprot):
4126
    args = getHeldInventoryMapForItem_args()
4127
    args.read(iprot)
4128
    iprot.readMessageEnd()
4129
    result = getHeldInventoryMapForItem_result()
4130
    result.success = self._handler.getHeldInventoryMapForItem(args.item_id, args.warehouse_id)
4131
    oprot.writeMessageBegin("getHeldInventoryMapForItem", TMessageType.REPLY, seqid)
4132
    result.write(oprot)
4133
    oprot.writeMessageEnd()
4134
    oprot.trans.flush()
4135
 
9495 vikram.rag 4136
  def process_addOrUpdateAllAmazonFbaInventory(self, seqid, iprot, oprot):
4137
    args = addOrUpdateAllAmazonFbaInventory_args()
9456 vikram.rag 4138
    args.read(iprot)
4139
    iprot.readMessageEnd()
9495 vikram.rag 4140
    result = addOrUpdateAllAmazonFbaInventory_result()
4141
    self._handler.addOrUpdateAllAmazonFbaInventory(args.allamazonfbainventorysnapshot)
4142
    oprot.writeMessageBegin("addOrUpdateAllAmazonFbaInventory", TMessageType.REPLY, seqid)
9456 vikram.rag 4143
    result.write(oprot)
4144
    oprot.writeMessageEnd()
4145
    oprot.trans.flush()
9404 vikram.rag 4146
 
9495 vikram.rag 4147
  def process_addOrUpdateAllSnapdealInventory(self, seqid, iprot, oprot):
4148
    args = addOrUpdateAllSnapdealInventory_args()
9482 vikram.rag 4149
    args.read(iprot)
4150
    iprot.readMessageEnd()
9495 vikram.rag 4151
    result = addOrUpdateAllSnapdealInventory_result()
4152
    self._handler.addOrUpdateAllSnapdealInventory(args.allsnapdealinventorysnapshot)
4153
    oprot.writeMessageBegin("addOrUpdateAllSnapdealInventory", TMessageType.REPLY, seqid)
9482 vikram.rag 4154
    result.write(oprot)
4155
    oprot.writeMessageEnd()
4156
    oprot.trans.flush()
9456 vikram.rag 4157
 
9495 vikram.rag 4158
  def process_getSnapdealInventorySnapshot(self, seqid, iprot, oprot):
4159
    args = getSnapdealInventorySnapshot_args()
4160
    args.read(iprot)
4161
    iprot.readMessageEnd()
4162
    result = getSnapdealInventorySnapshot_result()
4163
    result.success = self._handler.getSnapdealInventorySnapshot()
4164
    oprot.writeMessageBegin("getSnapdealInventorySnapshot", TMessageType.REPLY, seqid)
4165
    result.write(oprot)
4166
    oprot.writeMessageEnd()
4167
    oprot.trans.flush()
9482 vikram.rag 4168
 
9761 amar.kumar 4169
  def process_getHoldInventoryDetails(self, seqid, iprot, oprot):
4170
    args = getHoldInventoryDetails_args()
4171
    args.read(iprot)
4172
    iprot.readMessageEnd()
4173
    result = getHoldInventoryDetails_result()
4174
    result.success = self._handler.getHoldInventoryDetails(args.itemId, args.warehouseId, args.source)
4175
    oprot.writeMessageBegin("getHoldInventoryDetails", TMessageType.REPLY, seqid)
4176
    result.write(oprot)
4177
    oprot.writeMessageEnd()
4178
    oprot.trans.flush()
9495 vikram.rag 4179
 
10050 vikram.rag 4180
  def process_addOrUpdateFlipkartInventorySnapshot(self, seqid, iprot, oprot):
4181
    args = addOrUpdateFlipkartInventorySnapshot_args()
4182
    args.read(iprot)
4183
    iprot.readMessageEnd()
4184
    result = addOrUpdateFlipkartInventorySnapshot_result()
10450 vikram.rag 4185
    self._handler.addOrUpdateFlipkartInventorySnapshot(args.flipkartInventorySnapshot, args.time)
10050 vikram.rag 4186
    oprot.writeMessageBegin("addOrUpdateFlipkartInventorySnapshot", TMessageType.REPLY, seqid)
4187
    result.write(oprot)
4188
    oprot.writeMessageEnd()
4189
    oprot.trans.flush()
9761 amar.kumar 4190
 
10050 vikram.rag 4191
  def process_getFlipkartInventorySnapshot(self, seqid, iprot, oprot):
4192
    args = getFlipkartInventorySnapshot_args()
4193
    args.read(iprot)
4194
    iprot.readMessageEnd()
4195
    result = getFlipkartInventorySnapshot_result()
4196
    result.success = self._handler.getFlipkartInventorySnapshot()
4197
    oprot.writeMessageBegin("getFlipkartInventorySnapshot", TMessageType.REPLY, seqid)
4198
    result.write(oprot)
4199
    oprot.writeMessageEnd()
4200
    oprot.trans.flush()
4201
 
10097 kshitij.so 4202
  def process_getFlipkartlInventoryForItem(self, seqid, iprot, oprot):
4203
    args = getFlipkartlInventoryForItem_args()
4204
    args.read(iprot)
4205
    iprot.readMessageEnd()
4206
    result = getFlipkartlInventoryForItem_result()
4207
    result.success = self._handler.getFlipkartlInventoryForItem(args.item_id)
4208
    oprot.writeMessageBegin("getFlipkartlInventoryForItem", TMessageType.REPLY, seqid)
4209
    result.write(oprot)
4210
    oprot.writeMessageEnd()
4211
    oprot.trans.flush()
10050 vikram.rag 4212
 
10485 vikram.rag 4213
  def process_getStateMaster(self, seqid, iprot, oprot):
4214
    args = getStateMaster_args()
4215
    args.read(iprot)
4216
    iprot.readMessageEnd()
4217
    result = getStateMaster_result()
4218
    result.success = self._handler.getStateMaster()
4219
    oprot.writeMessageBegin("getStateMaster", TMessageType.REPLY, seqid)
4220
    result.write(oprot)
4221
    oprot.writeMessageEnd()
4222
    oprot.trans.flush()
10097 kshitij.so 4223
 
10544 vikram.rag 4224
  def process_updateSnapdealStockAtEOD(self, seqid, iprot, oprot):
4225
    args = updateSnapdealStockAtEOD_args()
4226
    args.read(iprot)
4227
    iprot.readMessageEnd()
4228
    result = updateSnapdealStockAtEOD_result()
4229
    self._handler.updateSnapdealStockAtEOD(args.allsnapdealstock)
4230
    oprot.writeMessageBegin("updateSnapdealStockAtEOD", TMessageType.REPLY, seqid)
4231
    result.write(oprot)
4232
    oprot.writeMessageEnd()
4233
    oprot.trans.flush()
10485 vikram.rag 4234
 
10544 vikram.rag 4235
  def process_updateFlipkartStockAtEOD(self, seqid, iprot, oprot):
4236
    args = updateFlipkartStockAtEOD_args()
4237
    args.read(iprot)
4238
    iprot.readMessageEnd()
4239
    result = updateFlipkartStockAtEOD_result()
4240
    self._handler.updateFlipkartStockAtEOD(args.allflipkartstock)
4241
    oprot.writeMessageBegin("updateFlipkartStockAtEOD", TMessageType.REPLY, seqid)
4242
    result.write(oprot)
4243
    oprot.writeMessageEnd()
4244
    oprot.trans.flush()
4245
 
12363 kshitij.so 4246
  def process_getWanNlcForSource(self, seqid, iprot, oprot):
4247
    args = getWanNlcForSource_args()
4248
    args.read(iprot)
4249
    iprot.readMessageEnd()
4250
    result = getWanNlcForSource_result()
4251
    result.success = self._handler.getWanNlcForSource(args.item_id, args.source)
4252
    oprot.writeMessageBegin("getWanNlcForSource", TMessageType.REPLY, seqid)
4253
    result.write(oprot)
4254
    oprot.writeMessageEnd()
4255
    oprot.trans.flush()
10544 vikram.rag 4256
 
12363 kshitij.so 4257
  def process_getAllAvailableAmazonFbaItemInventory(self, seqid, iprot, oprot):
4258
    args = getAllAvailableAmazonFbaItemInventory_args()
4259
    args.read(iprot)
4260
    iprot.readMessageEnd()
4261
    result = getAllAvailableAmazonFbaItemInventory_result()
4262
    result.success = self._handler.getAllAvailableAmazonFbaItemInventory()
4263
    oprot.writeMessageBegin("getAllAvailableAmazonFbaItemInventory", TMessageType.REPLY, seqid)
4264
    result.write(oprot)
4265
    oprot.writeMessageEnd()
4266
    oprot.trans.flush()
4267
 
4268
 
5944 mandeep.dh 4269
# HELPER FUNCTIONS AND STRUCTURES
4270
 
4271
class addWarehouse_args:
4272
  """
4273
  Attributes:
4274
   - warehouse
4275
  """
4276
 
4277
  thrift_spec = (
4278
    None, # 0
4279
    (1, TType.STRUCT, 'warehouse', (Warehouse, Warehouse.thrift_spec), None, ), # 1
4280
  )
4281
 
4282
  def __init__(self, warehouse=None,):
4283
    self.warehouse = warehouse
4284
 
4285
  def read(self, iprot):
4286
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4287
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4288
      return
4289
    iprot.readStructBegin()
4290
    while True:
4291
      (fname, ftype, fid) = iprot.readFieldBegin()
4292
      if ftype == TType.STOP:
4293
        break
4294
      if fid == 1:
4295
        if ftype == TType.STRUCT:
4296
          self.warehouse = Warehouse()
4297
          self.warehouse.read(iprot)
4298
        else:
4299
          iprot.skip(ftype)
4300
      else:
4301
        iprot.skip(ftype)
4302
      iprot.readFieldEnd()
4303
    iprot.readStructEnd()
4304
 
4305
  def write(self, oprot):
4306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4308
      return
4309
    oprot.writeStructBegin('addWarehouse_args')
4310
    if self.warehouse is not None:
4311
      oprot.writeFieldBegin('warehouse', TType.STRUCT, 1)
4312
      self.warehouse.write(oprot)
4313
      oprot.writeFieldEnd()
4314
    oprot.writeFieldStop()
4315
    oprot.writeStructEnd()
4316
 
4317
  def validate(self):
4318
    return
4319
 
4320
 
4321
  def __repr__(self):
4322
    L = ['%s=%r' % (key, value)
4323
      for key, value in self.__dict__.iteritems()]
4324
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4325
 
4326
  def __eq__(self, other):
4327
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4328
 
4329
  def __ne__(self, other):
4330
    return not (self == other)
4331
 
4332
class addWarehouse_result:
4333
  """
4334
  Attributes:
4335
   - success
4336
   - cex
4337
  """
4338
 
4339
  thrift_spec = (
4340
    (0, TType.I64, 'success', None, None, ), # 0
4341
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4342
  )
4343
 
4344
  def __init__(self, success=None, cex=None,):
4345
    self.success = success
4346
    self.cex = cex
4347
 
4348
  def read(self, iprot):
4349
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4350
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4351
      return
4352
    iprot.readStructBegin()
4353
    while True:
4354
      (fname, ftype, fid) = iprot.readFieldBegin()
4355
      if ftype == TType.STOP:
4356
        break
4357
      if fid == 0:
4358
        if ftype == TType.I64:
4359
          self.success = iprot.readI64();
4360
        else:
4361
          iprot.skip(ftype)
4362
      elif fid == 1:
4363
        if ftype == TType.STRUCT:
4364
          self.cex = InventoryServiceException()
4365
          self.cex.read(iprot)
4366
        else:
4367
          iprot.skip(ftype)
4368
      else:
4369
        iprot.skip(ftype)
4370
      iprot.readFieldEnd()
4371
    iprot.readStructEnd()
4372
 
4373
  def write(self, oprot):
4374
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4375
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4376
      return
4377
    oprot.writeStructBegin('addWarehouse_result')
4378
    if self.success is not None:
4379
      oprot.writeFieldBegin('success', TType.I64, 0)
4380
      oprot.writeI64(self.success)
4381
      oprot.writeFieldEnd()
4382
    if self.cex is not None:
4383
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4384
      self.cex.write(oprot)
4385
      oprot.writeFieldEnd()
4386
    oprot.writeFieldStop()
4387
    oprot.writeStructEnd()
4388
 
4389
  def validate(self):
4390
    return
4391
 
4392
 
4393
  def __repr__(self):
4394
    L = ['%s=%r' % (key, value)
4395
      for key, value in self.__dict__.iteritems()]
4396
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4397
 
4398
  def __eq__(self, other):
4399
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4400
 
4401
  def __ne__(self, other):
4402
    return not (self == other)
4403
 
4404
class addVendor_args:
4405
  """
4406
  Attributes:
4407
   - vendor
4408
  """
4409
 
4410
  thrift_spec = (
4411
    None, # 0
4412
    (1, TType.STRUCT, 'vendor', (Vendor, Vendor.thrift_spec), None, ), # 1
4413
  )
4414
 
4415
  def __init__(self, vendor=None,):
4416
    self.vendor = vendor
4417
 
4418
  def read(self, iprot):
4419
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4420
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4421
      return
4422
    iprot.readStructBegin()
4423
    while True:
4424
      (fname, ftype, fid) = iprot.readFieldBegin()
4425
      if ftype == TType.STOP:
4426
        break
4427
      if fid == 1:
4428
        if ftype == TType.STRUCT:
4429
          self.vendor = Vendor()
4430
          self.vendor.read(iprot)
4431
        else:
4432
          iprot.skip(ftype)
4433
      else:
4434
        iprot.skip(ftype)
4435
      iprot.readFieldEnd()
4436
    iprot.readStructEnd()
4437
 
4438
  def write(self, oprot):
4439
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4440
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4441
      return
4442
    oprot.writeStructBegin('addVendor_args')
4443
    if self.vendor is not None:
4444
      oprot.writeFieldBegin('vendor', TType.STRUCT, 1)
4445
      self.vendor.write(oprot)
4446
      oprot.writeFieldEnd()
4447
    oprot.writeFieldStop()
4448
    oprot.writeStructEnd()
4449
 
4450
  def validate(self):
4451
    return
4452
 
4453
 
4454
  def __repr__(self):
4455
    L = ['%s=%r' % (key, value)
4456
      for key, value in self.__dict__.iteritems()]
4457
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4458
 
4459
  def __eq__(self, other):
4460
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4461
 
4462
  def __ne__(self, other):
4463
    return not (self == other)
4464
 
4465
class addVendor_result:
4466
  """
4467
  Attributes:
4468
   - success
4469
   - cex
4470
  """
4471
 
4472
  thrift_spec = (
4473
    (0, TType.I64, 'success', None, None, ), # 0
4474
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4475
  )
4476
 
4477
  def __init__(self, success=None, cex=None,):
4478
    self.success = success
4479
    self.cex = cex
4480
 
4481
  def read(self, iprot):
4482
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4483
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4484
      return
4485
    iprot.readStructBegin()
4486
    while True:
4487
      (fname, ftype, fid) = iprot.readFieldBegin()
4488
      if ftype == TType.STOP:
4489
        break
4490
      if fid == 0:
4491
        if ftype == TType.I64:
4492
          self.success = iprot.readI64();
4493
        else:
4494
          iprot.skip(ftype)
4495
      elif fid == 1:
4496
        if ftype == TType.STRUCT:
4497
          self.cex = InventoryServiceException()
4498
          self.cex.read(iprot)
4499
        else:
4500
          iprot.skip(ftype)
4501
      else:
4502
        iprot.skip(ftype)
4503
      iprot.readFieldEnd()
4504
    iprot.readStructEnd()
4505
 
4506
  def write(self, oprot):
4507
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4508
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4509
      return
4510
    oprot.writeStructBegin('addVendor_result')
4511
    if self.success is not None:
4512
      oprot.writeFieldBegin('success', TType.I64, 0)
4513
      oprot.writeI64(self.success)
4514
      oprot.writeFieldEnd()
4515
    if self.cex is not None:
4516
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4517
      self.cex.write(oprot)
4518
      oprot.writeFieldEnd()
4519
    oprot.writeFieldStop()
4520
    oprot.writeStructEnd()
4521
 
4522
  def validate(self):
4523
    return
4524
 
4525
 
4526
  def __repr__(self):
4527
    L = ['%s=%r' % (key, value)
4528
      for key, value in self.__dict__.iteritems()]
4529
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4530
 
4531
  def __eq__(self, other):
4532
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4533
 
4534
  def __ne__(self, other):
4535
    return not (self == other)
4536
 
4537
class updateInventoryHistory_args:
4538
  """
4539
  Attributes:
4540
   - warehouse_id
4541
   - timestamp
4542
   - availability
4543
  """
4544
 
4545
  thrift_spec = (
4546
    None, # 0
4547
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4548
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4549
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4550
  )
4551
 
4552
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4553
    self.warehouse_id = warehouse_id
4554
    self.timestamp = timestamp
4555
    self.availability = availability
4556
 
4557
  def read(self, iprot):
4558
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4559
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4560
      return
4561
    iprot.readStructBegin()
4562
    while True:
4563
      (fname, ftype, fid) = iprot.readFieldBegin()
4564
      if ftype == TType.STOP:
4565
        break
4566
      if fid == 1:
4567
        if ftype == TType.I64:
4568
          self.warehouse_id = iprot.readI64();
4569
        else:
4570
          iprot.skip(ftype)
4571
      elif fid == 2:
4572
        if ftype == TType.STRING:
4573
          self.timestamp = iprot.readString();
4574
        else:
4575
          iprot.skip(ftype)
4576
      elif fid == 3:
4577
        if ftype == TType.MAP:
4578
          self.availability = {}
8182 amar.kumar 4579
          (_ktype28, _vtype29, _size27 ) = iprot.readMapBegin() 
4580
          for _i31 in xrange(_size27):
4581
            _key32 = iprot.readString();
4582
            _val33 = iprot.readI64();
4583
            self.availability[_key32] = _val33
5944 mandeep.dh 4584
          iprot.readMapEnd()
4585
        else:
4586
          iprot.skip(ftype)
4587
      else:
4588
        iprot.skip(ftype)
4589
      iprot.readFieldEnd()
4590
    iprot.readStructEnd()
4591
 
4592
  def write(self, oprot):
4593
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4594
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4595
      return
4596
    oprot.writeStructBegin('updateInventoryHistory_args')
4597
    if self.warehouse_id is not None:
4598
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4599
      oprot.writeI64(self.warehouse_id)
4600
      oprot.writeFieldEnd()
4601
    if self.timestamp is not None:
4602
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4603
      oprot.writeString(self.timestamp)
4604
      oprot.writeFieldEnd()
4605
    if self.availability is not None:
4606
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4607
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4608
      for kiter34,viter35 in self.availability.items():
4609
        oprot.writeString(kiter34)
4610
        oprot.writeI64(viter35)
5944 mandeep.dh 4611
      oprot.writeMapEnd()
4612
      oprot.writeFieldEnd()
4613
    oprot.writeFieldStop()
4614
    oprot.writeStructEnd()
4615
 
4616
  def validate(self):
4617
    return
4618
 
4619
 
4620
  def __repr__(self):
4621
    L = ['%s=%r' % (key, value)
4622
      for key, value in self.__dict__.iteritems()]
4623
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4624
 
4625
  def __eq__(self, other):
4626
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4627
 
4628
  def __ne__(self, other):
4629
    return not (self == other)
4630
 
4631
class updateInventoryHistory_result:
4632
  """
4633
  Attributes:
4634
   - cex
4635
  """
4636
 
4637
  thrift_spec = (
4638
    None, # 0
4639
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4640
  )
4641
 
4642
  def __init__(self, cex=None,):
4643
    self.cex = cex
4644
 
4645
  def read(self, iprot):
4646
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4647
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4648
      return
4649
    iprot.readStructBegin()
4650
    while True:
4651
      (fname, ftype, fid) = iprot.readFieldBegin()
4652
      if ftype == TType.STOP:
4653
        break
4654
      if fid == 1:
4655
        if ftype == TType.STRUCT:
4656
          self.cex = InventoryServiceException()
4657
          self.cex.read(iprot)
4658
        else:
4659
          iprot.skip(ftype)
4660
      else:
4661
        iprot.skip(ftype)
4662
      iprot.readFieldEnd()
4663
    iprot.readStructEnd()
4664
 
4665
  def write(self, oprot):
4666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4668
      return
4669
    oprot.writeStructBegin('updateInventoryHistory_result')
4670
    if self.cex is not None:
4671
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4672
      self.cex.write(oprot)
4673
      oprot.writeFieldEnd()
4674
    oprot.writeFieldStop()
4675
    oprot.writeStructEnd()
4676
 
4677
  def validate(self):
4678
    return
4679
 
4680
 
4681
  def __repr__(self):
4682
    L = ['%s=%r' % (key, value)
4683
      for key, value in self.__dict__.iteritems()]
4684
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4685
 
4686
  def __eq__(self, other):
4687
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4688
 
4689
  def __ne__(self, other):
4690
    return not (self == other)
4691
 
4692
class updateInventory_args:
4693
  """
4694
  Attributes:
4695
   - warehouse_id
4696
   - timestamp
4697
   - availability
4698
  """
4699
 
4700
  thrift_spec = (
4701
    None, # 0
4702
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4703
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4704
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4705
  )
4706
 
4707
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4708
    self.warehouse_id = warehouse_id
4709
    self.timestamp = timestamp
4710
    self.availability = availability
4711
 
4712
  def read(self, iprot):
4713
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4714
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4715
      return
4716
    iprot.readStructBegin()
4717
    while True:
4718
      (fname, ftype, fid) = iprot.readFieldBegin()
4719
      if ftype == TType.STOP:
4720
        break
4721
      if fid == 1:
4722
        if ftype == TType.I64:
4723
          self.warehouse_id = iprot.readI64();
4724
        else:
4725
          iprot.skip(ftype)
4726
      elif fid == 2:
4727
        if ftype == TType.STRING:
4728
          self.timestamp = iprot.readString();
4729
        else:
4730
          iprot.skip(ftype)
4731
      elif fid == 3:
4732
        if ftype == TType.MAP:
4733
          self.availability = {}
8182 amar.kumar 4734
          (_ktype37, _vtype38, _size36 ) = iprot.readMapBegin() 
4735
          for _i40 in xrange(_size36):
4736
            _key41 = iprot.readString();
4737
            _val42 = iprot.readI64();
4738
            self.availability[_key41] = _val42
5944 mandeep.dh 4739
          iprot.readMapEnd()
4740
        else:
4741
          iprot.skip(ftype)
4742
      else:
4743
        iprot.skip(ftype)
4744
      iprot.readFieldEnd()
4745
    iprot.readStructEnd()
4746
 
4747
  def write(self, oprot):
4748
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4749
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4750
      return
4751
    oprot.writeStructBegin('updateInventory_args')
4752
    if self.warehouse_id is not None:
4753
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4754
      oprot.writeI64(self.warehouse_id)
4755
      oprot.writeFieldEnd()
4756
    if self.timestamp is not None:
4757
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4758
      oprot.writeString(self.timestamp)
4759
      oprot.writeFieldEnd()
4760
    if self.availability is not None:
4761
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4762
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4763
      for kiter43,viter44 in self.availability.items():
4764
        oprot.writeString(kiter43)
4765
        oprot.writeI64(viter44)
5944 mandeep.dh 4766
      oprot.writeMapEnd()
4767
      oprot.writeFieldEnd()
4768
    oprot.writeFieldStop()
4769
    oprot.writeStructEnd()
4770
 
4771
  def validate(self):
4772
    return
4773
 
4774
 
4775
  def __repr__(self):
4776
    L = ['%s=%r' % (key, value)
4777
      for key, value in self.__dict__.iteritems()]
4778
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4779
 
4780
  def __eq__(self, other):
4781
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4782
 
4783
  def __ne__(self, other):
4784
    return not (self == other)
4785
 
4786
class updateInventory_result:
4787
  """
4788
  Attributes:
4789
   - cex
4790
  """
4791
 
4792
  thrift_spec = (
4793
    None, # 0
4794
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4795
  )
4796
 
4797
  def __init__(self, cex=None,):
4798
    self.cex = cex
4799
 
4800
  def read(self, iprot):
4801
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4802
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4803
      return
4804
    iprot.readStructBegin()
4805
    while True:
4806
      (fname, ftype, fid) = iprot.readFieldBegin()
4807
      if ftype == TType.STOP:
4808
        break
4809
      if fid == 1:
4810
        if ftype == TType.STRUCT:
4811
          self.cex = InventoryServiceException()
4812
          self.cex.read(iprot)
4813
        else:
4814
          iprot.skip(ftype)
4815
      else:
4816
        iprot.skip(ftype)
4817
      iprot.readFieldEnd()
4818
    iprot.readStructEnd()
4819
 
4820
  def write(self, oprot):
4821
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4822
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4823
      return
4824
    oprot.writeStructBegin('updateInventory_result')
4825
    if self.cex is not None:
4826
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4827
      self.cex.write(oprot)
4828
      oprot.writeFieldEnd()
4829
    oprot.writeFieldStop()
4830
    oprot.writeStructEnd()
4831
 
4832
  def validate(self):
4833
    return
4834
 
4835
 
4836
  def __repr__(self):
4837
    L = ['%s=%r' % (key, value)
4838
      for key, value in self.__dict__.iteritems()]
4839
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4840
 
4841
  def __eq__(self, other):
4842
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4843
 
4844
  def __ne__(self, other):
4845
    return not (self == other)
4846
 
4847
class addInventory_args:
4848
  """
4849
  Attributes:
4850
   - itemId
4851
   - warehouseId
4852
   - quantity
4853
  """
4854
 
4855
  thrift_spec = (
4856
    None, # 0
4857
    (1, TType.I64, 'itemId', None, None, ), # 1
4858
    (2, TType.I64, 'warehouseId', None, None, ), # 2
4859
    (3, TType.I64, 'quantity', None, None, ), # 3
4860
  )
4861
 
4862
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
4863
    self.itemId = itemId
4864
    self.warehouseId = warehouseId
4865
    self.quantity = quantity
4866
 
4867
  def read(self, iprot):
4868
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4869
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4870
      return
4871
    iprot.readStructBegin()
4872
    while True:
4873
      (fname, ftype, fid) = iprot.readFieldBegin()
4874
      if ftype == TType.STOP:
4875
        break
4876
      if fid == 1:
4877
        if ftype == TType.I64:
4878
          self.itemId = iprot.readI64();
4879
        else:
4880
          iprot.skip(ftype)
4881
      elif fid == 2:
4882
        if ftype == TType.I64:
4883
          self.warehouseId = iprot.readI64();
4884
        else:
4885
          iprot.skip(ftype)
4886
      elif fid == 3:
4887
        if ftype == TType.I64:
4888
          self.quantity = iprot.readI64();
4889
        else:
4890
          iprot.skip(ftype)
4891
      else:
4892
        iprot.skip(ftype)
4893
      iprot.readFieldEnd()
4894
    iprot.readStructEnd()
4895
 
4896
  def write(self, oprot):
4897
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4898
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4899
      return
4900
    oprot.writeStructBegin('addInventory_args')
4901
    if self.itemId is not None:
4902
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4903
      oprot.writeI64(self.itemId)
4904
      oprot.writeFieldEnd()
4905
    if self.warehouseId is not None:
4906
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
4907
      oprot.writeI64(self.warehouseId)
4908
      oprot.writeFieldEnd()
4909
    if self.quantity is not None:
4910
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4911
      oprot.writeI64(self.quantity)
4912
      oprot.writeFieldEnd()
4913
    oprot.writeFieldStop()
4914
    oprot.writeStructEnd()
4915
 
4916
  def validate(self):
4917
    return
4918
 
4919
 
4920
  def __repr__(self):
4921
    L = ['%s=%r' % (key, value)
4922
      for key, value in self.__dict__.iteritems()]
4923
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4924
 
4925
  def __eq__(self, other):
4926
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4927
 
4928
  def __ne__(self, other):
4929
    return not (self == other)
4930
 
4931
class addInventory_result:
4932
  """
4933
  Attributes:
4934
   - cex
4935
  """
4936
 
4937
  thrift_spec = (
4938
    None, # 0
4939
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4940
  )
4941
 
4942
  def __init__(self, cex=None,):
4943
    self.cex = cex
4944
 
4945
  def read(self, iprot):
4946
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4947
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4948
      return
4949
    iprot.readStructBegin()
4950
    while True:
4951
      (fname, ftype, fid) = iprot.readFieldBegin()
4952
      if ftype == TType.STOP:
4953
        break
4954
      if fid == 1:
4955
        if ftype == TType.STRUCT:
4956
          self.cex = InventoryServiceException()
4957
          self.cex.read(iprot)
4958
        else:
4959
          iprot.skip(ftype)
4960
      else:
4961
        iprot.skip(ftype)
4962
      iprot.readFieldEnd()
4963
    iprot.readStructEnd()
4964
 
4965
  def write(self, oprot):
4966
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4967
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4968
      return
4969
    oprot.writeStructBegin('addInventory_result')
4970
    if self.cex is not None:
4971
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4972
      self.cex.write(oprot)
4973
      oprot.writeFieldEnd()
4974
    oprot.writeFieldStop()
4975
    oprot.writeStructEnd()
4976
 
4977
  def validate(self):
4978
    return
4979
 
4980
 
4981
  def __repr__(self):
4982
    L = ['%s=%r' % (key, value)
4983
      for key, value in self.__dict__.iteritems()]
4984
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4985
 
4986
  def __eq__(self, other):
4987
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4988
 
4989
  def __ne__(self, other):
4990
    return not (self == other)
4991
 
4992
class retireWarehouse_args:
4993
  """
4994
  Attributes:
4995
   - warehouse_id
4996
  """
4997
 
4998
  thrift_spec = (
4999
    None, # 0
5000
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5001
  )
5002
 
5003
  def __init__(self, warehouse_id=None,):
5004
    self.warehouse_id = warehouse_id
5005
 
5006
  def read(self, iprot):
5007
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5008
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5009
      return
5010
    iprot.readStructBegin()
5011
    while True:
5012
      (fname, ftype, fid) = iprot.readFieldBegin()
5013
      if ftype == TType.STOP:
5014
        break
5015
      if fid == 1:
5016
        if ftype == TType.I64:
5017
          self.warehouse_id = iprot.readI64();
5018
        else:
5019
          iprot.skip(ftype)
5020
      else:
5021
        iprot.skip(ftype)
5022
      iprot.readFieldEnd()
5023
    iprot.readStructEnd()
5024
 
5025
  def write(self, oprot):
5026
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5027
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5028
      return
5029
    oprot.writeStructBegin('retireWarehouse_args')
5030
    if self.warehouse_id is not None:
5031
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5032
      oprot.writeI64(self.warehouse_id)
5033
      oprot.writeFieldEnd()
5034
    oprot.writeFieldStop()
5035
    oprot.writeStructEnd()
5036
 
5037
  def validate(self):
5038
    return
5039
 
5040
 
5041
  def __repr__(self):
5042
    L = ['%s=%r' % (key, value)
5043
      for key, value in self.__dict__.iteritems()]
5044
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5045
 
5046
  def __eq__(self, other):
5047
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5048
 
5049
  def __ne__(self, other):
5050
    return not (self == other)
5051
 
5052
class retireWarehouse_result:
5053
  """
5054
  Attributes:
5055
   - cex
5056
  """
5057
 
5058
  thrift_spec = (
5059
    None, # 0
5060
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5061
  )
5062
 
5063
  def __init__(self, cex=None,):
5064
    self.cex = cex
5065
 
5066
  def read(self, iprot):
5067
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5068
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5069
      return
5070
    iprot.readStructBegin()
5071
    while True:
5072
      (fname, ftype, fid) = iprot.readFieldBegin()
5073
      if ftype == TType.STOP:
5074
        break
5075
      if fid == 1:
5076
        if ftype == TType.STRUCT:
5077
          self.cex = InventoryServiceException()
5078
          self.cex.read(iprot)
5079
        else:
5080
          iprot.skip(ftype)
5081
      else:
5082
        iprot.skip(ftype)
5083
      iprot.readFieldEnd()
5084
    iprot.readStructEnd()
5085
 
5086
  def write(self, oprot):
5087
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5088
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5089
      return
5090
    oprot.writeStructBegin('retireWarehouse_result')
5091
    if self.cex is not None:
5092
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5093
      self.cex.write(oprot)
5094
      oprot.writeFieldEnd()
5095
    oprot.writeFieldStop()
5096
    oprot.writeStructEnd()
5097
 
5098
  def validate(self):
5099
    return
5100
 
5101
 
5102
  def __repr__(self):
5103
    L = ['%s=%r' % (key, value)
5104
      for key, value in self.__dict__.iteritems()]
5105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5106
 
5107
  def __eq__(self, other):
5108
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5109
 
5110
  def __ne__(self, other):
5111
    return not (self == other)
5112
 
5113
class getItemInventoryByItemId_args:
5114
  """
5115
  Attributes:
5116
   - item_id
5117
  """
5118
 
5119
  thrift_spec = (
5120
    None, # 0
5121
    (1, TType.I64, 'item_id', None, None, ), # 1
5122
  )
5123
 
5124
  def __init__(self, item_id=None,):
5125
    self.item_id = item_id
5126
 
5127
  def read(self, iprot):
5128
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5129
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5130
      return
5131
    iprot.readStructBegin()
5132
    while True:
5133
      (fname, ftype, fid) = iprot.readFieldBegin()
5134
      if ftype == TType.STOP:
5135
        break
5136
      if fid == 1:
5137
        if ftype == TType.I64:
5138
          self.item_id = iprot.readI64();
5139
        else:
5140
          iprot.skip(ftype)
5141
      else:
5142
        iprot.skip(ftype)
5143
      iprot.readFieldEnd()
5144
    iprot.readStructEnd()
5145
 
5146
  def write(self, oprot):
5147
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5148
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5149
      return
5150
    oprot.writeStructBegin('getItemInventoryByItemId_args')
5151
    if self.item_id is not None:
5152
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5153
      oprot.writeI64(self.item_id)
5154
      oprot.writeFieldEnd()
5155
    oprot.writeFieldStop()
5156
    oprot.writeStructEnd()
5157
 
5158
  def validate(self):
5159
    return
5160
 
5161
 
5162
  def __repr__(self):
5163
    L = ['%s=%r' % (key, value)
5164
      for key, value in self.__dict__.iteritems()]
5165
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5166
 
5167
  def __eq__(self, other):
5168
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5169
 
5170
  def __ne__(self, other):
5171
    return not (self == other)
5172
 
5173
class getItemInventoryByItemId_result:
5174
  """
5175
  Attributes:
5176
   - success
5177
   - cex
5178
  """
5179
 
5180
  thrift_spec = (
5181
    (0, TType.STRUCT, 'success', (ItemInventory, ItemInventory.thrift_spec), None, ), # 0
5182
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5183
  )
5184
 
5185
  def __init__(self, success=None, cex=None,):
5186
    self.success = success
5187
    self.cex = cex
5188
 
5189
  def read(self, iprot):
5190
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5191
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5192
      return
5193
    iprot.readStructBegin()
5194
    while True:
5195
      (fname, ftype, fid) = iprot.readFieldBegin()
5196
      if ftype == TType.STOP:
5197
        break
5198
      if fid == 0:
5199
        if ftype == TType.STRUCT:
5200
          self.success = ItemInventory()
5201
          self.success.read(iprot)
5202
        else:
5203
          iprot.skip(ftype)
5204
      elif fid == 1:
5205
        if ftype == TType.STRUCT:
5206
          self.cex = InventoryServiceException()
5207
          self.cex.read(iprot)
5208
        else:
5209
          iprot.skip(ftype)
5210
      else:
5211
        iprot.skip(ftype)
5212
      iprot.readFieldEnd()
5213
    iprot.readStructEnd()
5214
 
5215
  def write(self, oprot):
5216
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5217
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5218
      return
5219
    oprot.writeStructBegin('getItemInventoryByItemId_result')
5220
    if self.success is not None:
5221
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5222
      self.success.write(oprot)
5223
      oprot.writeFieldEnd()
5224
    if self.cex is not None:
5225
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5226
      self.cex.write(oprot)
5227
      oprot.writeFieldEnd()
5228
    oprot.writeFieldStop()
5229
    oprot.writeStructEnd()
5230
 
5231
  def validate(self):
5232
    return
5233
 
5234
 
5235
  def __repr__(self):
5236
    L = ['%s=%r' % (key, value)
5237
      for key, value in self.__dict__.iteritems()]
5238
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5239
 
5240
  def __eq__(self, other):
5241
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5242
 
5243
  def __ne__(self, other):
5244
    return not (self == other)
5245
 
5246
class getItemAvailibilityAtWarehouse_args:
5247
  """
5248
  Attributes:
5249
   - warehouse_id
5250
   - item_id
5251
  """
5252
 
5253
  thrift_spec = (
5254
    None, # 0
5255
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5256
    (2, TType.I64, 'item_id', None, None, ), # 2
5257
  )
5258
 
5259
  def __init__(self, warehouse_id=None, item_id=None,):
5260
    self.warehouse_id = warehouse_id
5261
    self.item_id = item_id
5262
 
5263
  def read(self, iprot):
5264
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5265
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5266
      return
5267
    iprot.readStructBegin()
5268
    while True:
5269
      (fname, ftype, fid) = iprot.readFieldBegin()
5270
      if ftype == TType.STOP:
5271
        break
5272
      if fid == 1:
5273
        if ftype == TType.I64:
5274
          self.warehouse_id = iprot.readI64();
5275
        else:
5276
          iprot.skip(ftype)
5277
      elif fid == 2:
5278
        if ftype == TType.I64:
5279
          self.item_id = iprot.readI64();
5280
        else:
5281
          iprot.skip(ftype)
5282
      else:
5283
        iprot.skip(ftype)
5284
      iprot.readFieldEnd()
5285
    iprot.readStructEnd()
5286
 
5287
  def write(self, oprot):
5288
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5289
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5290
      return
5291
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_args')
5292
    if self.warehouse_id is not None:
5293
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5294
      oprot.writeI64(self.warehouse_id)
5295
      oprot.writeFieldEnd()
5296
    if self.item_id is not None:
5297
      oprot.writeFieldBegin('item_id', TType.I64, 2)
5298
      oprot.writeI64(self.item_id)
5299
      oprot.writeFieldEnd()
5300
    oprot.writeFieldStop()
5301
    oprot.writeStructEnd()
5302
 
5303
  def validate(self):
5304
    return
5305
 
5306
 
5307
  def __repr__(self):
5308
    L = ['%s=%r' % (key, value)
5309
      for key, value in self.__dict__.iteritems()]
5310
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5311
 
5312
  def __eq__(self, other):
5313
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5314
 
5315
  def __ne__(self, other):
5316
    return not (self == other)
5317
 
5318
class getItemAvailibilityAtWarehouse_result:
5319
  """
5320
  Attributes:
5321
   - success
5322
   - cex
5323
  """
5324
 
5325
  thrift_spec = (
5326
    (0, TType.I64, 'success', None, None, ), # 0
5327
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5328
  )
5329
 
5330
  def __init__(self, success=None, cex=None,):
5331
    self.success = success
5332
    self.cex = cex
5333
 
5334
  def read(self, iprot):
5335
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5336
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5337
      return
5338
    iprot.readStructBegin()
5339
    while True:
5340
      (fname, ftype, fid) = iprot.readFieldBegin()
5341
      if ftype == TType.STOP:
5342
        break
5343
      if fid == 0:
5344
        if ftype == TType.I64:
5345
          self.success = iprot.readI64();
5346
        else:
5347
          iprot.skip(ftype)
5348
      elif fid == 1:
5349
        if ftype == TType.STRUCT:
5350
          self.cex = InventoryServiceException()
5351
          self.cex.read(iprot)
5352
        else:
5353
          iprot.skip(ftype)
5354
      else:
5355
        iprot.skip(ftype)
5356
      iprot.readFieldEnd()
5357
    iprot.readStructEnd()
5358
 
5359
  def write(self, oprot):
5360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5362
      return
5363
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_result')
5364
    if self.success is not None:
5365
      oprot.writeFieldBegin('success', TType.I64, 0)
5366
      oprot.writeI64(self.success)
5367
      oprot.writeFieldEnd()
5368
    if self.cex is not None:
5369
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5370
      self.cex.write(oprot)
5371
      oprot.writeFieldEnd()
5372
    oprot.writeFieldStop()
5373
    oprot.writeStructEnd()
5374
 
5375
  def validate(self):
5376
    return
5377
 
5378
 
5379
  def __repr__(self):
5380
    L = ['%s=%r' % (key, value)
5381
      for key, value in self.__dict__.iteritems()]
5382
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5383
 
5384
  def __eq__(self, other):
5385
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5386
 
5387
  def __ne__(self, other):
5388
    return not (self == other)
5389
 
5390
class getItemAvailabilityAtLocation_args:
5391
  """
5392
  Attributes:
5393
   - itemId
5978 rajveer 5394
   - sourceId
5944 mandeep.dh 5395
  """
5396
 
5397
  thrift_spec = (
5398
    None, # 0
5399
    (1, TType.I64, 'itemId', None, None, ), # 1
5978 rajveer 5400
    (2, TType.I64, 'sourceId', None, None, ), # 2
5944 mandeep.dh 5401
  )
5402
 
5978 rajveer 5403
  def __init__(self, itemId=None, sourceId=None,):
5944 mandeep.dh 5404
    self.itemId = itemId
5978 rajveer 5405
    self.sourceId = sourceId
5944 mandeep.dh 5406
 
5407
  def read(self, iprot):
5408
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5409
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5410
      return
5411
    iprot.readStructBegin()
5412
    while True:
5413
      (fname, ftype, fid) = iprot.readFieldBegin()
5414
      if ftype == TType.STOP:
5415
        break
5416
      if fid == 1:
5417
        if ftype == TType.I64:
5418
          self.itemId = iprot.readI64();
5419
        else:
5420
          iprot.skip(ftype)
5978 rajveer 5421
      elif fid == 2:
5422
        if ftype == TType.I64:
5423
          self.sourceId = iprot.readI64();
5424
        else:
5425
          iprot.skip(ftype)
5944 mandeep.dh 5426
      else:
5427
        iprot.skip(ftype)
5428
      iprot.readFieldEnd()
5429
    iprot.readStructEnd()
5430
 
5431
  def write(self, oprot):
5432
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5433
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5434
      return
5435
    oprot.writeStructBegin('getItemAvailabilityAtLocation_args')
5436
    if self.itemId is not None:
5437
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5438
      oprot.writeI64(self.itemId)
5439
      oprot.writeFieldEnd()
5978 rajveer 5440
    if self.sourceId is not None:
5441
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
5442
      oprot.writeI64(self.sourceId)
5443
      oprot.writeFieldEnd()
5944 mandeep.dh 5444
    oprot.writeFieldStop()
5445
    oprot.writeStructEnd()
5446
 
5447
  def validate(self):
5448
    return
5449
 
5450
 
5451
  def __repr__(self):
5452
    L = ['%s=%r' % (key, value)
5453
      for key, value in self.__dict__.iteritems()]
5454
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5455
 
5456
  def __eq__(self, other):
5457
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5458
 
5459
  def __ne__(self, other):
5460
    return not (self == other)
5461
 
5462
class getItemAvailabilityAtLocation_result:
5463
  """
5464
  Attributes:
5465
   - success
5466
   - isex
5467
  """
5468
 
5469
  thrift_spec = (
5470
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5471
    (1, TType.STRUCT, 'isex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5472
  )
5473
 
5474
  def __init__(self, success=None, isex=None,):
5475
    self.success = success
5476
    self.isex = isex
5477
 
5478
  def read(self, iprot):
5479
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5480
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5481
      return
5482
    iprot.readStructBegin()
5483
    while True:
5484
      (fname, ftype, fid) = iprot.readFieldBegin()
5485
      if ftype == TType.STOP:
5486
        break
5487
      if fid == 0:
5488
        if ftype == TType.LIST:
5489
          self.success = []
8182 amar.kumar 5490
          (_etype48, _size45) = iprot.readListBegin()
5491
          for _i49 in xrange(_size45):
5492
            _elem50 = iprot.readI64();
5493
            self.success.append(_elem50)
5944 mandeep.dh 5494
          iprot.readListEnd()
5495
        else:
5496
          iprot.skip(ftype)
5497
      elif fid == 1:
5498
        if ftype == TType.STRUCT:
5499
          self.isex = InventoryServiceException()
5500
          self.isex.read(iprot)
5501
        else:
5502
          iprot.skip(ftype)
5503
      else:
5504
        iprot.skip(ftype)
5505
      iprot.readFieldEnd()
5506
    iprot.readStructEnd()
5507
 
5508
  def write(self, oprot):
5509
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5510
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5511
      return
5512
    oprot.writeStructBegin('getItemAvailabilityAtLocation_result')
5513
    if self.success is not None:
5514
      oprot.writeFieldBegin('success', TType.LIST, 0)
5515
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5516
      for iter51 in self.success:
5517
        oprot.writeI64(iter51)
5944 mandeep.dh 5518
      oprot.writeListEnd()
5519
      oprot.writeFieldEnd()
5520
    if self.isex is not None:
5521
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
5522
      self.isex.write(oprot)
5523
      oprot.writeFieldEnd()
5524
    oprot.writeFieldStop()
5525
    oprot.writeStructEnd()
5526
 
5527
  def validate(self):
5528
    return
5529
 
5530
 
5531
  def __repr__(self):
5532
    L = ['%s=%r' % (key, value)
5533
      for key, value in self.__dict__.iteritems()]
5534
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5535
 
5536
  def __eq__(self, other):
5537
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5538
 
5539
  def __ne__(self, other):
5540
    return not (self == other)
5541
 
5542
class getAllWarehouses_args:
5543
  """
5544
  Attributes:
5545
   - isActive
5546
  """
5547
 
5548
  thrift_spec = (
5549
    None, # 0
5550
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5551
  )
5552
 
5553
  def __init__(self, isActive=None,):
5554
    self.isActive = isActive
5555
 
5556
  def read(self, iprot):
5557
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5558
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5559
      return
5560
    iprot.readStructBegin()
5561
    while True:
5562
      (fname, ftype, fid) = iprot.readFieldBegin()
5563
      if ftype == TType.STOP:
5564
        break
5565
      if fid == 1:
5566
        if ftype == TType.BOOL:
5567
          self.isActive = iprot.readBool();
5568
        else:
5569
          iprot.skip(ftype)
5570
      else:
5571
        iprot.skip(ftype)
5572
      iprot.readFieldEnd()
5573
    iprot.readStructEnd()
5574
 
5575
  def write(self, oprot):
5576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5578
      return
5579
    oprot.writeStructBegin('getAllWarehouses_args')
5580
    if self.isActive is not None:
5581
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5582
      oprot.writeBool(self.isActive)
5583
      oprot.writeFieldEnd()
5584
    oprot.writeFieldStop()
5585
    oprot.writeStructEnd()
5586
 
5587
  def validate(self):
5588
    return
5589
 
5590
 
5591
  def __repr__(self):
5592
    L = ['%s=%r' % (key, value)
5593
      for key, value in self.__dict__.iteritems()]
5594
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5595
 
5596
  def __eq__(self, other):
5597
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5598
 
5599
  def __ne__(self, other):
5600
    return not (self == other)
5601
 
5602
class getAllWarehouses_result:
5603
  """
5604
  Attributes:
5605
   - success
5606
   - cex
5607
  """
5608
 
5609
  thrift_spec = (
5610
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
5611
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5612
  )
5613
 
5614
  def __init__(self, success=None, cex=None,):
5615
    self.success = success
5616
    self.cex = cex
5617
 
5618
  def read(self, iprot):
5619
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5620
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5621
      return
5622
    iprot.readStructBegin()
5623
    while True:
5624
      (fname, ftype, fid) = iprot.readFieldBegin()
5625
      if ftype == TType.STOP:
5626
        break
5627
      if fid == 0:
5628
        if ftype == TType.LIST:
5629
          self.success = []
8182 amar.kumar 5630
          (_etype55, _size52) = iprot.readListBegin()
5631
          for _i56 in xrange(_size52):
5632
            _elem57 = Warehouse()
5633
            _elem57.read(iprot)
5634
            self.success.append(_elem57)
5944 mandeep.dh 5635
          iprot.readListEnd()
5636
        else:
5637
          iprot.skip(ftype)
5638
      elif fid == 1:
5639
        if ftype == TType.STRUCT:
5640
          self.cex = InventoryServiceException()
5641
          self.cex.read(iprot)
5642
        else:
5643
          iprot.skip(ftype)
5644
      else:
5645
        iprot.skip(ftype)
5646
      iprot.readFieldEnd()
5647
    iprot.readStructEnd()
5648
 
5649
  def write(self, oprot):
5650
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5651
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5652
      return
5653
    oprot.writeStructBegin('getAllWarehouses_result')
5654
    if self.success is not None:
5655
      oprot.writeFieldBegin('success', TType.LIST, 0)
5656
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 5657
      for iter58 in self.success:
5658
        iter58.write(oprot)
5944 mandeep.dh 5659
      oprot.writeListEnd()
5660
      oprot.writeFieldEnd()
5661
    if self.cex is not None:
5662
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5663
      self.cex.write(oprot)
5664
      oprot.writeFieldEnd()
5665
    oprot.writeFieldStop()
5666
    oprot.writeStructEnd()
5667
 
5668
  def validate(self):
5669
    return
5670
 
5671
 
5672
  def __repr__(self):
5673
    L = ['%s=%r' % (key, value)
5674
      for key, value in self.__dict__.iteritems()]
5675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5676
 
5677
  def __eq__(self, other):
5678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5679
 
5680
  def __ne__(self, other):
5681
    return not (self == other)
5682
 
5683
class getWarehouse_args:
5684
  """
5685
  Attributes:
5686
   - warehouse_id
5687
  """
5688
 
5689
  thrift_spec = (
5690
    None, # 0
5691
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5692
  )
5693
 
5694
  def __init__(self, warehouse_id=None,):
5695
    self.warehouse_id = warehouse_id
5696
 
5697
  def read(self, iprot):
5698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5700
      return
5701
    iprot.readStructBegin()
5702
    while True:
5703
      (fname, ftype, fid) = iprot.readFieldBegin()
5704
      if ftype == TType.STOP:
5705
        break
5706
      if fid == 1:
5707
        if ftype == TType.I64:
5708
          self.warehouse_id = iprot.readI64();
5709
        else:
5710
          iprot.skip(ftype)
5711
      else:
5712
        iprot.skip(ftype)
5713
      iprot.readFieldEnd()
5714
    iprot.readStructEnd()
5715
 
5716
  def write(self, oprot):
5717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5719
      return
5720
    oprot.writeStructBegin('getWarehouse_args')
5721
    if self.warehouse_id is not None:
5722
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5723
      oprot.writeI64(self.warehouse_id)
5724
      oprot.writeFieldEnd()
5725
    oprot.writeFieldStop()
5726
    oprot.writeStructEnd()
5727
 
5728
  def validate(self):
5729
    return
5730
 
5731
 
5732
  def __repr__(self):
5733
    L = ['%s=%r' % (key, value)
5734
      for key, value in self.__dict__.iteritems()]
5735
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5736
 
5737
  def __eq__(self, other):
5738
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5739
 
5740
  def __ne__(self, other):
5741
    return not (self == other)
5742
 
5743
class getWarehouse_result:
5744
  """
5745
  Attributes:
5746
   - success
5747
   - cex
5748
  """
5749
 
5750
  thrift_spec = (
5751
    (0, TType.STRUCT, 'success', (Warehouse, Warehouse.thrift_spec), None, ), # 0
5752
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5753
  )
5754
 
5755
  def __init__(self, success=None, cex=None,):
5756
    self.success = success
5757
    self.cex = cex
5758
 
5759
  def read(self, iprot):
5760
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5761
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5762
      return
5763
    iprot.readStructBegin()
5764
    while True:
5765
      (fname, ftype, fid) = iprot.readFieldBegin()
5766
      if ftype == TType.STOP:
5767
        break
5768
      if fid == 0:
5769
        if ftype == TType.STRUCT:
5770
          self.success = Warehouse()
5771
          self.success.read(iprot)
5772
        else:
5773
          iprot.skip(ftype)
5774
      elif fid == 1:
5775
        if ftype == TType.STRUCT:
5776
          self.cex = InventoryServiceException()
5777
          self.cex.read(iprot)
5778
        else:
5779
          iprot.skip(ftype)
5780
      else:
5781
        iprot.skip(ftype)
5782
      iprot.readFieldEnd()
5783
    iprot.readStructEnd()
5784
 
5785
  def write(self, oprot):
5786
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5787
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5788
      return
5789
    oprot.writeStructBegin('getWarehouse_result')
5790
    if self.success is not None:
5791
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5792
      self.success.write(oprot)
5793
      oprot.writeFieldEnd()
5794
    if self.cex is not None:
5795
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5796
      self.cex.write(oprot)
5797
      oprot.writeFieldEnd()
5798
    oprot.writeFieldStop()
5799
    oprot.writeStructEnd()
5800
 
5801
  def validate(self):
5802
    return
5803
 
5804
 
5805
  def __repr__(self):
5806
    L = ['%s=%r' % (key, value)
5807
      for key, value in self.__dict__.iteritems()]
5808
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5809
 
5810
  def __eq__(self, other):
5811
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5812
 
5813
  def __ne__(self, other):
5814
    return not (self == other)
5815
 
5816
class getAllItemsForWarehouse_args:
5817
  """
5818
  Attributes:
5819
   - warehouse_id
5820
  """
5821
 
5822
  thrift_spec = (
5823
    None, # 0
5824
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5825
  )
5826
 
5827
  def __init__(self, warehouse_id=None,):
5828
    self.warehouse_id = warehouse_id
5829
 
5830
  def read(self, iprot):
5831
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5832
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5833
      return
5834
    iprot.readStructBegin()
5835
    while True:
5836
      (fname, ftype, fid) = iprot.readFieldBegin()
5837
      if ftype == TType.STOP:
5838
        break
5839
      if fid == 1:
5840
        if ftype == TType.I64:
5841
          self.warehouse_id = iprot.readI64();
5842
        else:
5843
          iprot.skip(ftype)
5844
      else:
5845
        iprot.skip(ftype)
5846
      iprot.readFieldEnd()
5847
    iprot.readStructEnd()
5848
 
5849
  def write(self, oprot):
5850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5852
      return
5853
    oprot.writeStructBegin('getAllItemsForWarehouse_args')
5854
    if self.warehouse_id is not None:
5855
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5856
      oprot.writeI64(self.warehouse_id)
5857
      oprot.writeFieldEnd()
5858
    oprot.writeFieldStop()
5859
    oprot.writeStructEnd()
5860
 
5861
  def validate(self):
5862
    return
5863
 
5864
 
5865
  def __repr__(self):
5866
    L = ['%s=%r' % (key, value)
5867
      for key, value in self.__dict__.iteritems()]
5868
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5869
 
5870
  def __eq__(self, other):
5871
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5872
 
5873
  def __ne__(self, other):
5874
    return not (self == other)
5875
 
5876
class getAllItemsForWarehouse_result:
5877
  """
5878
  Attributes:
5879
   - success
5880
   - cex
5881
  """
5882
 
5883
  thrift_spec = (
5884
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5885
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5886
  )
5887
 
5888
  def __init__(self, success=None, cex=None,):
5889
    self.success = success
5890
    self.cex = cex
5891
 
5892
  def read(self, iprot):
5893
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5894
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5895
      return
5896
    iprot.readStructBegin()
5897
    while True:
5898
      (fname, ftype, fid) = iprot.readFieldBegin()
5899
      if ftype == TType.STOP:
5900
        break
5901
      if fid == 0:
5902
        if ftype == TType.LIST:
5903
          self.success = []
8182 amar.kumar 5904
          (_etype62, _size59) = iprot.readListBegin()
5905
          for _i63 in xrange(_size59):
5906
            _elem64 = iprot.readI64();
5907
            self.success.append(_elem64)
5944 mandeep.dh 5908
          iprot.readListEnd()
5909
        else:
5910
          iprot.skip(ftype)
5911
      elif fid == 1:
5912
        if ftype == TType.STRUCT:
5913
          self.cex = InventoryServiceException()
5914
          self.cex.read(iprot)
5915
        else:
5916
          iprot.skip(ftype)
5917
      else:
5918
        iprot.skip(ftype)
5919
      iprot.readFieldEnd()
5920
    iprot.readStructEnd()
5921
 
5922
  def write(self, oprot):
5923
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5924
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5925
      return
5926
    oprot.writeStructBegin('getAllItemsForWarehouse_result')
5927
    if self.success is not None:
5928
      oprot.writeFieldBegin('success', TType.LIST, 0)
5929
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5930
      for iter65 in self.success:
5931
        oprot.writeI64(iter65)
5944 mandeep.dh 5932
      oprot.writeListEnd()
5933
      oprot.writeFieldEnd()
5934
    if self.cex is not None:
5935
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5936
      self.cex.write(oprot)
5937
      oprot.writeFieldEnd()
5938
    oprot.writeFieldStop()
5939
    oprot.writeStructEnd()
5940
 
5941
  def validate(self):
5942
    return
5943
 
5944
 
5945
  def __repr__(self):
5946
    L = ['%s=%r' % (key, value)
5947
      for key, value in self.__dict__.iteritems()]
5948
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5949
 
5950
  def __eq__(self, other):
5951
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5952
 
5953
  def __ne__(self, other):
5954
    return not (self == other)
5955
 
5966 rajveer 5956
class isOrderBillable_args:
5957
  """
5958
  Attributes:
5959
   - itemId
5960
   - warehouseId
5961
   - sourceId
5962
   - orderId
5963
  """
5964
 
5965
  thrift_spec = (
5966
    None, # 0
5967
    (1, TType.I64, 'itemId', None, None, ), # 1
5968
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5969
    (3, TType.I64, 'sourceId', None, None, ), # 3
5970
    (4, TType.I64, 'orderId', None, None, ), # 4
5971
  )
5972
 
5973
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None,):
5974
    self.itemId = itemId
5975
    self.warehouseId = warehouseId
5976
    self.sourceId = sourceId
5977
    self.orderId = orderId
5978
 
5979
  def read(self, iprot):
5980
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5981
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5982
      return
5983
    iprot.readStructBegin()
5984
    while True:
5985
      (fname, ftype, fid) = iprot.readFieldBegin()
5986
      if ftype == TType.STOP:
5987
        break
5988
      if fid == 1:
5989
        if ftype == TType.I64:
5990
          self.itemId = iprot.readI64();
5991
        else:
5992
          iprot.skip(ftype)
5993
      elif fid == 2:
5994
        if ftype == TType.I64:
5995
          self.warehouseId = iprot.readI64();
5996
        else:
5997
          iprot.skip(ftype)
5998
      elif fid == 3:
5999
        if ftype == TType.I64:
6000
          self.sourceId = iprot.readI64();
6001
        else:
6002
          iprot.skip(ftype)
6003
      elif fid == 4:
6004
        if ftype == TType.I64:
6005
          self.orderId = iprot.readI64();
6006
        else:
6007
          iprot.skip(ftype)
6008
      else:
6009
        iprot.skip(ftype)
6010
      iprot.readFieldEnd()
6011
    iprot.readStructEnd()
6012
 
6013
  def write(self, oprot):
6014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6016
      return
6017
    oprot.writeStructBegin('isOrderBillable_args')
6018
    if self.itemId is not None:
6019
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6020
      oprot.writeI64(self.itemId)
6021
      oprot.writeFieldEnd()
6022
    if self.warehouseId is not None:
6023
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6024
      oprot.writeI64(self.warehouseId)
6025
      oprot.writeFieldEnd()
6026
    if self.sourceId is not None:
6027
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6028
      oprot.writeI64(self.sourceId)
6029
      oprot.writeFieldEnd()
6030
    if self.orderId is not None:
6031
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6032
      oprot.writeI64(self.orderId)
6033
      oprot.writeFieldEnd()
6034
    oprot.writeFieldStop()
6035
    oprot.writeStructEnd()
6036
 
6037
  def validate(self):
6038
    return
6039
 
6040
 
6041
  def __repr__(self):
6042
    L = ['%s=%r' % (key, value)
6043
      for key, value in self.__dict__.iteritems()]
6044
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6045
 
6046
  def __eq__(self, other):
6047
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6048
 
6049
  def __ne__(self, other):
6050
    return not (self == other)
6051
 
6052
class isOrderBillable_result:
6053
  """
6054
  Attributes:
6055
   - success
6056
  """
6057
 
6058
  thrift_spec = (
6059
    (0, TType.BOOL, 'success', None, None, ), # 0
6060
  )
6061
 
6062
  def __init__(self, success=None,):
6063
    self.success = success
6064
 
6065
  def read(self, iprot):
6066
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6067
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6068
      return
6069
    iprot.readStructBegin()
6070
    while True:
6071
      (fname, ftype, fid) = iprot.readFieldBegin()
6072
      if ftype == TType.STOP:
6073
        break
6074
      if fid == 0:
6075
        if ftype == TType.BOOL:
6076
          self.success = iprot.readBool();
6077
        else:
6078
          iprot.skip(ftype)
6079
      else:
6080
        iprot.skip(ftype)
6081
      iprot.readFieldEnd()
6082
    iprot.readStructEnd()
6083
 
6084
  def write(self, oprot):
6085
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6086
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6087
      return
6088
    oprot.writeStructBegin('isOrderBillable_result')
6089
    if self.success is not None:
6090
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6091
      oprot.writeBool(self.success)
6092
      oprot.writeFieldEnd()
6093
    oprot.writeFieldStop()
6094
    oprot.writeStructEnd()
6095
 
6096
  def validate(self):
6097
    return
6098
 
6099
 
6100
  def __repr__(self):
6101
    L = ['%s=%r' % (key, value)
6102
      for key, value in self.__dict__.iteritems()]
6103
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6104
 
6105
  def __eq__(self, other):
6106
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6107
 
6108
  def __ne__(self, other):
6109
    return not (self == other)
6110
 
5944 mandeep.dh 6111
class reserveItemInWarehouse_args:
6112
  """
6113
  Attributes:
6114
   - itemId
6115
   - warehouseId
5966 rajveer 6116
   - sourceId
6117
   - orderId
6118
   - createdTimestamp
6119
   - promisedShippingTimestamp
5944 mandeep.dh 6120
   - quantity
6121
  """
6122
 
6123
  thrift_spec = (
6124
    None, # 0
6125
    (1, TType.I64, 'itemId', None, None, ), # 1
6126
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 6127
    (3, TType.I64, 'sourceId', None, None, ), # 3
6128
    (4, TType.I64, 'orderId', None, None, ), # 4
6129
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
6130
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
6131
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
5944 mandeep.dh 6132
  )
6133
 
5966 rajveer 6134
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
5944 mandeep.dh 6135
    self.itemId = itemId
6136
    self.warehouseId = warehouseId
5966 rajveer 6137
    self.sourceId = sourceId
6138
    self.orderId = orderId
6139
    self.createdTimestamp = createdTimestamp
6140
    self.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 6141
    self.quantity = quantity
6142
 
6143
  def read(self, iprot):
6144
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6145
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6146
      return
6147
    iprot.readStructBegin()
6148
    while True:
6149
      (fname, ftype, fid) = iprot.readFieldBegin()
6150
      if ftype == TType.STOP:
6151
        break
6152
      if fid == 1:
6153
        if ftype == TType.I64:
6154
          self.itemId = iprot.readI64();
6155
        else:
6156
          iprot.skip(ftype)
6157
      elif fid == 2:
6158
        if ftype == TType.I64:
6159
          self.warehouseId = iprot.readI64();
6160
        else:
6161
          iprot.skip(ftype)
6162
      elif fid == 3:
5966 rajveer 6163
        if ftype == TType.I64:
6164
          self.sourceId = iprot.readI64();
6165
        else:
6166
          iprot.skip(ftype)
6167
      elif fid == 4:
6168
        if ftype == TType.I64:
6169
          self.orderId = iprot.readI64();
6170
        else:
6171
          iprot.skip(ftype)
6172
      elif fid == 5:
6173
        if ftype == TType.I64:
6174
          self.createdTimestamp = iprot.readI64();
6175
        else:
6176
          iprot.skip(ftype)
6177
      elif fid == 6:
6178
        if ftype == TType.I64:
6179
          self.promisedShippingTimestamp = iprot.readI64();
6180
        else:
6181
          iprot.skip(ftype)
6182
      elif fid == 7:
5944 mandeep.dh 6183
        if ftype == TType.DOUBLE:
6184
          self.quantity = iprot.readDouble();
6185
        else:
6186
          iprot.skip(ftype)
6187
      else:
6188
        iprot.skip(ftype)
6189
      iprot.readFieldEnd()
6190
    iprot.readStructEnd()
6191
 
6192
  def write(self, oprot):
6193
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6194
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6195
      return
6196
    oprot.writeStructBegin('reserveItemInWarehouse_args')
6197
    if self.itemId is not None:
6198
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6199
      oprot.writeI64(self.itemId)
6200
      oprot.writeFieldEnd()
6201
    if self.warehouseId is not None:
6202
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6203
      oprot.writeI64(self.warehouseId)
6204
      oprot.writeFieldEnd()
5966 rajveer 6205
    if self.sourceId is not None:
6206
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6207
      oprot.writeI64(self.sourceId)
6208
      oprot.writeFieldEnd()
6209
    if self.orderId is not None:
6210
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6211
      oprot.writeI64(self.orderId)
6212
      oprot.writeFieldEnd()
6213
    if self.createdTimestamp is not None:
6214
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
6215
      oprot.writeI64(self.createdTimestamp)
6216
      oprot.writeFieldEnd()
6217
    if self.promisedShippingTimestamp is not None:
6218
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
6219
      oprot.writeI64(self.promisedShippingTimestamp)
6220
      oprot.writeFieldEnd()
5944 mandeep.dh 6221
    if self.quantity is not None:
5966 rajveer 6222
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
5944 mandeep.dh 6223
      oprot.writeDouble(self.quantity)
6224
      oprot.writeFieldEnd()
6225
    oprot.writeFieldStop()
6226
    oprot.writeStructEnd()
6227
 
6228
  def validate(self):
6229
    return
6230
 
6231
 
6232
  def __repr__(self):
6233
    L = ['%s=%r' % (key, value)
6234
      for key, value in self.__dict__.iteritems()]
6235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6236
 
6237
  def __eq__(self, other):
6238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6239
 
6240
  def __ne__(self, other):
6241
    return not (self == other)
6242
 
6243
class reserveItemInWarehouse_result:
6244
  """
6245
  Attributes:
6246
   - success
6247
   - cex
6248
  """
6249
 
6250
  thrift_spec = (
6251
    (0, TType.BOOL, 'success', None, None, ), # 0
6252
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6253
  )
6254
 
6255
  def __init__(self, success=None, cex=None,):
6256
    self.success = success
6257
    self.cex = cex
6258
 
6259
  def read(self, iprot):
6260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6262
      return
6263
    iprot.readStructBegin()
6264
    while True:
6265
      (fname, ftype, fid) = iprot.readFieldBegin()
6266
      if ftype == TType.STOP:
6267
        break
6268
      if fid == 0:
6269
        if ftype == TType.BOOL:
6270
          self.success = iprot.readBool();
6271
        else:
6272
          iprot.skip(ftype)
6273
      elif fid == 1:
6274
        if ftype == TType.STRUCT:
6275
          self.cex = InventoryServiceException()
6276
          self.cex.read(iprot)
6277
        else:
6278
          iprot.skip(ftype)
6279
      else:
6280
        iprot.skip(ftype)
6281
      iprot.readFieldEnd()
6282
    iprot.readStructEnd()
6283
 
6284
  def write(self, oprot):
6285
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6286
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6287
      return
6288
    oprot.writeStructBegin('reserveItemInWarehouse_result')
6289
    if self.success is not None:
6290
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6291
      oprot.writeBool(self.success)
6292
      oprot.writeFieldEnd()
6293
    if self.cex is not None:
6294
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6295
      self.cex.write(oprot)
6296
      oprot.writeFieldEnd()
6297
    oprot.writeFieldStop()
6298
    oprot.writeStructEnd()
6299
 
6300
  def validate(self):
6301
    return
6302
 
6303
 
6304
  def __repr__(self):
6305
    L = ['%s=%r' % (key, value)
6306
      for key, value in self.__dict__.iteritems()]
6307
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6308
 
6309
  def __eq__(self, other):
6310
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6311
 
6312
  def __ne__(self, other):
6313
    return not (self == other)
6314
 
7968 amar.kumar 6315
class updateReservationForOrder_args:
6316
  """
6317
  Attributes:
6318
   - itemId
6319
   - warehouseId
6320
   - sourceId
6321
   - orderId
6322
   - createdTimestamp
6323
   - promisedShippingTimestamp
6324
   - quantity
6325
  """
6326
 
6327
  thrift_spec = (
6328
    None, # 0
6329
    (1, TType.I64, 'itemId', None, None, ), # 1
6330
    (2, TType.I64, 'warehouseId', None, None, ), # 2
6331
    (3, TType.I64, 'sourceId', None, None, ), # 3
6332
    (4, TType.I64, 'orderId', None, None, ), # 4
6333
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
6334
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
6335
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
6336
  )
6337
 
6338
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
6339
    self.itemId = itemId
6340
    self.warehouseId = warehouseId
6341
    self.sourceId = sourceId
6342
    self.orderId = orderId
6343
    self.createdTimestamp = createdTimestamp
6344
    self.promisedShippingTimestamp = promisedShippingTimestamp
6345
    self.quantity = quantity
6346
 
6347
  def read(self, iprot):
6348
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6349
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6350
      return
6351
    iprot.readStructBegin()
6352
    while True:
6353
      (fname, ftype, fid) = iprot.readFieldBegin()
6354
      if ftype == TType.STOP:
6355
        break
6356
      if fid == 1:
6357
        if ftype == TType.I64:
6358
          self.itemId = iprot.readI64();
6359
        else:
6360
          iprot.skip(ftype)
6361
      elif fid == 2:
6362
        if ftype == TType.I64:
6363
          self.warehouseId = iprot.readI64();
6364
        else:
6365
          iprot.skip(ftype)
6366
      elif fid == 3:
6367
        if ftype == TType.I64:
6368
          self.sourceId = iprot.readI64();
6369
        else:
6370
          iprot.skip(ftype)
6371
      elif fid == 4:
6372
        if ftype == TType.I64:
6373
          self.orderId = iprot.readI64();
6374
        else:
6375
          iprot.skip(ftype)
6376
      elif fid == 5:
6377
        if ftype == TType.I64:
6378
          self.createdTimestamp = iprot.readI64();
6379
        else:
6380
          iprot.skip(ftype)
6381
      elif fid == 6:
6382
        if ftype == TType.I64:
6383
          self.promisedShippingTimestamp = iprot.readI64();
6384
        else:
6385
          iprot.skip(ftype)
6386
      elif fid == 7:
6387
        if ftype == TType.DOUBLE:
6388
          self.quantity = iprot.readDouble();
6389
        else:
6390
          iprot.skip(ftype)
6391
      else:
6392
        iprot.skip(ftype)
6393
      iprot.readFieldEnd()
6394
    iprot.readStructEnd()
6395
 
6396
  def write(self, oprot):
6397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6399
      return
6400
    oprot.writeStructBegin('updateReservationForOrder_args')
6401
    if self.itemId is not None:
6402
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6403
      oprot.writeI64(self.itemId)
6404
      oprot.writeFieldEnd()
6405
    if self.warehouseId is not None:
6406
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6407
      oprot.writeI64(self.warehouseId)
6408
      oprot.writeFieldEnd()
6409
    if self.sourceId is not None:
6410
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6411
      oprot.writeI64(self.sourceId)
6412
      oprot.writeFieldEnd()
6413
    if self.orderId is not None:
6414
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6415
      oprot.writeI64(self.orderId)
6416
      oprot.writeFieldEnd()
6417
    if self.createdTimestamp is not None:
6418
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
6419
      oprot.writeI64(self.createdTimestamp)
6420
      oprot.writeFieldEnd()
6421
    if self.promisedShippingTimestamp is not None:
6422
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
6423
      oprot.writeI64(self.promisedShippingTimestamp)
6424
      oprot.writeFieldEnd()
6425
    if self.quantity is not None:
6426
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
6427
      oprot.writeDouble(self.quantity)
6428
      oprot.writeFieldEnd()
6429
    oprot.writeFieldStop()
6430
    oprot.writeStructEnd()
6431
 
6432
  def validate(self):
6433
    return
6434
 
6435
 
6436
  def __repr__(self):
6437
    L = ['%s=%r' % (key, value)
6438
      for key, value in self.__dict__.iteritems()]
6439
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6440
 
6441
  def __eq__(self, other):
6442
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6443
 
6444
  def __ne__(self, other):
6445
    return not (self == other)
6446
 
6447
class updateReservationForOrder_result:
6448
  """
6449
  Attributes:
6450
   - success
6451
   - cex
6452
  """
6453
 
6454
  thrift_spec = (
6455
    (0, TType.BOOL, 'success', None, None, ), # 0
6456
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6457
  )
6458
 
6459
  def __init__(self, success=None, cex=None,):
6460
    self.success = success
6461
    self.cex = cex
6462
 
6463
  def read(self, iprot):
6464
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6465
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6466
      return
6467
    iprot.readStructBegin()
6468
    while True:
6469
      (fname, ftype, fid) = iprot.readFieldBegin()
6470
      if ftype == TType.STOP:
6471
        break
6472
      if fid == 0:
6473
        if ftype == TType.BOOL:
6474
          self.success = iprot.readBool();
6475
        else:
6476
          iprot.skip(ftype)
6477
      elif fid == 1:
6478
        if ftype == TType.STRUCT:
6479
          self.cex = InventoryServiceException()
6480
          self.cex.read(iprot)
6481
        else:
6482
          iprot.skip(ftype)
6483
      else:
6484
        iprot.skip(ftype)
6485
      iprot.readFieldEnd()
6486
    iprot.readStructEnd()
6487
 
6488
  def write(self, oprot):
6489
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6490
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6491
      return
6492
    oprot.writeStructBegin('updateReservationForOrder_result')
6493
    if self.success is not None:
6494
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6495
      oprot.writeBool(self.success)
6496
      oprot.writeFieldEnd()
6497
    if self.cex is not None:
6498
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6499
      self.cex.write(oprot)
6500
      oprot.writeFieldEnd()
6501
    oprot.writeFieldStop()
6502
    oprot.writeStructEnd()
6503
 
6504
  def validate(self):
6505
    return
6506
 
6507
 
6508
  def __repr__(self):
6509
    L = ['%s=%r' % (key, value)
6510
      for key, value in self.__dict__.iteritems()]
6511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6512
 
6513
  def __eq__(self, other):
6514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6515
 
6516
  def __ne__(self, other):
6517
    return not (self == other)
6518
 
5944 mandeep.dh 6519
class reduceReservationCount_args:
6520
  """
6521
  Attributes:
6522
   - itemId
6523
   - warehouseId
5966 rajveer 6524
   - sourceId
6525
   - orderId
5944 mandeep.dh 6526
   - quantity
6527
  """
6528
 
6529
  thrift_spec = (
6530
    None, # 0
6531
    (1, TType.I64, 'itemId', None, None, ), # 1
6532
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 6533
    (3, TType.I64, 'sourceId', None, None, ), # 3
6534
    (4, TType.I64, 'orderId', None, None, ), # 4
6535
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
5944 mandeep.dh 6536
  )
6537
 
5966 rajveer 6538
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, quantity=None,):
5944 mandeep.dh 6539
    self.itemId = itemId
6540
    self.warehouseId = warehouseId
5966 rajveer 6541
    self.sourceId = sourceId
6542
    self.orderId = orderId
5944 mandeep.dh 6543
    self.quantity = quantity
6544
 
6545
  def read(self, iprot):
6546
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6547
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6548
      return
6549
    iprot.readStructBegin()
6550
    while True:
6551
      (fname, ftype, fid) = iprot.readFieldBegin()
6552
      if ftype == TType.STOP:
6553
        break
6554
      if fid == 1:
6555
        if ftype == TType.I64:
6556
          self.itemId = iprot.readI64();
6557
        else:
6558
          iprot.skip(ftype)
6559
      elif fid == 2:
6560
        if ftype == TType.I64:
6561
          self.warehouseId = iprot.readI64();
6562
        else:
6563
          iprot.skip(ftype)
6564
      elif fid == 3:
5966 rajveer 6565
        if ftype == TType.I64:
6566
          self.sourceId = iprot.readI64();
6567
        else:
6568
          iprot.skip(ftype)
6569
      elif fid == 4:
6570
        if ftype == TType.I64:
6571
          self.orderId = iprot.readI64();
6572
        else:
6573
          iprot.skip(ftype)
6574
      elif fid == 5:
5944 mandeep.dh 6575
        if ftype == TType.DOUBLE:
6576
          self.quantity = iprot.readDouble();
6577
        else:
6578
          iprot.skip(ftype)
6579
      else:
6580
        iprot.skip(ftype)
6581
      iprot.readFieldEnd()
6582
    iprot.readStructEnd()
6583
 
6584
  def write(self, oprot):
6585
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6586
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6587
      return
6588
    oprot.writeStructBegin('reduceReservationCount_args')
6589
    if self.itemId is not None:
6590
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6591
      oprot.writeI64(self.itemId)
6592
      oprot.writeFieldEnd()
6593
    if self.warehouseId is not None:
6594
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6595
      oprot.writeI64(self.warehouseId)
6596
      oprot.writeFieldEnd()
5966 rajveer 6597
    if self.sourceId is not None:
6598
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6599
      oprot.writeI64(self.sourceId)
6600
      oprot.writeFieldEnd()
6601
    if self.orderId is not None:
6602
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6603
      oprot.writeI64(self.orderId)
6604
      oprot.writeFieldEnd()
5944 mandeep.dh 6605
    if self.quantity is not None:
5966 rajveer 6606
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
5944 mandeep.dh 6607
      oprot.writeDouble(self.quantity)
6608
      oprot.writeFieldEnd()
6609
    oprot.writeFieldStop()
6610
    oprot.writeStructEnd()
6611
 
6612
  def validate(self):
6613
    return
6614
 
6615
 
6616
  def __repr__(self):
6617
    L = ['%s=%r' % (key, value)
6618
      for key, value in self.__dict__.iteritems()]
6619
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6620
 
6621
  def __eq__(self, other):
6622
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6623
 
6624
  def __ne__(self, other):
6625
    return not (self == other)
6626
 
6627
class reduceReservationCount_result:
6628
  """
6629
  Attributes:
6630
   - success
6631
   - cex
6632
  """
6633
 
6634
  thrift_spec = (
6635
    (0, TType.BOOL, 'success', None, None, ), # 0
6636
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6637
  )
6638
 
6639
  def __init__(self, success=None, cex=None,):
6640
    self.success = success
6641
    self.cex = cex
6642
 
6643
  def read(self, iprot):
6644
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6645
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6646
      return
6647
    iprot.readStructBegin()
6648
    while True:
6649
      (fname, ftype, fid) = iprot.readFieldBegin()
6650
      if ftype == TType.STOP:
6651
        break
6652
      if fid == 0:
6653
        if ftype == TType.BOOL:
6654
          self.success = iprot.readBool();
6655
        else:
6656
          iprot.skip(ftype)
6657
      elif fid == 1:
6658
        if ftype == TType.STRUCT:
6659
          self.cex = InventoryServiceException()
6660
          self.cex.read(iprot)
6661
        else:
6662
          iprot.skip(ftype)
6663
      else:
6664
        iprot.skip(ftype)
6665
      iprot.readFieldEnd()
6666
    iprot.readStructEnd()
6667
 
6668
  def write(self, oprot):
6669
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6670
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6671
      return
6672
    oprot.writeStructBegin('reduceReservationCount_result')
6673
    if self.success is not None:
6674
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6675
      oprot.writeBool(self.success)
6676
      oprot.writeFieldEnd()
6677
    if self.cex is not None:
6678
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6679
      self.cex.write(oprot)
6680
      oprot.writeFieldEnd()
6681
    oprot.writeFieldStop()
6682
    oprot.writeStructEnd()
6683
 
6684
  def validate(self):
6685
    return
6686
 
6687
 
6688
  def __repr__(self):
6689
    L = ['%s=%r' % (key, value)
6690
      for key, value in self.__dict__.iteritems()]
6691
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6692
 
6693
  def __eq__(self, other):
6694
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6695
 
6696
  def __ne__(self, other):
6697
    return not (self == other)
6698
 
6699
class getItemPricing_args:
6700
  """
6701
  Attributes:
6702
   - itemId
6703
   - vendorId
6704
  """
6705
 
6706
  thrift_spec = (
6707
    None, # 0
6708
    (1, TType.I64, 'itemId', None, None, ), # 1
6709
    (2, TType.I64, 'vendorId', None, None, ), # 2
6710
  )
6711
 
6712
  def __init__(self, itemId=None, vendorId=None,):
6713
    self.itemId = itemId
6714
    self.vendorId = vendorId
6715
 
6716
  def read(self, iprot):
6717
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6718
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6719
      return
6720
    iprot.readStructBegin()
6721
    while True:
6722
      (fname, ftype, fid) = iprot.readFieldBegin()
6723
      if ftype == TType.STOP:
6724
        break
6725
      if fid == 1:
6726
        if ftype == TType.I64:
6727
          self.itemId = iprot.readI64();
6728
        else:
6729
          iprot.skip(ftype)
6730
      elif fid == 2:
6731
        if ftype == TType.I64:
6732
          self.vendorId = iprot.readI64();
6733
        else:
6734
          iprot.skip(ftype)
6735
      else:
6736
        iprot.skip(ftype)
6737
      iprot.readFieldEnd()
6738
    iprot.readStructEnd()
6739
 
6740
  def write(self, oprot):
6741
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6742
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6743
      return
6744
    oprot.writeStructBegin('getItemPricing_args')
6745
    if self.itemId is not None:
6746
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6747
      oprot.writeI64(self.itemId)
6748
      oprot.writeFieldEnd()
6749
    if self.vendorId is not None:
6750
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6751
      oprot.writeI64(self.vendorId)
6752
      oprot.writeFieldEnd()
6753
    oprot.writeFieldStop()
6754
    oprot.writeStructEnd()
6755
 
6756
  def validate(self):
6757
    return
6758
 
6759
 
6760
  def __repr__(self):
6761
    L = ['%s=%r' % (key, value)
6762
      for key, value in self.__dict__.iteritems()]
6763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6764
 
6765
  def __eq__(self, other):
6766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6767
 
6768
  def __ne__(self, other):
6769
    return not (self == other)
6770
 
6771
class getItemPricing_result:
6772
  """
6773
  Attributes:
6774
   - success
6775
   - cex
6776
  """
6777
 
6778
  thrift_spec = (
6779
    (0, TType.STRUCT, 'success', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 0
6780
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6781
  )
6782
 
6783
  def __init__(self, success=None, cex=None,):
6784
    self.success = success
6785
    self.cex = cex
6786
 
6787
  def read(self, iprot):
6788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6790
      return
6791
    iprot.readStructBegin()
6792
    while True:
6793
      (fname, ftype, fid) = iprot.readFieldBegin()
6794
      if ftype == TType.STOP:
6795
        break
6796
      if fid == 0:
6797
        if ftype == TType.STRUCT:
6798
          self.success = VendorItemPricing()
6799
          self.success.read(iprot)
6800
        else:
6801
          iprot.skip(ftype)
6802
      elif fid == 1:
6803
        if ftype == TType.STRUCT:
6804
          self.cex = InventoryServiceException()
6805
          self.cex.read(iprot)
6806
        else:
6807
          iprot.skip(ftype)
6808
      else:
6809
        iprot.skip(ftype)
6810
      iprot.readFieldEnd()
6811
    iprot.readStructEnd()
6812
 
6813
  def write(self, oprot):
6814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6816
      return
6817
    oprot.writeStructBegin('getItemPricing_result')
6818
    if self.success is not None:
6819
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6820
      self.success.write(oprot)
6821
      oprot.writeFieldEnd()
6822
    if self.cex is not None:
6823
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6824
      self.cex.write(oprot)
6825
      oprot.writeFieldEnd()
6826
    oprot.writeFieldStop()
6827
    oprot.writeStructEnd()
6828
 
6829
  def validate(self):
6830
    return
6831
 
6832
 
6833
  def __repr__(self):
6834
    L = ['%s=%r' % (key, value)
6835
      for key, value in self.__dict__.iteritems()]
6836
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6837
 
6838
  def __eq__(self, other):
6839
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6840
 
6841
  def __ne__(self, other):
6842
    return not (self == other)
6843
 
6844
class getAllItemPricing_args:
6845
  """
6846
  Attributes:
6847
   - itemId
6848
  """
6849
 
6850
  thrift_spec = (
6851
    None, # 0
6852
    (1, TType.I64, 'itemId', None, None, ), # 1
6853
  )
6854
 
6855
  def __init__(self, itemId=None,):
6856
    self.itemId = itemId
6857
 
6858
  def read(self, iprot):
6859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6861
      return
6862
    iprot.readStructBegin()
6863
    while True:
6864
      (fname, ftype, fid) = iprot.readFieldBegin()
6865
      if ftype == TType.STOP:
6866
        break
6867
      if fid == 1:
6868
        if ftype == TType.I64:
6869
          self.itemId = iprot.readI64();
6870
        else:
6871
          iprot.skip(ftype)
6872
      else:
6873
        iprot.skip(ftype)
6874
      iprot.readFieldEnd()
6875
    iprot.readStructEnd()
6876
 
6877
  def write(self, oprot):
6878
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6879
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6880
      return
6881
    oprot.writeStructBegin('getAllItemPricing_args')
6882
    if self.itemId is not None:
6883
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6884
      oprot.writeI64(self.itemId)
6885
      oprot.writeFieldEnd()
6886
    oprot.writeFieldStop()
6887
    oprot.writeStructEnd()
6888
 
6889
  def validate(self):
6890
    return
6891
 
6892
 
6893
  def __repr__(self):
6894
    L = ['%s=%r' % (key, value)
6895
      for key, value in self.__dict__.iteritems()]
6896
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6897
 
6898
  def __eq__(self, other):
6899
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6900
 
6901
  def __ne__(self, other):
6902
    return not (self == other)
6903
 
6904
class getAllItemPricing_result:
6905
  """
6906
  Attributes:
6907
   - success
6908
   - cex
6909
  """
6910
 
6911
  thrift_spec = (
6912
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
6913
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6914
  )
6915
 
6916
  def __init__(self, success=None, cex=None,):
6917
    self.success = success
6918
    self.cex = cex
6919
 
6920
  def read(self, iprot):
6921
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6922
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6923
      return
6924
    iprot.readStructBegin()
6925
    while True:
6926
      (fname, ftype, fid) = iprot.readFieldBegin()
6927
      if ftype == TType.STOP:
6928
        break
6929
      if fid == 0:
6930
        if ftype == TType.LIST:
6931
          self.success = []
8182 amar.kumar 6932
          (_etype69, _size66) = iprot.readListBegin()
6933
          for _i70 in xrange(_size66):
6934
            _elem71 = VendorItemPricing()
6935
            _elem71.read(iprot)
6936
            self.success.append(_elem71)
5944 mandeep.dh 6937
          iprot.readListEnd()
6938
        else:
6939
          iprot.skip(ftype)
6940
      elif fid == 1:
6941
        if ftype == TType.STRUCT:
6942
          self.cex = InventoryServiceException()
6943
          self.cex.read(iprot)
6944
        else:
6945
          iprot.skip(ftype)
6946
      else:
6947
        iprot.skip(ftype)
6948
      iprot.readFieldEnd()
6949
    iprot.readStructEnd()
6950
 
6951
  def write(self, oprot):
6952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6954
      return
6955
    oprot.writeStructBegin('getAllItemPricing_result')
6956
    if self.success is not None:
6957
      oprot.writeFieldBegin('success', TType.LIST, 0)
6958
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 6959
      for iter72 in self.success:
6960
        iter72.write(oprot)
5944 mandeep.dh 6961
      oprot.writeListEnd()
6962
      oprot.writeFieldEnd()
6963
    if self.cex is not None:
6964
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6965
      self.cex.write(oprot)
6966
      oprot.writeFieldEnd()
6967
    oprot.writeFieldStop()
6968
    oprot.writeStructEnd()
6969
 
6970
  def validate(self):
6971
    return
6972
 
6973
 
6974
  def __repr__(self):
6975
    L = ['%s=%r' % (key, value)
6976
      for key, value in self.__dict__.iteritems()]
6977
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6978
 
6979
  def __eq__(self, other):
6980
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6981
 
6982
  def __ne__(self, other):
6983
    return not (self == other)
6984
 
6985
class addVendorItemPricing_args:
6986
  """
6987
  Attributes:
6988
   - vendorItemPricing
6989
  """
6990
 
6991
  thrift_spec = (
6992
    None, # 0
6993
    (1, TType.STRUCT, 'vendorItemPricing', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 1
6994
  )
6995
 
6996
  def __init__(self, vendorItemPricing=None,):
6997
    self.vendorItemPricing = vendorItemPricing
6998
 
6999
  def read(self, iprot):
7000
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7001
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7002
      return
7003
    iprot.readStructBegin()
7004
    while True:
7005
      (fname, ftype, fid) = iprot.readFieldBegin()
7006
      if ftype == TType.STOP:
7007
        break
7008
      if fid == 1:
7009
        if ftype == TType.STRUCT:
7010
          self.vendorItemPricing = VendorItemPricing()
7011
          self.vendorItemPricing.read(iprot)
7012
        else:
7013
          iprot.skip(ftype)
7014
      else:
7015
        iprot.skip(ftype)
7016
      iprot.readFieldEnd()
7017
    iprot.readStructEnd()
7018
 
7019
  def write(self, oprot):
7020
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7021
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7022
      return
7023
    oprot.writeStructBegin('addVendorItemPricing_args')
7024
    if self.vendorItemPricing is not None:
7025
      oprot.writeFieldBegin('vendorItemPricing', TType.STRUCT, 1)
7026
      self.vendorItemPricing.write(oprot)
7027
      oprot.writeFieldEnd()
7028
    oprot.writeFieldStop()
7029
    oprot.writeStructEnd()
7030
 
7031
  def validate(self):
7032
    return
7033
 
7034
 
7035
  def __repr__(self):
7036
    L = ['%s=%r' % (key, value)
7037
      for key, value in self.__dict__.iteritems()]
7038
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7039
 
7040
  def __eq__(self, other):
7041
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7042
 
7043
  def __ne__(self, other):
7044
    return not (self == other)
7045
 
7046
class addVendorItemPricing_result:
7047
  """
7048
  Attributes:
7049
   - cex
7050
  """
7051
 
7052
  thrift_spec = (
7053
    None, # 0
7054
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7055
  )
7056
 
7057
  def __init__(self, cex=None,):
7058
    self.cex = cex
7059
 
7060
  def read(self, iprot):
7061
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7062
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7063
      return
7064
    iprot.readStructBegin()
7065
    while True:
7066
      (fname, ftype, fid) = iprot.readFieldBegin()
7067
      if ftype == TType.STOP:
7068
        break
7069
      if fid == 1:
7070
        if ftype == TType.STRUCT:
7071
          self.cex = InventoryServiceException()
7072
          self.cex.read(iprot)
7073
        else:
7074
          iprot.skip(ftype)
7075
      else:
7076
        iprot.skip(ftype)
7077
      iprot.readFieldEnd()
7078
    iprot.readStructEnd()
7079
 
7080
  def write(self, oprot):
7081
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7082
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7083
      return
7084
    oprot.writeStructBegin('addVendorItemPricing_result')
7085
    if self.cex is not None:
7086
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7087
      self.cex.write(oprot)
7088
      oprot.writeFieldEnd()
7089
    oprot.writeFieldStop()
7090
    oprot.writeStructEnd()
7091
 
7092
  def validate(self):
7093
    return
7094
 
7095
 
7096
  def __repr__(self):
7097
    L = ['%s=%r' % (key, value)
7098
      for key, value in self.__dict__.iteritems()]
7099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7100
 
7101
  def __eq__(self, other):
7102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7103
 
7104
  def __ne__(self, other):
7105
    return not (self == other)
7106
 
7107
class getVendor_args:
7108
  """
7109
  Attributes:
7110
   - vendorId
7111
  """
7112
 
7113
  thrift_spec = (
7114
    None, # 0
7115
    (1, TType.I64, 'vendorId', None, None, ), # 1
7116
  )
7117
 
7118
  def __init__(self, vendorId=None,):
7119
    self.vendorId = vendorId
7120
 
7121
  def read(self, iprot):
7122
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7123
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7124
      return
7125
    iprot.readStructBegin()
7126
    while True:
7127
      (fname, ftype, fid) = iprot.readFieldBegin()
7128
      if ftype == TType.STOP:
7129
        break
7130
      if fid == 1:
7131
        if ftype == TType.I64:
7132
          self.vendorId = iprot.readI64();
7133
        else:
7134
          iprot.skip(ftype)
7135
      else:
7136
        iprot.skip(ftype)
7137
      iprot.readFieldEnd()
7138
    iprot.readStructEnd()
7139
 
7140
  def write(self, oprot):
7141
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7142
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7143
      return
7144
    oprot.writeStructBegin('getVendor_args')
7145
    if self.vendorId is not None:
7146
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
7147
      oprot.writeI64(self.vendorId)
7148
      oprot.writeFieldEnd()
7149
    oprot.writeFieldStop()
7150
    oprot.writeStructEnd()
7151
 
7152
  def validate(self):
7153
    return
7154
 
7155
 
7156
  def __repr__(self):
7157
    L = ['%s=%r' % (key, value)
7158
      for key, value in self.__dict__.iteritems()]
7159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7160
 
7161
  def __eq__(self, other):
7162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7163
 
7164
  def __ne__(self, other):
7165
    return not (self == other)
7166
 
7167
class getVendor_result:
7168
  """
7169
  Attributes:
7170
   - success
7171
  """
7172
 
7173
  thrift_spec = (
7174
    (0, TType.STRUCT, 'success', (Vendor, Vendor.thrift_spec), None, ), # 0
7175
  )
7176
 
7177
  def __init__(self, success=None,):
7178
    self.success = success
7179
 
7180
  def read(self, iprot):
7181
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7182
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7183
      return
7184
    iprot.readStructBegin()
7185
    while True:
7186
      (fname, ftype, fid) = iprot.readFieldBegin()
7187
      if ftype == TType.STOP:
7188
        break
7189
      if fid == 0:
7190
        if ftype == TType.STRUCT:
7191
          self.success = Vendor()
7192
          self.success.read(iprot)
7193
        else:
7194
          iprot.skip(ftype)
7195
      else:
7196
        iprot.skip(ftype)
7197
      iprot.readFieldEnd()
7198
    iprot.readStructEnd()
7199
 
7200
  def write(self, oprot):
7201
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7202
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7203
      return
7204
    oprot.writeStructBegin('getVendor_result')
7205
    if self.success is not None:
7206
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7207
      self.success.write(oprot)
7208
      oprot.writeFieldEnd()
7209
    oprot.writeFieldStop()
7210
    oprot.writeStructEnd()
7211
 
7212
  def validate(self):
7213
    return
7214
 
7215
 
7216
  def __repr__(self):
7217
    L = ['%s=%r' % (key, value)
7218
      for key, value in self.__dict__.iteritems()]
7219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7220
 
7221
  def __eq__(self, other):
7222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7223
 
7224
  def __ne__(self, other):
7225
    return not (self == other)
7226
 
7227
class getAllVendors_args:
7228
 
7229
  thrift_spec = (
7230
  )
7231
 
7232
  def read(self, iprot):
7233
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7234
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7235
      return
7236
    iprot.readStructBegin()
7237
    while True:
7238
      (fname, ftype, fid) = iprot.readFieldBegin()
7239
      if ftype == TType.STOP:
7240
        break
7241
      else:
7242
        iprot.skip(ftype)
7243
      iprot.readFieldEnd()
7244
    iprot.readStructEnd()
7245
 
7246
  def write(self, oprot):
7247
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7248
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7249
      return
7250
    oprot.writeStructBegin('getAllVendors_args')
7251
    oprot.writeFieldStop()
7252
    oprot.writeStructEnd()
7253
 
7254
  def validate(self):
7255
    return
7256
 
7257
 
7258
  def __repr__(self):
7259
    L = ['%s=%r' % (key, value)
7260
      for key, value in self.__dict__.iteritems()]
7261
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7262
 
7263
  def __eq__(self, other):
7264
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7265
 
7266
  def __ne__(self, other):
7267
    return not (self == other)
7268
 
7269
class getAllVendors_result:
7270
  """
7271
  Attributes:
7272
   - success
7273
  """
7274
 
7275
  thrift_spec = (
7276
    (0, TType.LIST, 'success', (TType.STRUCT,(Vendor, Vendor.thrift_spec)), None, ), # 0
7277
  )
7278
 
7279
  def __init__(self, success=None,):
7280
    self.success = success
7281
 
7282
  def read(self, iprot):
7283
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7284
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7285
      return
7286
    iprot.readStructBegin()
7287
    while True:
7288
      (fname, ftype, fid) = iprot.readFieldBegin()
7289
      if ftype == TType.STOP:
7290
        break
7291
      if fid == 0:
7292
        if ftype == TType.LIST:
7293
          self.success = []
8182 amar.kumar 7294
          (_etype76, _size73) = iprot.readListBegin()
7295
          for _i77 in xrange(_size73):
7296
            _elem78 = Vendor()
7297
            _elem78.read(iprot)
7298
            self.success.append(_elem78)
5944 mandeep.dh 7299
          iprot.readListEnd()
7300
        else:
7301
          iprot.skip(ftype)
7302
      else:
7303
        iprot.skip(ftype)
7304
      iprot.readFieldEnd()
7305
    iprot.readStructEnd()
7306
 
7307
  def write(self, oprot):
7308
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7309
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7310
      return
7311
    oprot.writeStructBegin('getAllVendors_result')
7312
    if self.success is not None:
7313
      oprot.writeFieldBegin('success', TType.LIST, 0)
7314
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7315
      for iter79 in self.success:
7316
        iter79.write(oprot)
5944 mandeep.dh 7317
      oprot.writeListEnd()
7318
      oprot.writeFieldEnd()
7319
    oprot.writeFieldStop()
7320
    oprot.writeStructEnd()
7321
 
7322
  def validate(self):
7323
    return
7324
 
7325
 
7326
  def __repr__(self):
7327
    L = ['%s=%r' % (key, value)
7328
      for key, value in self.__dict__.iteritems()]
7329
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7330
 
7331
  def __eq__(self, other):
7332
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7333
 
7334
  def __ne__(self, other):
7335
    return not (self == other)
7336
 
7337
class addVendorItemMapping_args:
7338
  """
7339
  Attributes:
7340
   - key
7341
   - vendorItemMapping
7342
  """
7343
 
7344
  thrift_spec = (
7345
    None, # 0
7346
    (1, TType.STRING, 'key', None, None, ), # 1
7347
    (2, TType.STRUCT, 'vendorItemMapping', (VendorItemMapping, VendorItemMapping.thrift_spec), None, ), # 2
7348
  )
7349
 
7350
  def __init__(self, key=None, vendorItemMapping=None,):
7351
    self.key = key
7352
    self.vendorItemMapping = vendorItemMapping
7353
 
7354
  def read(self, iprot):
7355
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7356
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7357
      return
7358
    iprot.readStructBegin()
7359
    while True:
7360
      (fname, ftype, fid) = iprot.readFieldBegin()
7361
      if ftype == TType.STOP:
7362
        break
7363
      if fid == 1:
7364
        if ftype == TType.STRING:
7365
          self.key = iprot.readString();
7366
        else:
7367
          iprot.skip(ftype)
7368
      elif fid == 2:
7369
        if ftype == TType.STRUCT:
7370
          self.vendorItemMapping = VendorItemMapping()
7371
          self.vendorItemMapping.read(iprot)
7372
        else:
7373
          iprot.skip(ftype)
7374
      else:
7375
        iprot.skip(ftype)
7376
      iprot.readFieldEnd()
7377
    iprot.readStructEnd()
7378
 
7379
  def write(self, oprot):
7380
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7381
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7382
      return
7383
    oprot.writeStructBegin('addVendorItemMapping_args')
7384
    if self.key is not None:
7385
      oprot.writeFieldBegin('key', TType.STRING, 1)
7386
      oprot.writeString(self.key)
7387
      oprot.writeFieldEnd()
7388
    if self.vendorItemMapping is not None:
7389
      oprot.writeFieldBegin('vendorItemMapping', TType.STRUCT, 2)
7390
      self.vendorItemMapping.write(oprot)
7391
      oprot.writeFieldEnd()
7392
    oprot.writeFieldStop()
7393
    oprot.writeStructEnd()
7394
 
7395
  def validate(self):
7396
    return
7397
 
7398
 
7399
  def __repr__(self):
7400
    L = ['%s=%r' % (key, value)
7401
      for key, value in self.__dict__.iteritems()]
7402
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7403
 
7404
  def __eq__(self, other):
7405
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7406
 
7407
  def __ne__(self, other):
7408
    return not (self == other)
7409
 
7410
class addVendorItemMapping_result:
7411
  """
7412
  Attributes:
7413
   - cex
7414
  """
7415
 
7416
  thrift_spec = (
7417
    None, # 0
7418
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7419
  )
7420
 
7421
  def __init__(self, cex=None,):
7422
    self.cex = cex
7423
 
7424
  def read(self, iprot):
7425
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7426
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7427
      return
7428
    iprot.readStructBegin()
7429
    while True:
7430
      (fname, ftype, fid) = iprot.readFieldBegin()
7431
      if ftype == TType.STOP:
7432
        break
7433
      if fid == 1:
7434
        if ftype == TType.STRUCT:
7435
          self.cex = InventoryServiceException()
7436
          self.cex.read(iprot)
7437
        else:
7438
          iprot.skip(ftype)
7439
      else:
7440
        iprot.skip(ftype)
7441
      iprot.readFieldEnd()
7442
    iprot.readStructEnd()
7443
 
7444
  def write(self, oprot):
7445
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7446
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7447
      return
7448
    oprot.writeStructBegin('addVendorItemMapping_result')
7449
    if self.cex is not None:
7450
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7451
      self.cex.write(oprot)
7452
      oprot.writeFieldEnd()
7453
    oprot.writeFieldStop()
7454
    oprot.writeStructEnd()
7455
 
7456
  def validate(self):
7457
    return
7458
 
7459
 
7460
  def __repr__(self):
7461
    L = ['%s=%r' % (key, value)
7462
      for key, value in self.__dict__.iteritems()]
7463
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7464
 
7465
  def __eq__(self, other):
7466
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7467
 
7468
  def __ne__(self, other):
7469
    return not (self == other)
7470
 
7471
class getVendorItemMappings_args:
7472
  """
7473
  Attributes:
7474
   - itemId
7475
  """
7476
 
7477
  thrift_spec = (
7478
    None, # 0
7479
    (1, TType.I64, 'itemId', None, None, ), # 1
7480
  )
7481
 
7482
  def __init__(self, itemId=None,):
7483
    self.itemId = itemId
7484
 
7485
  def read(self, iprot):
7486
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7487
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7488
      return
7489
    iprot.readStructBegin()
7490
    while True:
7491
      (fname, ftype, fid) = iprot.readFieldBegin()
7492
      if ftype == TType.STOP:
7493
        break
7494
      if fid == 1:
7495
        if ftype == TType.I64:
7496
          self.itemId = iprot.readI64();
7497
        else:
7498
          iprot.skip(ftype)
7499
      else:
7500
        iprot.skip(ftype)
7501
      iprot.readFieldEnd()
7502
    iprot.readStructEnd()
7503
 
7504
  def write(self, oprot):
7505
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7506
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7507
      return
7508
    oprot.writeStructBegin('getVendorItemMappings_args')
7509
    if self.itemId is not None:
7510
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7511
      oprot.writeI64(self.itemId)
7512
      oprot.writeFieldEnd()
7513
    oprot.writeFieldStop()
7514
    oprot.writeStructEnd()
7515
 
7516
  def validate(self):
7517
    return
7518
 
7519
 
7520
  def __repr__(self):
7521
    L = ['%s=%r' % (key, value)
7522
      for key, value in self.__dict__.iteritems()]
7523
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7524
 
7525
  def __eq__(self, other):
7526
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7527
 
7528
  def __ne__(self, other):
7529
    return not (self == other)
7530
 
7531
class getVendorItemMappings_result:
7532
  """
7533
  Attributes:
7534
   - success
7535
   - cex
7536
  """
7537
 
7538
  thrift_spec = (
7539
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
7540
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7541
  )
7542
 
7543
  def __init__(self, success=None, cex=None,):
7544
    self.success = success
7545
    self.cex = cex
7546
 
7547
  def read(self, iprot):
7548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7550
      return
7551
    iprot.readStructBegin()
7552
    while True:
7553
      (fname, ftype, fid) = iprot.readFieldBegin()
7554
      if ftype == TType.STOP:
7555
        break
7556
      if fid == 0:
7557
        if ftype == TType.LIST:
7558
          self.success = []
8182 amar.kumar 7559
          (_etype83, _size80) = iprot.readListBegin()
7560
          for _i84 in xrange(_size80):
7561
            _elem85 = VendorItemMapping()
7562
            _elem85.read(iprot)
7563
            self.success.append(_elem85)
5944 mandeep.dh 7564
          iprot.readListEnd()
7565
        else:
7566
          iprot.skip(ftype)
7567
      elif fid == 1:
7568
        if ftype == TType.STRUCT:
7569
          self.cex = InventoryServiceException()
7570
          self.cex.read(iprot)
7571
        else:
7572
          iprot.skip(ftype)
7573
      else:
7574
        iprot.skip(ftype)
7575
      iprot.readFieldEnd()
7576
    iprot.readStructEnd()
7577
 
7578
  def write(self, oprot):
7579
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7580
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7581
      return
7582
    oprot.writeStructBegin('getVendorItemMappings_result')
7583
    if self.success is not None:
7584
      oprot.writeFieldBegin('success', TType.LIST, 0)
7585
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7586
      for iter86 in self.success:
7587
        iter86.write(oprot)
5944 mandeep.dh 7588
      oprot.writeListEnd()
7589
      oprot.writeFieldEnd()
7590
    if self.cex is not None:
7591
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7592
      self.cex.write(oprot)
7593
      oprot.writeFieldEnd()
7594
    oprot.writeFieldStop()
7595
    oprot.writeStructEnd()
7596
 
7597
  def validate(self):
7598
    return
7599
 
7600
 
7601
  def __repr__(self):
7602
    L = ['%s=%r' % (key, value)
7603
      for key, value in self.__dict__.iteritems()]
7604
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7605
 
7606
  def __eq__(self, other):
7607
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7608
 
7609
  def __ne__(self, other):
7610
    return not (self == other)
7611
 
7612
class getPendingOrdersInventory_args:
7613
  """
7614
  Attributes:
7615
   - vendorid
7616
  """
7617
 
7618
  thrift_spec = (
7619
    None, # 0
7620
    (1, TType.I64, 'vendorid', None, None, ), # 1
7621
  )
7622
 
7623
  def __init__(self, vendorid=None,):
7624
    self.vendorid = vendorid
7625
 
7626
  def read(self, iprot):
7627
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7628
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7629
      return
7630
    iprot.readStructBegin()
7631
    while True:
7632
      (fname, ftype, fid) = iprot.readFieldBegin()
7633
      if ftype == TType.STOP:
7634
        break
7635
      if fid == 1:
7636
        if ftype == TType.I64:
7637
          self.vendorid = iprot.readI64();
7638
        else:
7639
          iprot.skip(ftype)
7640
      else:
7641
        iprot.skip(ftype)
7642
      iprot.readFieldEnd()
7643
    iprot.readStructEnd()
7644
 
7645
  def write(self, oprot):
7646
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7647
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7648
      return
7649
    oprot.writeStructBegin('getPendingOrdersInventory_args')
7650
    if self.vendorid is not None:
7651
      oprot.writeFieldBegin('vendorid', TType.I64, 1)
7652
      oprot.writeI64(self.vendorid)
7653
      oprot.writeFieldEnd()
7654
    oprot.writeFieldStop()
7655
    oprot.writeStructEnd()
7656
 
7657
  def validate(self):
7658
    return
7659
 
7660
 
7661
  def __repr__(self):
7662
    L = ['%s=%r' % (key, value)
7663
      for key, value in self.__dict__.iteritems()]
7664
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7665
 
7666
  def __eq__(self, other):
7667
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7668
 
7669
  def __ne__(self, other):
7670
    return not (self == other)
7671
 
7672
class getPendingOrdersInventory_result:
7673
  """
7674
  Attributes:
7675
   - success
7676
  """
7677
 
7678
  thrift_spec = (
7679
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
7680
  )
7681
 
7682
  def __init__(self, success=None,):
7683
    self.success = success
7684
 
7685
  def read(self, iprot):
7686
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7687
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7688
      return
7689
    iprot.readStructBegin()
7690
    while True:
7691
      (fname, ftype, fid) = iprot.readFieldBegin()
7692
      if ftype == TType.STOP:
7693
        break
7694
      if fid == 0:
7695
        if ftype == TType.LIST:
7696
          self.success = []
8182 amar.kumar 7697
          (_etype90, _size87) = iprot.readListBegin()
7698
          for _i91 in xrange(_size87):
7699
            _elem92 = AvailableAndReservedStock()
7700
            _elem92.read(iprot)
7701
            self.success.append(_elem92)
5944 mandeep.dh 7702
          iprot.readListEnd()
7703
        else:
7704
          iprot.skip(ftype)
7705
      else:
7706
        iprot.skip(ftype)
7707
      iprot.readFieldEnd()
7708
    iprot.readStructEnd()
7709
 
7710
  def write(self, oprot):
7711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7713
      return
7714
    oprot.writeStructBegin('getPendingOrdersInventory_result')
7715
    if self.success is not None:
7716
      oprot.writeFieldBegin('success', TType.LIST, 0)
7717
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7718
      for iter93 in self.success:
7719
        iter93.write(oprot)
5944 mandeep.dh 7720
      oprot.writeListEnd()
7721
      oprot.writeFieldEnd()
7722
    oprot.writeFieldStop()
7723
    oprot.writeStructEnd()
7724
 
7725
  def validate(self):
7726
    return
7727
 
7728
 
7729
  def __repr__(self):
7730
    L = ['%s=%r' % (key, value)
7731
      for key, value in self.__dict__.iteritems()]
7732
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7733
 
7734
  def __eq__(self, other):
7735
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7736
 
7737
  def __ne__(self, other):
7738
    return not (self == other)
7739
 
7740
class getWarehouses_args:
7741
  """
7742
  Attributes:
7743
   - warehouseType
7744
   - inventoryType
7745
   - vendorId
7746
   - billingWarehouseId
7747
   - shippingWarehouseId
7748
  """
7749
 
7750
  thrift_spec = (
7751
    None, # 0
7752
    (1, TType.I32, 'warehouseType', None, None, ), # 1
7753
    (2, TType.I32, 'inventoryType', None, None, ), # 2
7754
    (3, TType.I64, 'vendorId', None, None, ), # 3
7755
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
7756
    (5, TType.I64, 'shippingWarehouseId', None, None, ), # 5
7757
  )
7758
 
7759
  def __init__(self, warehouseType=None, inventoryType=None, vendorId=None, billingWarehouseId=None, shippingWarehouseId=None,):
7760
    self.warehouseType = warehouseType
7761
    self.inventoryType = inventoryType
7762
    self.vendorId = vendorId
7763
    self.billingWarehouseId = billingWarehouseId
7764
    self.shippingWarehouseId = shippingWarehouseId
7765
 
7766
  def read(self, iprot):
7767
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7768
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7769
      return
7770
    iprot.readStructBegin()
7771
    while True:
7772
      (fname, ftype, fid) = iprot.readFieldBegin()
7773
      if ftype == TType.STOP:
7774
        break
7775
      if fid == 1:
7776
        if ftype == TType.I32:
7777
          self.warehouseType = iprot.readI32();
7778
        else:
7779
          iprot.skip(ftype)
7780
      elif fid == 2:
7781
        if ftype == TType.I32:
7782
          self.inventoryType = iprot.readI32();
7783
        else:
7784
          iprot.skip(ftype)
7785
      elif fid == 3:
7786
        if ftype == TType.I64:
7787
          self.vendorId = iprot.readI64();
7788
        else:
7789
          iprot.skip(ftype)
7790
      elif fid == 4:
7791
        if ftype == TType.I64:
7792
          self.billingWarehouseId = iprot.readI64();
7793
        else:
7794
          iprot.skip(ftype)
7795
      elif fid == 5:
7796
        if ftype == TType.I64:
7797
          self.shippingWarehouseId = iprot.readI64();
7798
        else:
7799
          iprot.skip(ftype)
7800
      else:
7801
        iprot.skip(ftype)
7802
      iprot.readFieldEnd()
7803
    iprot.readStructEnd()
7804
 
7805
  def write(self, oprot):
7806
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7807
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7808
      return
7809
    oprot.writeStructBegin('getWarehouses_args')
7810
    if self.warehouseType is not None:
7811
      oprot.writeFieldBegin('warehouseType', TType.I32, 1)
7812
      oprot.writeI32(self.warehouseType)
7813
      oprot.writeFieldEnd()
7814
    if self.inventoryType is not None:
7815
      oprot.writeFieldBegin('inventoryType', TType.I32, 2)
7816
      oprot.writeI32(self.inventoryType)
7817
      oprot.writeFieldEnd()
7818
    if self.vendorId is not None:
7819
      oprot.writeFieldBegin('vendorId', TType.I64, 3)
7820
      oprot.writeI64(self.vendorId)
7821
      oprot.writeFieldEnd()
7822
    if self.billingWarehouseId is not None:
7823
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
7824
      oprot.writeI64(self.billingWarehouseId)
7825
      oprot.writeFieldEnd()
7826
    if self.shippingWarehouseId is not None:
7827
      oprot.writeFieldBegin('shippingWarehouseId', TType.I64, 5)
7828
      oprot.writeI64(self.shippingWarehouseId)
7829
      oprot.writeFieldEnd()
7830
    oprot.writeFieldStop()
7831
    oprot.writeStructEnd()
7832
 
7833
  def validate(self):
7834
    return
7835
 
7836
 
7837
  def __repr__(self):
7838
    L = ['%s=%r' % (key, value)
7839
      for key, value in self.__dict__.iteritems()]
7840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7841
 
7842
  def __eq__(self, other):
7843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7844
 
7845
  def __ne__(self, other):
7846
    return not (self == other)
7847
 
7848
class getWarehouses_result:
7849
  """
7850
  Attributes:
7851
   - success
7852
  """
7853
 
7854
  thrift_spec = (
7855
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
7856
  )
7857
 
7858
  def __init__(self, success=None,):
7859
    self.success = success
7860
 
7861
  def read(self, iprot):
7862
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7863
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7864
      return
7865
    iprot.readStructBegin()
7866
    while True:
7867
      (fname, ftype, fid) = iprot.readFieldBegin()
7868
      if ftype == TType.STOP:
7869
        break
7870
      if fid == 0:
7871
        if ftype == TType.LIST:
7872
          self.success = []
8182 amar.kumar 7873
          (_etype97, _size94) = iprot.readListBegin()
7874
          for _i98 in xrange(_size94):
7875
            _elem99 = Warehouse()
7876
            _elem99.read(iprot)
7877
            self.success.append(_elem99)
5944 mandeep.dh 7878
          iprot.readListEnd()
7879
        else:
7880
          iprot.skip(ftype)
7881
      else:
7882
        iprot.skip(ftype)
7883
      iprot.readFieldEnd()
7884
    iprot.readStructEnd()
7885
 
7886
  def write(self, oprot):
7887
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7888
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7889
      return
7890
    oprot.writeStructBegin('getWarehouses_result')
7891
    if self.success is not None:
7892
      oprot.writeFieldBegin('success', TType.LIST, 0)
7893
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7894
      for iter100 in self.success:
7895
        iter100.write(oprot)
5944 mandeep.dh 7896
      oprot.writeListEnd()
7897
      oprot.writeFieldEnd()
7898
    oprot.writeFieldStop()
7899
    oprot.writeStructEnd()
7900
 
7901
  def validate(self):
7902
    return
7903
 
7904
 
7905
  def __repr__(self):
7906
    L = ['%s=%r' % (key, value)
7907
      for key, value in self.__dict__.iteritems()]
7908
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7909
 
7910
  def __eq__(self, other):
7911
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7912
 
7913
  def __ne__(self, other):
7914
    return not (self == other)
7915
 
7916
class resetAvailability_args:
7917
  """
7918
  Attributes:
7919
   - itemKey
7920
   - vendorId
7921
   - quantity
7922
   - warehouseId
7923
  """
7924
 
7925
  thrift_spec = (
7926
    None, # 0
7927
    (1, TType.STRING, 'itemKey', None, None, ), # 1
7928
    (2, TType.I64, 'vendorId', None, None, ), # 2
7929
    (3, TType.I64, 'quantity', None, None, ), # 3
7930
    (4, TType.I64, 'warehouseId', None, None, ), # 4
7931
  )
7932
 
7933
  def __init__(self, itemKey=None, vendorId=None, quantity=None, warehouseId=None,):
7934
    self.itemKey = itemKey
7935
    self.vendorId = vendorId
7936
    self.quantity = quantity
7937
    self.warehouseId = warehouseId
7938
 
7939
  def read(self, iprot):
7940
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7941
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7942
      return
7943
    iprot.readStructBegin()
7944
    while True:
7945
      (fname, ftype, fid) = iprot.readFieldBegin()
7946
      if ftype == TType.STOP:
7947
        break
7948
      if fid == 1:
7949
        if ftype == TType.STRING:
7950
          self.itemKey = iprot.readString();
7951
        else:
7952
          iprot.skip(ftype)
7953
      elif fid == 2:
7954
        if ftype == TType.I64:
7955
          self.vendorId = iprot.readI64();
7956
        else:
7957
          iprot.skip(ftype)
7958
      elif fid == 3:
7959
        if ftype == TType.I64:
7960
          self.quantity = iprot.readI64();
7961
        else:
7962
          iprot.skip(ftype)
7963
      elif fid == 4:
7964
        if ftype == TType.I64:
7965
          self.warehouseId = iprot.readI64();
7966
        else:
7967
          iprot.skip(ftype)
7968
      else:
7969
        iprot.skip(ftype)
7970
      iprot.readFieldEnd()
7971
    iprot.readStructEnd()
7972
 
7973
  def write(self, oprot):
7974
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7975
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7976
      return
7977
    oprot.writeStructBegin('resetAvailability_args')
7978
    if self.itemKey is not None:
7979
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
7980
      oprot.writeString(self.itemKey)
7981
      oprot.writeFieldEnd()
7982
    if self.vendorId is not None:
7983
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
7984
      oprot.writeI64(self.vendorId)
7985
      oprot.writeFieldEnd()
7986
    if self.quantity is not None:
7987
      oprot.writeFieldBegin('quantity', TType.I64, 3)
7988
      oprot.writeI64(self.quantity)
7989
      oprot.writeFieldEnd()
7990
    if self.warehouseId is not None:
7991
      oprot.writeFieldBegin('warehouseId', TType.I64, 4)
7992
      oprot.writeI64(self.warehouseId)
7993
      oprot.writeFieldEnd()
7994
    oprot.writeFieldStop()
7995
    oprot.writeStructEnd()
7996
 
7997
  def validate(self):
7998
    return
7999
 
8000
 
8001
  def __repr__(self):
8002
    L = ['%s=%r' % (key, value)
8003
      for key, value in self.__dict__.iteritems()]
8004
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8005
 
8006
  def __eq__(self, other):
8007
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8008
 
8009
  def __ne__(self, other):
8010
    return not (self == other)
8011
 
8012
class resetAvailability_result:
8013
  """
8014
  Attributes:
8015
   - cex
8016
  """
8017
 
8018
  thrift_spec = (
8019
    None, # 0
8020
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8021
  )
8022
 
8023
  def __init__(self, cex=None,):
8024
    self.cex = cex
8025
 
8026
  def read(self, iprot):
8027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8029
      return
8030
    iprot.readStructBegin()
8031
    while True:
8032
      (fname, ftype, fid) = iprot.readFieldBegin()
8033
      if ftype == TType.STOP:
8034
        break
8035
      if fid == 1:
8036
        if ftype == TType.STRUCT:
8037
          self.cex = InventoryServiceException()
8038
          self.cex.read(iprot)
8039
        else:
8040
          iprot.skip(ftype)
8041
      else:
8042
        iprot.skip(ftype)
8043
      iprot.readFieldEnd()
8044
    iprot.readStructEnd()
8045
 
8046
  def write(self, oprot):
8047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8049
      return
8050
    oprot.writeStructBegin('resetAvailability_result')
8051
    if self.cex is not None:
8052
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8053
      self.cex.write(oprot)
8054
      oprot.writeFieldEnd()
8055
    oprot.writeFieldStop()
8056
    oprot.writeStructEnd()
8057
 
8058
  def validate(self):
8059
    return
8060
 
8061
 
8062
  def __repr__(self):
8063
    L = ['%s=%r' % (key, value)
8064
      for key, value in self.__dict__.iteritems()]
8065
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8066
 
8067
  def __eq__(self, other):
8068
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8069
 
8070
  def __ne__(self, other):
8071
    return not (self == other)
8072
 
8073
class resetAvailabilityForWarehouse_args:
8074
  """
8075
  Attributes:
8076
   - warehouseId
8077
  """
8078
 
8079
  thrift_spec = (
8080
    None, # 0
8081
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8082
  )
8083
 
8084
  def __init__(self, warehouseId=None,):
8085
    self.warehouseId = warehouseId
8086
 
8087
  def read(self, iprot):
8088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8090
      return
8091
    iprot.readStructBegin()
8092
    while True:
8093
      (fname, ftype, fid) = iprot.readFieldBegin()
8094
      if ftype == TType.STOP:
8095
        break
8096
      if fid == 1:
8097
        if ftype == TType.I64:
8098
          self.warehouseId = iprot.readI64();
8099
        else:
8100
          iprot.skip(ftype)
8101
      else:
8102
        iprot.skip(ftype)
8103
      iprot.readFieldEnd()
8104
    iprot.readStructEnd()
8105
 
8106
  def write(self, oprot):
8107
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8108
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8109
      return
8110
    oprot.writeStructBegin('resetAvailabilityForWarehouse_args')
8111
    if self.warehouseId is not None:
8112
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8113
      oprot.writeI64(self.warehouseId)
8114
      oprot.writeFieldEnd()
8115
    oprot.writeFieldStop()
8116
    oprot.writeStructEnd()
8117
 
8118
  def validate(self):
8119
    return
8120
 
8121
 
8122
  def __repr__(self):
8123
    L = ['%s=%r' % (key, value)
8124
      for key, value in self.__dict__.iteritems()]
8125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8126
 
8127
  def __eq__(self, other):
8128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8129
 
8130
  def __ne__(self, other):
8131
    return not (self == other)
8132
 
8133
class resetAvailabilityForWarehouse_result:
8134
  """
8135
  Attributes:
8136
   - cex
8137
  """
8138
 
8139
  thrift_spec = (
8140
    None, # 0
8141
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8142
  )
8143
 
8144
  def __init__(self, cex=None,):
8145
    self.cex = cex
8146
 
8147
  def read(self, iprot):
8148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8150
      return
8151
    iprot.readStructBegin()
8152
    while True:
8153
      (fname, ftype, fid) = iprot.readFieldBegin()
8154
      if ftype == TType.STOP:
8155
        break
8156
      if fid == 1:
8157
        if ftype == TType.STRUCT:
8158
          self.cex = InventoryServiceException()
8159
          self.cex.read(iprot)
8160
        else:
8161
          iprot.skip(ftype)
8162
      else:
8163
        iprot.skip(ftype)
8164
      iprot.readFieldEnd()
8165
    iprot.readStructEnd()
8166
 
8167
  def write(self, oprot):
8168
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8169
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8170
      return
8171
    oprot.writeStructBegin('resetAvailabilityForWarehouse_result')
8172
    if self.cex is not None:
8173
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8174
      self.cex.write(oprot)
8175
      oprot.writeFieldEnd()
8176
    oprot.writeFieldStop()
8177
    oprot.writeStructEnd()
8178
 
8179
  def validate(self):
8180
    return
8181
 
8182
 
8183
  def __repr__(self):
8184
    L = ['%s=%r' % (key, value)
8185
      for key, value in self.__dict__.iteritems()]
8186
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8187
 
8188
  def __eq__(self, other):
8189
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8190
 
8191
  def __ne__(self, other):
8192
    return not (self == other)
8193
 
8194
class getItemKeysToBeProcessed_args:
8195
  """
8196
  Attributes:
8197
   - warehouseId
8198
  """
8199
 
8200
  thrift_spec = (
8201
    None, # 0
8202
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8203
  )
8204
 
8205
  def __init__(self, warehouseId=None,):
8206
    self.warehouseId = warehouseId
8207
 
8208
  def read(self, iprot):
8209
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8210
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8211
      return
8212
    iprot.readStructBegin()
8213
    while True:
8214
      (fname, ftype, fid) = iprot.readFieldBegin()
8215
      if ftype == TType.STOP:
8216
        break
8217
      if fid == 1:
8218
        if ftype == TType.I64:
8219
          self.warehouseId = iprot.readI64();
8220
        else:
8221
          iprot.skip(ftype)
8222
      else:
8223
        iprot.skip(ftype)
8224
      iprot.readFieldEnd()
8225
    iprot.readStructEnd()
8226
 
8227
  def write(self, oprot):
8228
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8229
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8230
      return
8231
    oprot.writeStructBegin('getItemKeysToBeProcessed_args')
8232
    if self.warehouseId is not None:
8233
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8234
      oprot.writeI64(self.warehouseId)
8235
      oprot.writeFieldEnd()
8236
    oprot.writeFieldStop()
8237
    oprot.writeStructEnd()
8238
 
8239
  def validate(self):
8240
    return
8241
 
8242
 
8243
  def __repr__(self):
8244
    L = ['%s=%r' % (key, value)
8245
      for key, value in self.__dict__.iteritems()]
8246
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8247
 
8248
  def __eq__(self, other):
8249
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8250
 
8251
  def __ne__(self, other):
8252
    return not (self == other)
8253
 
8254
class getItemKeysToBeProcessed_result:
8255
  """
8256
  Attributes:
8257
   - success
8258
  """
8259
 
8260
  thrift_spec = (
8261
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
8262
  )
8263
 
8264
  def __init__(self, success=None,):
8265
    self.success = success
8266
 
8267
  def read(self, iprot):
8268
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8269
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8270
      return
8271
    iprot.readStructBegin()
8272
    while True:
8273
      (fname, ftype, fid) = iprot.readFieldBegin()
8274
      if ftype == TType.STOP:
8275
        break
8276
      if fid == 0:
8277
        if ftype == TType.LIST:
8278
          self.success = []
8182 amar.kumar 8279
          (_etype104, _size101) = iprot.readListBegin()
8280
          for _i105 in xrange(_size101):
8281
            _elem106 = iprot.readString();
8282
            self.success.append(_elem106)
5944 mandeep.dh 8283
          iprot.readListEnd()
8284
        else:
8285
          iprot.skip(ftype)
8286
      else:
8287
        iprot.skip(ftype)
8288
      iprot.readFieldEnd()
8289
    iprot.readStructEnd()
8290
 
8291
  def write(self, oprot):
8292
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8293
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8294
      return
8295
    oprot.writeStructBegin('getItemKeysToBeProcessed_result')
8296
    if self.success is not None:
8297
      oprot.writeFieldBegin('success', TType.LIST, 0)
8298
      oprot.writeListBegin(TType.STRING, len(self.success))
8182 amar.kumar 8299
      for iter107 in self.success:
8300
        oprot.writeString(iter107)
5944 mandeep.dh 8301
      oprot.writeListEnd()
8302
      oprot.writeFieldEnd()
8303
    oprot.writeFieldStop()
8304
    oprot.writeStructEnd()
8305
 
8306
  def validate(self):
8307
    return
8308
 
8309
 
8310
  def __repr__(self):
8311
    L = ['%s=%r' % (key, value)
8312
      for key, value in self.__dict__.iteritems()]
8313
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8314
 
8315
  def __eq__(self, other):
8316
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8317
 
8318
  def __ne__(self, other):
8319
    return not (self == other)
8320
 
8321
class markMissedInventoryUpdatesAsProcessed_args:
8322
  """
8323
  Attributes:
8324
   - itemKey
8325
   - warehouseId
8326
  """
8327
 
8328
  thrift_spec = (
8329
    None, # 0
8330
    (1, TType.STRING, 'itemKey', None, None, ), # 1
8331
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8332
  )
8333
 
8334
  def __init__(self, itemKey=None, warehouseId=None,):
8335
    self.itemKey = itemKey
8336
    self.warehouseId = warehouseId
8337
 
8338
  def read(self, iprot):
8339
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8340
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8341
      return
8342
    iprot.readStructBegin()
8343
    while True:
8344
      (fname, ftype, fid) = iprot.readFieldBegin()
8345
      if ftype == TType.STOP:
8346
        break
8347
      if fid == 1:
8348
        if ftype == TType.STRING:
8349
          self.itemKey = iprot.readString();
8350
        else:
8351
          iprot.skip(ftype)
8352
      elif fid == 2:
8353
        if ftype == TType.I64:
8354
          self.warehouseId = iprot.readI64();
8355
        else:
8356
          iprot.skip(ftype)
8357
      else:
8358
        iprot.skip(ftype)
8359
      iprot.readFieldEnd()
8360
    iprot.readStructEnd()
8361
 
8362
  def write(self, oprot):
8363
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8364
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8365
      return
8366
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_args')
8367
    if self.itemKey is not None:
8368
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
8369
      oprot.writeString(self.itemKey)
8370
      oprot.writeFieldEnd()
8371
    if self.warehouseId is not None:
8372
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8373
      oprot.writeI64(self.warehouseId)
8374
      oprot.writeFieldEnd()
8375
    oprot.writeFieldStop()
8376
    oprot.writeStructEnd()
8377
 
8378
  def validate(self):
8379
    return
8380
 
8381
 
8382
  def __repr__(self):
8383
    L = ['%s=%r' % (key, value)
8384
      for key, value in self.__dict__.iteritems()]
8385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8386
 
8387
  def __eq__(self, other):
8388
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8389
 
8390
  def __ne__(self, other):
8391
    return not (self == other)
8392
 
8393
class markMissedInventoryUpdatesAsProcessed_result:
8394
 
8395
  thrift_spec = (
8396
  )
8397
 
8398
  def read(self, iprot):
8399
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8400
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8401
      return
8402
    iprot.readStructBegin()
8403
    while True:
8404
      (fname, ftype, fid) = iprot.readFieldBegin()
8405
      if ftype == TType.STOP:
8406
        break
8407
      else:
8408
        iprot.skip(ftype)
8409
      iprot.readFieldEnd()
8410
    iprot.readStructEnd()
8411
 
8412
  def write(self, oprot):
8413
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8414
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8415
      return
8416
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_result')
8417
    oprot.writeFieldStop()
8418
    oprot.writeStructEnd()
8419
 
8420
  def validate(self):
8421
    return
8422
 
8423
 
8424
  def __repr__(self):
8425
    L = ['%s=%r' % (key, value)
8426
      for key, value in self.__dict__.iteritems()]
8427
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8428
 
8429
  def __eq__(self, other):
8430
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8431
 
8432
  def __ne__(self, other):
8433
    return not (self == other)
8434
 
8435
class getIgnoredItemKeys_args:
8436
 
8437
  thrift_spec = (
8438
  )
8439
 
8440
  def read(self, iprot):
8441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8443
      return
8444
    iprot.readStructBegin()
8445
    while True:
8446
      (fname, ftype, fid) = iprot.readFieldBegin()
8447
      if ftype == TType.STOP:
8448
        break
8449
      else:
8450
        iprot.skip(ftype)
8451
      iprot.readFieldEnd()
8452
    iprot.readStructEnd()
8453
 
8454
  def write(self, oprot):
8455
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8456
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8457
      return
8458
    oprot.writeStructBegin('getIgnoredItemKeys_args')
8459
    oprot.writeFieldStop()
8460
    oprot.writeStructEnd()
8461
 
8462
  def validate(self):
8463
    return
8464
 
8465
 
8466
  def __repr__(self):
8467
    L = ['%s=%r' % (key, value)
8468
      for key, value in self.__dict__.iteritems()]
8469
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8470
 
8471
  def __eq__(self, other):
8472
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8473
 
8474
  def __ne__(self, other):
8475
    return not (self == other)
8476
 
8477
class getIgnoredItemKeys_result:
8478
  """
8479
  Attributes:
8480
   - success
8481
  """
8482
 
8483
  thrift_spec = (
8484
    (0, TType.MAP, 'success', (TType.STRING,None,TType.MAP,(TType.I64,None,TType.I64,None)), None, ), # 0
8485
  )
8486
 
8487
  def __init__(self, success=None,):
8488
    self.success = success
8489
 
8490
  def read(self, iprot):
8491
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8492
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8493
      return
8494
    iprot.readStructBegin()
8495
    while True:
8496
      (fname, ftype, fid) = iprot.readFieldBegin()
8497
      if ftype == TType.STOP:
8498
        break
8499
      if fid == 0:
8500
        if ftype == TType.MAP:
8501
          self.success = {}
8182 amar.kumar 8502
          (_ktype109, _vtype110, _size108 ) = iprot.readMapBegin() 
8503
          for _i112 in xrange(_size108):
8504
            _key113 = iprot.readString();
8505
            _val114 = {}
8506
            (_ktype116, _vtype117, _size115 ) = iprot.readMapBegin() 
8507
            for _i119 in xrange(_size115):
8508
              _key120 = iprot.readI64();
8509
              _val121 = iprot.readI64();
8510
              _val114[_key120] = _val121
5944 mandeep.dh 8511
            iprot.readMapEnd()
8182 amar.kumar 8512
            self.success[_key113] = _val114
5944 mandeep.dh 8513
          iprot.readMapEnd()
8514
        else:
8515
          iprot.skip(ftype)
8516
      else:
8517
        iprot.skip(ftype)
8518
      iprot.readFieldEnd()
8519
    iprot.readStructEnd()
8520
 
8521
  def write(self, oprot):
8522
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8523
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8524
      return
8525
    oprot.writeStructBegin('getIgnoredItemKeys_result')
8526
    if self.success is not None:
8527
      oprot.writeFieldBegin('success', TType.MAP, 0)
8528
      oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.success))
8182 amar.kumar 8529
      for kiter122,viter123 in self.success.items():
8530
        oprot.writeString(kiter122)
8531
        oprot.writeMapBegin(TType.I64, TType.I64, len(viter123))
8532
        for kiter124,viter125 in viter123.items():
8533
          oprot.writeI64(kiter124)
8534
          oprot.writeI64(viter125)
5944 mandeep.dh 8535
        oprot.writeMapEnd()
8536
      oprot.writeMapEnd()
8537
      oprot.writeFieldEnd()
8538
    oprot.writeFieldStop()
8539
    oprot.writeStructEnd()
8540
 
8541
  def validate(self):
8542
    return
8543
 
8544
 
8545
  def __repr__(self):
8546
    L = ['%s=%r' % (key, value)
8547
      for key, value in self.__dict__.iteritems()]
8548
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8549
 
8550
  def __eq__(self, other):
8551
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8552
 
8553
  def __ne__(self, other):
8554
    return not (self == other)
8555
 
8556
class addBadInventory_args:
8557
  """
8558
  Attributes:
8559
   - itemId
8560
   - warehouseId
8561
   - quantity
8562
  """
8563
 
8564
  thrift_spec = (
8565
    None, # 0
8566
    (1, TType.I64, 'itemId', None, None, ), # 1
8567
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8568
    (3, TType.I64, 'quantity', None, None, ), # 3
8569
  )
8570
 
8571
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
8572
    self.itemId = itemId
8573
    self.warehouseId = warehouseId
8574
    self.quantity = quantity
8575
 
8576
  def read(self, iprot):
8577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8579
      return
8580
    iprot.readStructBegin()
8581
    while True:
8582
      (fname, ftype, fid) = iprot.readFieldBegin()
8583
      if ftype == TType.STOP:
8584
        break
8585
      if fid == 1:
8586
        if ftype == TType.I64:
8587
          self.itemId = iprot.readI64();
8588
        else:
8589
          iprot.skip(ftype)
8590
      elif fid == 2:
8591
        if ftype == TType.I64:
8592
          self.warehouseId = iprot.readI64();
8593
        else:
8594
          iprot.skip(ftype)
8595
      elif fid == 3:
8596
        if ftype == TType.I64:
8597
          self.quantity = iprot.readI64();
8598
        else:
8599
          iprot.skip(ftype)
8600
      else:
8601
        iprot.skip(ftype)
8602
      iprot.readFieldEnd()
8603
    iprot.readStructEnd()
8604
 
8605
  def write(self, oprot):
8606
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8607
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8608
      return
8609
    oprot.writeStructBegin('addBadInventory_args')
8610
    if self.itemId is not None:
8611
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8612
      oprot.writeI64(self.itemId)
8613
      oprot.writeFieldEnd()
8614
    if self.warehouseId is not None:
8615
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8616
      oprot.writeI64(self.warehouseId)
8617
      oprot.writeFieldEnd()
8618
    if self.quantity is not None:
8619
      oprot.writeFieldBegin('quantity', TType.I64, 3)
8620
      oprot.writeI64(self.quantity)
8621
      oprot.writeFieldEnd()
8622
    oprot.writeFieldStop()
8623
    oprot.writeStructEnd()
8624
 
8625
  def validate(self):
8626
    return
8627
 
8628
 
8629
  def __repr__(self):
8630
    L = ['%s=%r' % (key, value)
8631
      for key, value in self.__dict__.iteritems()]
8632
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8633
 
8634
  def __eq__(self, other):
8635
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8636
 
8637
  def __ne__(self, other):
8638
    return not (self == other)
8639
 
8640
class addBadInventory_result:
8641
  """
8642
  Attributes:
8643
   - cex
8644
  """
8645
 
8646
  thrift_spec = (
8647
    None, # 0
8648
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8649
  )
8650
 
8651
  def __init__(self, cex=None,):
8652
    self.cex = cex
8653
 
8654
  def read(self, iprot):
8655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8657
      return
8658
    iprot.readStructBegin()
8659
    while True:
8660
      (fname, ftype, fid) = iprot.readFieldBegin()
8661
      if ftype == TType.STOP:
8662
        break
8663
      if fid == 1:
8664
        if ftype == TType.STRUCT:
8665
          self.cex = InventoryServiceException()
8666
          self.cex.read(iprot)
8667
        else:
8668
          iprot.skip(ftype)
8669
      else:
8670
        iprot.skip(ftype)
8671
      iprot.readFieldEnd()
8672
    iprot.readStructEnd()
8673
 
8674
  def write(self, oprot):
8675
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8676
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8677
      return
8678
    oprot.writeStructBegin('addBadInventory_result')
8679
    if self.cex is not None:
8680
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8681
      self.cex.write(oprot)
8682
      oprot.writeFieldEnd()
8683
    oprot.writeFieldStop()
8684
    oprot.writeStructEnd()
8685
 
8686
  def validate(self):
8687
    return
8688
 
8689
 
8690
  def __repr__(self):
8691
    L = ['%s=%r' % (key, value)
8692
      for key, value in self.__dict__.iteritems()]
8693
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8694
 
8695
  def __eq__(self, other):
8696
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8697
 
8698
  def __ne__(self, other):
8699
    return not (self == other)
8700
 
8701
class getShippingLocations_args:
8702
 
8703
  thrift_spec = (
8704
  )
8705
 
8706
  def read(self, iprot):
8707
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8708
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8709
      return
8710
    iprot.readStructBegin()
8711
    while True:
8712
      (fname, ftype, fid) = iprot.readFieldBegin()
8713
      if ftype == TType.STOP:
8714
        break
8715
      else:
8716
        iprot.skip(ftype)
8717
      iprot.readFieldEnd()
8718
    iprot.readStructEnd()
8719
 
8720
  def write(self, oprot):
8721
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8722
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8723
      return
8724
    oprot.writeStructBegin('getShippingLocations_args')
8725
    oprot.writeFieldStop()
8726
    oprot.writeStructEnd()
8727
 
8728
  def validate(self):
8729
    return
8730
 
8731
 
8732
  def __repr__(self):
8733
    L = ['%s=%r' % (key, value)
8734
      for key, value in self.__dict__.iteritems()]
8735
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8736
 
8737
  def __eq__(self, other):
8738
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8739
 
8740
  def __ne__(self, other):
8741
    return not (self == other)
8742
 
8743
class getShippingLocations_result:
8744
  """
8745
  Attributes:
8746
   - success
8747
  """
8748
 
8749
  thrift_spec = (
8750
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
8751
  )
8752
 
8753
  def __init__(self, success=None,):
8754
    self.success = success
8755
 
8756
  def read(self, iprot):
8757
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8758
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8759
      return
8760
    iprot.readStructBegin()
8761
    while True:
8762
      (fname, ftype, fid) = iprot.readFieldBegin()
8763
      if ftype == TType.STOP:
8764
        break
8765
      if fid == 0:
8766
        if ftype == TType.LIST:
8767
          self.success = []
8182 amar.kumar 8768
          (_etype129, _size126) = iprot.readListBegin()
8769
          for _i130 in xrange(_size126):
8770
            _elem131 = Warehouse()
8771
            _elem131.read(iprot)
8772
            self.success.append(_elem131)
5944 mandeep.dh 8773
          iprot.readListEnd()
8774
        else:
8775
          iprot.skip(ftype)
8776
      else:
8777
        iprot.skip(ftype)
8778
      iprot.readFieldEnd()
8779
    iprot.readStructEnd()
8780
 
8781
  def write(self, oprot):
8782
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8783
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8784
      return
8785
    oprot.writeStructBegin('getShippingLocations_result')
8786
    if self.success is not None:
8787
      oprot.writeFieldBegin('success', TType.LIST, 0)
8788
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8789
      for iter132 in self.success:
8790
        iter132.write(oprot)
5944 mandeep.dh 8791
      oprot.writeListEnd()
8792
      oprot.writeFieldEnd()
8793
    oprot.writeFieldStop()
8794
    oprot.writeStructEnd()
8795
 
8796
  def validate(self):
8797
    return
8798
 
8799
 
8800
  def __repr__(self):
8801
    L = ['%s=%r' % (key, value)
8802
      for key, value in self.__dict__.iteritems()]
8803
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8804
 
8805
  def __eq__(self, other):
8806
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8807
 
8808
  def __ne__(self, other):
8809
    return not (self == other)
8810
 
8811
class getAllVendorItemMappings_args:
8812
 
8813
  thrift_spec = (
8814
  )
8815
 
8816
  def read(self, iprot):
8817
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8818
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8819
      return
8820
    iprot.readStructBegin()
8821
    while True:
8822
      (fname, ftype, fid) = iprot.readFieldBegin()
8823
      if ftype == TType.STOP:
8824
        break
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('getAllVendorItemMappings_args')
8835
    oprot.writeFieldStop()
8836
    oprot.writeStructEnd()
8837
 
8838
  def validate(self):
8839
    return
8840
 
8841
 
8842
  def __repr__(self):
8843
    L = ['%s=%r' % (key, value)
8844
      for key, value in self.__dict__.iteritems()]
8845
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8846
 
8847
  def __eq__(self, other):
8848
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8849
 
8850
  def __ne__(self, other):
8851
    return not (self == other)
8852
 
8853
class getAllVendorItemMappings_result:
8854
  """
8855
  Attributes:
8856
   - success
8857
  """
8858
 
8859
  thrift_spec = (
8860
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
8861
  )
8862
 
8863
  def __init__(self, success=None,):
8864
    self.success = success
8865
 
8866
  def read(self, iprot):
8867
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8868
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8869
      return
8870
    iprot.readStructBegin()
8871
    while True:
8872
      (fname, ftype, fid) = iprot.readFieldBegin()
8873
      if ftype == TType.STOP:
8874
        break
8875
      if fid == 0:
8876
        if ftype == TType.LIST:
8877
          self.success = []
8182 amar.kumar 8878
          (_etype136, _size133) = iprot.readListBegin()
8879
          for _i137 in xrange(_size133):
8880
            _elem138 = VendorItemMapping()
8881
            _elem138.read(iprot)
8882
            self.success.append(_elem138)
5944 mandeep.dh 8883
          iprot.readListEnd()
8884
        else:
8885
          iprot.skip(ftype)
8886
      else:
8887
        iprot.skip(ftype)
8888
      iprot.readFieldEnd()
8889
    iprot.readStructEnd()
8890
 
8891
  def write(self, oprot):
8892
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8893
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8894
      return
8895
    oprot.writeStructBegin('getAllVendorItemMappings_result')
8896
    if self.success is not None:
8897
      oprot.writeFieldBegin('success', TType.LIST, 0)
8898
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8899
      for iter139 in self.success:
8900
        iter139.write(oprot)
5944 mandeep.dh 8901
      oprot.writeListEnd()
8902
      oprot.writeFieldEnd()
8903
    oprot.writeFieldStop()
8904
    oprot.writeStructEnd()
8905
 
8906
  def validate(self):
8907
    return
8908
 
8909
 
8910
  def __repr__(self):
8911
    L = ['%s=%r' % (key, value)
8912
      for key, value in self.__dict__.iteritems()]
8913
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8914
 
8915
  def __eq__(self, other):
8916
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8917
 
8918
  def __ne__(self, other):
8919
    return not (self == other)
8920
 
8921
class getInventorySnapshot_args:
8922
  """
8923
  Attributes:
8924
   - warehouseId
8925
  """
8926
 
8927
  thrift_spec = (
8928
    None, # 0
8929
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8930
  )
8931
 
8932
  def __init__(self, warehouseId=None,):
8933
    self.warehouseId = warehouseId
8934
 
8935
  def read(self, iprot):
8936
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8937
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8938
      return
8939
    iprot.readStructBegin()
8940
    while True:
8941
      (fname, ftype, fid) = iprot.readFieldBegin()
8942
      if ftype == TType.STOP:
8943
        break
8944
      if fid == 1:
8945
        if ftype == TType.I64:
8946
          self.warehouseId = iprot.readI64();
8947
        else:
8948
          iprot.skip(ftype)
8949
      else:
8950
        iprot.skip(ftype)
8951
      iprot.readFieldEnd()
8952
    iprot.readStructEnd()
8953
 
8954
  def write(self, oprot):
8955
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8956
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8957
      return
8958
    oprot.writeStructBegin('getInventorySnapshot_args')
8959
    if self.warehouseId is not None:
8960
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8961
      oprot.writeI64(self.warehouseId)
8962
      oprot.writeFieldEnd()
8963
    oprot.writeFieldStop()
8964
    oprot.writeStructEnd()
8965
 
8966
  def validate(self):
8967
    return
8968
 
8969
 
8970
  def __repr__(self):
8971
    L = ['%s=%r' % (key, value)
8972
      for key, value in self.__dict__.iteritems()]
8973
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8974
 
8975
  def __eq__(self, other):
8976
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8977
 
8978
  def __ne__(self, other):
8979
    return not (self == other)
8980
 
8981
class getInventorySnapshot_result:
8982
  """
8983
  Attributes:
8984
   - success
8985
  """
8986
 
8987
  thrift_spec = (
8988
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ItemInventory, ItemInventory.thrift_spec)), None, ), # 0
8989
  )
8990
 
8991
  def __init__(self, success=None,):
8992
    self.success = success
8993
 
8994
  def read(self, iprot):
8995
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8996
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8997
      return
8998
    iprot.readStructBegin()
8999
    while True:
9000
      (fname, ftype, fid) = iprot.readFieldBegin()
9001
      if ftype == TType.STOP:
9002
        break
9003
      if fid == 0:
9004
        if ftype == TType.MAP:
9005
          self.success = {}
8182 amar.kumar 9006
          (_ktype141, _vtype142, _size140 ) = iprot.readMapBegin() 
9007
          for _i144 in xrange(_size140):
9008
            _key145 = iprot.readI64();
9009
            _val146 = ItemInventory()
9010
            _val146.read(iprot)
9011
            self.success[_key145] = _val146
5944 mandeep.dh 9012
          iprot.readMapEnd()
9013
        else:
9014
          iprot.skip(ftype)
9015
      else:
9016
        iprot.skip(ftype)
9017
      iprot.readFieldEnd()
9018
    iprot.readStructEnd()
9019
 
9020
  def write(self, oprot):
9021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9023
      return
9024
    oprot.writeStructBegin('getInventorySnapshot_result')
9025
    if self.success is not None:
9026
      oprot.writeFieldBegin('success', TType.MAP, 0)
9027
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
8182 amar.kumar 9028
      for kiter147,viter148 in self.success.items():
9029
        oprot.writeI64(kiter147)
9030
        viter148.write(oprot)
5944 mandeep.dh 9031
      oprot.writeMapEnd()
9032
      oprot.writeFieldEnd()
9033
    oprot.writeFieldStop()
9034
    oprot.writeStructEnd()
9035
 
9036
  def validate(self):
9037
    return
9038
 
9039
 
9040
  def __repr__(self):
9041
    L = ['%s=%r' % (key, value)
9042
      for key, value in self.__dict__.iteritems()]
9043
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9044
 
9045
  def __eq__(self, other):
9046
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9047
 
9048
  def __ne__(self, other):
9049
    return not (self == other)
9050
 
9051
class clearItemAvailabilityCache_args:
9052
 
9053
  thrift_spec = (
9054
  )
9055
 
9056
  def read(self, iprot):
9057
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9058
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9059
      return
9060
    iprot.readStructBegin()
9061
    while True:
9062
      (fname, ftype, fid) = iprot.readFieldBegin()
9063
      if ftype == TType.STOP:
9064
        break
9065
      else:
9066
        iprot.skip(ftype)
9067
      iprot.readFieldEnd()
9068
    iprot.readStructEnd()
9069
 
9070
  def write(self, oprot):
9071
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9072
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9073
      return
9074
    oprot.writeStructBegin('clearItemAvailabilityCache_args')
9075
    oprot.writeFieldStop()
9076
    oprot.writeStructEnd()
9077
 
9078
  def validate(self):
9079
    return
9080
 
9081
 
9082
  def __repr__(self):
9083
    L = ['%s=%r' % (key, value)
9084
      for key, value in self.__dict__.iteritems()]
9085
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9086
 
9087
  def __eq__(self, other):
9088
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9089
 
9090
  def __ne__(self, other):
9091
    return not (self == other)
9092
 
9093
class clearItemAvailabilityCache_result:
9094
 
9095
  thrift_spec = (
9096
  )
9097
 
9098
  def read(self, iprot):
9099
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9100
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9101
      return
9102
    iprot.readStructBegin()
9103
    while True:
9104
      (fname, ftype, fid) = iprot.readFieldBegin()
9105
      if ftype == TType.STOP:
9106
        break
9107
      else:
9108
        iprot.skip(ftype)
9109
      iprot.readFieldEnd()
9110
    iprot.readStructEnd()
9111
 
9112
  def write(self, oprot):
9113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9115
      return
9116
    oprot.writeStructBegin('clearItemAvailabilityCache_result')
9117
    oprot.writeFieldStop()
9118
    oprot.writeStructEnd()
9119
 
9120
  def validate(self):
9121
    return
9122
 
9123
 
9124
  def __repr__(self):
9125
    L = ['%s=%r' % (key, value)
9126
      for key, value in self.__dict__.iteritems()]
9127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9128
 
9129
  def __eq__(self, other):
9130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9131
 
9132
  def __ne__(self, other):
9133
    return not (self == other)
9134
 
9135
class updateVendorString_args:
9136
  """
9137
  Attributes:
9138
   - warehouseId
9139
   - vendorString
9140
  """
9141
 
9142
  thrift_spec = (
9143
    None, # 0
9144
    (1, TType.I64, 'warehouseId', None, None, ), # 1
9145
    (2, TType.STRING, 'vendorString', None, None, ), # 2
9146
  )
9147
 
9148
  def __init__(self, warehouseId=None, vendorString=None,):
9149
    self.warehouseId = warehouseId
9150
    self.vendorString = vendorString
9151
 
9152
  def read(self, iprot):
9153
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9154
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9155
      return
9156
    iprot.readStructBegin()
9157
    while True:
9158
      (fname, ftype, fid) = iprot.readFieldBegin()
9159
      if ftype == TType.STOP:
9160
        break
9161
      if fid == 1:
9162
        if ftype == TType.I64:
9163
          self.warehouseId = iprot.readI64();
9164
        else:
9165
          iprot.skip(ftype)
9166
      elif fid == 2:
9167
        if ftype == TType.STRING:
9168
          self.vendorString = iprot.readString();
9169
        else:
9170
          iprot.skip(ftype)
9171
      else:
9172
        iprot.skip(ftype)
9173
      iprot.readFieldEnd()
9174
    iprot.readStructEnd()
9175
 
9176
  def write(self, oprot):
9177
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9178
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9179
      return
9180
    oprot.writeStructBegin('updateVendorString_args')
9181
    if self.warehouseId is not None:
9182
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9183
      oprot.writeI64(self.warehouseId)
9184
      oprot.writeFieldEnd()
9185
    if self.vendorString is not None:
9186
      oprot.writeFieldBegin('vendorString', TType.STRING, 2)
9187
      oprot.writeString(self.vendorString)
9188
      oprot.writeFieldEnd()
9189
    oprot.writeFieldStop()
9190
    oprot.writeStructEnd()
9191
 
9192
  def validate(self):
9193
    return
9194
 
9195
 
9196
  def __repr__(self):
9197
    L = ['%s=%r' % (key, value)
9198
      for key, value in self.__dict__.iteritems()]
9199
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9200
 
9201
  def __eq__(self, other):
9202
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9203
 
9204
  def __ne__(self, other):
9205
    return not (self == other)
9206
 
9207
class updateVendorString_result:
9208
 
9209
  thrift_spec = (
9210
  )
9211
 
9212
  def read(self, iprot):
9213
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9214
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9215
      return
9216
    iprot.readStructBegin()
9217
    while True:
9218
      (fname, ftype, fid) = iprot.readFieldBegin()
9219
      if ftype == TType.STOP:
9220
        break
9221
      else:
9222
        iprot.skip(ftype)
9223
      iprot.readFieldEnd()
9224
    iprot.readStructEnd()
9225
 
9226
  def write(self, oprot):
9227
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9228
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9229
      return
9230
    oprot.writeStructBegin('updateVendorString_result')
9231
    oprot.writeFieldStop()
9232
    oprot.writeStructEnd()
9233
 
9234
  def validate(self):
9235
    return
9236
 
9237
 
9238
  def __repr__(self):
9239
    L = ['%s=%r' % (key, value)
9240
      for key, value in self.__dict__.iteritems()]
9241
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9242
 
9243
  def __eq__(self, other):
9244
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9245
 
9246
  def __ne__(self, other):
9247
    return not (self == other)
6096 amit.gupta 9248
 
9249
class clearItemAvailabilityCacheForItem_args:
9250
  """
9251
  Attributes:
9252
   - item_id
9253
  """
9254
 
9255
  thrift_spec = (
9256
    None, # 0
9257
    (1, TType.I64, 'item_id', None, None, ), # 1
9258
  )
9259
 
9260
  def __init__(self, item_id=None,):
9261
    self.item_id = item_id
9262
 
9263
  def read(self, iprot):
9264
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9265
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9266
      return
9267
    iprot.readStructBegin()
9268
    while True:
9269
      (fname, ftype, fid) = iprot.readFieldBegin()
9270
      if ftype == TType.STOP:
9271
        break
9272
      if fid == 1:
9273
        if ftype == TType.I64:
9274
          self.item_id = iprot.readI64();
9275
        else:
9276
          iprot.skip(ftype)
9277
      else:
9278
        iprot.skip(ftype)
9279
      iprot.readFieldEnd()
9280
    iprot.readStructEnd()
9281
 
9282
  def write(self, oprot):
9283
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9284
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9285
      return
9286
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_args')
9287
    if self.item_id is not None:
9288
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9289
      oprot.writeI64(self.item_id)
9290
      oprot.writeFieldEnd()
9291
    oprot.writeFieldStop()
9292
    oprot.writeStructEnd()
9293
 
9294
  def validate(self):
9295
    return
9296
 
9297
 
9298
  def __repr__(self):
9299
    L = ['%s=%r' % (key, value)
9300
      for key, value in self.__dict__.iteritems()]
9301
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9302
 
9303
  def __eq__(self, other):
9304
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9305
 
9306
  def __ne__(self, other):
9307
    return not (self == other)
9308
 
9309
class clearItemAvailabilityCacheForItem_result:
9310
 
9311
  thrift_spec = (
9312
  )
9313
 
9314
  def read(self, iprot):
9315
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9316
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9317
      return
9318
    iprot.readStructBegin()
9319
    while True:
9320
      (fname, ftype, fid) = iprot.readFieldBegin()
9321
      if ftype == TType.STOP:
9322
        break
9323
      else:
9324
        iprot.skip(ftype)
9325
      iprot.readFieldEnd()
9326
    iprot.readStructEnd()
9327
 
9328
  def write(self, oprot):
9329
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9330
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9331
      return
9332
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_result')
9333
    oprot.writeFieldStop()
9334
    oprot.writeStructEnd()
9335
 
9336
  def validate(self):
9337
    return
9338
 
9339
 
9340
  def __repr__(self):
9341
    L = ['%s=%r' % (key, value)
9342
      for key, value in self.__dict__.iteritems()]
9343
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9344
 
9345
  def __eq__(self, other):
9346
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9347
 
9348
  def __ne__(self, other):
9349
    return not (self == other)
6467 amar.kumar 9350
 
9351
class getOurWarehouseIdForVendor_args:
9352
  """
9353
  Attributes:
9354
   - vendorId
7718 amar.kumar 9355
   - billingWarehouseId
6467 amar.kumar 9356
  """
9357
 
9358
  thrift_spec = (
9359
    None, # 0
9360
    (1, TType.I64, 'vendorId', None, None, ), # 1
7718 amar.kumar 9361
    (2, TType.I64, 'billingWarehouseId', None, None, ), # 2
6467 amar.kumar 9362
  )
9363
 
7718 amar.kumar 9364
  def __init__(self, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 9365
    self.vendorId = vendorId
7718 amar.kumar 9366
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 9367
 
9368
  def read(self, iprot):
9369
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9370
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9371
      return
9372
    iprot.readStructBegin()
9373
    while True:
9374
      (fname, ftype, fid) = iprot.readFieldBegin()
9375
      if ftype == TType.STOP:
9376
        break
9377
      if fid == 1:
9378
        if ftype == TType.I64:
9379
          self.vendorId = iprot.readI64();
9380
        else:
9381
          iprot.skip(ftype)
7718 amar.kumar 9382
      elif fid == 2:
9383
        if ftype == TType.I64:
9384
          self.billingWarehouseId = iprot.readI64();
9385
        else:
9386
          iprot.skip(ftype)
6467 amar.kumar 9387
      else:
9388
        iprot.skip(ftype)
9389
      iprot.readFieldEnd()
9390
    iprot.readStructEnd()
9391
 
9392
  def write(self, oprot):
9393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9395
      return
9396
    oprot.writeStructBegin('getOurWarehouseIdForVendor_args')
9397
    if self.vendorId is not None:
9398
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
9399
      oprot.writeI64(self.vendorId)
9400
      oprot.writeFieldEnd()
7718 amar.kumar 9401
    if self.billingWarehouseId is not None:
9402
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 2)
9403
      oprot.writeI64(self.billingWarehouseId)
9404
      oprot.writeFieldEnd()
6467 amar.kumar 9405
    oprot.writeFieldStop()
9406
    oprot.writeStructEnd()
9407
 
9408
  def validate(self):
9409
    return
9410
 
9411
 
9412
  def __repr__(self):
9413
    L = ['%s=%r' % (key, value)
9414
      for key, value in self.__dict__.iteritems()]
9415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9416
 
9417
  def __eq__(self, other):
9418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9419
 
9420
  def __ne__(self, other):
9421
    return not (self == other)
9422
 
9423
class getOurWarehouseIdForVendor_result:
9424
  """
9425
  Attributes:
9426
   - success
9427
  """
9428
 
9429
  thrift_spec = (
9430
    (0, TType.I64, 'success', None, None, ), # 0
9431
  )
9432
 
9433
  def __init__(self, success=None,):
9434
    self.success = success
9435
 
9436
  def read(self, iprot):
9437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9439
      return
9440
    iprot.readStructBegin()
9441
    while True:
9442
      (fname, ftype, fid) = iprot.readFieldBegin()
9443
      if ftype == TType.STOP:
9444
        break
9445
      if fid == 0:
9446
        if ftype == TType.I64:
9447
          self.success = iprot.readI64();
9448
        else:
9449
          iprot.skip(ftype)
9450
      else:
9451
        iprot.skip(ftype)
9452
      iprot.readFieldEnd()
9453
    iprot.readStructEnd()
9454
 
9455
  def write(self, oprot):
9456
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9457
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9458
      return
9459
    oprot.writeStructBegin('getOurWarehouseIdForVendor_result')
9460
    if self.success is not None:
9461
      oprot.writeFieldBegin('success', TType.I64, 0)
9462
      oprot.writeI64(self.success)
9463
      oprot.writeFieldEnd()
9464
    oprot.writeFieldStop()
9465
    oprot.writeStructEnd()
9466
 
9467
  def validate(self):
9468
    return
9469
 
9470
 
9471
  def __repr__(self):
9472
    L = ['%s=%r' % (key, value)
9473
      for key, value in self.__dict__.iteritems()]
9474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9475
 
9476
  def __eq__(self, other):
9477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9478
 
9479
  def __ne__(self, other):
9480
    return not (self == other)
6484 amar.kumar 9481
 
9482
class getItemAvailabilitiesAtOurWarehouses_args:
9483
  """
9484
  Attributes:
9485
   - item_ids
9486
  """
9487
 
9488
  thrift_spec = (
9489
    None, # 0
9490
    (1, TType.LIST, 'item_ids', (TType.I64,None), None, ), # 1
9491
  )
9492
 
9493
  def __init__(self, item_ids=None,):
9494
    self.item_ids = item_ids
9495
 
9496
  def read(self, iprot):
9497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9499
      return
9500
    iprot.readStructBegin()
9501
    while True:
9502
      (fname, ftype, fid) = iprot.readFieldBegin()
9503
      if ftype == TType.STOP:
9504
        break
9505
      if fid == 1:
9506
        if ftype == TType.LIST:
9507
          self.item_ids = []
8182 amar.kumar 9508
          (_etype152, _size149) = iprot.readListBegin()
9509
          for _i153 in xrange(_size149):
9510
            _elem154 = iprot.readI64();
9511
            self.item_ids.append(_elem154)
6484 amar.kumar 9512
          iprot.readListEnd()
9513
        else:
9514
          iprot.skip(ftype)
9515
      else:
9516
        iprot.skip(ftype)
9517
      iprot.readFieldEnd()
9518
    iprot.readStructEnd()
9519
 
9520
  def write(self, oprot):
9521
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9522
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9523
      return
9524
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_args')
9525
    if self.item_ids is not None:
9526
      oprot.writeFieldBegin('item_ids', TType.LIST, 1)
9527
      oprot.writeListBegin(TType.I64, len(self.item_ids))
8182 amar.kumar 9528
      for iter155 in self.item_ids:
9529
        oprot.writeI64(iter155)
6484 amar.kumar 9530
      oprot.writeListEnd()
9531
      oprot.writeFieldEnd()
9532
    oprot.writeFieldStop()
9533
    oprot.writeStructEnd()
9534
 
9535
  def validate(self):
9536
    return
9537
 
9538
 
9539
  def __repr__(self):
9540
    L = ['%s=%r' % (key, value)
9541
      for key, value in self.__dict__.iteritems()]
9542
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9543
 
9544
  def __eq__(self, other):
9545
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9546
 
9547
  def __ne__(self, other):
9548
    return not (self == other)
9549
 
9550
class getItemAvailabilitiesAtOurWarehouses_result:
9551
  """
9552
  Attributes:
9553
   - success
9554
  """
9555
 
9556
  thrift_spec = (
9557
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
9558
  )
9559
 
9560
  def __init__(self, success=None,):
9561
    self.success = success
9562
 
9563
  def read(self, iprot):
9564
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9565
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9566
      return
9567
    iprot.readStructBegin()
9568
    while True:
9569
      (fname, ftype, fid) = iprot.readFieldBegin()
9570
      if ftype == TType.STOP:
9571
        break
9572
      if fid == 0:
9573
        if ftype == TType.MAP:
9574
          self.success = {}
8182 amar.kumar 9575
          (_ktype157, _vtype158, _size156 ) = iprot.readMapBegin() 
9576
          for _i160 in xrange(_size156):
9577
            _key161 = iprot.readI64();
9578
            _val162 = iprot.readI64();
9579
            self.success[_key161] = _val162
6484 amar.kumar 9580
          iprot.readMapEnd()
9581
        else:
9582
          iprot.skip(ftype)
9583
      else:
9584
        iprot.skip(ftype)
9585
      iprot.readFieldEnd()
9586
    iprot.readStructEnd()
9587
 
9588
  def write(self, oprot):
9589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9591
      return
9592
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_result')
9593
    if self.success is not None:
9594
      oprot.writeFieldBegin('success', TType.MAP, 0)
9595
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
8182 amar.kumar 9596
      for kiter163,viter164 in self.success.items():
9597
        oprot.writeI64(kiter163)
9598
        oprot.writeI64(viter164)
6484 amar.kumar 9599
      oprot.writeMapEnd()
9600
      oprot.writeFieldEnd()
9601
    oprot.writeFieldStop()
9602
    oprot.writeStructEnd()
9603
 
9604
  def validate(self):
9605
    return
9606
 
9607
 
9608
  def __repr__(self):
9609
    L = ['%s=%r' % (key, value)
9610
      for key, value in self.__dict__.iteritems()]
9611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9612
 
9613
  def __eq__(self, other):
9614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9615
 
9616
  def __ne__(self, other):
9617
    return not (self == other)
6531 vikram.rag 9618
 
9619
class getMonitoredWarehouseForVendors_args:
9620
  """
9621
  Attributes:
9622
   - vendorIds
9623
  """
9624
 
9625
  thrift_spec = (
9626
    None, # 0
9627
    (1, TType.LIST, 'vendorIds', (TType.I64,None), None, ), # 1
9628
  )
9629
 
9630
  def __init__(self, vendorIds=None,):
9631
    self.vendorIds = vendorIds
9632
 
9633
  def read(self, iprot):
9634
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9635
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9636
      return
9637
    iprot.readStructBegin()
9638
    while True:
9639
      (fname, ftype, fid) = iprot.readFieldBegin()
9640
      if ftype == TType.STOP:
9641
        break
9642
      if fid == 1:
9643
        if ftype == TType.LIST:
9644
          self.vendorIds = []
8182 amar.kumar 9645
          (_etype168, _size165) = iprot.readListBegin()
9646
          for _i169 in xrange(_size165):
9647
            _elem170 = iprot.readI64();
9648
            self.vendorIds.append(_elem170)
6531 vikram.rag 9649
          iprot.readListEnd()
9650
        else:
9651
          iprot.skip(ftype)
9652
      else:
9653
        iprot.skip(ftype)
9654
      iprot.readFieldEnd()
9655
    iprot.readStructEnd()
9656
 
9657
  def write(self, oprot):
9658
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9659
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9660
      return
9661
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_args')
9662
    if self.vendorIds is not None:
9663
      oprot.writeFieldBegin('vendorIds', TType.LIST, 1)
9664
      oprot.writeListBegin(TType.I64, len(self.vendorIds))
8182 amar.kumar 9665
      for iter171 in self.vendorIds:
9666
        oprot.writeI64(iter171)
6531 vikram.rag 9667
      oprot.writeListEnd()
9668
      oprot.writeFieldEnd()
9669
    oprot.writeFieldStop()
9670
    oprot.writeStructEnd()
9671
 
9672
  def validate(self):
9673
    return
9674
 
9675
 
9676
  def __repr__(self):
9677
    L = ['%s=%r' % (key, value)
9678
      for key, value in self.__dict__.iteritems()]
9679
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9680
 
9681
  def __eq__(self, other):
9682
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9683
 
9684
  def __ne__(self, other):
9685
    return not (self == other)
9686
 
9687
class getMonitoredWarehouseForVendors_result:
9688
  """
9689
  Attributes:
9690
   - success
9691
  """
9692
 
9693
  thrift_spec = (
9694
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9695
  )
9696
 
9697
  def __init__(self, success=None,):
9698
    self.success = success
9699
 
9700
  def read(self, iprot):
9701
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9702
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9703
      return
9704
    iprot.readStructBegin()
9705
    while True:
9706
      (fname, ftype, fid) = iprot.readFieldBegin()
9707
      if ftype == TType.STOP:
9708
        break
9709
      if fid == 0:
9710
        if ftype == TType.LIST:
9711
          self.success = []
8182 amar.kumar 9712
          (_etype175, _size172) = iprot.readListBegin()
9713
          for _i176 in xrange(_size172):
9714
            _elem177 = iprot.readI64();
9715
            self.success.append(_elem177)
6531 vikram.rag 9716
          iprot.readListEnd()
9717
        else:
9718
          iprot.skip(ftype)
9719
      else:
9720
        iprot.skip(ftype)
9721
      iprot.readFieldEnd()
9722
    iprot.readStructEnd()
9723
 
9724
  def write(self, oprot):
9725
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9726
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9727
      return
9728
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_result')
9729
    if self.success is not None:
9730
      oprot.writeFieldBegin('success', TType.LIST, 0)
9731
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 9732
      for iter178 in self.success:
9733
        oprot.writeI64(iter178)
6531 vikram.rag 9734
      oprot.writeListEnd()
9735
      oprot.writeFieldEnd()
9736
    oprot.writeFieldStop()
9737
    oprot.writeStructEnd()
9738
 
9739
  def validate(self):
9740
    return
9741
 
9742
 
9743
  def __repr__(self):
9744
    L = ['%s=%r' % (key, value)
9745
      for key, value in self.__dict__.iteritems()]
9746
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9747
 
9748
  def __eq__(self, other):
9749
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9750
 
9751
  def __ne__(self, other):
9752
    return not (self == other)
9753
 
9754
class getIgnoredWarehouseidsAndItemids_args:
9755
 
9756
  thrift_spec = (
9757
  )
9758
 
9759
  def read(self, iprot):
9760
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9761
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9762
      return
9763
    iprot.readStructBegin()
9764
    while True:
9765
      (fname, ftype, fid) = iprot.readFieldBegin()
9766
      if ftype == TType.STOP:
9767
        break
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('getIgnoredWarehouseidsAndItemids_args')
9778
    oprot.writeFieldStop()
9779
    oprot.writeStructEnd()
9780
 
9781
  def validate(self):
9782
    return
9783
 
9784
 
9785
  def __repr__(self):
9786
    L = ['%s=%r' % (key, value)
9787
      for key, value in self.__dict__.iteritems()]
9788
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9789
 
9790
  def __eq__(self, other):
9791
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9792
 
9793
  def __ne__(self, other):
9794
    return not (self == other)
9795
 
9796
class getIgnoredWarehouseidsAndItemids_result:
9797
  """
9798
  Attributes:
9799
   - success
9800
  """
9801
 
9802
  thrift_spec = (
9803
    (0, TType.LIST, 'success', (TType.STRUCT,(IgnoredInventoryUpdateItems, IgnoredInventoryUpdateItems.thrift_spec)), None, ), # 0
9804
  )
9805
 
9806
  def __init__(self, success=None,):
9807
    self.success = success
9808
 
9809
  def read(self, iprot):
9810
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9811
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9812
      return
9813
    iprot.readStructBegin()
9814
    while True:
9815
      (fname, ftype, fid) = iprot.readFieldBegin()
9816
      if ftype == TType.STOP:
9817
        break
9818
      if fid == 0:
9819
        if ftype == TType.LIST:
9820
          self.success = []
8182 amar.kumar 9821
          (_etype182, _size179) = iprot.readListBegin()
9822
          for _i183 in xrange(_size179):
9823
            _elem184 = IgnoredInventoryUpdateItems()
9824
            _elem184.read(iprot)
9825
            self.success.append(_elem184)
6531 vikram.rag 9826
          iprot.readListEnd()
9827
        else:
9828
          iprot.skip(ftype)
9829
      else:
9830
        iprot.skip(ftype)
9831
      iprot.readFieldEnd()
9832
    iprot.readStructEnd()
9833
 
9834
  def write(self, oprot):
9835
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9836
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9837
      return
9838
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_result')
9839
    if self.success is not None:
9840
      oprot.writeFieldBegin('success', TType.LIST, 0)
9841
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 9842
      for iter185 in self.success:
9843
        iter185.write(oprot)
6531 vikram.rag 9844
      oprot.writeListEnd()
9845
      oprot.writeFieldEnd()
9846
    oprot.writeFieldStop()
9847
    oprot.writeStructEnd()
9848
 
9849
  def validate(self):
9850
    return
9851
 
9852
 
9853
  def __repr__(self):
9854
    L = ['%s=%r' % (key, value)
9855
      for key, value in self.__dict__.iteritems()]
9856
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9857
 
9858
  def __eq__(self, other):
9859
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9860
 
9861
  def __ne__(self, other):
9862
    return not (self == other)
9863
 
9864
class insertItemtoIgnoreInventoryUpdatelist_args:
9865
  """
9866
  Attributes:
9867
   - item_id
9868
   - warehouse_id
9869
  """
9870
 
9871
  thrift_spec = (
9872
    None, # 0
9873
    (1, TType.I64, 'item_id', None, None, ), # 1
9874
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
9875
  )
9876
 
9877
  def __init__(self, item_id=None, warehouse_id=None,):
9878
    self.item_id = item_id
9879
    self.warehouse_id = warehouse_id
9880
 
9881
  def read(self, iprot):
9882
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9883
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9884
      return
9885
    iprot.readStructBegin()
9886
    while True:
9887
      (fname, ftype, fid) = iprot.readFieldBegin()
9888
      if ftype == TType.STOP:
9889
        break
9890
      if fid == 1:
9891
        if ftype == TType.I64:
9892
          self.item_id = iprot.readI64();
9893
        else:
9894
          iprot.skip(ftype)
9895
      elif fid == 2:
9896
        if ftype == TType.I64:
9897
          self.warehouse_id = iprot.readI64();
9898
        else:
9899
          iprot.skip(ftype)
9900
      else:
9901
        iprot.skip(ftype)
9902
      iprot.readFieldEnd()
9903
    iprot.readStructEnd()
9904
 
9905
  def write(self, oprot):
9906
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9907
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9908
      return
9909
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_args')
9910
    if self.item_id is not None:
9911
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9912
      oprot.writeI64(self.item_id)
9913
      oprot.writeFieldEnd()
9914
    if self.warehouse_id is not None:
9915
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
9916
      oprot.writeI64(self.warehouse_id)
9917
      oprot.writeFieldEnd()
9918
    oprot.writeFieldStop()
9919
    oprot.writeStructEnd()
9920
 
9921
  def validate(self):
9922
    return
9923
 
9924
 
9925
  def __repr__(self):
9926
    L = ['%s=%r' % (key, value)
9927
      for key, value in self.__dict__.iteritems()]
9928
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9929
 
9930
  def __eq__(self, other):
9931
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9932
 
9933
  def __ne__(self, other):
9934
    return not (self == other)
9935
 
9936
class insertItemtoIgnoreInventoryUpdatelist_result:
9937
  """
9938
  Attributes:
9939
   - success
9940
  """
9941
 
9942
  thrift_spec = (
9943
    (0, TType.BOOL, 'success', None, None, ), # 0
9944
  )
9945
 
9946
  def __init__(self, success=None,):
9947
    self.success = success
9948
 
9949
  def read(self, iprot):
9950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9952
      return
9953
    iprot.readStructBegin()
9954
    while True:
9955
      (fname, ftype, fid) = iprot.readFieldBegin()
9956
      if ftype == TType.STOP:
9957
        break
9958
      if fid == 0:
9959
        if ftype == TType.BOOL:
9960
          self.success = iprot.readBool();
9961
        else:
9962
          iprot.skip(ftype)
9963
      else:
9964
        iprot.skip(ftype)
9965
      iprot.readFieldEnd()
9966
    iprot.readStructEnd()
9967
 
9968
  def write(self, oprot):
9969
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9970
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9971
      return
9972
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_result')
9973
    if self.success is not None:
9974
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9975
      oprot.writeBool(self.success)
9976
      oprot.writeFieldEnd()
9977
    oprot.writeFieldStop()
9978
    oprot.writeStructEnd()
9979
 
9980
  def validate(self):
9981
    return
9982
 
9983
 
9984
  def __repr__(self):
9985
    L = ['%s=%r' % (key, value)
9986
      for key, value in self.__dict__.iteritems()]
9987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9988
 
9989
  def __eq__(self, other):
9990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9991
 
9992
  def __ne__(self, other):
9993
    return not (self == other)
9994
 
9995
class deleteItemFromIgnoredInventoryUpdateList_args:
9996
  """
9997
  Attributes:
9998
   - item_id
9999
   - warehouse_id
10000
  """
10001
 
10002
  thrift_spec = (
10003
    None, # 0
10004
    (1, TType.I64, 'item_id', None, None, ), # 1
10005
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
10006
  )
10007
 
10008
  def __init__(self, item_id=None, warehouse_id=None,):
10009
    self.item_id = item_id
10010
    self.warehouse_id = warehouse_id
10011
 
10012
  def read(self, iprot):
10013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10015
      return
10016
    iprot.readStructBegin()
10017
    while True:
10018
      (fname, ftype, fid) = iprot.readFieldBegin()
10019
      if ftype == TType.STOP:
10020
        break
10021
      if fid == 1:
10022
        if ftype == TType.I64:
10023
          self.item_id = iprot.readI64();
10024
        else:
10025
          iprot.skip(ftype)
10026
      elif fid == 2:
10027
        if ftype == TType.I64:
10028
          self.warehouse_id = iprot.readI64();
10029
        else:
10030
          iprot.skip(ftype)
10031
      else:
10032
        iprot.skip(ftype)
10033
      iprot.readFieldEnd()
10034
    iprot.readStructEnd()
10035
 
10036
  def write(self, oprot):
10037
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10038
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10039
      return
10040
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_args')
10041
    if self.item_id is not None:
10042
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10043
      oprot.writeI64(self.item_id)
10044
      oprot.writeFieldEnd()
10045
    if self.warehouse_id is not None:
10046
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
10047
      oprot.writeI64(self.warehouse_id)
10048
      oprot.writeFieldEnd()
10049
    oprot.writeFieldStop()
10050
    oprot.writeStructEnd()
10051
 
10052
  def validate(self):
10053
    return
10054
 
10055
 
10056
  def __repr__(self):
10057
    L = ['%s=%r' % (key, value)
10058
      for key, value in self.__dict__.iteritems()]
10059
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10060
 
10061
  def __eq__(self, other):
10062
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10063
 
10064
  def __ne__(self, other):
10065
    return not (self == other)
10066
 
10067
class deleteItemFromIgnoredInventoryUpdateList_result:
10068
  """
10069
  Attributes:
10070
   - success
10071
  """
10072
 
10073
  thrift_spec = (
10074
    (0, TType.BOOL, 'success', None, None, ), # 0
10075
  )
10076
 
10077
  def __init__(self, success=None,):
10078
    self.success = success
10079
 
10080
  def read(self, iprot):
10081
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10082
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10083
      return
10084
    iprot.readStructBegin()
10085
    while True:
10086
      (fname, ftype, fid) = iprot.readFieldBegin()
10087
      if ftype == TType.STOP:
10088
        break
10089
      if fid == 0:
10090
        if ftype == TType.BOOL:
10091
          self.success = iprot.readBool();
10092
        else:
10093
          iprot.skip(ftype)
10094
      else:
10095
        iprot.skip(ftype)
10096
      iprot.readFieldEnd()
10097
    iprot.readStructEnd()
10098
 
10099
  def write(self, oprot):
10100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10102
      return
10103
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_result')
10104
    if self.success is not None:
10105
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10106
      oprot.writeBool(self.success)
10107
      oprot.writeFieldEnd()
10108
    oprot.writeFieldStop()
10109
    oprot.writeStructEnd()
10110
 
10111
  def validate(self):
10112
    return
10113
 
10114
 
10115
  def __repr__(self):
10116
    L = ['%s=%r' % (key, value)
10117
      for key, value in self.__dict__.iteritems()]
10118
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10119
 
10120
  def __eq__(self, other):
10121
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10122
 
10123
  def __ne__(self, other):
10124
    return not (self == other)
10125
 
10126
class getAllIgnoredInventoryupdateItemsCount_args:
10127
 
10128
  thrift_spec = (
10129
  )
10130
 
10131
  def read(self, iprot):
10132
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10133
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10134
      return
10135
    iprot.readStructBegin()
10136
    while True:
10137
      (fname, ftype, fid) = iprot.readFieldBegin()
10138
      if ftype == TType.STOP:
10139
        break
10140
      else:
10141
        iprot.skip(ftype)
10142
      iprot.readFieldEnd()
10143
    iprot.readStructEnd()
10144
 
10145
  def write(self, oprot):
10146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10148
      return
10149
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_args')
10150
    oprot.writeFieldStop()
10151
    oprot.writeStructEnd()
10152
 
10153
  def validate(self):
10154
    return
10155
 
10156
 
10157
  def __repr__(self):
10158
    L = ['%s=%r' % (key, value)
10159
      for key, value in self.__dict__.iteritems()]
10160
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10161
 
10162
  def __eq__(self, other):
10163
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10164
 
10165
  def __ne__(self, other):
10166
    return not (self == other)
10167
 
10168
class getAllIgnoredInventoryupdateItemsCount_result:
10169
  """
10170
  Attributes:
10171
   - success
10172
  """
10173
 
10174
  thrift_spec = (
10175
    (0, TType.I32, 'success', None, None, ), # 0
10176
  )
10177
 
10178
  def __init__(self, success=None,):
10179
    self.success = success
10180
 
10181
  def read(self, iprot):
10182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10184
      return
10185
    iprot.readStructBegin()
10186
    while True:
10187
      (fname, ftype, fid) = iprot.readFieldBegin()
10188
      if ftype == TType.STOP:
10189
        break
10190
      if fid == 0:
10191
        if ftype == TType.I32:
10192
          self.success = iprot.readI32();
10193
        else:
10194
          iprot.skip(ftype)
10195
      else:
10196
        iprot.skip(ftype)
10197
      iprot.readFieldEnd()
10198
    iprot.readStructEnd()
10199
 
10200
  def write(self, oprot):
10201
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10202
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10203
      return
10204
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_result')
10205
    if self.success is not None:
10206
      oprot.writeFieldBegin('success', TType.I32, 0)
10207
      oprot.writeI32(self.success)
10208
      oprot.writeFieldEnd()
10209
    oprot.writeFieldStop()
10210
    oprot.writeStructEnd()
10211
 
10212
  def validate(self):
10213
    return
10214
 
10215
 
10216
  def __repr__(self):
10217
    L = ['%s=%r' % (key, value)
10218
      for key, value in self.__dict__.iteritems()]
10219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10220
 
10221
  def __eq__(self, other):
10222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10223
 
10224
  def __ne__(self, other):
10225
    return not (self == other)
10226
 
10227
class getIgnoredInventoryUpdateItemids_args:
10228
  """
10229
  Attributes:
10230
   - offset
10231
   - limit
10232
  """
10233
 
10234
  thrift_spec = (
10235
    None, # 0
10236
    (1, TType.I32, 'offset', None, None, ), # 1
10237
    (2, TType.I32, 'limit', None, None, ), # 2
10238
  )
10239
 
10240
  def __init__(self, offset=None, limit=None,):
10241
    self.offset = offset
10242
    self.limit = limit
10243
 
10244
  def read(self, iprot):
10245
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10246
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10247
      return
10248
    iprot.readStructBegin()
10249
    while True:
10250
      (fname, ftype, fid) = iprot.readFieldBegin()
10251
      if ftype == TType.STOP:
10252
        break
10253
      if fid == 1:
10254
        if ftype == TType.I32:
10255
          self.offset = iprot.readI32();
10256
        else:
10257
          iprot.skip(ftype)
10258
      elif fid == 2:
10259
        if ftype == TType.I32:
10260
          self.limit = iprot.readI32();
10261
        else:
10262
          iprot.skip(ftype)
10263
      else:
10264
        iprot.skip(ftype)
10265
      iprot.readFieldEnd()
10266
    iprot.readStructEnd()
10267
 
10268
  def write(self, oprot):
10269
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10270
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10271
      return
10272
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_args')
10273
    if self.offset is not None:
10274
      oprot.writeFieldBegin('offset', TType.I32, 1)
10275
      oprot.writeI32(self.offset)
10276
      oprot.writeFieldEnd()
10277
    if self.limit is not None:
10278
      oprot.writeFieldBegin('limit', TType.I32, 2)
10279
      oprot.writeI32(self.limit)
10280
      oprot.writeFieldEnd()
10281
    oprot.writeFieldStop()
10282
    oprot.writeStructEnd()
10283
 
10284
  def validate(self):
10285
    return
10286
 
10287
 
10288
  def __repr__(self):
10289
    L = ['%s=%r' % (key, value)
10290
      for key, value in self.__dict__.iteritems()]
10291
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10292
 
10293
  def __eq__(self, other):
10294
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10295
 
10296
  def __ne__(self, other):
10297
    return not (self == other)
10298
 
10299
class getIgnoredInventoryUpdateItemids_result:
10300
  """
10301
  Attributes:
10302
   - success
10303
  """
10304
 
10305
  thrift_spec = (
10306
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10307
  )
10308
 
10309
  def __init__(self, success=None,):
10310
    self.success = success
10311
 
10312
  def read(self, iprot):
10313
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10314
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10315
      return
10316
    iprot.readStructBegin()
10317
    while True:
10318
      (fname, ftype, fid) = iprot.readFieldBegin()
10319
      if ftype == TType.STOP:
10320
        break
10321
      if fid == 0:
10322
        if ftype == TType.LIST:
10323
          self.success = []
8182 amar.kumar 10324
          (_etype189, _size186) = iprot.readListBegin()
10325
          for _i190 in xrange(_size186):
10326
            _elem191 = iprot.readI64();
10327
            self.success.append(_elem191)
6531 vikram.rag 10328
          iprot.readListEnd()
10329
        else:
10330
          iprot.skip(ftype)
10331
      else:
10332
        iprot.skip(ftype)
10333
      iprot.readFieldEnd()
10334
    iprot.readStructEnd()
10335
 
10336
  def write(self, oprot):
10337
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10338
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10339
      return
10340
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_result')
10341
    if self.success is not None:
10342
      oprot.writeFieldBegin('success', TType.LIST, 0)
10343
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 10344
      for iter192 in self.success:
10345
        oprot.writeI64(iter192)
6531 vikram.rag 10346
      oprot.writeListEnd()
10347
      oprot.writeFieldEnd()
10348
    oprot.writeFieldStop()
10349
    oprot.writeStructEnd()
10350
 
10351
  def validate(self):
10352
    return
10353
 
10354
 
10355
  def __repr__(self):
10356
    L = ['%s=%r' % (key, value)
10357
      for key, value in self.__dict__.iteritems()]
10358
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10359
 
10360
  def __eq__(self, other):
10361
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10362
 
10363
  def __ne__(self, other):
10364
    return not (self == other)
6821 amar.kumar 10365
 
10366
class updateItemStockPurchaseParams_args:
10367
  """
10368
  Attributes:
10369
   - item_id
10370
   - numOfDaysStock
10371
   - minStockLevel
10372
  """
10373
 
10374
  thrift_spec = (
10375
    None, # 0
10376
    (1, TType.I64, 'item_id', None, None, ), # 1
10377
    (2, TType.I32, 'numOfDaysStock', None, None, ), # 2
10378
    (3, TType.I64, 'minStockLevel', None, None, ), # 3
10379
  )
10380
 
10381
  def __init__(self, item_id=None, numOfDaysStock=None, minStockLevel=None,):
10382
    self.item_id = item_id
10383
    self.numOfDaysStock = numOfDaysStock
10384
    self.minStockLevel = minStockLevel
10385
 
10386
  def read(self, iprot):
10387
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10388
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10389
      return
10390
    iprot.readStructBegin()
10391
    while True:
10392
      (fname, ftype, fid) = iprot.readFieldBegin()
10393
      if ftype == TType.STOP:
10394
        break
10395
      if fid == 1:
10396
        if ftype == TType.I64:
10397
          self.item_id = iprot.readI64();
10398
        else:
10399
          iprot.skip(ftype)
10400
      elif fid == 2:
10401
        if ftype == TType.I32:
10402
          self.numOfDaysStock = iprot.readI32();
10403
        else:
10404
          iprot.skip(ftype)
10405
      elif fid == 3:
10406
        if ftype == TType.I64:
10407
          self.minStockLevel = iprot.readI64();
10408
        else:
10409
          iprot.skip(ftype)
10410
      else:
10411
        iprot.skip(ftype)
10412
      iprot.readFieldEnd()
10413
    iprot.readStructEnd()
10414
 
10415
  def write(self, oprot):
10416
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10417
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10418
      return
10419
    oprot.writeStructBegin('updateItemStockPurchaseParams_args')
10420
    if self.item_id is not None:
10421
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10422
      oprot.writeI64(self.item_id)
10423
      oprot.writeFieldEnd()
10424
    if self.numOfDaysStock is not None:
10425
      oprot.writeFieldBegin('numOfDaysStock', TType.I32, 2)
10426
      oprot.writeI32(self.numOfDaysStock)
10427
      oprot.writeFieldEnd()
10428
    if self.minStockLevel is not None:
10429
      oprot.writeFieldBegin('minStockLevel', TType.I64, 3)
10430
      oprot.writeI64(self.minStockLevel)
10431
      oprot.writeFieldEnd()
10432
    oprot.writeFieldStop()
10433
    oprot.writeStructEnd()
10434
 
10435
  def validate(self):
10436
    return
10437
 
10438
 
10439
  def __repr__(self):
10440
    L = ['%s=%r' % (key, value)
10441
      for key, value in self.__dict__.iteritems()]
10442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10443
 
10444
  def __eq__(self, other):
10445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10446
 
10447
  def __ne__(self, other):
10448
    return not (self == other)
10449
 
10450
class updateItemStockPurchaseParams_result:
10451
 
10452
  thrift_spec = (
10453
  )
10454
 
10455
  def read(self, iprot):
10456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10458
      return
10459
    iprot.readStructBegin()
10460
    while True:
10461
      (fname, ftype, fid) = iprot.readFieldBegin()
10462
      if ftype == TType.STOP:
10463
        break
10464
      else:
10465
        iprot.skip(ftype)
10466
      iprot.readFieldEnd()
10467
    iprot.readStructEnd()
10468
 
10469
  def write(self, oprot):
10470
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10471
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10472
      return
10473
    oprot.writeStructBegin('updateItemStockPurchaseParams_result')
10474
    oprot.writeFieldStop()
10475
    oprot.writeStructEnd()
10476
 
10477
  def validate(self):
10478
    return
10479
 
10480
 
10481
  def __repr__(self):
10482
    L = ['%s=%r' % (key, value)
10483
      for key, value in self.__dict__.iteritems()]
10484
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10485
 
10486
  def __eq__(self, other):
10487
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10488
 
10489
  def __ne__(self, other):
10490
    return not (self == other)
10491
 
10492
class getItemStockPurchaseParams_args:
10493
  """
10494
  Attributes:
10495
   - itemId
10496
  """
10497
 
10498
  thrift_spec = (
10499
    None, # 0
10500
    (1, TType.I64, 'itemId', None, None, ), # 1
10501
  )
10502
 
10503
  def __init__(self, itemId=None,):
10504
    self.itemId = itemId
10505
 
10506
  def read(self, iprot):
10507
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10508
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10509
      return
10510
    iprot.readStructBegin()
10511
    while True:
10512
      (fname, ftype, fid) = iprot.readFieldBegin()
10513
      if ftype == TType.STOP:
10514
        break
10515
      if fid == 1:
10516
        if ftype == TType.I64:
10517
          self.itemId = iprot.readI64();
10518
        else:
10519
          iprot.skip(ftype)
10520
      else:
10521
        iprot.skip(ftype)
10522
      iprot.readFieldEnd()
10523
    iprot.readStructEnd()
10524
 
10525
  def write(self, oprot):
10526
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10527
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10528
      return
10529
    oprot.writeStructBegin('getItemStockPurchaseParams_args')
10530
    if self.itemId is not None:
10531
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10532
      oprot.writeI64(self.itemId)
10533
      oprot.writeFieldEnd()
10534
    oprot.writeFieldStop()
10535
    oprot.writeStructEnd()
10536
 
10537
  def validate(self):
10538
    return
10539
 
10540
 
10541
  def __repr__(self):
10542
    L = ['%s=%r' % (key, value)
10543
      for key, value in self.__dict__.iteritems()]
10544
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10545
 
10546
  def __eq__(self, other):
10547
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10548
 
10549
  def __ne__(self, other):
10550
    return not (self == other)
10551
 
10552
class getItemStockPurchaseParams_result:
10553
  """
10554
  Attributes:
10555
   - success
10556
  """
10557
 
10558
  thrift_spec = (
10559
    (0, TType.STRUCT, 'success', (ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec), None, ), # 0
10560
  )
10561
 
10562
  def __init__(self, success=None,):
10563
    self.success = success
10564
 
10565
  def read(self, iprot):
10566
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10567
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10568
      return
10569
    iprot.readStructBegin()
10570
    while True:
10571
      (fname, ftype, fid) = iprot.readFieldBegin()
10572
      if ftype == TType.STOP:
10573
        break
10574
      if fid == 0:
10575
        if ftype == TType.STRUCT:
10576
          self.success = ItemStockPurchaseParams()
10577
          self.success.read(iprot)
10578
        else:
10579
          iprot.skip(ftype)
10580
      else:
10581
        iprot.skip(ftype)
10582
      iprot.readFieldEnd()
10583
    iprot.readStructEnd()
10584
 
10585
  def write(self, oprot):
10586
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10587
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10588
      return
10589
    oprot.writeStructBegin('getItemStockPurchaseParams_result')
10590
    if self.success is not None:
10591
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10592
      self.success.write(oprot)
10593
      oprot.writeFieldEnd()
10594
    oprot.writeFieldStop()
10595
    oprot.writeStructEnd()
10596
 
10597
  def validate(self):
10598
    return
10599
 
10600
 
10601
  def __repr__(self):
10602
    L = ['%s=%r' % (key, value)
10603
      for key, value in self.__dict__.iteritems()]
10604
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10605
 
10606
  def __eq__(self, other):
10607
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10608
 
10609
  def __ne__(self, other):
10610
    return not (self == other)
10611
 
10612
class addOosStatusForItem_args:
10613
  """
10614
  Attributes:
10615
   - oosStatusMap
10616
   - date
10617
  """
10618
 
10619
  thrift_spec = (
10620
    None, # 0
10621
    (1, TType.MAP, 'oosStatusMap', (TType.I64,None,TType.BOOL,None), None, ), # 1
10622
    (2, TType.I64, 'date', None, None, ), # 2
10623
  )
10624
 
10625
  def __init__(self, oosStatusMap=None, date=None,):
10626
    self.oosStatusMap = oosStatusMap
10627
    self.date = date
10628
 
10629
  def read(self, iprot):
10630
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10631
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10632
      return
10633
    iprot.readStructBegin()
10634
    while True:
10635
      (fname, ftype, fid) = iprot.readFieldBegin()
10636
      if ftype == TType.STOP:
10637
        break
10638
      if fid == 1:
10639
        if ftype == TType.MAP:
10640
          self.oosStatusMap = {}
8182 amar.kumar 10641
          (_ktype194, _vtype195, _size193 ) = iprot.readMapBegin() 
10642
          for _i197 in xrange(_size193):
10643
            _key198 = iprot.readI64();
10644
            _val199 = iprot.readBool();
10645
            self.oosStatusMap[_key198] = _val199
6821 amar.kumar 10646
          iprot.readMapEnd()
10647
        else:
10648
          iprot.skip(ftype)
10649
      elif fid == 2:
10650
        if ftype == TType.I64:
10651
          self.date = iprot.readI64();
10652
        else:
10653
          iprot.skip(ftype)
10654
      else:
10655
        iprot.skip(ftype)
10656
      iprot.readFieldEnd()
10657
    iprot.readStructEnd()
10658
 
10659
  def write(self, oprot):
10660
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10661
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10662
      return
10663
    oprot.writeStructBegin('addOosStatusForItem_args')
10664
    if self.oosStatusMap is not None:
10665
      oprot.writeFieldBegin('oosStatusMap', TType.MAP, 1)
10666
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.oosStatusMap))
8182 amar.kumar 10667
      for kiter200,viter201 in self.oosStatusMap.items():
10668
        oprot.writeI64(kiter200)
10669
        oprot.writeBool(viter201)
6821 amar.kumar 10670
      oprot.writeMapEnd()
10671
      oprot.writeFieldEnd()
10672
    if self.date is not None:
10673
      oprot.writeFieldBegin('date', TType.I64, 2)
10674
      oprot.writeI64(self.date)
10675
      oprot.writeFieldEnd()
10676
    oprot.writeFieldStop()
10677
    oprot.writeStructEnd()
10678
 
10679
  def validate(self):
10680
    return
10681
 
10682
 
10683
  def __repr__(self):
10684
    L = ['%s=%r' % (key, value)
10685
      for key, value in self.__dict__.iteritems()]
10686
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10687
 
10688
  def __eq__(self, other):
10689
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10690
 
10691
  def __ne__(self, other):
10692
    return not (self == other)
10693
 
10694
class addOosStatusForItem_result:
10695
 
10696
  thrift_spec = (
10697
  )
10698
 
10699
  def read(self, iprot):
10700
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10701
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10702
      return
10703
    iprot.readStructBegin()
10704
    while True:
10705
      (fname, ftype, fid) = iprot.readFieldBegin()
10706
      if ftype == TType.STOP:
10707
        break
10708
      else:
10709
        iprot.skip(ftype)
10710
      iprot.readFieldEnd()
10711
    iprot.readStructEnd()
10712
 
10713
  def write(self, oprot):
10714
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10715
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10716
      return
10717
    oprot.writeStructBegin('addOosStatusForItem_result')
10718
    oprot.writeFieldStop()
10719
    oprot.writeStructEnd()
10720
 
10721
  def validate(self):
10722
    return
10723
 
10724
 
10725
  def __repr__(self):
10726
    L = ['%s=%r' % (key, value)
10727
      for key, value in self.__dict__.iteritems()]
10728
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10729
 
10730
  def __eq__(self, other):
10731
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10732
 
10733
  def __ne__(self, other):
10734
    return not (self == other)
6832 amar.kumar 10735
 
10736
class getOosStatusesForXDaysForItem_args:
10737
  """
10738
  Attributes:
10739
   - itemId
9762 amar.kumar 10740
   - sourceId
6832 amar.kumar 10741
   - days
10742
  """
10743
 
10744
  thrift_spec = (
10745
    None, # 0
10746
    (1, TType.I64, 'itemId', None, None, ), # 1
9762 amar.kumar 10747
    (2, TType.I32, 'sourceId', None, None, ), # 2
10748
    (3, TType.I32, 'days', None, None, ), # 3
6832 amar.kumar 10749
  )
10750
 
9762 amar.kumar 10751
  def __init__(self, itemId=None, sourceId=None, days=None,):
6832 amar.kumar 10752
    self.itemId = itemId
9762 amar.kumar 10753
    self.sourceId = sourceId
6832 amar.kumar 10754
    self.days = days
10755
 
10756
  def read(self, iprot):
10757
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10758
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10759
      return
10760
    iprot.readStructBegin()
10761
    while True:
10762
      (fname, ftype, fid) = iprot.readFieldBegin()
10763
      if ftype == TType.STOP:
10764
        break
10765
      if fid == 1:
10766
        if ftype == TType.I64:
10767
          self.itemId = iprot.readI64();
10768
        else:
10769
          iprot.skip(ftype)
10770
      elif fid == 2:
10771
        if ftype == TType.I32:
9762 amar.kumar 10772
          self.sourceId = iprot.readI32();
10773
        else:
10774
          iprot.skip(ftype)
10775
      elif fid == 3:
10776
        if ftype == TType.I32:
6832 amar.kumar 10777
          self.days = iprot.readI32();
10778
        else:
10779
          iprot.skip(ftype)
10780
      else:
10781
        iprot.skip(ftype)
10782
      iprot.readFieldEnd()
10783
    iprot.readStructEnd()
10784
 
10785
  def write(self, oprot):
10786
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10787
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10788
      return
10789
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_args')
10790
    if self.itemId is not None:
10791
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10792
      oprot.writeI64(self.itemId)
10793
      oprot.writeFieldEnd()
9762 amar.kumar 10794
    if self.sourceId is not None:
10795
      oprot.writeFieldBegin('sourceId', TType.I32, 2)
10796
      oprot.writeI32(self.sourceId)
10797
      oprot.writeFieldEnd()
6832 amar.kumar 10798
    if self.days is not None:
9762 amar.kumar 10799
      oprot.writeFieldBegin('days', TType.I32, 3)
6832 amar.kumar 10800
      oprot.writeI32(self.days)
10801
      oprot.writeFieldEnd()
10802
    oprot.writeFieldStop()
10803
    oprot.writeStructEnd()
10804
 
10805
  def validate(self):
10806
    return
10807
 
10808
 
10809
  def __repr__(self):
10810
    L = ['%s=%r' % (key, value)
10811
      for key, value in self.__dict__.iteritems()]
10812
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10813
 
10814
  def __eq__(self, other):
10815
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10816
 
10817
  def __ne__(self, other):
10818
    return not (self == other)
10819
 
10820
class getOosStatusesForXDaysForItem_result:
10821
  """
10822
  Attributes:
10823
   - success
10824
  """
10825
 
10826
  thrift_spec = (
10827
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.thrift_spec)), None, ), # 0
10828
  )
10829
 
10830
  def __init__(self, success=None,):
10831
    self.success = success
10832
 
10833
  def read(self, iprot):
10834
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10835
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10836
      return
10837
    iprot.readStructBegin()
10838
    while True:
10839
      (fname, ftype, fid) = iprot.readFieldBegin()
10840
      if ftype == TType.STOP:
10841
        break
10842
      if fid == 0:
10843
        if ftype == TType.LIST:
10844
          self.success = []
8182 amar.kumar 10845
          (_etype205, _size202) = iprot.readListBegin()
10846
          for _i206 in xrange(_size202):
10847
            _elem207 = OOSStatus()
10848
            _elem207.read(iprot)
10849
            self.success.append(_elem207)
6832 amar.kumar 10850
          iprot.readListEnd()
10851
        else:
10852
          iprot.skip(ftype)
10853
      else:
10854
        iprot.skip(ftype)
10855
      iprot.readFieldEnd()
10856
    iprot.readStructEnd()
10857
 
10858
  def write(self, oprot):
10859
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10860
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10861
      return
10862
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_result')
10863
    if self.success is not None:
10864
      oprot.writeFieldBegin('success', TType.LIST, 0)
10865
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10866
      for iter208 in self.success:
10867
        iter208.write(oprot)
6832 amar.kumar 10868
      oprot.writeListEnd()
10869
      oprot.writeFieldEnd()
10870
    oprot.writeFieldStop()
10871
    oprot.writeStructEnd()
10872
 
10873
  def validate(self):
10874
    return
10875
 
10876
 
10877
  def __repr__(self):
10878
    L = ['%s=%r' % (key, value)
10879
      for key, value in self.__dict__.iteritems()]
10880
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10881
 
10882
  def __eq__(self, other):
10883
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10884
 
10885
  def __ne__(self, other):
10886
    return not (self == other)
6857 amar.kumar 10887
 
10126 amar.kumar 10888
class getOosStatusesForXDays_args:
10889
  """
10890
  Attributes:
10891
   - sourceId
10892
   - days
10893
  """
6857 amar.kumar 10894
 
10895
  thrift_spec = (
10126 amar.kumar 10896
    None, # 0
10897
    (1, TType.I32, 'sourceId', None, None, ), # 1
10898
    (2, TType.I32, 'days', None, None, ), # 2
6857 amar.kumar 10899
  )
10900
 
10126 amar.kumar 10901
  def __init__(self, sourceId=None, days=None,):
10902
    self.sourceId = sourceId
10903
    self.days = days
10904
 
6857 amar.kumar 10905
  def read(self, iprot):
10906
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10907
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10908
      return
10909
    iprot.readStructBegin()
10910
    while True:
10911
      (fname, ftype, fid) = iprot.readFieldBegin()
10912
      if ftype == TType.STOP:
10913
        break
10126 amar.kumar 10914
      if fid == 1:
10915
        if ftype == TType.I32:
10916
          self.sourceId = iprot.readI32();
10917
        else:
10918
          iprot.skip(ftype)
10919
      elif fid == 2:
10920
        if ftype == TType.I32:
10921
          self.days = iprot.readI32();
10922
        else:
10923
          iprot.skip(ftype)
6857 amar.kumar 10924
      else:
10925
        iprot.skip(ftype)
10926
      iprot.readFieldEnd()
10927
    iprot.readStructEnd()
10928
 
10929
  def write(self, oprot):
10930
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10931
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10932
      return
10126 amar.kumar 10933
    oprot.writeStructBegin('getOosStatusesForXDays_args')
10934
    if self.sourceId is not None:
10935
      oprot.writeFieldBegin('sourceId', TType.I32, 1)
10936
      oprot.writeI32(self.sourceId)
10937
      oprot.writeFieldEnd()
10938
    if self.days is not None:
10939
      oprot.writeFieldBegin('days', TType.I32, 2)
10940
      oprot.writeI32(self.days)
10941
      oprot.writeFieldEnd()
6857 amar.kumar 10942
    oprot.writeFieldStop()
10943
    oprot.writeStructEnd()
10944
 
10945
  def validate(self):
10946
    return
10947
 
10948
 
10949
  def __repr__(self):
10950
    L = ['%s=%r' % (key, value)
10951
      for key, value in self.__dict__.iteritems()]
10952
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10953
 
10954
  def __eq__(self, other):
10955
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10956
 
10957
  def __ne__(self, other):
10958
    return not (self == other)
10959
 
10126 amar.kumar 10960
class getOosStatusesForXDays_result:
6857 amar.kumar 10961
  """
10962
  Attributes:
10963
   - success
10964
  """
10965
 
10966
  thrift_spec = (
10126 amar.kumar 10967
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.thrift_spec)), None, ), # 0
6857 amar.kumar 10968
  )
10969
 
10970
  def __init__(self, success=None,):
10971
    self.success = success
10972
 
10973
  def read(self, iprot):
10974
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10975
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10976
      return
10977
    iprot.readStructBegin()
10978
    while True:
10979
      (fname, ftype, fid) = iprot.readFieldBegin()
10980
      if ftype == TType.STOP:
10981
        break
10982
      if fid == 0:
10983
        if ftype == TType.LIST:
10984
          self.success = []
8182 amar.kumar 10985
          (_etype212, _size209) = iprot.readListBegin()
10986
          for _i213 in xrange(_size209):
10126 amar.kumar 10987
            _elem214 = OOSStatus()
8182 amar.kumar 10988
            _elem214.read(iprot)
10989
            self.success.append(_elem214)
6857 amar.kumar 10990
          iprot.readListEnd()
10991
        else:
10992
          iprot.skip(ftype)
10993
      else:
10994
        iprot.skip(ftype)
10995
      iprot.readFieldEnd()
10996
    iprot.readStructEnd()
10997
 
10998
  def write(self, oprot):
10999
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11000
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11001
      return
10126 amar.kumar 11002
    oprot.writeStructBegin('getOosStatusesForXDays_result')
6857 amar.kumar 11003
    if self.success is not None:
11004
      oprot.writeFieldBegin('success', TType.LIST, 0)
11005
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 11006
      for iter215 in self.success:
11007
        iter215.write(oprot)
6857 amar.kumar 11008
      oprot.writeListEnd()
11009
      oprot.writeFieldEnd()
11010
    oprot.writeFieldStop()
11011
    oprot.writeStructEnd()
11012
 
11013
  def validate(self):
11014
    return
11015
 
11016
 
11017
  def __repr__(self):
11018
    L = ['%s=%r' % (key, value)
11019
      for key, value in self.__dict__.iteritems()]
11020
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11021
 
11022
  def __eq__(self, other):
11023
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11024
 
11025
  def __ne__(self, other):
11026
    return not (self == other)
7149 amar.kumar 11027
 
10126 amar.kumar 11028
class getAllVendorItemPricing_args:
11029
  """
11030
  Attributes:
11031
   - itemId
11032
   - vendorId
11033
  """
7149 amar.kumar 11034
 
11035
  thrift_spec = (
10126 amar.kumar 11036
    None, # 0
11037
    (1, TType.I64, 'itemId', None, None, ), # 1
11038
    (2, TType.I64, 'vendorId', None, None, ), # 2
7149 amar.kumar 11039
  )
11040
 
10126 amar.kumar 11041
  def __init__(self, itemId=None, vendorId=None,):
11042
    self.itemId = itemId
11043
    self.vendorId = vendorId
11044
 
7149 amar.kumar 11045
  def read(self, iprot):
11046
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11047
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11048
      return
11049
    iprot.readStructBegin()
11050
    while True:
11051
      (fname, ftype, fid) = iprot.readFieldBegin()
11052
      if ftype == TType.STOP:
11053
        break
10126 amar.kumar 11054
      if fid == 1:
11055
        if ftype == TType.I64:
11056
          self.itemId = iprot.readI64();
11057
        else:
11058
          iprot.skip(ftype)
11059
      elif fid == 2:
11060
        if ftype == TType.I64:
11061
          self.vendorId = iprot.readI64();
11062
        else:
11063
          iprot.skip(ftype)
7149 amar.kumar 11064
      else:
11065
        iprot.skip(ftype)
11066
      iprot.readFieldEnd()
11067
    iprot.readStructEnd()
11068
 
11069
  def write(self, oprot):
11070
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11071
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11072
      return
10126 amar.kumar 11073
    oprot.writeStructBegin('getAllVendorItemPricing_args')
11074
    if self.itemId is not None:
11075
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11076
      oprot.writeI64(self.itemId)
11077
      oprot.writeFieldEnd()
11078
    if self.vendorId is not None:
11079
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
11080
      oprot.writeI64(self.vendorId)
11081
      oprot.writeFieldEnd()
7149 amar.kumar 11082
    oprot.writeFieldStop()
11083
    oprot.writeStructEnd()
11084
 
11085
  def validate(self):
11086
    return
11087
 
11088
 
11089
  def __repr__(self):
11090
    L = ['%s=%r' % (key, value)
11091
      for key, value in self.__dict__.iteritems()]
11092
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11093
 
11094
  def __eq__(self, other):
11095
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11096
 
11097
  def __ne__(self, other):
11098
    return not (self == other)
11099
 
10126 amar.kumar 11100
class getAllVendorItemPricing_result:
7149 amar.kumar 11101
  """
11102
  Attributes:
11103
   - success
11104
  """
11105
 
11106
  thrift_spec = (
10126 amar.kumar 11107
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
7149 amar.kumar 11108
  )
11109
 
11110
  def __init__(self, success=None,):
11111
    self.success = success
11112
 
11113
  def read(self, iprot):
11114
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11115
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11116
      return
11117
    iprot.readStructBegin()
11118
    while True:
11119
      (fname, ftype, fid) = iprot.readFieldBegin()
11120
      if ftype == TType.STOP:
11121
        break
11122
      if fid == 0:
11123
        if ftype == TType.LIST:
11124
          self.success = []
8182 amar.kumar 11125
          (_etype219, _size216) = iprot.readListBegin()
11126
          for _i220 in xrange(_size216):
10126 amar.kumar 11127
            _elem221 = VendorItemPricing()
8182 amar.kumar 11128
            _elem221.read(iprot)
11129
            self.success.append(_elem221)
7149 amar.kumar 11130
          iprot.readListEnd()
11131
        else:
11132
          iprot.skip(ftype)
11133
      else:
11134
        iprot.skip(ftype)
11135
      iprot.readFieldEnd()
11136
    iprot.readStructEnd()
11137
 
11138
  def write(self, oprot):
11139
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11140
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11141
      return
10126 amar.kumar 11142
    oprot.writeStructBegin('getAllVendorItemPricing_result')
7149 amar.kumar 11143
    if self.success is not None:
11144
      oprot.writeFieldBegin('success', TType.LIST, 0)
11145
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 11146
      for iter222 in self.success:
11147
        iter222.write(oprot)
7149 amar.kumar 11148
      oprot.writeListEnd()
11149
      oprot.writeFieldEnd()
11150
    oprot.writeFieldStop()
11151
    oprot.writeStructEnd()
11152
 
11153
  def validate(self):
11154
    return
11155
 
11156
 
11157
  def __repr__(self):
11158
    L = ['%s=%r' % (key, value)
11159
      for key, value in self.__dict__.iteritems()]
11160
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11161
 
11162
  def __eq__(self, other):
11163
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11164
 
11165
  def __ne__(self, other):
11166
    return not (self == other)
7281 kshitij.so 11167
 
10126 amar.kumar 11168
class getNonZeroItemStockPurchaseParams_args:
11169
 
11170
  thrift_spec = (
11171
  )
11172
 
11173
  def read(self, iprot):
11174
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11175
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11176
      return
11177
    iprot.readStructBegin()
11178
    while True:
11179
      (fname, ftype, fid) = iprot.readFieldBegin()
11180
      if ftype == TType.STOP:
11181
        break
11182
      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
11191
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_args')
11192
    oprot.writeFieldStop()
11193
    oprot.writeStructEnd()
11194
 
11195
  def validate(self):
11196
    return
11197
 
11198
 
11199
  def __repr__(self):
11200
    L = ['%s=%r' % (key, value)
11201
      for key, value in self.__dict__.iteritems()]
11202
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11203
 
11204
  def __eq__(self, other):
11205
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11206
 
11207
  def __ne__(self, other):
11208
    return not (self == other)
11209
 
11210
class getNonZeroItemStockPurchaseParams_result:
11211
  """
11212
  Attributes:
11213
   - success
11214
  """
11215
 
11216
  thrift_spec = (
11217
    (0, TType.LIST, 'success', (TType.STRUCT,(ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec)), None, ), # 0
11218
  )
11219
 
11220
  def __init__(self, success=None,):
11221
    self.success = success
11222
 
11223
  def read(self, iprot):
11224
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11225
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11226
      return
11227
    iprot.readStructBegin()
11228
    while True:
11229
      (fname, ftype, fid) = iprot.readFieldBegin()
11230
      if ftype == TType.STOP:
11231
        break
11232
      if fid == 0:
11233
        if ftype == TType.LIST:
11234
          self.success = []
11235
          (_etype226, _size223) = iprot.readListBegin()
11236
          for _i227 in xrange(_size223):
11237
            _elem228 = ItemStockPurchaseParams()
11238
            _elem228.read(iprot)
11239
            self.success.append(_elem228)
11240
          iprot.readListEnd()
11241
        else:
11242
          iprot.skip(ftype)
11243
      else:
11244
        iprot.skip(ftype)
11245
      iprot.readFieldEnd()
11246
    iprot.readStructEnd()
11247
 
11248
  def write(self, oprot):
11249
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11250
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11251
      return
11252
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_result')
11253
    if self.success is not None:
11254
      oprot.writeFieldBegin('success', TType.LIST, 0)
11255
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11256
      for iter229 in self.success:
11257
        iter229.write(oprot)
11258
      oprot.writeListEnd()
11259
      oprot.writeFieldEnd()
11260
    oprot.writeFieldStop()
11261
    oprot.writeStructEnd()
11262
 
11263
  def validate(self):
11264
    return
11265
 
11266
 
11267
  def __repr__(self):
11268
    L = ['%s=%r' % (key, value)
11269
      for key, value in self.__dict__.iteritems()]
11270
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11271
 
11272
  def __eq__(self, other):
11273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11274
 
11275
  def __ne__(self, other):
11276
    return not (self == other)
11277
 
11278
class getBillableInventoryAndPendingOrders_args:
11279
 
11280
  thrift_spec = (
11281
  )
11282
 
11283
  def read(self, iprot):
11284
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11285
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11286
      return
11287
    iprot.readStructBegin()
11288
    while True:
11289
      (fname, ftype, fid) = iprot.readFieldBegin()
11290
      if ftype == TType.STOP:
11291
        break
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('getBillableInventoryAndPendingOrders_args')
11302
    oprot.writeFieldStop()
11303
    oprot.writeStructEnd()
11304
 
11305
  def validate(self):
11306
    return
11307
 
11308
 
11309
  def __repr__(self):
11310
    L = ['%s=%r' % (key, value)
11311
      for key, value in self.__dict__.iteritems()]
11312
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11313
 
11314
  def __eq__(self, other):
11315
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11316
 
11317
  def __ne__(self, other):
11318
    return not (self == other)
11319
 
11320
class getBillableInventoryAndPendingOrders_result:
11321
  """
11322
  Attributes:
11323
   - success
11324
  """
11325
 
11326
  thrift_spec = (
11327
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
11328
  )
11329
 
11330
  def __init__(self, success=None,):
11331
    self.success = success
11332
 
11333
  def read(self, iprot):
11334
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11335
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11336
      return
11337
    iprot.readStructBegin()
11338
    while True:
11339
      (fname, ftype, fid) = iprot.readFieldBegin()
11340
      if ftype == TType.STOP:
11341
        break
11342
      if fid == 0:
11343
        if ftype == TType.LIST:
11344
          self.success = []
11345
          (_etype233, _size230) = iprot.readListBegin()
11346
          for _i234 in xrange(_size230):
11347
            _elem235 = AvailableAndReservedStock()
11348
            _elem235.read(iprot)
11349
            self.success.append(_elem235)
11350
          iprot.readListEnd()
11351
        else:
11352
          iprot.skip(ftype)
11353
      else:
11354
        iprot.skip(ftype)
11355
      iprot.readFieldEnd()
11356
    iprot.readStructEnd()
11357
 
11358
  def write(self, oprot):
11359
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11360
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11361
      return
11362
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_result')
11363
    if self.success is not None:
11364
      oprot.writeFieldBegin('success', TType.LIST, 0)
11365
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11366
      for iter236 in self.success:
11367
        iter236.write(oprot)
11368
      oprot.writeListEnd()
11369
      oprot.writeFieldEnd()
11370
    oprot.writeFieldStop()
11371
    oprot.writeStructEnd()
11372
 
11373
  def validate(self):
11374
    return
11375
 
11376
 
11377
  def __repr__(self):
11378
    L = ['%s=%r' % (key, value)
11379
      for key, value in self.__dict__.iteritems()]
11380
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11381
 
11382
  def __eq__(self, other):
11383
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11384
 
11385
  def __ne__(self, other):
11386
    return not (self == other)
11387
 
7281 kshitij.so 11388
class getWarehouseName_args:
11389
  """
11390
  Attributes:
11391
   - warehouse_id
11392
  """
11393
 
11394
  thrift_spec = (
11395
    None, # 0
11396
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
11397
  )
11398
 
11399
  def __init__(self, warehouse_id=None,):
11400
    self.warehouse_id = warehouse_id
11401
 
11402
  def read(self, iprot):
11403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11405
      return
11406
    iprot.readStructBegin()
11407
    while True:
11408
      (fname, ftype, fid) = iprot.readFieldBegin()
11409
      if ftype == TType.STOP:
11410
        break
11411
      if fid == 1:
11412
        if ftype == TType.I64:
11413
          self.warehouse_id = iprot.readI64();
11414
        else:
11415
          iprot.skip(ftype)
11416
      else:
11417
        iprot.skip(ftype)
11418
      iprot.readFieldEnd()
11419
    iprot.readStructEnd()
11420
 
11421
  def write(self, oprot):
11422
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11423
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11424
      return
11425
    oprot.writeStructBegin('getWarehouseName_args')
11426
    if self.warehouse_id is not None:
11427
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
11428
      oprot.writeI64(self.warehouse_id)
11429
      oprot.writeFieldEnd()
11430
    oprot.writeFieldStop()
11431
    oprot.writeStructEnd()
11432
 
11433
  def validate(self):
11434
    return
11435
 
11436
 
11437
  def __repr__(self):
11438
    L = ['%s=%r' % (key, value)
11439
      for key, value in self.__dict__.iteritems()]
11440
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11441
 
11442
  def __eq__(self, other):
11443
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11444
 
11445
  def __ne__(self, other):
11446
    return not (self == other)
11447
 
11448
class getWarehouseName_result:
11449
  """
11450
  Attributes:
11451
   - success
11452
  """
11453
 
11454
  thrift_spec = (
11455
    (0, TType.STRING, 'success', None, None, ), # 0
11456
  )
11457
 
11458
  def __init__(self, success=None,):
11459
    self.success = success
11460
 
11461
  def read(self, iprot):
11462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11464
      return
11465
    iprot.readStructBegin()
11466
    while True:
11467
      (fname, ftype, fid) = iprot.readFieldBegin()
11468
      if ftype == TType.STOP:
11469
        break
11470
      if fid == 0:
11471
        if ftype == TType.STRING:
11472
          self.success = iprot.readString();
11473
        else:
11474
          iprot.skip(ftype)
11475
      else:
11476
        iprot.skip(ftype)
11477
      iprot.readFieldEnd()
11478
    iprot.readStructEnd()
11479
 
11480
  def write(self, oprot):
11481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11483
      return
11484
    oprot.writeStructBegin('getWarehouseName_result')
11485
    if self.success is not None:
11486
      oprot.writeFieldBegin('success', TType.STRING, 0)
11487
      oprot.writeString(self.success)
11488
      oprot.writeFieldEnd()
11489
    oprot.writeFieldStop()
11490
    oprot.writeStructEnd()
11491
 
11492
  def validate(self):
11493
    return
11494
 
11495
 
11496
  def __repr__(self):
11497
    L = ['%s=%r' % (key, value)
11498
      for key, value in self.__dict__.iteritems()]
11499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11500
 
11501
  def __eq__(self, other):
11502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11503
 
11504
  def __ne__(self, other):
11505
    return not (self == other)
11506
 
11507
class getAmazonInventoryForItem_args:
11508
  """
11509
  Attributes:
11510
   - item_id
11511
  """
11512
 
11513
  thrift_spec = (
11514
    None, # 0
11515
    (1, TType.I64, 'item_id', None, None, ), # 1
11516
  )
11517
 
11518
  def __init__(self, item_id=None,):
11519
    self.item_id = item_id
11520
 
11521
  def read(self, iprot):
11522
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11523
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11524
      return
11525
    iprot.readStructBegin()
11526
    while True:
11527
      (fname, ftype, fid) = iprot.readFieldBegin()
11528
      if ftype == TType.STOP:
11529
        break
11530
      if fid == 1:
11531
        if ftype == TType.I64:
11532
          self.item_id = iprot.readI64();
11533
        else:
11534
          iprot.skip(ftype)
11535
      else:
11536
        iprot.skip(ftype)
11537
      iprot.readFieldEnd()
11538
    iprot.readStructEnd()
11539
 
11540
  def write(self, oprot):
11541
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11542
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11543
      return
11544
    oprot.writeStructBegin('getAmazonInventoryForItem_args')
11545
    if self.item_id is not None:
11546
      oprot.writeFieldBegin('item_id', TType.I64, 1)
11547
      oprot.writeI64(self.item_id)
11548
      oprot.writeFieldEnd()
11549
    oprot.writeFieldStop()
11550
    oprot.writeStructEnd()
11551
 
11552
  def validate(self):
11553
    return
11554
 
11555
 
11556
  def __repr__(self):
11557
    L = ['%s=%r' % (key, value)
11558
      for key, value in self.__dict__.iteritems()]
11559
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11560
 
11561
  def __eq__(self, other):
11562
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11563
 
11564
  def __ne__(self, other):
11565
    return not (self == other)
11566
 
11567
class getAmazonInventoryForItem_result:
11568
  """
11569
  Attributes:
11570
   - success
11571
  """
11572
 
11573
  thrift_spec = (
11574
    (0, TType.STRUCT, 'success', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 0
11575
  )
11576
 
11577
  def __init__(self, success=None,):
11578
    self.success = success
11579
 
11580
  def read(self, iprot):
11581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11583
      return
11584
    iprot.readStructBegin()
11585
    while True:
11586
      (fname, ftype, fid) = iprot.readFieldBegin()
11587
      if ftype == TType.STOP:
11588
        break
11589
      if fid == 0:
11590
        if ftype == TType.STRUCT:
11591
          self.success = AmazonInventorySnapshot()
11592
          self.success.read(iprot)
11593
        else:
11594
          iprot.skip(ftype)
11595
      else:
11596
        iprot.skip(ftype)
11597
      iprot.readFieldEnd()
11598
    iprot.readStructEnd()
11599
 
11600
  def write(self, oprot):
11601
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11602
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11603
      return
11604
    oprot.writeStructBegin('getAmazonInventoryForItem_result')
11605
    if self.success is not None:
11606
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11607
      self.success.write(oprot)
11608
      oprot.writeFieldEnd()
11609
    oprot.writeFieldStop()
11610
    oprot.writeStructEnd()
11611
 
11612
  def validate(self):
11613
    return
11614
 
11615
 
11616
  def __repr__(self):
11617
    L = ['%s=%r' % (key, value)
11618
      for key, value in self.__dict__.iteritems()]
11619
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11620
 
11621
  def __eq__(self, other):
11622
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11623
 
11624
  def __ne__(self, other):
11625
    return not (self == other)
11626
 
11627
class getAllAmazonInventory_args:
11628
 
11629
  thrift_spec = (
11630
  )
11631
 
11632
  def read(self, iprot):
11633
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11634
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11635
      return
11636
    iprot.readStructBegin()
11637
    while True:
11638
      (fname, ftype, fid) = iprot.readFieldBegin()
11639
      if ftype == TType.STOP:
11640
        break
11641
      else:
11642
        iprot.skip(ftype)
11643
      iprot.readFieldEnd()
11644
    iprot.readStructEnd()
11645
 
11646
  def write(self, oprot):
11647
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11648
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11649
      return
11650
    oprot.writeStructBegin('getAllAmazonInventory_args')
11651
    oprot.writeFieldStop()
11652
    oprot.writeStructEnd()
11653
 
11654
  def validate(self):
11655
    return
11656
 
11657
 
11658
  def __repr__(self):
11659
    L = ['%s=%r' % (key, value)
11660
      for key, value in self.__dict__.iteritems()]
11661
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11662
 
11663
  def __eq__(self, other):
11664
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11665
 
11666
  def __ne__(self, other):
11667
    return not (self == other)
11668
 
11669
class getAllAmazonInventory_result:
11670
  """
11671
  Attributes:
11672
   - success
11673
  """
11674
 
11675
  thrift_spec = (
11676
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec)), None, ), # 0
11677
  )
11678
 
11679
  def __init__(self, success=None,):
11680
    self.success = success
11681
 
11682
  def read(self, iprot):
11683
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11684
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11685
      return
11686
    iprot.readStructBegin()
11687
    while True:
11688
      (fname, ftype, fid) = iprot.readFieldBegin()
11689
      if ftype == TType.STOP:
11690
        break
11691
      if fid == 0:
11692
        if ftype == TType.LIST:
11693
          self.success = []
10126 amar.kumar 11694
          (_etype240, _size237) = iprot.readListBegin()
11695
          for _i241 in xrange(_size237):
11696
            _elem242 = AmazonInventorySnapshot()
11697
            _elem242.read(iprot)
11698
            self.success.append(_elem242)
7281 kshitij.so 11699
          iprot.readListEnd()
11700
        else:
11701
          iprot.skip(ftype)
11702
      else:
11703
        iprot.skip(ftype)
11704
      iprot.readFieldEnd()
11705
    iprot.readStructEnd()
11706
 
11707
  def write(self, oprot):
11708
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11709
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11710
      return
11711
    oprot.writeStructBegin('getAllAmazonInventory_result')
11712
    if self.success is not None:
11713
      oprot.writeFieldBegin('success', TType.LIST, 0)
11714
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10126 amar.kumar 11715
      for iter243 in self.success:
11716
        iter243.write(oprot)
7281 kshitij.so 11717
      oprot.writeListEnd()
11718
      oprot.writeFieldEnd()
11719
    oprot.writeFieldStop()
11720
    oprot.writeStructEnd()
11721
 
11722
  def validate(self):
11723
    return
11724
 
11725
 
11726
  def __repr__(self):
11727
    L = ['%s=%r' % (key, value)
11728
      for key, value in self.__dict__.iteritems()]
11729
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11730
 
11731
  def __eq__(self, other):
11732
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11733
 
11734
  def __ne__(self, other):
11735
    return not (self == other)
11736
 
11737
class addOrUpdateAmazonInventoryForItem_args:
11738
  """
11739
  Attributes:
11740
   - amazonInventorySnapshot
10450 vikram.rag 11741
   - time
7281 kshitij.so 11742
  """
11743
 
11744
  thrift_spec = (
11745
    None, # 0
11746
    (1, TType.STRUCT, 'amazonInventorySnapshot', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 1
10450 vikram.rag 11747
    (2, TType.I64, 'time', None, None, ), # 2
7281 kshitij.so 11748
  )
11749
 
10450 vikram.rag 11750
  def __init__(self, amazonInventorySnapshot=None, time=None,):
7281 kshitij.so 11751
    self.amazonInventorySnapshot = amazonInventorySnapshot
10450 vikram.rag 11752
    self.time = time
7281 kshitij.so 11753
 
11754
  def read(self, iprot):
11755
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11756
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11757
      return
11758
    iprot.readStructBegin()
11759
    while True:
11760
      (fname, ftype, fid) = iprot.readFieldBegin()
11761
      if ftype == TType.STOP:
11762
        break
11763
      if fid == 1:
11764
        if ftype == TType.STRUCT:
11765
          self.amazonInventorySnapshot = AmazonInventorySnapshot()
11766
          self.amazonInventorySnapshot.read(iprot)
11767
        else:
11768
          iprot.skip(ftype)
10450 vikram.rag 11769
      elif fid == 2:
11770
        if ftype == TType.I64:
11771
          self.time = iprot.readI64();
11772
        else:
11773
          iprot.skip(ftype)
7281 kshitij.so 11774
      else:
11775
        iprot.skip(ftype)
11776
      iprot.readFieldEnd()
11777
    iprot.readStructEnd()
11778
 
11779
  def write(self, oprot):
11780
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11781
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11782
      return
11783
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_args')
11784
    if self.amazonInventorySnapshot is not None:
11785
      oprot.writeFieldBegin('amazonInventorySnapshot', TType.STRUCT, 1)
11786
      self.amazonInventorySnapshot.write(oprot)
11787
      oprot.writeFieldEnd()
10450 vikram.rag 11788
    if self.time is not None:
11789
      oprot.writeFieldBegin('time', TType.I64, 2)
11790
      oprot.writeI64(self.time)
11791
      oprot.writeFieldEnd()
7281 kshitij.so 11792
    oprot.writeFieldStop()
11793
    oprot.writeStructEnd()
11794
 
11795
  def validate(self):
11796
    return
11797
 
11798
 
11799
  def __repr__(self):
11800
    L = ['%s=%r' % (key, value)
11801
      for key, value in self.__dict__.iteritems()]
11802
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11803
 
11804
  def __eq__(self, other):
11805
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11806
 
11807
  def __ne__(self, other):
11808
    return not (self == other)
11809
 
11810
class addOrUpdateAmazonInventoryForItem_result:
11811
 
11812
  thrift_spec = (
11813
  )
11814
 
11815
  def read(self, iprot):
11816
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11817
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11818
      return
11819
    iprot.readStructBegin()
11820
    while True:
11821
      (fname, ftype, fid) = iprot.readFieldBegin()
11822
      if ftype == TType.STOP:
11823
        break
11824
      else:
11825
        iprot.skip(ftype)
11826
      iprot.readFieldEnd()
11827
    iprot.readStructEnd()
11828
 
11829
  def write(self, oprot):
11830
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11831
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11832
      return
11833
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_result')
11834
    oprot.writeFieldStop()
11835
    oprot.writeStructEnd()
11836
 
11837
  def validate(self):
11838
    return
11839
 
11840
 
11841
  def __repr__(self):
11842
    L = ['%s=%r' % (key, value)
11843
      for key, value in self.__dict__.iteritems()]
11844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11845
 
11846
  def __eq__(self, other):
11847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11848
 
11849
  def __ne__(self, other):
11850
    return not (self == other)
7972 amar.kumar 11851
 
11852
class getLastNdaySaleForItem_args:
11853
  """
11854
  Attributes:
11855
   - itemId
11856
   - numberOfDays
11857
  """
11858
 
11859
  thrift_spec = (
11860
    None, # 0
11861
    (1, TType.I64, 'itemId', None, None, ), # 1
11862
    (2, TType.I64, 'numberOfDays', None, None, ), # 2
11863
  )
11864
 
11865
  def __init__(self, itemId=None, numberOfDays=None,):
11866
    self.itemId = itemId
11867
    self.numberOfDays = numberOfDays
11868
 
11869
  def read(self, iprot):
11870
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11871
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11872
      return
11873
    iprot.readStructBegin()
11874
    while True:
11875
      (fname, ftype, fid) = iprot.readFieldBegin()
11876
      if ftype == TType.STOP:
11877
        break
11878
      if fid == 1:
11879
        if ftype == TType.I64:
11880
          self.itemId = iprot.readI64();
11881
        else:
11882
          iprot.skip(ftype)
11883
      elif fid == 2:
11884
        if ftype == TType.I64:
11885
          self.numberOfDays = iprot.readI64();
11886
        else:
11887
          iprot.skip(ftype)
11888
      else:
11889
        iprot.skip(ftype)
11890
      iprot.readFieldEnd()
11891
    iprot.readStructEnd()
11892
 
11893
  def write(self, oprot):
11894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11896
      return
11897
    oprot.writeStructBegin('getLastNdaySaleForItem_args')
11898
    if self.itemId is not None:
11899
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11900
      oprot.writeI64(self.itemId)
11901
      oprot.writeFieldEnd()
11902
    if self.numberOfDays is not None:
11903
      oprot.writeFieldBegin('numberOfDays', TType.I64, 2)
11904
      oprot.writeI64(self.numberOfDays)
11905
      oprot.writeFieldEnd()
11906
    oprot.writeFieldStop()
11907
    oprot.writeStructEnd()
11908
 
11909
  def validate(self):
11910
    return
11911
 
11912
 
11913
  def __repr__(self):
11914
    L = ['%s=%r' % (key, value)
11915
      for key, value in self.__dict__.iteritems()]
11916
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11917
 
11918
  def __eq__(self, other):
11919
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11920
 
11921
  def __ne__(self, other):
11922
    return not (self == other)
11923
 
11924
class getLastNdaySaleForItem_result:
11925
  """
11926
  Attributes:
11927
   - success
11928
  """
11929
 
11930
  thrift_spec = (
11931
    (0, TType.STRING, 'success', None, None, ), # 0
11932
  )
11933
 
11934
  def __init__(self, success=None,):
11935
    self.success = success
11936
 
11937
  def read(self, iprot):
11938
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11939
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11940
      return
11941
    iprot.readStructBegin()
11942
    while True:
11943
      (fname, ftype, fid) = iprot.readFieldBegin()
11944
      if ftype == TType.STOP:
11945
        break
11946
      if fid == 0:
11947
        if ftype == TType.STRING:
11948
          self.success = iprot.readString();
11949
        else:
11950
          iprot.skip(ftype)
11951
      else:
11952
        iprot.skip(ftype)
11953
      iprot.readFieldEnd()
11954
    iprot.readStructEnd()
11955
 
11956
  def write(self, oprot):
11957
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11958
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11959
      return
11960
    oprot.writeStructBegin('getLastNdaySaleForItem_result')
11961
    if self.success is not None:
11962
      oprot.writeFieldBegin('success', TType.STRING, 0)
11963
      oprot.writeString(self.success)
11964
      oprot.writeFieldEnd()
11965
    oprot.writeFieldStop()
11966
    oprot.writeStructEnd()
11967
 
11968
  def validate(self):
11969
    return
11970
 
11971
 
11972
  def __repr__(self):
11973
    L = ['%s=%r' % (key, value)
11974
      for key, value in self.__dict__.iteritems()]
11975
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11976
 
11977
  def __eq__(self, other):
11978
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11979
 
11980
  def __ne__(self, other):
11981
    return not (self == other)
8182 amar.kumar 11982
 
8282 kshitij.so 11983
class addOrUpdateAmazonFbaInventory_args:
11984
  """
11985
  Attributes:
11986
   - amazonfbainventorysnapshot
11987
  """
11988
 
11989
  thrift_spec = (
11990
    None, # 0
11991
    (1, TType.STRUCT, 'amazonfbainventorysnapshot', (AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec), None, ), # 1
11992
  )
11993
 
11994
  def __init__(self, amazonfbainventorysnapshot=None,):
11995
    self.amazonfbainventorysnapshot = amazonfbainventorysnapshot
11996
 
11997
  def read(self, iprot):
11998
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11999
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12000
      return
12001
    iprot.readStructBegin()
12002
    while True:
12003
      (fname, ftype, fid) = iprot.readFieldBegin()
12004
      if ftype == TType.STOP:
12005
        break
12006
      if fid == 1:
12007
        if ftype == TType.STRUCT:
12008
          self.amazonfbainventorysnapshot = AmazonFbaInventorySnapshot()
12009
          self.amazonfbainventorysnapshot.read(iprot)
12010
        else:
12011
          iprot.skip(ftype)
12012
      else:
12013
        iprot.skip(ftype)
12014
      iprot.readFieldEnd()
12015
    iprot.readStructEnd()
12016
 
12017
  def write(self, oprot):
12018
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12019
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12020
      return
12021
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_args')
12022
    if self.amazonfbainventorysnapshot is not None:
12023
      oprot.writeFieldBegin('amazonfbainventorysnapshot', TType.STRUCT, 1)
12024
      self.amazonfbainventorysnapshot.write(oprot)
12025
      oprot.writeFieldEnd()
12026
    oprot.writeFieldStop()
12027
    oprot.writeStructEnd()
12028
 
12029
  def validate(self):
12030
    return
12031
 
12032
 
12033
  def __repr__(self):
12034
    L = ['%s=%r' % (key, value)
12035
      for key, value in self.__dict__.iteritems()]
12036
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12037
 
12038
  def __eq__(self, other):
12039
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12040
 
12041
  def __ne__(self, other):
12042
    return not (self == other)
12043
 
12044
class addOrUpdateAmazonFbaInventory_result:
12045
 
12046
  thrift_spec = (
12047
  )
12048
 
12049
  def read(self, iprot):
12050
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12051
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12052
      return
12053
    iprot.readStructBegin()
12054
    while True:
12055
      (fname, ftype, fid) = iprot.readFieldBegin()
12056
      if ftype == TType.STOP:
12057
        break
12058
      else:
12059
        iprot.skip(ftype)
12060
      iprot.readFieldEnd()
12061
    iprot.readStructEnd()
12062
 
12063
  def write(self, oprot):
12064
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12065
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12066
      return
12067
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_result')
12068
    oprot.writeFieldStop()
12069
    oprot.writeStructEnd()
12070
 
12071
  def validate(self):
12072
    return
12073
 
12074
 
12075
  def __repr__(self):
12076
    L = ['%s=%r' % (key, value)
12077
      for key, value in self.__dict__.iteritems()]
12078
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12079
 
12080
  def __eq__(self, other):
12081
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12082
 
12083
  def __ne__(self, other):
12084
    return not (self == other)
12085
 
8182 amar.kumar 12086
class addUpdateHoldInventory_args:
12087
  """
12088
  Attributes:
12089
   - itemId
12090
   - warehouseId
12091
   - holdQuantity
12092
   - source
12093
  """
12094
 
12095
  thrift_spec = (
12096
    None, # 0
12097
    (1, TType.I64, 'itemId', None, None, ), # 1
12098
    (2, TType.I64, 'warehouseId', None, None, ), # 2
12099
    (3, TType.I64, 'holdQuantity', None, None, ), # 3
12100
    (4, TType.I64, 'source', None, None, ), # 4
12101
  )
12102
 
12103
  def __init__(self, itemId=None, warehouseId=None, holdQuantity=None, source=None,):
12104
    self.itemId = itemId
12105
    self.warehouseId = warehouseId
12106
    self.holdQuantity = holdQuantity
12107
    self.source = source
12108
 
12109
  def read(self, iprot):
12110
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12111
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12112
      return
12113
    iprot.readStructBegin()
12114
    while True:
12115
      (fname, ftype, fid) = iprot.readFieldBegin()
12116
      if ftype == TType.STOP:
12117
        break
12118
      if fid == 1:
12119
        if ftype == TType.I64:
12120
          self.itemId = iprot.readI64();
12121
        else:
12122
          iprot.skip(ftype)
12123
      elif fid == 2:
12124
        if ftype == TType.I64:
12125
          self.warehouseId = iprot.readI64();
12126
        else:
12127
          iprot.skip(ftype)
12128
      elif fid == 3:
12129
        if ftype == TType.I64:
12130
          self.holdQuantity = iprot.readI64();
12131
        else:
12132
          iprot.skip(ftype)
12133
      elif fid == 4:
12134
        if ftype == TType.I64:
12135
          self.source = iprot.readI64();
12136
        else:
12137
          iprot.skip(ftype)
12138
      else:
12139
        iprot.skip(ftype)
12140
      iprot.readFieldEnd()
12141
    iprot.readStructEnd()
12142
 
12143
  def write(self, oprot):
12144
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12145
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12146
      return
12147
    oprot.writeStructBegin('addUpdateHoldInventory_args')
12148
    if self.itemId is not None:
12149
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12150
      oprot.writeI64(self.itemId)
12151
      oprot.writeFieldEnd()
12152
    if self.warehouseId is not None:
12153
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
12154
      oprot.writeI64(self.warehouseId)
12155
      oprot.writeFieldEnd()
12156
    if self.holdQuantity is not None:
12157
      oprot.writeFieldBegin('holdQuantity', TType.I64, 3)
12158
      oprot.writeI64(self.holdQuantity)
12159
      oprot.writeFieldEnd()
12160
    if self.source is not None:
12161
      oprot.writeFieldBegin('source', TType.I64, 4)
12162
      oprot.writeI64(self.source)
12163
      oprot.writeFieldEnd()
12164
    oprot.writeFieldStop()
12165
    oprot.writeStructEnd()
12166
 
12167
  def validate(self):
12168
    return
12169
 
12170
 
12171
  def __repr__(self):
12172
    L = ['%s=%r' % (key, value)
12173
      for key, value in self.__dict__.iteritems()]
12174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12175
 
12176
  def __eq__(self, other):
12177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12178
 
12179
  def __ne__(self, other):
12180
    return not (self == other)
12181
 
12182
class addUpdateHoldInventory_result:
9762 amar.kumar 12183
  """
12184
  Attributes:
12185
   - cex
12186
  """
8182 amar.kumar 12187
 
12188
  thrift_spec = (
9762 amar.kumar 12189
    None, # 0
12190
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8182 amar.kumar 12191
  )
12192
 
9762 amar.kumar 12193
  def __init__(self, cex=None,):
12194
    self.cex = cex
12195
 
8182 amar.kumar 12196
  def read(self, iprot):
12197
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12198
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12199
      return
12200
    iprot.readStructBegin()
12201
    while True:
12202
      (fname, ftype, fid) = iprot.readFieldBegin()
12203
      if ftype == TType.STOP:
12204
        break
9762 amar.kumar 12205
      if fid == 1:
12206
        if ftype == TType.STRUCT:
12207
          self.cex = InventoryServiceException()
12208
          self.cex.read(iprot)
12209
        else:
12210
          iprot.skip(ftype)
8182 amar.kumar 12211
      else:
12212
        iprot.skip(ftype)
12213
      iprot.readFieldEnd()
12214
    iprot.readStructEnd()
12215
 
12216
  def write(self, oprot):
12217
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12218
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12219
      return
12220
    oprot.writeStructBegin('addUpdateHoldInventory_result')
9762 amar.kumar 12221
    if self.cex is not None:
12222
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12223
      self.cex.write(oprot)
12224
      oprot.writeFieldEnd()
8182 amar.kumar 12225
    oprot.writeFieldStop()
12226
    oprot.writeStructEnd()
12227
 
12228
  def validate(self):
12229
    return
12230
 
12231
 
12232
  def __repr__(self):
12233
    L = ['%s=%r' % (key, value)
12234
      for key, value in self.__dict__.iteritems()]
12235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12236
 
12237
  def __eq__(self, other):
12238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12239
 
12240
  def __ne__(self, other):
12241
    return not (self == other)
8282 kshitij.so 12242
 
12243
class getAmazonFbaItemInventory_args:
12244
  """
12245
  Attributes:
12246
   - itemId
12247
  """
12248
 
12249
  thrift_spec = (
12250
    None, # 0
12251
    (1, TType.I64, 'itemId', None, None, ), # 1
12252
  )
12253
 
12254
  def __init__(self, itemId=None,):
12255
    self.itemId = itemId
12256
 
12257
  def read(self, iprot):
12258
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12259
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12260
      return
12261
    iprot.readStructBegin()
12262
    while True:
12263
      (fname, ftype, fid) = iprot.readFieldBegin()
12264
      if ftype == TType.STOP:
12265
        break
12266
      if fid == 1:
12267
        if ftype == TType.I64:
12268
          self.itemId = iprot.readI64();
12269
        else:
12270
          iprot.skip(ftype)
12271
      else:
12272
        iprot.skip(ftype)
12273
      iprot.readFieldEnd()
12274
    iprot.readStructEnd()
12275
 
12276
  def write(self, oprot):
12277
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12278
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12279
      return
12280
    oprot.writeStructBegin('getAmazonFbaItemInventory_args')
12281
    if self.itemId is not None:
12282
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12283
      oprot.writeI64(self.itemId)
12284
      oprot.writeFieldEnd()
12285
    oprot.writeFieldStop()
12286
    oprot.writeStructEnd()
12287
 
12288
  def validate(self):
12289
    return
12290
 
12291
 
12292
  def __repr__(self):
12293
    L = ['%s=%r' % (key, value)
12294
      for key, value in self.__dict__.iteritems()]
12295
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12296
 
12297
  def __eq__(self, other):
12298
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12299
 
12300
  def __ne__(self, other):
12301
    return not (self == other)
12302
 
12303
class getAmazonFbaItemInventory_result:
12304
  """
12305
  Attributes:
12306
   - success
12307
  """
12308
 
12309
  thrift_spec = (
11173 vikram.rag 12310
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
8282 kshitij.so 12311
  )
12312
 
12313
  def __init__(self, success=None,):
12314
    self.success = success
12315
 
12316
  def read(self, iprot):
12317
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12318
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12319
      return
12320
    iprot.readStructBegin()
12321
    while True:
12322
      (fname, ftype, fid) = iprot.readFieldBegin()
12323
      if ftype == TType.STOP:
12324
        break
12325
      if fid == 0:
11173 vikram.rag 12326
        if ftype == TType.LIST:
12327
          self.success = []
12328
          (_etype247, _size244) = iprot.readListBegin()
12329
          for _i248 in xrange(_size244):
12330
            _elem249 = AmazonFbaInventorySnapshot()
12331
            _elem249.read(iprot)
12332
            self.success.append(_elem249)
12333
          iprot.readListEnd()
8282 kshitij.so 12334
        else:
12335
          iprot.skip(ftype)
12336
      else:
12337
        iprot.skip(ftype)
12338
      iprot.readFieldEnd()
12339
    iprot.readStructEnd()
12340
 
12341
  def write(self, oprot):
12342
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12343
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12344
      return
12345
    oprot.writeStructBegin('getAmazonFbaItemInventory_result')
12346
    if self.success is not None:
11173 vikram.rag 12347
      oprot.writeFieldBegin('success', TType.LIST, 0)
12348
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12349
      for iter250 in self.success:
12350
        iter250.write(oprot)
12351
      oprot.writeListEnd()
8282 kshitij.so 12352
      oprot.writeFieldEnd()
12353
    oprot.writeFieldStop()
12354
    oprot.writeStructEnd()
12355
 
12356
  def validate(self):
12357
    return
12358
 
12359
 
12360
  def __repr__(self):
12361
    L = ['%s=%r' % (key, value)
12362
      for key, value in self.__dict__.iteritems()]
12363
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12364
 
12365
  def __eq__(self, other):
12366
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12367
 
12368
  def __ne__(self, other):
12369
    return not (self == other)
12370
 
8363 vikram.rag 12371
class getAllAmazonFbaItemInventory_args:
8282 kshitij.so 12372
 
12373
  thrift_spec = (
12374
  )
12375
 
12376
  def read(self, iprot):
12377
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12378
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12379
      return
12380
    iprot.readStructBegin()
12381
    while True:
12382
      (fname, ftype, fid) = iprot.readFieldBegin()
12383
      if ftype == TType.STOP:
12384
        break
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
8363 vikram.rag 12394
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_args')
8282 kshitij.so 12395
    oprot.writeFieldStop()
12396
    oprot.writeStructEnd()
12397
 
12398
  def validate(self):
12399
    return
12400
 
12401
 
12402
  def __repr__(self):
12403
    L = ['%s=%r' % (key, value)
12404
      for key, value in self.__dict__.iteritems()]
12405
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12406
 
12407
  def __eq__(self, other):
12408
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12409
 
12410
  def __ne__(self, other):
12411
    return not (self == other)
12412
 
8363 vikram.rag 12413
class getAllAmazonFbaItemInventory_result:
8282 kshitij.so 12414
  """
12415
  Attributes:
12416
   - success
12417
  """
12418
 
12419
  thrift_spec = (
12420
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
12421
  )
12422
 
12423
  def __init__(self, success=None,):
12424
    self.success = success
12425
 
12426
  def read(self, iprot):
12427
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12428
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12429
      return
12430
    iprot.readStructBegin()
12431
    while True:
12432
      (fname, ftype, fid) = iprot.readFieldBegin()
12433
      if ftype == TType.STOP:
12434
        break
12435
      if fid == 0:
12436
        if ftype == TType.LIST:
12437
          self.success = []
11173 vikram.rag 12438
          (_etype254, _size251) = iprot.readListBegin()
12439
          for _i255 in xrange(_size251):
12440
            _elem256 = AmazonFbaInventorySnapshot()
12441
            _elem256.read(iprot)
12442
            self.success.append(_elem256)
8282 kshitij.so 12443
          iprot.readListEnd()
12444
        else:
12445
          iprot.skip(ftype)
12446
      else:
12447
        iprot.skip(ftype)
12448
      iprot.readFieldEnd()
12449
    iprot.readStructEnd()
12450
 
12451
  def write(self, oprot):
12452
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12453
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12454
      return
8363 vikram.rag 12455
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_result')
8282 kshitij.so 12456
    if self.success is not None:
12457
      oprot.writeFieldBegin('success', TType.LIST, 0)
12458
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 12459
      for iter257 in self.success:
12460
        iter257.write(oprot)
8282 kshitij.so 12461
      oprot.writeListEnd()
12462
      oprot.writeFieldEnd()
12463
    oprot.writeFieldStop()
12464
    oprot.writeStructEnd()
12465
 
12466
  def validate(self):
12467
    return
12468
 
12469
 
12470
  def __repr__(self):
12471
    L = ['%s=%r' % (key, value)
12472
      for key, value in self.__dict__.iteritems()]
12473
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12474
 
12475
  def __eq__(self, other):
12476
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12477
 
12478
  def __ne__(self, other):
12479
    return not (self == other)
8363 vikram.rag 12480
 
12481
class getOursGoodWarehouseIdsForLocation_args:
12482
  """
12483
  Attributes:
12484
   - state_id
12485
  """
12486
 
12487
  thrift_spec = (
12488
    None, # 0
12489
    (1, TType.I64, 'state_id', None, None, ), # 1
12490
  )
12491
 
12492
  def __init__(self, state_id=None,):
12493
    self.state_id = state_id
12494
 
12495
  def read(self, iprot):
12496
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12497
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12498
      return
12499
    iprot.readStructBegin()
12500
    while True:
12501
      (fname, ftype, fid) = iprot.readFieldBegin()
12502
      if ftype == TType.STOP:
12503
        break
12504
      if fid == 1:
12505
        if ftype == TType.I64:
12506
          self.state_id = iprot.readI64();
12507
        else:
12508
          iprot.skip(ftype)
12509
      else:
12510
        iprot.skip(ftype)
12511
      iprot.readFieldEnd()
12512
    iprot.readStructEnd()
12513
 
12514
  def write(self, oprot):
12515
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12516
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12517
      return
12518
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_args')
12519
    if self.state_id is not None:
12520
      oprot.writeFieldBegin('state_id', TType.I64, 1)
12521
      oprot.writeI64(self.state_id)
12522
      oprot.writeFieldEnd()
12523
    oprot.writeFieldStop()
12524
    oprot.writeStructEnd()
12525
 
12526
  def validate(self):
12527
    return
12528
 
12529
 
12530
  def __repr__(self):
12531
    L = ['%s=%r' % (key, value)
12532
      for key, value in self.__dict__.iteritems()]
12533
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12534
 
12535
  def __eq__(self, other):
12536
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12537
 
12538
  def __ne__(self, other):
12539
    return not (self == other)
12540
 
12541
class getOursGoodWarehouseIdsForLocation_result:
12542
  """
12543
  Attributes:
12544
   - success
12545
  """
12546
 
12547
  thrift_spec = (
12548
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12549
  )
12550
 
12551
  def __init__(self, success=None,):
12552
    self.success = success
12553
 
12554
  def read(self, iprot):
12555
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12556
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12557
      return
12558
    iprot.readStructBegin()
12559
    while True:
12560
      (fname, ftype, fid) = iprot.readFieldBegin()
12561
      if ftype == TType.STOP:
12562
        break
12563
      if fid == 0:
12564
        if ftype == TType.LIST:
12565
          self.success = []
11173 vikram.rag 12566
          (_etype261, _size258) = iprot.readListBegin()
12567
          for _i262 in xrange(_size258):
12568
            _elem263 = iprot.readI64();
12569
            self.success.append(_elem263)
8363 vikram.rag 12570
          iprot.readListEnd()
12571
        else:
12572
          iprot.skip(ftype)
12573
      else:
12574
        iprot.skip(ftype)
12575
      iprot.readFieldEnd()
12576
    iprot.readStructEnd()
12577
 
12578
  def write(self, oprot):
12579
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12580
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12581
      return
12582
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_result')
12583
    if self.success is not None:
12584
      oprot.writeFieldBegin('success', TType.LIST, 0)
12585
      oprot.writeListBegin(TType.I64, len(self.success))
11173 vikram.rag 12586
      for iter264 in self.success:
12587
        oprot.writeI64(iter264)
8363 vikram.rag 12588
      oprot.writeListEnd()
12589
      oprot.writeFieldEnd()
12590
    oprot.writeFieldStop()
12591
    oprot.writeStructEnd()
12592
 
12593
  def validate(self):
12594
    return
12595
 
12596
 
12597
  def __repr__(self):
12598
    L = ['%s=%r' % (key, value)
12599
      for key, value in self.__dict__.iteritems()]
12600
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12601
 
12602
  def __eq__(self, other):
12603
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12604
 
12605
  def __ne__(self, other):
12606
    return not (self == other)
8955 vikram.rag 12607
 
12608
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_args:
12609
  """
12610
  Attributes:
12611
   - id
12612
   - warehouse_id
12613
   - source
12614
  """
12615
 
12616
  thrift_spec = (
12617
    None, # 0
12618
    (1, TType.I64, 'id', None, None, ), # 1
12619
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
12620
    (3, TType.I64, 'source', None, None, ), # 3
12621
  )
12622
 
12623
  def __init__(self, id=None, warehouse_id=None, source=None,):
12624
    self.id = id
12625
    self.warehouse_id = warehouse_id
12626
    self.source = source
12627
 
12628
  def read(self, iprot):
12629
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12630
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12631
      return
12632
    iprot.readStructBegin()
12633
    while True:
12634
      (fname, ftype, fid) = iprot.readFieldBegin()
12635
      if ftype == TType.STOP:
12636
        break
12637
      if fid == 1:
12638
        if ftype == TType.I64:
12639
          self.id = iprot.readI64();
12640
        else:
12641
          iprot.skip(ftype)
12642
      elif fid == 2:
12643
        if ftype == TType.I64:
12644
          self.warehouse_id = iprot.readI64();
12645
        else:
12646
          iprot.skip(ftype)
12647
      elif fid == 3:
12648
        if ftype == TType.I64:
12649
          self.source = iprot.readI64();
12650
        else:
12651
          iprot.skip(ftype)
12652
      else:
12653
        iprot.skip(ftype)
12654
      iprot.readFieldEnd()
12655
    iprot.readStructEnd()
12656
 
12657
  def write(self, oprot):
12658
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12659
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12660
      return
12661
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_args')
12662
    if self.id is not None:
12663
      oprot.writeFieldBegin('id', TType.I64, 1)
12664
      oprot.writeI64(self.id)
12665
      oprot.writeFieldEnd()
12666
    if self.warehouse_id is not None:
12667
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
12668
      oprot.writeI64(self.warehouse_id)
12669
      oprot.writeFieldEnd()
12670
    if self.source is not None:
12671
      oprot.writeFieldBegin('source', TType.I64, 3)
12672
      oprot.writeI64(self.source)
12673
      oprot.writeFieldEnd()
12674
    oprot.writeFieldStop()
12675
    oprot.writeStructEnd()
12676
 
12677
  def validate(self):
12678
    return
12679
 
12680
 
12681
  def __repr__(self):
12682
    L = ['%s=%r' % (key, value)
12683
      for key, value in self.__dict__.iteritems()]
12684
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12685
 
12686
  def __eq__(self, other):
12687
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12688
 
12689
  def __ne__(self, other):
12690
    return not (self == other)
12691
 
12692
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_result:
12693
  """
12694
  Attributes:
12695
   - success
12696
  """
12697
 
12698
  thrift_spec = (
12699
    (0, TType.I64, 'success', None, None, ), # 0
12700
  )
12701
 
12702
  def __init__(self, success=None,):
12703
    self.success = success
12704
 
12705
  def read(self, iprot):
12706
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12707
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12708
      return
12709
    iprot.readStructBegin()
12710
    while True:
12711
      (fname, ftype, fid) = iprot.readFieldBegin()
12712
      if ftype == TType.STOP:
12713
        break
12714
      if fid == 0:
12715
        if ftype == TType.I64:
12716
          self.success = iprot.readI64();
12717
        else:
12718
          iprot.skip(ftype)
12719
      else:
12720
        iprot.skip(ftype)
12721
      iprot.readFieldEnd()
12722
    iprot.readStructEnd()
12723
 
12724
  def write(self, oprot):
12725
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12726
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12727
      return
12728
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_result')
12729
    if self.success is not None:
12730
      oprot.writeFieldBegin('success', TType.I64, 0)
12731
      oprot.writeI64(self.success)
12732
      oprot.writeFieldEnd()
12733
    oprot.writeFieldStop()
12734
    oprot.writeStructEnd()
12735
 
12736
  def validate(self):
12737
    return
12738
 
12739
 
12740
  def __repr__(self):
12741
    L = ['%s=%r' % (key, value)
12742
      for key, value in self.__dict__.iteritems()]
12743
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12744
 
12745
  def __eq__(self, other):
12746
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12747
 
12748
  def __ne__(self, other):
12749
    return not (self == other)
9404 vikram.rag 12750
 
12751
class getSnapdealInventoryForItem_args:
12752
  """
12753
  Attributes:
12754
   - item_id
12755
  """
12756
 
12757
  thrift_spec = (
12758
    None, # 0
12759
    (1, TType.I64, 'item_id', None, None, ), # 1
12760
  )
12761
 
12762
  def __init__(self, item_id=None,):
12763
    self.item_id = item_id
12764
 
12765
  def read(self, iprot):
12766
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12767
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12768
      return
12769
    iprot.readStructBegin()
12770
    while True:
12771
      (fname, ftype, fid) = iprot.readFieldBegin()
12772
      if ftype == TType.STOP:
12773
        break
12774
      if fid == 1:
12775
        if ftype == TType.I64:
12776
          self.item_id = iprot.readI64();
12777
        else:
12778
          iprot.skip(ftype)
12779
      else:
12780
        iprot.skip(ftype)
12781
      iprot.readFieldEnd()
12782
    iprot.readStructEnd()
12783
 
12784
  def write(self, oprot):
12785
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12786
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12787
      return
12788
    oprot.writeStructBegin('getSnapdealInventoryForItem_args')
12789
    if self.item_id is not None:
12790
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12791
      oprot.writeI64(self.item_id)
12792
      oprot.writeFieldEnd()
12793
    oprot.writeFieldStop()
12794
    oprot.writeStructEnd()
12795
 
12796
  def validate(self):
12797
    return
12798
 
12799
 
12800
  def __repr__(self):
12801
    L = ['%s=%r' % (key, value)
12802
      for key, value in self.__dict__.iteritems()]
12803
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12804
 
12805
  def __eq__(self, other):
12806
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12807
 
12808
  def __ne__(self, other):
12809
    return not (self == other)
12810
 
12811
class getSnapdealInventoryForItem_result:
12812
  """
12813
  Attributes:
12814
   - success
12815
  """
12816
 
12817
  thrift_spec = (
12818
    (0, TType.STRUCT, 'success', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 0
12819
  )
12820
 
12821
  def __init__(self, success=None,):
12822
    self.success = success
12823
 
12824
  def read(self, iprot):
12825
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12826
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12827
      return
12828
    iprot.readStructBegin()
12829
    while True:
12830
      (fname, ftype, fid) = iprot.readFieldBegin()
12831
      if ftype == TType.STOP:
12832
        break
12833
      if fid == 0:
12834
        if ftype == TType.STRUCT:
12835
          self.success = SnapdealInventoryItem()
12836
          self.success.read(iprot)
12837
        else:
12838
          iprot.skip(ftype)
12839
      else:
12840
        iprot.skip(ftype)
12841
      iprot.readFieldEnd()
12842
    iprot.readStructEnd()
12843
 
12844
  def write(self, oprot):
12845
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12846
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12847
      return
12848
    oprot.writeStructBegin('getSnapdealInventoryForItem_result')
12849
    if self.success is not None:
12850
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12851
      self.success.write(oprot)
12852
      oprot.writeFieldEnd()
12853
    oprot.writeFieldStop()
12854
    oprot.writeStructEnd()
12855
 
12856
  def validate(self):
12857
    return
12858
 
12859
 
12860
  def __repr__(self):
12861
    L = ['%s=%r' % (key, value)
12862
      for key, value in self.__dict__.iteritems()]
12863
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12864
 
12865
  def __eq__(self, other):
12866
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12867
 
12868
  def __ne__(self, other):
12869
    return not (self == other)
12870
 
12871
class addOrUpdateSnapdealInventoryForItem_args:
12872
  """
12873
  Attributes:
12874
   - snapdealinventoryitem
12875
  """
12876
 
12877
  thrift_spec = (
12878
    None, # 0
12879
    (1, TType.STRUCT, 'snapdealinventoryitem', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 1
12880
  )
12881
 
12882
  def __init__(self, snapdealinventoryitem=None,):
12883
    self.snapdealinventoryitem = snapdealinventoryitem
12884
 
12885
  def read(self, iprot):
12886
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12887
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12888
      return
12889
    iprot.readStructBegin()
12890
    while True:
12891
      (fname, ftype, fid) = iprot.readFieldBegin()
12892
      if ftype == TType.STOP:
12893
        break
12894
      if fid == 1:
12895
        if ftype == TType.STRUCT:
12896
          self.snapdealinventoryitem = SnapdealInventoryItem()
12897
          self.snapdealinventoryitem.read(iprot)
12898
        else:
12899
          iprot.skip(ftype)
12900
      else:
12901
        iprot.skip(ftype)
12902
      iprot.readFieldEnd()
12903
    iprot.readStructEnd()
12904
 
12905
  def write(self, oprot):
12906
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12907
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12908
      return
12909
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_args')
12910
    if self.snapdealinventoryitem is not None:
12911
      oprot.writeFieldBegin('snapdealinventoryitem', TType.STRUCT, 1)
12912
      self.snapdealinventoryitem.write(oprot)
12913
      oprot.writeFieldEnd()
12914
    oprot.writeFieldStop()
12915
    oprot.writeStructEnd()
12916
 
12917
  def validate(self):
12918
    return
12919
 
12920
 
12921
  def __repr__(self):
12922
    L = ['%s=%r' % (key, value)
12923
      for key, value in self.__dict__.iteritems()]
12924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12925
 
12926
  def __eq__(self, other):
12927
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12928
 
12929
  def __ne__(self, other):
12930
    return not (self == other)
12931
 
12932
class addOrUpdateSnapdealInventoryForItem_result:
12933
 
12934
  thrift_spec = (
12935
  )
12936
 
12937
  def read(self, iprot):
12938
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12939
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12940
      return
12941
    iprot.readStructBegin()
12942
    while True:
12943
      (fname, ftype, fid) = iprot.readFieldBegin()
12944
      if ftype == TType.STOP:
12945
        break
12946
      else:
12947
        iprot.skip(ftype)
12948
      iprot.readFieldEnd()
12949
    iprot.readStructEnd()
12950
 
12951
  def write(self, oprot):
12952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12954
      return
12955
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_result')
12956
    oprot.writeFieldStop()
12957
    oprot.writeStructEnd()
12958
 
12959
  def validate(self):
12960
    return
12961
 
12962
 
12963
  def __repr__(self):
12964
    L = ['%s=%r' % (key, value)
12965
      for key, value in self.__dict__.iteritems()]
12966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12967
 
12968
  def __eq__(self, other):
12969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12970
 
12971
  def __ne__(self, other):
12972
    return not (self == other)
12973
 
12974
class getNlcForWarehouse_args:
12975
  """
12976
  Attributes:
12977
   - warehouse_id
12978
   - item_id
12979
  """
12980
 
12981
  thrift_spec = (
12982
    None, # 0
12983
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
12984
    (2, TType.I64, 'item_id', None, None, ), # 2
12985
  )
12986
 
12987
  def __init__(self, warehouse_id=None, item_id=None,):
12988
    self.warehouse_id = warehouse_id
12989
    self.item_id = item_id
12990
 
12991
  def read(self, iprot):
12992
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12993
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12994
      return
12995
    iprot.readStructBegin()
12996
    while True:
12997
      (fname, ftype, fid) = iprot.readFieldBegin()
12998
      if ftype == TType.STOP:
12999
        break
13000
      if fid == 1:
13001
        if ftype == TType.I64:
13002
          self.warehouse_id = iprot.readI64();
13003
        else:
13004
          iprot.skip(ftype)
13005
      elif fid == 2:
13006
        if ftype == TType.I64:
13007
          self.item_id = iprot.readI64();
13008
        else:
13009
          iprot.skip(ftype)
13010
      else:
13011
        iprot.skip(ftype)
13012
      iprot.readFieldEnd()
13013
    iprot.readStructEnd()
13014
 
13015
  def write(self, oprot):
13016
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13017
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13018
      return
13019
    oprot.writeStructBegin('getNlcForWarehouse_args')
13020
    if self.warehouse_id is not None:
13021
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
13022
      oprot.writeI64(self.warehouse_id)
13023
      oprot.writeFieldEnd()
13024
    if self.item_id is not None:
13025
      oprot.writeFieldBegin('item_id', TType.I64, 2)
13026
      oprot.writeI64(self.item_id)
13027
      oprot.writeFieldEnd()
13028
    oprot.writeFieldStop()
13029
    oprot.writeStructEnd()
13030
 
13031
  def validate(self):
13032
    return
13033
 
13034
 
13035
  def __repr__(self):
13036
    L = ['%s=%r' % (key, value)
13037
      for key, value in self.__dict__.iteritems()]
13038
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13039
 
13040
  def __eq__(self, other):
13041
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13042
 
13043
  def __ne__(self, other):
13044
    return not (self == other)
13045
 
13046
class getNlcForWarehouse_result:
13047
  """
13048
  Attributes:
13049
   - success
13050
  """
13051
 
13052
  thrift_spec = (
13053
    (0, TType.DOUBLE, 'success', None, None, ), # 0
13054
  )
13055
 
13056
  def __init__(self, success=None,):
13057
    self.success = success
13058
 
13059
  def read(self, iprot):
13060
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13061
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13062
      return
13063
    iprot.readStructBegin()
13064
    while True:
13065
      (fname, ftype, fid) = iprot.readFieldBegin()
13066
      if ftype == TType.STOP:
13067
        break
13068
      if fid == 0:
13069
        if ftype == TType.DOUBLE:
13070
          self.success = iprot.readDouble();
13071
        else:
13072
          iprot.skip(ftype)
13073
      else:
13074
        iprot.skip(ftype)
13075
      iprot.readFieldEnd()
13076
    iprot.readStructEnd()
13077
 
13078
  def write(self, oprot):
13079
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13080
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13081
      return
13082
    oprot.writeStructBegin('getNlcForWarehouse_result')
13083
    if self.success is not None:
13084
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
13085
      oprot.writeDouble(self.success)
13086
      oprot.writeFieldEnd()
13087
    oprot.writeFieldStop()
13088
    oprot.writeStructEnd()
13089
 
13090
  def validate(self):
13091
    return
13092
 
13093
 
13094
  def __repr__(self):
13095
    L = ['%s=%r' % (key, value)
13096
      for key, value in self.__dict__.iteritems()]
13097
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13098
 
13099
  def __eq__(self, other):
13100
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13101
 
13102
  def __ne__(self, other):
13103
    return not (self == other)
9456 vikram.rag 13104
 
9640 amar.kumar 13105
class getHeldInventoryMapForItem_args:
13106
  """
13107
  Attributes:
13108
   - item_id
13109
   - warehouse_id
13110
  """
13111
 
13112
  thrift_spec = (
13113
    None, # 0
13114
    (1, TType.I64, 'item_id', None, None, ), # 1
13115
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
13116
  )
13117
 
13118
  def __init__(self, item_id=None, warehouse_id=None,):
13119
    self.item_id = item_id
13120
    self.warehouse_id = warehouse_id
13121
 
13122
  def read(self, iprot):
13123
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13124
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13125
      return
13126
    iprot.readStructBegin()
13127
    while True:
13128
      (fname, ftype, fid) = iprot.readFieldBegin()
13129
      if ftype == TType.STOP:
13130
        break
13131
      if fid == 1:
13132
        if ftype == TType.I64:
13133
          self.item_id = iprot.readI64();
13134
        else:
13135
          iprot.skip(ftype)
13136
      elif fid == 2:
13137
        if ftype == TType.I64:
13138
          self.warehouse_id = iprot.readI64();
13139
        else:
13140
          iprot.skip(ftype)
13141
      else:
13142
        iprot.skip(ftype)
13143
      iprot.readFieldEnd()
13144
    iprot.readStructEnd()
13145
 
13146
  def write(self, oprot):
13147
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13148
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13149
      return
13150
    oprot.writeStructBegin('getHeldInventoryMapForItem_args')
13151
    if self.item_id is not None:
13152
      oprot.writeFieldBegin('item_id', TType.I64, 1)
13153
      oprot.writeI64(self.item_id)
13154
      oprot.writeFieldEnd()
13155
    if self.warehouse_id is not None:
13156
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
13157
      oprot.writeI64(self.warehouse_id)
13158
      oprot.writeFieldEnd()
13159
    oprot.writeFieldStop()
13160
    oprot.writeStructEnd()
13161
 
13162
  def validate(self):
13163
    return
13164
 
13165
 
13166
  def __repr__(self):
13167
    L = ['%s=%r' % (key, value)
13168
      for key, value in self.__dict__.iteritems()]
13169
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13170
 
13171
  def __eq__(self, other):
13172
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13173
 
13174
  def __ne__(self, other):
13175
    return not (self == other)
13176
 
13177
class getHeldInventoryMapForItem_result:
13178
  """
13179
  Attributes:
13180
   - success
13181
  """
13182
 
13183
  thrift_spec = (
13184
    (0, TType.MAP, 'success', (TType.I32,None,TType.I64,None), None, ), # 0
13185
  )
13186
 
13187
  def __init__(self, success=None,):
13188
    self.success = success
13189
 
13190
  def read(self, iprot):
13191
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13192
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13193
      return
13194
    iprot.readStructBegin()
13195
    while True:
13196
      (fname, ftype, fid) = iprot.readFieldBegin()
13197
      if ftype == TType.STOP:
13198
        break
13199
      if fid == 0:
13200
        if ftype == TType.MAP:
13201
          self.success = {}
11173 vikram.rag 13202
          (_ktype266, _vtype267, _size265 ) = iprot.readMapBegin() 
13203
          for _i269 in xrange(_size265):
13204
            _key270 = iprot.readI32();
13205
            _val271 = iprot.readI64();
13206
            self.success[_key270] = _val271
9640 amar.kumar 13207
          iprot.readMapEnd()
13208
        else:
13209
          iprot.skip(ftype)
13210
      else:
13211
        iprot.skip(ftype)
13212
      iprot.readFieldEnd()
13213
    iprot.readStructEnd()
13214
 
13215
  def write(self, oprot):
13216
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13217
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13218
      return
13219
    oprot.writeStructBegin('getHeldInventoryMapForItem_result')
13220
    if self.success is not None:
13221
      oprot.writeFieldBegin('success', TType.MAP, 0)
13222
      oprot.writeMapBegin(TType.I32, TType.I64, len(self.success))
11173 vikram.rag 13223
      for kiter272,viter273 in self.success.items():
13224
        oprot.writeI32(kiter272)
13225
        oprot.writeI64(viter273)
9640 amar.kumar 13226
      oprot.writeMapEnd()
13227
      oprot.writeFieldEnd()
13228
    oprot.writeFieldStop()
13229
    oprot.writeStructEnd()
13230
 
13231
  def validate(self):
13232
    return
13233
 
13234
 
13235
  def __repr__(self):
13236
    L = ['%s=%r' % (key, value)
13237
      for key, value in self.__dict__.iteritems()]
13238
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13239
 
13240
  def __eq__(self, other):
13241
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13242
 
13243
  def __ne__(self, other):
13244
    return not (self == other)
13245
 
9495 vikram.rag 13246
class addOrUpdateAllAmazonFbaInventory_args:
13247
  """
13248
  Attributes:
13249
   - allamazonfbainventorysnapshot
13250
  """
9456 vikram.rag 13251
 
9495 vikram.rag 13252
  thrift_spec = None
13253
  def __init__(self, allamazonfbainventorysnapshot=None,):
13254
    self.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 13255
 
13256
  def read(self, iprot):
13257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13259
      return
13260
    iprot.readStructBegin()
13261
    while True:
13262
      (fname, ftype, fid) = iprot.readFieldBegin()
13263
      if ftype == TType.STOP:
13264
        break
9495 vikram.rag 13265
      if fid == -1:
13266
        if ftype == TType.LIST:
13267
          self.allamazonfbainventorysnapshot = []
11173 vikram.rag 13268
          (_etype277, _size274) = iprot.readListBegin()
13269
          for _i278 in xrange(_size274):
13270
            _elem279 = AmazonFbaInventorySnapshot()
13271
            _elem279.read(iprot)
13272
            self.allamazonfbainventorysnapshot.append(_elem279)
9495 vikram.rag 13273
          iprot.readListEnd()
13274
        else:
13275
          iprot.skip(ftype)
9456 vikram.rag 13276
      else:
13277
        iprot.skip(ftype)
13278
      iprot.readFieldEnd()
13279
    iprot.readStructEnd()
13280
 
13281
  def write(self, oprot):
13282
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13283
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13284
      return
9495 vikram.rag 13285
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_args')
13286
    if self.allamazonfbainventorysnapshot is not None:
13287
      oprot.writeFieldBegin('allamazonfbainventorysnapshot', TType.LIST, -1)
13288
      oprot.writeListBegin(TType.STRUCT, len(self.allamazonfbainventorysnapshot))
11173 vikram.rag 13289
      for iter280 in self.allamazonfbainventorysnapshot:
13290
        iter280.write(oprot)
9495 vikram.rag 13291
      oprot.writeListEnd()
13292
      oprot.writeFieldEnd()
9456 vikram.rag 13293
    oprot.writeFieldStop()
13294
    oprot.writeStructEnd()
13295
 
13296
  def validate(self):
13297
    return
13298
 
13299
 
13300
  def __repr__(self):
13301
    L = ['%s=%r' % (key, value)
13302
      for key, value in self.__dict__.iteritems()]
13303
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13304
 
13305
  def __eq__(self, other):
13306
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13307
 
13308
  def __ne__(self, other):
13309
    return not (self == other)
13310
 
9495 vikram.rag 13311
class addOrUpdateAllAmazonFbaInventory_result:
9456 vikram.rag 13312
 
13313
  thrift_spec = (
13314
  )
13315
 
13316
  def read(self, iprot):
13317
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13318
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13319
      return
13320
    iprot.readStructBegin()
13321
    while True:
13322
      (fname, ftype, fid) = iprot.readFieldBegin()
13323
      if ftype == TType.STOP:
13324
        break
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_result')
9456 vikram.rag 13335
    oprot.writeFieldStop()
13336
    oprot.writeStructEnd()
13337
 
13338
  def validate(self):
13339
    return
13340
 
13341
 
13342
  def __repr__(self):
13343
    L = ['%s=%r' % (key, value)
13344
      for key, value in self.__dict__.iteritems()]
13345
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13346
 
13347
  def __eq__(self, other):
13348
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13349
 
13350
  def __ne__(self, other):
13351
    return not (self == other)
9482 vikram.rag 13352
 
9495 vikram.rag 13353
class addOrUpdateAllSnapdealInventory_args:
9482 vikram.rag 13354
  """
13355
  Attributes:
9495 vikram.rag 13356
   - allsnapdealinventorysnapshot
9482 vikram.rag 13357
  """
13358
 
13359
  thrift_spec = None
9495 vikram.rag 13360
  def __init__(self, allsnapdealinventorysnapshot=None,):
13361
    self.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 13362
 
13363
  def read(self, iprot):
13364
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13365
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13366
      return
13367
    iprot.readStructBegin()
13368
    while True:
13369
      (fname, ftype, fid) = iprot.readFieldBegin()
13370
      if ftype == TType.STOP:
13371
        break
13372
      if fid == -1:
13373
        if ftype == TType.LIST:
9495 vikram.rag 13374
          self.allsnapdealinventorysnapshot = []
11173 vikram.rag 13375
          (_etype284, _size281) = iprot.readListBegin()
13376
          for _i285 in xrange(_size281):
13377
            _elem286 = SnapdealInventoryItem()
13378
            _elem286.read(iprot)
13379
            self.allsnapdealinventorysnapshot.append(_elem286)
9482 vikram.rag 13380
          iprot.readListEnd()
13381
        else:
13382
          iprot.skip(ftype)
13383
      else:
13384
        iprot.skip(ftype)
13385
      iprot.readFieldEnd()
13386
    iprot.readStructEnd()
13387
 
13388
  def write(self, oprot):
13389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13391
      return
9495 vikram.rag 13392
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_args')
13393
    if self.allsnapdealinventorysnapshot is not None:
13394
      oprot.writeFieldBegin('allsnapdealinventorysnapshot', TType.LIST, -1)
13395
      oprot.writeListBegin(TType.STRUCT, len(self.allsnapdealinventorysnapshot))
11173 vikram.rag 13396
      for iter287 in self.allsnapdealinventorysnapshot:
13397
        iter287.write(oprot)
9482 vikram.rag 13398
      oprot.writeListEnd()
13399
      oprot.writeFieldEnd()
13400
    oprot.writeFieldStop()
13401
    oprot.writeStructEnd()
13402
 
13403
  def validate(self):
13404
    return
13405
 
13406
 
13407
  def __repr__(self):
13408
    L = ['%s=%r' % (key, value)
13409
      for key, value in self.__dict__.iteritems()]
13410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13411
 
13412
  def __eq__(self, other):
13413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13414
 
13415
  def __ne__(self, other):
13416
    return not (self == other)
13417
 
9495 vikram.rag 13418
class addOrUpdateAllSnapdealInventory_result:
9482 vikram.rag 13419
 
13420
  thrift_spec = (
13421
  )
13422
 
13423
  def read(self, iprot):
13424
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13425
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13426
      return
13427
    iprot.readStructBegin()
13428
    while True:
13429
      (fname, ftype, fid) = iprot.readFieldBegin()
13430
      if ftype == TType.STOP:
13431
        break
13432
      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_result')
9482 vikram.rag 13442
    oprot.writeFieldStop()
13443
    oprot.writeStructEnd()
13444
 
13445
  def validate(self):
13446
    return
13447
 
13448
 
13449
  def __repr__(self):
13450
    L = ['%s=%r' % (key, value)
13451
      for key, value in self.__dict__.iteritems()]
13452
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13453
 
13454
  def __eq__(self, other):
13455
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13456
 
13457
  def __ne__(self, other):
13458
    return not (self == other)
9495 vikram.rag 13459
 
13460
class getSnapdealInventorySnapshot_args:
13461
 
13462
  thrift_spec = (
13463
  )
13464
 
13465
  def read(self, iprot):
13466
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13467
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13468
      return
13469
    iprot.readStructBegin()
13470
    while True:
13471
      (fname, ftype, fid) = iprot.readFieldBegin()
13472
      if ftype == TType.STOP:
13473
        break
13474
      else:
13475
        iprot.skip(ftype)
13476
      iprot.readFieldEnd()
13477
    iprot.readStructEnd()
13478
 
13479
  def write(self, oprot):
13480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13482
      return
13483
    oprot.writeStructBegin('getSnapdealInventorySnapshot_args')
13484
    oprot.writeFieldStop()
13485
    oprot.writeStructEnd()
13486
 
13487
  def validate(self):
13488
    return
13489
 
13490
 
13491
  def __repr__(self):
13492
    L = ['%s=%r' % (key, value)
13493
      for key, value in self.__dict__.iteritems()]
13494
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13495
 
13496
  def __eq__(self, other):
13497
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13498
 
13499
  def __ne__(self, other):
13500
    return not (self == other)
13501
 
13502
class getSnapdealInventorySnapshot_result:
13503
  """
13504
  Attributes:
13505
   - success
13506
  """
13507
 
13508
  thrift_spec = (
13509
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec)), None, ), # 0
13510
  )
13511
 
13512
  def __init__(self, success=None,):
13513
    self.success = success
13514
 
13515
  def read(self, iprot):
13516
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13517
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13518
      return
13519
    iprot.readStructBegin()
13520
    while True:
13521
      (fname, ftype, fid) = iprot.readFieldBegin()
13522
      if ftype == TType.STOP:
13523
        break
13524
      if fid == 0:
13525
        if ftype == TType.LIST:
13526
          self.success = []
11173 vikram.rag 13527
          (_etype291, _size288) = iprot.readListBegin()
13528
          for _i292 in xrange(_size288):
13529
            _elem293 = SnapdealInventoryItem()
13530
            _elem293.read(iprot)
13531
            self.success.append(_elem293)
9495 vikram.rag 13532
          iprot.readListEnd()
13533
        else:
13534
          iprot.skip(ftype)
13535
      else:
13536
        iprot.skip(ftype)
13537
      iprot.readFieldEnd()
13538
    iprot.readStructEnd()
13539
 
13540
  def write(self, oprot):
13541
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13542
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13543
      return
13544
    oprot.writeStructBegin('getSnapdealInventorySnapshot_result')
13545
    if self.success is not None:
13546
      oprot.writeFieldBegin('success', TType.LIST, 0)
13547
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 13548
      for iter294 in self.success:
13549
        iter294.write(oprot)
9495 vikram.rag 13550
      oprot.writeListEnd()
13551
      oprot.writeFieldEnd()
13552
    oprot.writeFieldStop()
13553
    oprot.writeStructEnd()
13554
 
13555
  def validate(self):
13556
    return
13557
 
13558
 
13559
  def __repr__(self):
13560
    L = ['%s=%r' % (key, value)
13561
      for key, value in self.__dict__.iteritems()]
13562
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13563
 
13564
  def __eq__(self, other):
13565
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13566
 
13567
  def __ne__(self, other):
13568
    return not (self == other)
9761 amar.kumar 13569
 
13570
class getHoldInventoryDetails_args:
13571
  """
13572
  Attributes:
13573
   - itemId
13574
   - warehouseId
13575
   - source
13576
  """
13577
 
13578
  thrift_spec = (
13579
    None, # 0
13580
    (1, TType.I64, 'itemId', None, None, ), # 1
13581
    (2, TType.I64, 'warehouseId', None, None, ), # 2
13582
    (3, TType.I64, 'source', None, None, ), # 3
13583
  )
13584
 
13585
  def __init__(self, itemId=None, warehouseId=None, source=None,):
13586
    self.itemId = itemId
13587
    self.warehouseId = warehouseId
13588
    self.source = source
13589
 
13590
  def read(self, iprot):
13591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13593
      return
13594
    iprot.readStructBegin()
13595
    while True:
13596
      (fname, ftype, fid) = iprot.readFieldBegin()
13597
      if ftype == TType.STOP:
13598
        break
13599
      if fid == 1:
13600
        if ftype == TType.I64:
13601
          self.itemId = iprot.readI64();
13602
        else:
13603
          iprot.skip(ftype)
13604
      elif fid == 2:
13605
        if ftype == TType.I64:
13606
          self.warehouseId = iprot.readI64();
13607
        else:
13608
          iprot.skip(ftype)
13609
      elif fid == 3:
13610
        if ftype == TType.I64:
13611
          self.source = iprot.readI64();
13612
        else:
13613
          iprot.skip(ftype)
13614
      else:
13615
        iprot.skip(ftype)
13616
      iprot.readFieldEnd()
13617
    iprot.readStructEnd()
13618
 
13619
  def write(self, oprot):
13620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13622
      return
13623
    oprot.writeStructBegin('getHoldInventoryDetails_args')
13624
    if self.itemId is not None:
13625
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13626
      oprot.writeI64(self.itemId)
13627
      oprot.writeFieldEnd()
13628
    if self.warehouseId is not None:
13629
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
13630
      oprot.writeI64(self.warehouseId)
13631
      oprot.writeFieldEnd()
13632
    if self.source is not None:
13633
      oprot.writeFieldBegin('source', TType.I64, 3)
13634
      oprot.writeI64(self.source)
13635
      oprot.writeFieldEnd()
13636
    oprot.writeFieldStop()
13637
    oprot.writeStructEnd()
13638
 
13639
  def validate(self):
13640
    return
13641
 
13642
 
13643
  def __repr__(self):
13644
    L = ['%s=%r' % (key, value)
13645
      for key, value in self.__dict__.iteritems()]
13646
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13647
 
13648
  def __eq__(self, other):
13649
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13650
 
13651
  def __ne__(self, other):
13652
    return not (self == other)
13653
 
13654
class getHoldInventoryDetails_result:
13655
  """
13656
  Attributes:
13657
   - success
13658
  """
13659
 
13660
  thrift_spec = (
13661
    (0, TType.LIST, 'success', (TType.STRUCT,(HoldInventoryDetail, HoldInventoryDetail.thrift_spec)), None, ), # 0
13662
  )
13663
 
13664
  def __init__(self, success=None,):
13665
    self.success = success
13666
 
13667
  def read(self, iprot):
13668
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13669
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13670
      return
13671
    iprot.readStructBegin()
13672
    while True:
13673
      (fname, ftype, fid) = iprot.readFieldBegin()
13674
      if ftype == TType.STOP:
13675
        break
13676
      if fid == 0:
13677
        if ftype == TType.LIST:
13678
          self.success = []
11173 vikram.rag 13679
          (_etype298, _size295) = iprot.readListBegin()
13680
          for _i299 in xrange(_size295):
13681
            _elem300 = HoldInventoryDetail()
13682
            _elem300.read(iprot)
13683
            self.success.append(_elem300)
9761 amar.kumar 13684
          iprot.readListEnd()
13685
        else:
13686
          iprot.skip(ftype)
13687
      else:
13688
        iprot.skip(ftype)
13689
      iprot.readFieldEnd()
13690
    iprot.readStructEnd()
13691
 
13692
  def write(self, oprot):
13693
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13694
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13695
      return
13696
    oprot.writeStructBegin('getHoldInventoryDetails_result')
13697
    if self.success is not None:
13698
      oprot.writeFieldBegin('success', TType.LIST, 0)
13699
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 13700
      for iter301 in self.success:
13701
        iter301.write(oprot)
9761 amar.kumar 13702
      oprot.writeListEnd()
13703
      oprot.writeFieldEnd()
13704
    oprot.writeFieldStop()
13705
    oprot.writeStructEnd()
13706
 
13707
  def validate(self):
13708
    return
13709
 
13710
 
13711
  def __repr__(self):
13712
    L = ['%s=%r' % (key, value)
13713
      for key, value in self.__dict__.iteritems()]
13714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13715
 
13716
  def __eq__(self, other):
13717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13718
 
13719
  def __ne__(self, other):
13720
    return not (self == other)
10050 vikram.rag 13721
 
13722
class addOrUpdateFlipkartInventorySnapshot_args:
13723
  """
13724
  Attributes:
13725
   - flipkartInventorySnapshot
10450 vikram.rag 13726
   - time
10050 vikram.rag 13727
  """
13728
 
10450 vikram.rag 13729
  thrift_spec = (
13730
    None, # 0
13731
    (1, TType.LIST, 'flipkartInventorySnapshot', (TType.STRUCT,(FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec)), None, ), # 1
13732
    (2, TType.I64, 'time', None, None, ), # 2
13733
  )
13734
 
13735
  def __init__(self, flipkartInventorySnapshot=None, time=None,):
10050 vikram.rag 13736
    self.flipkartInventorySnapshot = flipkartInventorySnapshot
10450 vikram.rag 13737
    self.time = time
10050 vikram.rag 13738
 
13739
  def read(self, iprot):
13740
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13741
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13742
      return
13743
    iprot.readStructBegin()
13744
    while True:
13745
      (fname, ftype, fid) = iprot.readFieldBegin()
13746
      if ftype == TType.STOP:
13747
        break
10450 vikram.rag 13748
      if fid == 1:
10050 vikram.rag 13749
        if ftype == TType.LIST:
13750
          self.flipkartInventorySnapshot = []
11173 vikram.rag 13751
          (_etype305, _size302) = iprot.readListBegin()
13752
          for _i306 in xrange(_size302):
13753
            _elem307 = FlipkartInventorySnapshot()
13754
            _elem307.read(iprot)
13755
            self.flipkartInventorySnapshot.append(_elem307)
10050 vikram.rag 13756
          iprot.readListEnd()
13757
        else:
13758
          iprot.skip(ftype)
10450 vikram.rag 13759
      elif fid == 2:
13760
        if ftype == TType.I64:
13761
          self.time = iprot.readI64();
13762
        else:
13763
          iprot.skip(ftype)
10050 vikram.rag 13764
      else:
13765
        iprot.skip(ftype)
13766
      iprot.readFieldEnd()
13767
    iprot.readStructEnd()
13768
 
13769
  def write(self, oprot):
13770
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13771
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13772
      return
13773
    oprot.writeStructBegin('addOrUpdateFlipkartInventorySnapshot_args')
13774
    if self.flipkartInventorySnapshot is not None:
10450 vikram.rag 13775
      oprot.writeFieldBegin('flipkartInventorySnapshot', TType.LIST, 1)
10050 vikram.rag 13776
      oprot.writeListBegin(TType.STRUCT, len(self.flipkartInventorySnapshot))
11173 vikram.rag 13777
      for iter308 in self.flipkartInventorySnapshot:
13778
        iter308.write(oprot)
10050 vikram.rag 13779
      oprot.writeListEnd()
13780
      oprot.writeFieldEnd()
10450 vikram.rag 13781
    if self.time is not None:
13782
      oprot.writeFieldBegin('time', TType.I64, 2)
13783
      oprot.writeI64(self.time)
13784
      oprot.writeFieldEnd()
10050 vikram.rag 13785
    oprot.writeFieldStop()
13786
    oprot.writeStructEnd()
13787
 
13788
  def validate(self):
13789
    return
13790
 
13791
 
13792
  def __repr__(self):
13793
    L = ['%s=%r' % (key, value)
13794
      for key, value in self.__dict__.iteritems()]
13795
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13796
 
13797
  def __eq__(self, other):
13798
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13799
 
13800
  def __ne__(self, other):
13801
    return not (self == other)
13802
 
13803
class addOrUpdateFlipkartInventorySnapshot_result:
13804
 
13805
  thrift_spec = (
13806
  )
13807
 
13808
  def read(self, iprot):
13809
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13810
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13811
      return
13812
    iprot.readStructBegin()
13813
    while True:
13814
      (fname, ftype, fid) = iprot.readFieldBegin()
13815
      if ftype == TType.STOP:
13816
        break
13817
      else:
13818
        iprot.skip(ftype)
13819
      iprot.readFieldEnd()
13820
    iprot.readStructEnd()
13821
 
13822
  def write(self, oprot):
13823
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13824
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13825
      return
13826
    oprot.writeStructBegin('addOrUpdateFlipkartInventorySnapshot_result')
13827
    oprot.writeFieldStop()
13828
    oprot.writeStructEnd()
13829
 
13830
  def validate(self):
13831
    return
13832
 
13833
 
13834
  def __repr__(self):
13835
    L = ['%s=%r' % (key, value)
13836
      for key, value in self.__dict__.iteritems()]
13837
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13838
 
13839
  def __eq__(self, other):
13840
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13841
 
13842
  def __ne__(self, other):
13843
    return not (self == other)
13844
 
13845
class getFlipkartInventorySnapshot_args:
13846
 
13847
  thrift_spec = (
13848
  )
13849
 
13850
  def read(self, iprot):
13851
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13852
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13853
      return
13854
    iprot.readStructBegin()
13855
    while True:
13856
      (fname, ftype, fid) = iprot.readFieldBegin()
13857
      if ftype == TType.STOP:
13858
        break
13859
      else:
13860
        iprot.skip(ftype)
13861
      iprot.readFieldEnd()
13862
    iprot.readStructEnd()
13863
 
13864
  def write(self, oprot):
13865
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13866
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13867
      return
13868
    oprot.writeStructBegin('getFlipkartInventorySnapshot_args')
13869
    oprot.writeFieldStop()
13870
    oprot.writeStructEnd()
13871
 
13872
  def validate(self):
13873
    return
13874
 
13875
 
13876
  def __repr__(self):
13877
    L = ['%s=%r' % (key, value)
13878
      for key, value in self.__dict__.iteritems()]
13879
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13880
 
13881
  def __eq__(self, other):
13882
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13883
 
13884
  def __ne__(self, other):
13885
    return not (self == other)
13886
 
13887
class getFlipkartInventorySnapshot_result:
13888
  """
13889
  Attributes:
13890
   - success
13891
  """
13892
 
13893
  thrift_spec = (
13894
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec)), None, ), # 0
13895
  )
13896
 
13897
  def __init__(self, success=None,):
13898
    self.success = success
13899
 
13900
  def read(self, iprot):
13901
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13902
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13903
      return
13904
    iprot.readStructBegin()
13905
    while True:
13906
      (fname, ftype, fid) = iprot.readFieldBegin()
13907
      if ftype == TType.STOP:
13908
        break
13909
      if fid == 0:
13910
        if ftype == TType.LIST:
13911
          self.success = []
11173 vikram.rag 13912
          (_etype312, _size309) = iprot.readListBegin()
13913
          for _i313 in xrange(_size309):
13914
            _elem314 = FlipkartInventorySnapshot()
13915
            _elem314.read(iprot)
13916
            self.success.append(_elem314)
10050 vikram.rag 13917
          iprot.readListEnd()
13918
        else:
13919
          iprot.skip(ftype)
13920
      else:
13921
        iprot.skip(ftype)
13922
      iprot.readFieldEnd()
13923
    iprot.readStructEnd()
13924
 
13925
  def write(self, oprot):
13926
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13927
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13928
      return
13929
    oprot.writeStructBegin('getFlipkartInventorySnapshot_result')
13930
    if self.success is not None:
13931
      oprot.writeFieldBegin('success', TType.LIST, 0)
13932
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 13933
      for iter315 in self.success:
13934
        iter315.write(oprot)
10050 vikram.rag 13935
      oprot.writeListEnd()
13936
      oprot.writeFieldEnd()
13937
    oprot.writeFieldStop()
13938
    oprot.writeStructEnd()
13939
 
13940
  def validate(self):
13941
    return
13942
 
13943
 
13944
  def __repr__(self):
13945
    L = ['%s=%r' % (key, value)
13946
      for key, value in self.__dict__.iteritems()]
13947
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13948
 
13949
  def __eq__(self, other):
13950
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13951
 
13952
  def __ne__(self, other):
13953
    return not (self == other)
10097 kshitij.so 13954
 
13955
class getFlipkartlInventoryForItem_args:
13956
  """
13957
  Attributes:
13958
   - item_id
13959
  """
13960
 
13961
  thrift_spec = (
13962
    None, # 0
13963
    (1, TType.I64, 'item_id', None, None, ), # 1
13964
  )
13965
 
13966
  def __init__(self, item_id=None,):
13967
    self.item_id = item_id
13968
 
13969
  def read(self, iprot):
13970
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13971
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13972
      return
13973
    iprot.readStructBegin()
13974
    while True:
13975
      (fname, ftype, fid) = iprot.readFieldBegin()
13976
      if ftype == TType.STOP:
13977
        break
13978
      if fid == 1:
13979
        if ftype == TType.I64:
13980
          self.item_id = iprot.readI64();
13981
        else:
13982
          iprot.skip(ftype)
13983
      else:
13984
        iprot.skip(ftype)
13985
      iprot.readFieldEnd()
13986
    iprot.readStructEnd()
13987
 
13988
  def write(self, oprot):
13989
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13990
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13991
      return
13992
    oprot.writeStructBegin('getFlipkartlInventoryForItem_args')
13993
    if self.item_id is not None:
13994
      oprot.writeFieldBegin('item_id', TType.I64, 1)
13995
      oprot.writeI64(self.item_id)
13996
      oprot.writeFieldEnd()
13997
    oprot.writeFieldStop()
13998
    oprot.writeStructEnd()
13999
 
14000
  def validate(self):
14001
    return
14002
 
14003
 
14004
  def __repr__(self):
14005
    L = ['%s=%r' % (key, value)
14006
      for key, value in self.__dict__.iteritems()]
14007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14008
 
14009
  def __eq__(self, other):
14010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14011
 
14012
  def __ne__(self, other):
14013
    return not (self == other)
14014
 
14015
class getFlipkartlInventoryForItem_result:
14016
  """
14017
  Attributes:
14018
   - success
14019
  """
14020
 
14021
  thrift_spec = (
14022
    (0, TType.STRUCT, 'success', (FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec), None, ), # 0
14023
  )
14024
 
14025
  def __init__(self, success=None,):
14026
    self.success = success
14027
 
14028
  def read(self, iprot):
14029
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14030
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14031
      return
14032
    iprot.readStructBegin()
14033
    while True:
14034
      (fname, ftype, fid) = iprot.readFieldBegin()
14035
      if ftype == TType.STOP:
14036
        break
14037
      if fid == 0:
14038
        if ftype == TType.STRUCT:
14039
          self.success = FlipkartInventorySnapshot()
14040
          self.success.read(iprot)
14041
        else:
14042
          iprot.skip(ftype)
14043
      else:
14044
        iprot.skip(ftype)
14045
      iprot.readFieldEnd()
14046
    iprot.readStructEnd()
14047
 
14048
  def write(self, oprot):
14049
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14050
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14051
      return
14052
    oprot.writeStructBegin('getFlipkartlInventoryForItem_result')
14053
    if self.success is not None:
14054
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
14055
      self.success.write(oprot)
14056
      oprot.writeFieldEnd()
14057
    oprot.writeFieldStop()
14058
    oprot.writeStructEnd()
14059
 
14060
  def validate(self):
14061
    return
14062
 
14063
 
14064
  def __repr__(self):
14065
    L = ['%s=%r' % (key, value)
14066
      for key, value in self.__dict__.iteritems()]
14067
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14068
 
14069
  def __eq__(self, other):
14070
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14071
 
14072
  def __ne__(self, other):
14073
    return not (self == other)
10485 vikram.rag 14074
 
14075
class getStateMaster_args:
14076
 
14077
  thrift_spec = (
14078
  )
14079
 
14080
  def read(self, iprot):
14081
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14082
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14083
      return
14084
    iprot.readStructBegin()
14085
    while True:
14086
      (fname, ftype, fid) = iprot.readFieldBegin()
14087
      if ftype == TType.STOP:
14088
        break
14089
      else:
14090
        iprot.skip(ftype)
14091
      iprot.readFieldEnd()
14092
    iprot.readStructEnd()
14093
 
14094
  def write(self, oprot):
14095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14097
      return
14098
    oprot.writeStructBegin('getStateMaster_args')
14099
    oprot.writeFieldStop()
14100
    oprot.writeStructEnd()
14101
 
14102
  def validate(self):
14103
    return
14104
 
14105
 
14106
  def __repr__(self):
14107
    L = ['%s=%r' % (key, value)
14108
      for key, value in self.__dict__.iteritems()]
14109
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14110
 
14111
  def __eq__(self, other):
14112
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14113
 
14114
  def __ne__(self, other):
14115
    return not (self == other)
14116
 
14117
class getStateMaster_result:
14118
  """
14119
  Attributes:
14120
   - success
14121
  """
14122
 
14123
  thrift_spec = (
12280 amit.gupta 14124
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(StateInfo, StateInfo.thrift_spec)), None, ), # 0
10485 vikram.rag 14125
  )
14126
 
14127
  def __init__(self, success=None,):
14128
    self.success = success
14129
 
14130
  def read(self, iprot):
14131
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14132
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14133
      return
14134
    iprot.readStructBegin()
14135
    while True:
14136
      (fname, ftype, fid) = iprot.readFieldBegin()
14137
      if ftype == TType.STOP:
14138
        break
14139
      if fid == 0:
14140
        if ftype == TType.MAP:
14141
          self.success = {}
11173 vikram.rag 14142
          (_ktype317, _vtype318, _size316 ) = iprot.readMapBegin() 
14143
          for _i320 in xrange(_size316):
14144
            _key321 = iprot.readI64();
12280 amit.gupta 14145
            _val322 = StateInfo()
14146
            _val322.read(iprot)
11173 vikram.rag 14147
            self.success[_key321] = _val322
10485 vikram.rag 14148
          iprot.readMapEnd()
14149
        else:
14150
          iprot.skip(ftype)
14151
      else:
14152
        iprot.skip(ftype)
14153
      iprot.readFieldEnd()
14154
    iprot.readStructEnd()
14155
 
14156
  def write(self, oprot):
14157
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14158
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14159
      return
14160
    oprot.writeStructBegin('getStateMaster_result')
14161
    if self.success is not None:
14162
      oprot.writeFieldBegin('success', TType.MAP, 0)
12280 amit.gupta 14163
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
11173 vikram.rag 14164
      for kiter323,viter324 in self.success.items():
14165
        oprot.writeI64(kiter323)
12280 amit.gupta 14166
        viter324.write(oprot)
10485 vikram.rag 14167
      oprot.writeMapEnd()
14168
      oprot.writeFieldEnd()
14169
    oprot.writeFieldStop()
14170
    oprot.writeStructEnd()
14171
 
14172
  def validate(self):
14173
    return
14174
 
14175
 
14176
  def __repr__(self):
14177
    L = ['%s=%r' % (key, value)
14178
      for key, value in self.__dict__.iteritems()]
14179
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14180
 
14181
  def __eq__(self, other):
14182
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14183
 
14184
  def __ne__(self, other):
14185
    return not (self == other)
10544 vikram.rag 14186
 
14187
class updateSnapdealStockAtEOD_args:
14188
  """
14189
  Attributes:
14190
   - allsnapdealstock
14191
  """
14192
 
14193
  thrift_spec = None
14194
  def __init__(self, allsnapdealstock=None,):
14195
    self.allsnapdealstock = allsnapdealstock
14196
 
14197
  def read(self, iprot):
14198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14200
      return
14201
    iprot.readStructBegin()
14202
    while True:
14203
      (fname, ftype, fid) = iprot.readFieldBegin()
14204
      if ftype == TType.STOP:
14205
        break
14206
      if fid == -1:
14207
        if ftype == TType.LIST:
14208
          self.allsnapdealstock = []
11173 vikram.rag 14209
          (_etype328, _size325) = iprot.readListBegin()
14210
          for _i329 in xrange(_size325):
14211
            _elem330 = SnapdealStockAtEOD()
14212
            _elem330.read(iprot)
14213
            self.allsnapdealstock.append(_elem330)
10544 vikram.rag 14214
          iprot.readListEnd()
14215
        else:
14216
          iprot.skip(ftype)
14217
      else:
14218
        iprot.skip(ftype)
14219
      iprot.readFieldEnd()
14220
    iprot.readStructEnd()
14221
 
14222
  def write(self, oprot):
14223
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14224
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14225
      return
14226
    oprot.writeStructBegin('updateSnapdealStockAtEOD_args')
14227
    if self.allsnapdealstock is not None:
14228
      oprot.writeFieldBegin('allsnapdealstock', TType.LIST, -1)
14229
      oprot.writeListBegin(TType.STRUCT, len(self.allsnapdealstock))
11173 vikram.rag 14230
      for iter331 in self.allsnapdealstock:
14231
        iter331.write(oprot)
10544 vikram.rag 14232
      oprot.writeListEnd()
14233
      oprot.writeFieldEnd()
14234
    oprot.writeFieldStop()
14235
    oprot.writeStructEnd()
14236
 
14237
  def validate(self):
14238
    return
14239
 
14240
 
14241
  def __repr__(self):
14242
    L = ['%s=%r' % (key, value)
14243
      for key, value in self.__dict__.iteritems()]
14244
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14245
 
14246
  def __eq__(self, other):
14247
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14248
 
14249
  def __ne__(self, other):
14250
    return not (self == other)
14251
 
14252
class updateSnapdealStockAtEOD_result:
14253
 
14254
  thrift_spec = (
14255
  )
14256
 
14257
  def read(self, iprot):
14258
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14259
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14260
      return
14261
    iprot.readStructBegin()
14262
    while True:
14263
      (fname, ftype, fid) = iprot.readFieldBegin()
14264
      if ftype == TType.STOP:
14265
        break
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_result')
14276
    oprot.writeFieldStop()
14277
    oprot.writeStructEnd()
14278
 
14279
  def validate(self):
14280
    return
14281
 
14282
 
14283
  def __repr__(self):
14284
    L = ['%s=%r' % (key, value)
14285
      for key, value in self.__dict__.iteritems()]
14286
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14287
 
14288
  def __eq__(self, other):
14289
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14290
 
14291
  def __ne__(self, other):
14292
    return not (self == other)
14293
 
14294
class updateFlipkartStockAtEOD_args:
14295
  """
14296
  Attributes:
14297
   - allflipkartstock
14298
  """
14299
 
14300
  thrift_spec = None
14301
  def __init__(self, allflipkartstock=None,):
14302
    self.allflipkartstock = allflipkartstock
14303
 
14304
  def read(self, iprot):
14305
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14306
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14307
      return
14308
    iprot.readStructBegin()
14309
    while True:
14310
      (fname, ftype, fid) = iprot.readFieldBegin()
14311
      if ftype == TType.STOP:
14312
        break
14313
      if fid == -1:
14314
        if ftype == TType.LIST:
14315
          self.allflipkartstock = []
11173 vikram.rag 14316
          (_etype335, _size332) = iprot.readListBegin()
14317
          for _i336 in xrange(_size332):
14318
            _elem337 = FlipkartStockAtEOD()
14319
            _elem337.read(iprot)
14320
            self.allflipkartstock.append(_elem337)
10544 vikram.rag 14321
          iprot.readListEnd()
14322
        else:
14323
          iprot.skip(ftype)
14324
      else:
14325
        iprot.skip(ftype)
14326
      iprot.readFieldEnd()
14327
    iprot.readStructEnd()
14328
 
14329
  def write(self, oprot):
14330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14332
      return
14333
    oprot.writeStructBegin('updateFlipkartStockAtEOD_args')
14334
    if self.allflipkartstock is not None:
14335
      oprot.writeFieldBegin('allflipkartstock', TType.LIST, -1)
14336
      oprot.writeListBegin(TType.STRUCT, len(self.allflipkartstock))
11173 vikram.rag 14337
      for iter338 in self.allflipkartstock:
14338
        iter338.write(oprot)
10544 vikram.rag 14339
      oprot.writeListEnd()
14340
      oprot.writeFieldEnd()
14341
    oprot.writeFieldStop()
14342
    oprot.writeStructEnd()
14343
 
14344
  def validate(self):
14345
    return
14346
 
14347
 
14348
  def __repr__(self):
14349
    L = ['%s=%r' % (key, value)
14350
      for key, value in self.__dict__.iteritems()]
14351
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14352
 
14353
  def __eq__(self, other):
14354
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14355
 
14356
  def __ne__(self, other):
14357
    return not (self == other)
14358
 
14359
class updateFlipkartStockAtEOD_result:
14360
 
14361
  thrift_spec = (
14362
  )
14363
 
14364
  def read(self, iprot):
14365
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14366
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14367
      return
14368
    iprot.readStructBegin()
14369
    while True:
14370
      (fname, ftype, fid) = iprot.readFieldBegin()
14371
      if ftype == TType.STOP:
14372
        break
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_result')
14383
    oprot.writeFieldStop()
14384
    oprot.writeStructEnd()
14385
 
14386
  def validate(self):
14387
    return
14388
 
14389
 
14390
  def __repr__(self):
14391
    L = ['%s=%r' % (key, value)
14392
      for key, value in self.__dict__.iteritems()]
14393
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14394
 
14395
  def __eq__(self, other):
14396
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14397
 
14398
  def __ne__(self, other):
14399
    return not (self == other)
12363 kshitij.so 14400
 
14401
class getWanNlcForSource_args:
14402
  """
14403
  Attributes:
14404
   - item_id
14405
   - source
14406
  """
14407
 
14408
  thrift_spec = (
14409
    None, # 0
14410
    (1, TType.I64, 'item_id', None, None, ), # 1
14411
    (2, TType.I64, 'source', None, None, ), # 2
14412
  )
14413
 
14414
  def __init__(self, item_id=None, source=None,):
14415
    self.item_id = item_id
14416
    self.source = source
14417
 
14418
  def read(self, iprot):
14419
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14420
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14421
      return
14422
    iprot.readStructBegin()
14423
    while True:
14424
      (fname, ftype, fid) = iprot.readFieldBegin()
14425
      if ftype == TType.STOP:
14426
        break
14427
      if fid == 1:
14428
        if ftype == TType.I64:
14429
          self.item_id = iprot.readI64();
14430
        else:
14431
          iprot.skip(ftype)
14432
      elif fid == 2:
14433
        if ftype == TType.I64:
14434
          self.source = iprot.readI64();
14435
        else:
14436
          iprot.skip(ftype)
14437
      else:
14438
        iprot.skip(ftype)
14439
      iprot.readFieldEnd()
14440
    iprot.readStructEnd()
14441
 
14442
  def write(self, oprot):
14443
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14444
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14445
      return
14446
    oprot.writeStructBegin('getWanNlcForSource_args')
14447
    if self.item_id is not None:
14448
      oprot.writeFieldBegin('item_id', TType.I64, 1)
14449
      oprot.writeI64(self.item_id)
14450
      oprot.writeFieldEnd()
14451
    if self.source is not None:
14452
      oprot.writeFieldBegin('source', TType.I64, 2)
14453
      oprot.writeI64(self.source)
14454
      oprot.writeFieldEnd()
14455
    oprot.writeFieldStop()
14456
    oprot.writeStructEnd()
14457
 
14458
  def validate(self):
14459
    return
14460
 
14461
 
14462
  def __repr__(self):
14463
    L = ['%s=%r' % (key, value)
14464
      for key, value in self.__dict__.iteritems()]
14465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14466
 
14467
  def __eq__(self, other):
14468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14469
 
14470
  def __ne__(self, other):
14471
    return not (self == other)
14472
 
14473
class getWanNlcForSource_result:
14474
  """
14475
  Attributes:
14476
   - success
14477
  """
14478
 
14479
  thrift_spec = (
14480
    (0, TType.DOUBLE, 'success', None, None, ), # 0
14481
  )
14482
 
14483
  def __init__(self, success=None,):
14484
    self.success = success
14485
 
14486
  def read(self, iprot):
14487
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14488
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14489
      return
14490
    iprot.readStructBegin()
14491
    while True:
14492
      (fname, ftype, fid) = iprot.readFieldBegin()
14493
      if ftype == TType.STOP:
14494
        break
14495
      if fid == 0:
14496
        if ftype == TType.DOUBLE:
14497
          self.success = iprot.readDouble();
14498
        else:
14499
          iprot.skip(ftype)
14500
      else:
14501
        iprot.skip(ftype)
14502
      iprot.readFieldEnd()
14503
    iprot.readStructEnd()
14504
 
14505
  def write(self, oprot):
14506
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14507
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14508
      return
14509
    oprot.writeStructBegin('getWanNlcForSource_result')
14510
    if self.success is not None:
14511
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
14512
      oprot.writeDouble(self.success)
14513
      oprot.writeFieldEnd()
14514
    oprot.writeFieldStop()
14515
    oprot.writeStructEnd()
14516
 
14517
  def validate(self):
14518
    return
14519
 
14520
 
14521
  def __repr__(self):
14522
    L = ['%s=%r' % (key, value)
14523
      for key, value in self.__dict__.iteritems()]
14524
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14525
 
14526
  def __eq__(self, other):
14527
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14528
 
14529
  def __ne__(self, other):
14530
    return not (self == other)
14531
 
14532
class getAllAvailableAmazonFbaItemInventory_args:
14533
 
14534
  thrift_spec = (
14535
  )
14536
 
14537
  def read(self, iprot):
14538
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14539
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14540
      return
14541
    iprot.readStructBegin()
14542
    while True:
14543
      (fname, ftype, fid) = iprot.readFieldBegin()
14544
      if ftype == TType.STOP:
14545
        break
14546
      else:
14547
        iprot.skip(ftype)
14548
      iprot.readFieldEnd()
14549
    iprot.readStructEnd()
14550
 
14551
  def write(self, oprot):
14552
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14553
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14554
      return
14555
    oprot.writeStructBegin('getAllAvailableAmazonFbaItemInventory_args')
14556
    oprot.writeFieldStop()
14557
    oprot.writeStructEnd()
14558
 
14559
  def validate(self):
14560
    return
14561
 
14562
 
14563
  def __repr__(self):
14564
    L = ['%s=%r' % (key, value)
14565
      for key, value in self.__dict__.iteritems()]
14566
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14567
 
14568
  def __eq__(self, other):
14569
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14570
 
14571
  def __ne__(self, other):
14572
    return not (self == other)
14573
 
14574
class getAllAvailableAmazonFbaItemInventory_result:
14575
  """
14576
  Attributes:
14577
   - success
14578
  """
14579
 
14580
  thrift_spec = (
14581
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
14582
  )
14583
 
14584
  def __init__(self, success=None,):
14585
    self.success = success
14586
 
14587
  def read(self, iprot):
14588
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14589
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14590
      return
14591
    iprot.readStructBegin()
14592
    while True:
14593
      (fname, ftype, fid) = iprot.readFieldBegin()
14594
      if ftype == TType.STOP:
14595
        break
14596
      if fid == 0:
14597
        if ftype == TType.LIST:
14598
          self.success = []
14599
          (_etype342, _size339) = iprot.readListBegin()
14600
          for _i343 in xrange(_size339):
14601
            _elem344 = AmazonFbaInventorySnapshot()
14602
            _elem344.read(iprot)
14603
            self.success.append(_elem344)
14604
          iprot.readListEnd()
14605
        else:
14606
          iprot.skip(ftype)
14607
      else:
14608
        iprot.skip(ftype)
14609
      iprot.readFieldEnd()
14610
    iprot.readStructEnd()
14611
 
14612
  def write(self, oprot):
14613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14615
      return
14616
    oprot.writeStructBegin('getAllAvailableAmazonFbaItemInventory_result')
14617
    if self.success is not None:
14618
      oprot.writeFieldBegin('success', TType.LIST, 0)
14619
      oprot.writeListBegin(TType.STRUCT, len(self.success))
14620
      for iter345 in self.success:
14621
        iter345.write(oprot)
14622
      oprot.writeListEnd()
14623
      oprot.writeFieldEnd()
14624
    oprot.writeFieldStop()
14625
    oprot.writeStructEnd()
14626
 
14627
  def validate(self):
14628
    return
14629
 
14630
 
14631
  def __repr__(self):
14632
    L = ['%s=%r' % (key, value)
14633
      for key, value in self.__dict__.iteritems()]
14634
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14635
 
14636
  def __eq__(self, other):
14637
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14638
 
14639
  def __ne__(self, other):
14640
    return not (self == other)