Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
5944 mandeep.dh 1
#
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def addWarehouse(self, warehouse):
21
    """
22
    Parameters:
23
     - warehouse
24
    """
25
    pass
26
 
27
  def addVendor(self, vendor):
28
    """
29
    add a new vendor
30
 
31
    Parameters:
32
     - vendor
33
    """
34
    pass
35
 
36
  def updateInventoryHistory(self, warehouse_id, timestamp, availability):
37
    """
38
    Stores the incremental warehouse updates of items.
39
 
40
    Parameters:
41
     - warehouse_id
42
     - timestamp
43
     - availability
44
    """
45
    pass
46
 
47
  def updateInventory(self, warehouse_id, timestamp, availability):
48
    """
49
    Stores the final inventory stocks of items.
50
 
51
    Parameters:
52
     - warehouse_id
53
     - timestamp
54
     - availability
55
    """
56
    pass
57
 
58
  def addInventory(self, itemId, warehouseId, quantity):
59
    """
60
    Add the inventory to existing stock.
61
 
62
    Parameters:
63
     - itemId
64
     - warehouseId
65
     - quantity
66
    """
67
    pass
68
 
69
  def retireWarehouse(self, warehouse_id):
70
    """
71
    Parameters:
72
     - warehouse_id
73
    """
74
    pass
75
 
76
  def getItemInventoryByItemId(self, item_id):
77
    """
78
    Parameters:
79
     - item_id
80
    """
81
    pass
82
 
83
  def getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
84
    """
85
    Parameters:
86
     - warehouse_id
87
     - item_id
88
    """
89
    pass
90
 
5978 rajveer 91
  def getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 92
    """
93
    Determines the warehouse that should be used to fulfil an order for the given item.
94
    It first checks all the warehouses which are in the logistics location given by the
95
    warehouse_loc parameter. If none of the warehouses there have any inventory, then the
96
    preferred warehouse for the item is used.
97
 
98
    Returns an ordered list of size 4 with following elements in the given order:
99
    1. Id of the fulfillment warehouse which was finally picked up.
100
    2. Expected delay added by the category manager.
101
    3. Id of the billing warehouse which was finally picked up.
102
 
103
    Parameters:
104
     - itemId
5978 rajveer 105
     - sourceId
5944 mandeep.dh 106
    """
107
    pass
108
 
109
  def getAllWarehouses(self, isActive):
110
    """
111
    Parameters:
112
     - isActive
113
    """
114
    pass
115
 
116
  def getWarehouse(self, warehouse_id):
117
    """
118
    Returns the warehouse with the given id.
119
 
120
    Parameters:
121
     - warehouse_id
122
    """
123
    pass
124
 
125
  def getAllItemsForWarehouse(self, warehouse_id):
126
    """
127
    Parameters:
128
     - warehouse_id
129
    """
130
    pass
131
 
5966 rajveer 132
  def isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
5944 mandeep.dh 133
    """
5966 rajveer 134
    Depending on reservation in the table, verify if we can bill this order or not.
135
 
136
    Parameters:
137
     - itemId
138
     - warehouseId
139
     - sourceId
140
     - orderId
141
    """
142
    pass
143
 
144
  def reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
145
    """
5944 mandeep.dh 146
    Increases the reservation count for an item in a warehouse. Should always succeed normally.
147
 
148
    Parameters:
149
     - itemId
150
     - warehouseId
5966 rajveer 151
     - sourceId
152
     - orderId
153
     - createdTimestamp
154
     - promisedShippingTimestamp
5944 mandeep.dh 155
     - quantity
156
    """
157
    pass
158
 
7968 amar.kumar 159
  def updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
160
    """
161
    Updates the reservation for Order
162
 
163
    Parameters:
164
     - itemId
165
     - warehouseId
166
     - sourceId
167
     - orderId
168
     - createdTimestamp
169
     - promisedShippingTimestamp
170
     - quantity
171
    """
172
    pass
173
 
5966 rajveer 174
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 175
    """
176
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
177
 
178
    Parameters:
179
     - itemId
180
     - warehouseId
5966 rajveer 181
     - sourceId
182
     - orderId
5944 mandeep.dh 183
     - quantity
184
    """
185
    pass
186
 
187
  def getItemPricing(self, itemId, vendorId):
188
    """
189
    Returns the pricing information of an item associated with the vendor of the given warehouse.
190
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
191
 
192
    Parameters:
193
     - itemId
194
     - vendorId
195
    """
196
    pass
197
 
198
  def getAllItemPricing(self, itemId):
199
    """
200
    Returns the list of vendor pricing information of an item.
201
    Raises an exception if item not found corresponding to itemId
202
 
203
    Parameters:
204
     - itemId
205
    """
206
    pass
207
 
208
  def addVendorItemPricing(self, vendorItemPricing):
209
    """
210
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
211
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
212
 
213
    Parameters:
214
     - vendorItemPricing
215
    """
216
    pass
217
 
218
  def getVendor(self, vendorId):
219
    """
220
    Returns a vendor given its id
221
 
222
    Parameters:
223
     - vendorId
224
    """
225
    pass
226
 
227
  def getAllVendors(self, ):
228
    """
229
    Return list of all vendors
230
    """
231
    pass
232
 
233
  def addVendorItemMapping(self, key, vendorItemMapping):
234
    """
235
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
236
 
237
    Parameters:
238
     - key
239
     - vendorItemMapping
240
    """
241
    pass
242
 
243
  def getVendorItemMappings(self, itemId):
244
    """
245
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
246
    Raises an exception if item not found corresponding to itemId
247
 
248
    Parameters:
249
     - itemId
250
    """
251
    pass
252
 
253
  def getPendingOrdersInventory(self, vendorid):
254
    """
255
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
256
 
257
    Parameters:
258
     - vendorid
259
    """
260
    pass
261
 
262
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
263
    """
264
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
265
    getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 3, 7, 7) would return ours warehouse with GOOD type inventory for vendor 1 for billing warehouse 7 and shipping warehouse 7
266
    getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 3, 7, 7) would return ours warehouse with GOOD type inventory for vendor 3 for billing warehouse 7 and shipping warehouse 7
267
       getWarehouses(null, null, 3, 7, 7) would return all type warehouses with all type inventory for vendor 3 for billing warehouse 7 and shipping warehouse 7
268
       getWarehouses(null, null, 0, 0, 7) would return all type warehouses with all type inventory for all vendors for all billing warehouses at shipping warehouse 7
269
 
270
    Parameters:
271
     - warehouseType
272
     - inventoryType
273
     - vendorId
274
     - billingWarehouseId
275
     - shippingWarehouseId
276
    """
277
    pass
278
 
279
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
280
    """
281
    Resets availability of an item to the quantity mentioned in a warehouse.
282
 
283
    Parameters:
284
     - itemKey
285
     - vendorId
286
     - quantity
287
     - warehouseId
288
    """
289
    pass
290
 
291
  def resetAvailabilityForWarehouse(self, warehouseId):
292
    """
293
    Resets availability of a warehouse to zero.
294
 
295
    Parameters:
296
     - warehouseId
297
    """
298
    pass
299
 
300
  def getItemKeysToBeProcessed(self, warehouseId):
301
    """
302
    Returns the list of item keys which need to be processed for a given warehouse.
303
    This is currently used by Support application to send item keys whose inventory needs
304
    to be updated from PLB
305
 
306
    Parameters:
307
     - warehouseId
308
    """
309
    pass
310
 
311
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
312
    """
313
    Marks/Deletes missed inventory updates for a given key and warehouse.
314
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
315
 
316
    Parameters:
317
     - itemKey
318
     - warehouseId
319
    """
320
    pass
321
 
322
  def getIgnoredItemKeys(self, ):
323
    """
324
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
325
    and the timestamp from where alert was raised.
326
    """
327
    pass
328
 
329
  def addBadInventory(self, itemId, warehouseId, quantity):
330
    """
331
    Add the BAD type inventory to existing stock.
332
 
333
    Parameters:
334
     - itemId
335
     - warehouseId
336
     - quantity
337
    """
338
    pass
339
 
340
  def getShippingLocations(self, ):
341
    """
342
    Returns all shipping locations
343
    """
344
    pass
345
 
346
  def getAllVendorItemMappings(self, ):
347
    """
348
    Fetches all the vendor item mappings present.
349
    """
350
    pass
351
 
352
  def getInventorySnapshot(self, warehouseId):
353
    """
354
    Gets items' inventory for a warehouse
355
    If warehouse is passed as zero, items' inventory across all warehouses is sent
356
 
357
    Parameters:
358
     - warehouseId
359
    """
360
    pass
361
 
362
  def clearItemAvailabilityCache(self, ):
363
    """
364
    Clear item availability cache.
365
    """
366
    pass
367
 
368
  def updateVendorString(self, warehouseId, vendorString):
369
    """
370
    Parameters:
371
     - warehouseId
372
     - vendorString
373
    """
374
    pass
375
 
6096 amit.gupta 376
  def clearItemAvailabilityCacheForItem(self, item_id):
377
    """
378
    Parameters:
379
     - item_id
380
    """
381
    pass
5944 mandeep.dh 382
 
7718 amar.kumar 383
  def getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 384
    """
385
    Parameters:
386
     - vendorId
7718 amar.kumar 387
     - billingWarehouseId
6467 amar.kumar 388
    """
389
    pass
6096 amit.gupta 390
 
6484 amar.kumar 391
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
392
    """
393
    Parameters:
394
     - item_ids
395
    """
396
    pass
6467 amar.kumar 397
 
6531 vikram.rag 398
  def getMonitoredWarehouseForVendors(self, vendorIds):
399
    """
400
    Parameters:
401
     - vendorIds
402
    """
403
    pass
6484 amar.kumar 404
 
6531 vikram.rag 405
  def getIgnoredWarehouseidsAndItemids(self, ):
406
    pass
407
 
408
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
409
    """
410
    Parameters:
411
     - item_id
412
     - warehouse_id
413
    """
414
    pass
415
 
416
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
417
    """
418
    Parameters:
419
     - item_id
420
     - warehouse_id
421
    """
422
    pass
423
 
424
  def getAllIgnoredInventoryupdateItemsCount(self, ):
425
    pass
426
 
427
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
428
    """
429
    Parameters:
430
     - offset
431
     - limit
432
    """
433
    pass
434
 
6821 amar.kumar 435
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
436
    """
437
    Parameters:
438
     - item_id
439
     - numOfDaysStock
440
     - minStockLevel
441
    """
442
    pass
6531 vikram.rag 443
 
6821 amar.kumar 444
  def getItemStockPurchaseParams(self, itemId):
445
    """
446
    Parameters:
447
     - itemId
448
    """
449
    pass
450
 
451
  def addOosStatusForItem(self, oosStatusMap, date):
452
    """
453
    Parameters:
454
     - oosStatusMap
455
     - date
456
    """
457
    pass
458
 
9762 amar.kumar 459
  def getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 460
    """
461
    Parameters:
462
     - itemId
9762 amar.kumar 463
     - sourceId
6832 amar.kumar 464
     - days
465
    """
466
    pass
6821 amar.kumar 467
 
10126 amar.kumar 468
  def getOosStatusesForXDays(self, sourceId, days):
469
    """
470
    Parameters:
471
     - sourceId
472
     - days
473
    """
474
    pass
475
 
476
  def getAllVendorItemPricing(self, itemId, vendorId):
477
    """
478
    Parameters:
479
     - itemId
480
     - vendorId
481
    """
482
    pass
483
 
6857 amar.kumar 484
  def getNonZeroItemStockPurchaseParams(self, ):
485
    pass
6832 amar.kumar 486
 
7149 amar.kumar 487
  def getBillableInventoryAndPendingOrders(self, ):
488
    """
489
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
490
    """
491
    pass
6857 amar.kumar 492
 
7281 kshitij.so 493
  def getWarehouseName(self, warehouse_id):
494
    """
495
    Parameters:
496
     - warehouse_id
497
    """
498
    pass
7149 amar.kumar 499
 
7281 kshitij.so 500
  def getAmazonInventoryForItem(self, item_id):
501
    """
502
    Parameters:
503
     - item_id
504
    """
505
    pass
506
 
507
  def getAllAmazonInventory(self, ):
508
    pass
509
 
10450 vikram.rag 510
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot, time):
7281 kshitij.so 511
    """
512
    Parameters:
513
     - amazonInventorySnapshot
10450 vikram.rag 514
     - time
7281 kshitij.so 515
    """
516
    pass
517
 
7972 amar.kumar 518
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
519
    """
520
    Parameters:
521
     - itemId
522
     - numberOfDays
523
    """
524
    pass
7281 kshitij.so 525
 
8282 kshitij.so 526
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
527
    """
528
    Parameters:
529
     - amazonfbainventorysnapshot
530
    """
531
    pass
532
 
8182 amar.kumar 533
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
534
    """
535
    Parameters:
536
     - itemId
537
     - warehouseId
538
     - holdQuantity
539
     - source
540
    """
541
    pass
7972 amar.kumar 542
 
8282 kshitij.so 543
  def getAmazonFbaItemInventory(self, itemId):
544
    """
545
    Parameters:
546
     - itemId
547
    """
548
    pass
8182 amar.kumar 549
 
8363 vikram.rag 550
  def getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 551
    pass
552
 
8363 vikram.rag 553
  def getOursGoodWarehouseIdsForLocation(self, state_id):
554
    """
555
    Parameters:
556
     - state_id
557
    """
558
    pass
8282 kshitij.so 559
 
8955 vikram.rag 560
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
561
    """
562
    Parameters:
563
     - id
564
     - warehouse_id
565
     - source
566
    """
567
    pass
8363 vikram.rag 568
 
9404 vikram.rag 569
  def getSnapdealInventoryForItem(self, item_id):
570
    """
571
    Parameters:
572
     - item_id
573
    """
574
    pass
8955 vikram.rag 575
 
9404 vikram.rag 576
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
577
    """
578
    Parameters:
579
     - snapdealinventoryitem
580
    """
581
    pass
582
 
583
  def getNlcForWarehouse(self, warehouse_id, item_id):
584
    """
585
    Parameters:
586
     - warehouse_id
587
     - item_id
588
    """
589
    pass
590
 
9640 amar.kumar 591
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
592
    """
593
    Parameters:
594
     - item_id
595
     - warehouse_id
596
    """
597
    pass
598
 
9482 vikram.rag 599
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
600
    """
601
    Parameters:
602
     - allamazonfbainventorysnapshot
603
    """
604
    pass
9456 vikram.rag 605
 
9495 vikram.rag 606
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
607
    """
608
    Parameters:
609
     - allsnapdealinventorysnapshot
610
    """
611
    pass
9482 vikram.rag 612
 
9495 vikram.rag 613
  def getSnapdealInventorySnapshot(self, ):
614
    pass
615
 
9761 amar.kumar 616
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
617
    """
618
    Parameters:
619
     - itemId
620
     - warehouseId
621
     - source
622
    """
623
    pass
9495 vikram.rag 624
 
10450 vikram.rag 625
  def addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot, time):
10050 vikram.rag 626
    """
627
    Parameters:
628
     - flipkartInventorySnapshot
10450 vikram.rag 629
     - time
10050 vikram.rag 630
    """
631
    pass
9761 amar.kumar 632
 
10050 vikram.rag 633
  def getFlipkartInventorySnapshot(self, ):
634
    pass
635
 
10097 kshitij.so 636
  def getFlipkartlInventoryForItem(self, item_id):
637
    """
638
    Parameters:
639
     - item_id
640
    """
641
    pass
10050 vikram.rag 642
 
10485 vikram.rag 643
  def getStateMaster(self, ):
644
    pass
10097 kshitij.so 645
 
10544 vikram.rag 646
  def updateSnapdealStockAtEOD(self, allsnapdealstock):
647
    """
648
    Parameters:
649
     - allsnapdealstock
650
    """
651
    pass
10485 vikram.rag 652
 
10544 vikram.rag 653
  def updateFlipkartStockAtEOD(self, allflipkartstock):
654
    """
655
    Parameters:
656
     - allflipkartstock
657
    """
658
    pass
659
 
12363 kshitij.so 660
  def getWanNlcForSource(self, item_id, source):
661
    """
662
    Parameters:
663
     - item_id
664
     - source
665
    """
666
    pass
10544 vikram.rag 667
 
12363 kshitij.so 668
  def getAllAvailableAmazonFbaItemInventory(self, ):
669
    pass
670
 
17990 kshitij.so 671
  def updateItemAvailabilityForItemIds(self, itemIds):
672
    """
673
    Parameters:
674
     - itemIds
675
    """
676
    pass
12363 kshitij.so 677
 
19247 kshitij.so 678
  def addVendorItemPricingInBulk(self, vendorItemPricingList):
679
    """
680
    Parameters:
681
     - vendorItemPricingList
682
    """
683
    pass
17990 kshitij.so 684
 
19247 kshitij.so 685
  def addInventoryInBulk(self, bulkInventoryList):
686
    """
687
    Parameters:
688
     - bulkInventoryList
689
    """
690
    pass
691
 
692
 
5944 mandeep.dh 693
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
694
  def __init__(self, iprot, oprot=None):
695
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
696
 
697
  def addWarehouse(self, warehouse):
698
    """
699
    Parameters:
700
     - warehouse
701
    """
702
    self.send_addWarehouse(warehouse)
703
    return self.recv_addWarehouse()
704
 
705
  def send_addWarehouse(self, warehouse):
706
    self._oprot.writeMessageBegin('addWarehouse', TMessageType.CALL, self._seqid)
707
    args = addWarehouse_args()
708
    args.warehouse = warehouse
709
    args.write(self._oprot)
710
    self._oprot.writeMessageEnd()
711
    self._oprot.trans.flush()
712
 
713
  def recv_addWarehouse(self, ):
714
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
715
    if mtype == TMessageType.EXCEPTION:
716
      x = TApplicationException()
717
      x.read(self._iprot)
718
      self._iprot.readMessageEnd()
719
      raise x
720
    result = addWarehouse_result()
721
    result.read(self._iprot)
722
    self._iprot.readMessageEnd()
723
    if result.success is not None:
724
      return result.success
725
    if result.cex is not None:
726
      raise result.cex
727
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
728
 
729
  def addVendor(self, vendor):
730
    """
731
    add a new vendor
732
 
733
    Parameters:
734
     - vendor
735
    """
736
    self.send_addVendor(vendor)
737
    return self.recv_addVendor()
738
 
739
  def send_addVendor(self, vendor):
740
    self._oprot.writeMessageBegin('addVendor', TMessageType.CALL, self._seqid)
741
    args = addVendor_args()
742
    args.vendor = vendor
743
    args.write(self._oprot)
744
    self._oprot.writeMessageEnd()
745
    self._oprot.trans.flush()
746
 
747
  def recv_addVendor(self, ):
748
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
749
    if mtype == TMessageType.EXCEPTION:
750
      x = TApplicationException()
751
      x.read(self._iprot)
752
      self._iprot.readMessageEnd()
753
      raise x
754
    result = addVendor_result()
755
    result.read(self._iprot)
756
    self._iprot.readMessageEnd()
757
    if result.success is not None:
758
      return result.success
759
    if result.cex is not None:
760
      raise result.cex
761
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
762
 
763
  def updateInventoryHistory(self, warehouse_id, timestamp, availability):
764
    """
765
    Stores the incremental warehouse updates of items.
766
 
767
    Parameters:
768
     - warehouse_id
769
     - timestamp
770
     - availability
771
    """
772
    self.send_updateInventoryHistory(warehouse_id, timestamp, availability)
773
    self.recv_updateInventoryHistory()
774
 
775
  def send_updateInventoryHistory(self, warehouse_id, timestamp, availability):
776
    self._oprot.writeMessageBegin('updateInventoryHistory', TMessageType.CALL, self._seqid)
777
    args = updateInventoryHistory_args()
778
    args.warehouse_id = warehouse_id
779
    args.timestamp = timestamp
780
    args.availability = availability
781
    args.write(self._oprot)
782
    self._oprot.writeMessageEnd()
783
    self._oprot.trans.flush()
784
 
785
  def recv_updateInventoryHistory(self, ):
786
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
787
    if mtype == TMessageType.EXCEPTION:
788
      x = TApplicationException()
789
      x.read(self._iprot)
790
      self._iprot.readMessageEnd()
791
      raise x
792
    result = updateInventoryHistory_result()
793
    result.read(self._iprot)
794
    self._iprot.readMessageEnd()
795
    if result.cex is not None:
796
      raise result.cex
797
    return
798
 
799
  def updateInventory(self, warehouse_id, timestamp, availability):
800
    """
801
    Stores the final inventory stocks of items.
802
 
803
    Parameters:
804
     - warehouse_id
805
     - timestamp
806
     - availability
807
    """
808
    self.send_updateInventory(warehouse_id, timestamp, availability)
809
    self.recv_updateInventory()
810
 
811
  def send_updateInventory(self, warehouse_id, timestamp, availability):
812
    self._oprot.writeMessageBegin('updateInventory', TMessageType.CALL, self._seqid)
813
    args = updateInventory_args()
814
    args.warehouse_id = warehouse_id
815
    args.timestamp = timestamp
816
    args.availability = availability
817
    args.write(self._oprot)
818
    self._oprot.writeMessageEnd()
819
    self._oprot.trans.flush()
820
 
821
  def recv_updateInventory(self, ):
822
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
823
    if mtype == TMessageType.EXCEPTION:
824
      x = TApplicationException()
825
      x.read(self._iprot)
826
      self._iprot.readMessageEnd()
827
      raise x
828
    result = updateInventory_result()
829
    result.read(self._iprot)
830
    self._iprot.readMessageEnd()
831
    if result.cex is not None:
832
      raise result.cex
833
    return
834
 
835
  def addInventory(self, itemId, warehouseId, quantity):
836
    """
837
    Add the inventory to existing stock.
838
 
839
    Parameters:
840
     - itemId
841
     - warehouseId
842
     - quantity
843
    """
844
    self.send_addInventory(itemId, warehouseId, quantity)
845
    self.recv_addInventory()
846
 
847
  def send_addInventory(self, itemId, warehouseId, quantity):
848
    self._oprot.writeMessageBegin('addInventory', TMessageType.CALL, self._seqid)
849
    args = addInventory_args()
850
    args.itemId = itemId
851
    args.warehouseId = warehouseId
852
    args.quantity = quantity
853
    args.write(self._oprot)
854
    self._oprot.writeMessageEnd()
855
    self._oprot.trans.flush()
856
 
857
  def recv_addInventory(self, ):
858
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
859
    if mtype == TMessageType.EXCEPTION:
860
      x = TApplicationException()
861
      x.read(self._iprot)
862
      self._iprot.readMessageEnd()
863
      raise x
864
    result = addInventory_result()
865
    result.read(self._iprot)
866
    self._iprot.readMessageEnd()
867
    if result.cex is not None:
868
      raise result.cex
869
    return
870
 
871
  def retireWarehouse(self, warehouse_id):
872
    """
873
    Parameters:
874
     - warehouse_id
875
    """
876
    self.send_retireWarehouse(warehouse_id)
877
    self.recv_retireWarehouse()
878
 
879
  def send_retireWarehouse(self, warehouse_id):
880
    self._oprot.writeMessageBegin('retireWarehouse', TMessageType.CALL, self._seqid)
881
    args = retireWarehouse_args()
882
    args.warehouse_id = warehouse_id
883
    args.write(self._oprot)
884
    self._oprot.writeMessageEnd()
885
    self._oprot.trans.flush()
886
 
887
  def recv_retireWarehouse(self, ):
888
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
889
    if mtype == TMessageType.EXCEPTION:
890
      x = TApplicationException()
891
      x.read(self._iprot)
892
      self._iprot.readMessageEnd()
893
      raise x
894
    result = retireWarehouse_result()
895
    result.read(self._iprot)
896
    self._iprot.readMessageEnd()
897
    if result.cex is not None:
898
      raise result.cex
899
    return
900
 
901
  def getItemInventoryByItemId(self, item_id):
902
    """
903
    Parameters:
904
     - item_id
905
    """
906
    self.send_getItemInventoryByItemId(item_id)
907
    return self.recv_getItemInventoryByItemId()
908
 
909
  def send_getItemInventoryByItemId(self, item_id):
910
    self._oprot.writeMessageBegin('getItemInventoryByItemId', TMessageType.CALL, self._seqid)
911
    args = getItemInventoryByItemId_args()
912
    args.item_id = item_id
913
    args.write(self._oprot)
914
    self._oprot.writeMessageEnd()
915
    self._oprot.trans.flush()
916
 
917
  def recv_getItemInventoryByItemId(self, ):
918
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
919
    if mtype == TMessageType.EXCEPTION:
920
      x = TApplicationException()
921
      x.read(self._iprot)
922
      self._iprot.readMessageEnd()
923
      raise x
924
    result = getItemInventoryByItemId_result()
925
    result.read(self._iprot)
926
    self._iprot.readMessageEnd()
927
    if result.success is not None:
928
      return result.success
929
    if result.cex is not None:
930
      raise result.cex
931
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
932
 
933
  def getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
934
    """
935
    Parameters:
936
     - warehouse_id
937
     - item_id
938
    """
939
    self.send_getItemAvailibilityAtWarehouse(warehouse_id, item_id)
940
    return self.recv_getItemAvailibilityAtWarehouse()
941
 
942
  def send_getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
943
    self._oprot.writeMessageBegin('getItemAvailibilityAtWarehouse', TMessageType.CALL, self._seqid)
944
    args = getItemAvailibilityAtWarehouse_args()
945
    args.warehouse_id = warehouse_id
946
    args.item_id = item_id
947
    args.write(self._oprot)
948
    self._oprot.writeMessageEnd()
949
    self._oprot.trans.flush()
950
 
951
  def recv_getItemAvailibilityAtWarehouse(self, ):
952
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
953
    if mtype == TMessageType.EXCEPTION:
954
      x = TApplicationException()
955
      x.read(self._iprot)
956
      self._iprot.readMessageEnd()
957
      raise x
958
    result = getItemAvailibilityAtWarehouse_result()
959
    result.read(self._iprot)
960
    self._iprot.readMessageEnd()
961
    if result.success is not None:
962
      return result.success
963
    if result.cex is not None:
964
      raise result.cex
965
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
966
 
5978 rajveer 967
  def getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 968
    """
969
    Determines the warehouse that should be used to fulfil an order for the given item.
970
    It first checks all the warehouses which are in the logistics location given by the
971
    warehouse_loc parameter. If none of the warehouses there have any inventory, then the
972
    preferred warehouse for the item is used.
973
 
974
    Returns an ordered list of size 4 with following elements in the given order:
975
    1. Id of the fulfillment warehouse which was finally picked up.
976
    2. Expected delay added by the category manager.
977
    3. Id of the billing warehouse which was finally picked up.
978
 
979
    Parameters:
980
     - itemId
5978 rajveer 981
     - sourceId
5944 mandeep.dh 982
    """
5978 rajveer 983
    self.send_getItemAvailabilityAtLocation(itemId, sourceId)
5944 mandeep.dh 984
    return self.recv_getItemAvailabilityAtLocation()
985
 
5978 rajveer 986
  def send_getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 987
    self._oprot.writeMessageBegin('getItemAvailabilityAtLocation', TMessageType.CALL, self._seqid)
988
    args = getItemAvailabilityAtLocation_args()
989
    args.itemId = itemId
5978 rajveer 990
    args.sourceId = sourceId
5944 mandeep.dh 991
    args.write(self._oprot)
992
    self._oprot.writeMessageEnd()
993
    self._oprot.trans.flush()
994
 
995
  def recv_getItemAvailabilityAtLocation(self, ):
996
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
997
    if mtype == TMessageType.EXCEPTION:
998
      x = TApplicationException()
999
      x.read(self._iprot)
1000
      self._iprot.readMessageEnd()
1001
      raise x
1002
    result = getItemAvailabilityAtLocation_result()
1003
    result.read(self._iprot)
1004
    self._iprot.readMessageEnd()
1005
    if result.success is not None:
1006
      return result.success
1007
    if result.isex is not None:
1008
      raise result.isex
1009
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
1010
 
1011
  def getAllWarehouses(self, isActive):
1012
    """
1013
    Parameters:
1014
     - isActive
1015
    """
1016
    self.send_getAllWarehouses(isActive)
1017
    return self.recv_getAllWarehouses()
1018
 
1019
  def send_getAllWarehouses(self, isActive):
1020
    self._oprot.writeMessageBegin('getAllWarehouses', TMessageType.CALL, self._seqid)
1021
    args = getAllWarehouses_args()
1022
    args.isActive = isActive
1023
    args.write(self._oprot)
1024
    self._oprot.writeMessageEnd()
1025
    self._oprot.trans.flush()
1026
 
1027
  def recv_getAllWarehouses(self, ):
1028
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1029
    if mtype == TMessageType.EXCEPTION:
1030
      x = TApplicationException()
1031
      x.read(self._iprot)
1032
      self._iprot.readMessageEnd()
1033
      raise x
1034
    result = getAllWarehouses_result()
1035
    result.read(self._iprot)
1036
    self._iprot.readMessageEnd()
1037
    if result.success is not None:
1038
      return result.success
1039
    if result.cex is not None:
1040
      raise result.cex
1041
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
1042
 
1043
  def getWarehouse(self, warehouse_id):
1044
    """
1045
    Returns the warehouse with the given id.
1046
 
1047
    Parameters:
1048
     - warehouse_id
1049
    """
1050
    self.send_getWarehouse(warehouse_id)
1051
    return self.recv_getWarehouse()
1052
 
1053
  def send_getWarehouse(self, warehouse_id):
1054
    self._oprot.writeMessageBegin('getWarehouse', TMessageType.CALL, self._seqid)
1055
    args = getWarehouse_args()
1056
    args.warehouse_id = warehouse_id
1057
    args.write(self._oprot)
1058
    self._oprot.writeMessageEnd()
1059
    self._oprot.trans.flush()
1060
 
1061
  def recv_getWarehouse(self, ):
1062
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1063
    if mtype == TMessageType.EXCEPTION:
1064
      x = TApplicationException()
1065
      x.read(self._iprot)
1066
      self._iprot.readMessageEnd()
1067
      raise x
1068
    result = getWarehouse_result()
1069
    result.read(self._iprot)
1070
    self._iprot.readMessageEnd()
1071
    if result.success is not None:
1072
      return result.success
1073
    if result.cex is not None:
1074
      raise result.cex
1075
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
1076
 
1077
  def getAllItemsForWarehouse(self, warehouse_id):
1078
    """
1079
    Parameters:
1080
     - warehouse_id
1081
    """
1082
    self.send_getAllItemsForWarehouse(warehouse_id)
1083
    return self.recv_getAllItemsForWarehouse()
1084
 
1085
  def send_getAllItemsForWarehouse(self, warehouse_id):
1086
    self._oprot.writeMessageBegin('getAllItemsForWarehouse', TMessageType.CALL, self._seqid)
1087
    args = getAllItemsForWarehouse_args()
1088
    args.warehouse_id = warehouse_id
1089
    args.write(self._oprot)
1090
    self._oprot.writeMessageEnd()
1091
    self._oprot.trans.flush()
1092
 
1093
  def recv_getAllItemsForWarehouse(self, ):
1094
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1095
    if mtype == TMessageType.EXCEPTION:
1096
      x = TApplicationException()
1097
      x.read(self._iprot)
1098
      self._iprot.readMessageEnd()
1099
      raise x
1100
    result = getAllItemsForWarehouse_result()
1101
    result.read(self._iprot)
1102
    self._iprot.readMessageEnd()
1103
    if result.success is not None:
1104
      return result.success
1105
    if result.cex is not None:
1106
      raise result.cex
1107
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
1108
 
5966 rajveer 1109
  def isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
5944 mandeep.dh 1110
    """
5978 rajveer 1111
    Depending on reservation in the table, verify if we can bill this order or not.
5966 rajveer 1112
 
1113
    Parameters:
1114
     - itemId
1115
     - warehouseId
1116
     - sourceId
1117
     - orderId
1118
    """
1119
    self.send_isOrderBillable(itemId, warehouseId, sourceId, orderId)
1120
    return self.recv_isOrderBillable()
1121
 
1122
  def send_isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
1123
    self._oprot.writeMessageBegin('isOrderBillable', TMessageType.CALL, self._seqid)
1124
    args = isOrderBillable_args()
1125
    args.itemId = itemId
1126
    args.warehouseId = warehouseId
1127
    args.sourceId = sourceId
1128
    args.orderId = orderId
1129
    args.write(self._oprot)
1130
    self._oprot.writeMessageEnd()
1131
    self._oprot.trans.flush()
1132
 
1133
  def recv_isOrderBillable(self, ):
1134
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1135
    if mtype == TMessageType.EXCEPTION:
1136
      x = TApplicationException()
1137
      x.read(self._iprot)
1138
      self._iprot.readMessageEnd()
1139
      raise x
1140
    result = isOrderBillable_result()
1141
    result.read(self._iprot)
1142
    self._iprot.readMessageEnd()
1143
    if result.success is not None:
1144
      return result.success
1145
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
1146
 
1147
  def reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1148
    """
5944 mandeep.dh 1149
    Increases the reservation count for an item in a warehouse. Should always succeed normally.
1150
 
1151
    Parameters:
1152
     - itemId
1153
     - warehouseId
5966 rajveer 1154
     - sourceId
1155
     - orderId
1156
     - createdTimestamp
1157
     - promisedShippingTimestamp
5944 mandeep.dh 1158
     - quantity
1159
    """
5966 rajveer 1160
    self.send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
5944 mandeep.dh 1161
    return self.recv_reserveItemInWarehouse()
1162
 
5966 rajveer 1163
  def send_reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
5944 mandeep.dh 1164
    self._oprot.writeMessageBegin('reserveItemInWarehouse', TMessageType.CALL, self._seqid)
1165
    args = reserveItemInWarehouse_args()
1166
    args.itemId = itemId
1167
    args.warehouseId = warehouseId
5966 rajveer 1168
    args.sourceId = sourceId
1169
    args.orderId = orderId
1170
    args.createdTimestamp = createdTimestamp
1171
    args.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 1172
    args.quantity = quantity
1173
    args.write(self._oprot)
1174
    self._oprot.writeMessageEnd()
1175
    self._oprot.trans.flush()
1176
 
1177
  def recv_reserveItemInWarehouse(self, ):
1178
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1179
    if mtype == TMessageType.EXCEPTION:
1180
      x = TApplicationException()
1181
      x.read(self._iprot)
1182
      self._iprot.readMessageEnd()
1183
      raise x
1184
    result = reserveItemInWarehouse_result()
1185
    result.read(self._iprot)
1186
    self._iprot.readMessageEnd()
1187
    if result.success is not None:
1188
      return result.success
1189
    if result.cex is not None:
1190
      raise result.cex
1191
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
1192
 
7968 amar.kumar 1193
  def updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1194
    """
1195
    Updates the reservation for Order
1196
 
1197
    Parameters:
1198
     - itemId
1199
     - warehouseId
1200
     - sourceId
1201
     - orderId
1202
     - createdTimestamp
1203
     - promisedShippingTimestamp
1204
     - quantity
1205
    """
1206
    self.send_updateReservationForOrder(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
1207
    return self.recv_updateReservationForOrder()
1208
 
1209
  def send_updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1210
    self._oprot.writeMessageBegin('updateReservationForOrder', TMessageType.CALL, self._seqid)
1211
    args = updateReservationForOrder_args()
1212
    args.itemId = itemId
1213
    args.warehouseId = warehouseId
1214
    args.sourceId = sourceId
1215
    args.orderId = orderId
1216
    args.createdTimestamp = createdTimestamp
1217
    args.promisedShippingTimestamp = promisedShippingTimestamp
1218
    args.quantity = quantity
1219
    args.write(self._oprot)
1220
    self._oprot.writeMessageEnd()
1221
    self._oprot.trans.flush()
1222
 
1223
  def recv_updateReservationForOrder(self, ):
1224
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1225
    if mtype == TMessageType.EXCEPTION:
1226
      x = TApplicationException()
1227
      x.read(self._iprot)
1228
      self._iprot.readMessageEnd()
1229
      raise x
1230
    result = updateReservationForOrder_result()
1231
    result.read(self._iprot)
1232
    self._iprot.readMessageEnd()
1233
    if result.success is not None:
1234
      return result.success
1235
    if result.cex is not None:
1236
      raise result.cex
1237
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateReservationForOrder failed: unknown result");
1238
 
5966 rajveer 1239
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1240
    """
1241
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
1242
 
1243
    Parameters:
1244
     - itemId
1245
     - warehouseId
5966 rajveer 1246
     - sourceId
1247
     - orderId
5944 mandeep.dh 1248
     - quantity
1249
    """
5966 rajveer 1250
    self.send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity)
5944 mandeep.dh 1251
    return self.recv_reduceReservationCount()
1252
 
5966 rajveer 1253
  def send_reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1254
    self._oprot.writeMessageBegin('reduceReservationCount', TMessageType.CALL, self._seqid)
1255
    args = reduceReservationCount_args()
1256
    args.itemId = itemId
1257
    args.warehouseId = warehouseId
5966 rajveer 1258
    args.sourceId = sourceId
1259
    args.orderId = orderId
5944 mandeep.dh 1260
    args.quantity = quantity
1261
    args.write(self._oprot)
1262
    self._oprot.writeMessageEnd()
1263
    self._oprot.trans.flush()
1264
 
1265
  def recv_reduceReservationCount(self, ):
1266
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1267
    if mtype == TMessageType.EXCEPTION:
1268
      x = TApplicationException()
1269
      x.read(self._iprot)
1270
      self._iprot.readMessageEnd()
1271
      raise x
1272
    result = reduceReservationCount_result()
1273
    result.read(self._iprot)
1274
    self._iprot.readMessageEnd()
1275
    if result.success is not None:
1276
      return result.success
1277
    if result.cex is not None:
1278
      raise result.cex
1279
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
1280
 
1281
  def getItemPricing(self, itemId, vendorId):
1282
    """
1283
    Returns the pricing information of an item associated with the vendor of the given warehouse.
1284
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
1285
 
1286
    Parameters:
1287
     - itemId
1288
     - vendorId
1289
    """
1290
    self.send_getItemPricing(itemId, vendorId)
1291
    return self.recv_getItemPricing()
1292
 
1293
  def send_getItemPricing(self, itemId, vendorId):
1294
    self._oprot.writeMessageBegin('getItemPricing', TMessageType.CALL, self._seqid)
1295
    args = getItemPricing_args()
1296
    args.itemId = itemId
1297
    args.vendorId = vendorId
1298
    args.write(self._oprot)
1299
    self._oprot.writeMessageEnd()
1300
    self._oprot.trans.flush()
1301
 
1302
  def recv_getItemPricing(self, ):
1303
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1304
    if mtype == TMessageType.EXCEPTION:
1305
      x = TApplicationException()
1306
      x.read(self._iprot)
1307
      self._iprot.readMessageEnd()
1308
      raise x
1309
    result = getItemPricing_result()
1310
    result.read(self._iprot)
1311
    self._iprot.readMessageEnd()
1312
    if result.success is not None:
1313
      return result.success
1314
    if result.cex is not None:
1315
      raise result.cex
1316
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
1317
 
1318
  def getAllItemPricing(self, itemId):
1319
    """
1320
    Returns the list of vendor pricing information of an item.
1321
    Raises an exception if item not found corresponding to itemId
1322
 
1323
    Parameters:
1324
     - itemId
1325
    """
1326
    self.send_getAllItemPricing(itemId)
1327
    return self.recv_getAllItemPricing()
1328
 
1329
  def send_getAllItemPricing(self, itemId):
1330
    self._oprot.writeMessageBegin('getAllItemPricing', TMessageType.CALL, self._seqid)
1331
    args = getAllItemPricing_args()
1332
    args.itemId = itemId
1333
    args.write(self._oprot)
1334
    self._oprot.writeMessageEnd()
1335
    self._oprot.trans.flush()
1336
 
1337
  def recv_getAllItemPricing(self, ):
1338
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1339
    if mtype == TMessageType.EXCEPTION:
1340
      x = TApplicationException()
1341
      x.read(self._iprot)
1342
      self._iprot.readMessageEnd()
1343
      raise x
1344
    result = getAllItemPricing_result()
1345
    result.read(self._iprot)
1346
    self._iprot.readMessageEnd()
1347
    if result.success is not None:
1348
      return result.success
1349
    if result.cex is not None:
1350
      raise result.cex
1351
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
1352
 
1353
  def addVendorItemPricing(self, vendorItemPricing):
1354
    """
1355
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
1356
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
1357
 
1358
    Parameters:
1359
     - vendorItemPricing
1360
    """
1361
    self.send_addVendorItemPricing(vendorItemPricing)
1362
    self.recv_addVendorItemPricing()
1363
 
1364
  def send_addVendorItemPricing(self, vendorItemPricing):
1365
    self._oprot.writeMessageBegin('addVendorItemPricing', TMessageType.CALL, self._seqid)
1366
    args = addVendorItemPricing_args()
1367
    args.vendorItemPricing = vendorItemPricing
1368
    args.write(self._oprot)
1369
    self._oprot.writeMessageEnd()
1370
    self._oprot.trans.flush()
1371
 
1372
  def recv_addVendorItemPricing(self, ):
1373
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1374
    if mtype == TMessageType.EXCEPTION:
1375
      x = TApplicationException()
1376
      x.read(self._iprot)
1377
      self._iprot.readMessageEnd()
1378
      raise x
1379
    result = addVendorItemPricing_result()
1380
    result.read(self._iprot)
1381
    self._iprot.readMessageEnd()
1382
    if result.cex is not None:
1383
      raise result.cex
1384
    return
1385
 
1386
  def getVendor(self, vendorId):
1387
    """
1388
    Returns a vendor given its id
1389
 
1390
    Parameters:
1391
     - vendorId
1392
    """
1393
    self.send_getVendor(vendorId)
1394
    return self.recv_getVendor()
1395
 
1396
  def send_getVendor(self, vendorId):
1397
    self._oprot.writeMessageBegin('getVendor', TMessageType.CALL, self._seqid)
1398
    args = getVendor_args()
1399
    args.vendorId = vendorId
1400
    args.write(self._oprot)
1401
    self._oprot.writeMessageEnd()
1402
    self._oprot.trans.flush()
1403
 
1404
  def recv_getVendor(self, ):
1405
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1406
    if mtype == TMessageType.EXCEPTION:
1407
      x = TApplicationException()
1408
      x.read(self._iprot)
1409
      self._iprot.readMessageEnd()
1410
      raise x
1411
    result = getVendor_result()
1412
    result.read(self._iprot)
1413
    self._iprot.readMessageEnd()
1414
    if result.success is not None:
1415
      return result.success
1416
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
1417
 
1418
  def getAllVendors(self, ):
1419
    """
1420
    Return list of all vendors
1421
    """
1422
    self.send_getAllVendors()
1423
    return self.recv_getAllVendors()
1424
 
1425
  def send_getAllVendors(self, ):
1426
    self._oprot.writeMessageBegin('getAllVendors', TMessageType.CALL, self._seqid)
1427
    args = getAllVendors_args()
1428
    args.write(self._oprot)
1429
    self._oprot.writeMessageEnd()
1430
    self._oprot.trans.flush()
1431
 
1432
  def recv_getAllVendors(self, ):
1433
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1434
    if mtype == TMessageType.EXCEPTION:
1435
      x = TApplicationException()
1436
      x.read(self._iprot)
1437
      self._iprot.readMessageEnd()
1438
      raise x
1439
    result = getAllVendors_result()
1440
    result.read(self._iprot)
1441
    self._iprot.readMessageEnd()
1442
    if result.success is not None:
1443
      return result.success
1444
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1445
 
1446
  def addVendorItemMapping(self, key, vendorItemMapping):
1447
    """
1448
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
1449
 
1450
    Parameters:
1451
     - key
1452
     - vendorItemMapping
1453
    """
1454
    self.send_addVendorItemMapping(key, vendorItemMapping)
1455
    self.recv_addVendorItemMapping()
1456
 
1457
  def send_addVendorItemMapping(self, key, vendorItemMapping):
1458
    self._oprot.writeMessageBegin('addVendorItemMapping', TMessageType.CALL, self._seqid)
1459
    args = addVendorItemMapping_args()
1460
    args.key = key
1461
    args.vendorItemMapping = vendorItemMapping
1462
    args.write(self._oprot)
1463
    self._oprot.writeMessageEnd()
1464
    self._oprot.trans.flush()
1465
 
1466
  def recv_addVendorItemMapping(self, ):
1467
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1468
    if mtype == TMessageType.EXCEPTION:
1469
      x = TApplicationException()
1470
      x.read(self._iprot)
1471
      self._iprot.readMessageEnd()
1472
      raise x
1473
    result = addVendorItemMapping_result()
1474
    result.read(self._iprot)
1475
    self._iprot.readMessageEnd()
1476
    if result.cex is not None:
1477
      raise result.cex
1478
    return
1479
 
1480
  def getVendorItemMappings(self, itemId):
1481
    """
1482
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
1483
    Raises an exception if item not found corresponding to itemId
1484
 
1485
    Parameters:
1486
     - itemId
1487
    """
1488
    self.send_getVendorItemMappings(itemId)
1489
    return self.recv_getVendorItemMappings()
1490
 
1491
  def send_getVendorItemMappings(self, itemId):
1492
    self._oprot.writeMessageBegin('getVendorItemMappings', TMessageType.CALL, self._seqid)
1493
    args = getVendorItemMappings_args()
1494
    args.itemId = itemId
1495
    args.write(self._oprot)
1496
    self._oprot.writeMessageEnd()
1497
    self._oprot.trans.flush()
1498
 
1499
  def recv_getVendorItemMappings(self, ):
1500
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1501
    if mtype == TMessageType.EXCEPTION:
1502
      x = TApplicationException()
1503
      x.read(self._iprot)
1504
      self._iprot.readMessageEnd()
1505
      raise x
1506
    result = getVendorItemMappings_result()
1507
    result.read(self._iprot)
1508
    self._iprot.readMessageEnd()
1509
    if result.success is not None:
1510
      return result.success
1511
    if result.cex is not None:
1512
      raise result.cex
1513
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
1514
 
1515
  def getPendingOrdersInventory(self, vendorid):
1516
    """
1517
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
1518
 
1519
    Parameters:
1520
     - vendorid
1521
    """
1522
    self.send_getPendingOrdersInventory(vendorid)
1523
    return self.recv_getPendingOrdersInventory()
1524
 
1525
  def send_getPendingOrdersInventory(self, vendorid):
1526
    self._oprot.writeMessageBegin('getPendingOrdersInventory', TMessageType.CALL, self._seqid)
1527
    args = getPendingOrdersInventory_args()
1528
    args.vendorid = vendorid
1529
    args.write(self._oprot)
1530
    self._oprot.writeMessageEnd()
1531
    self._oprot.trans.flush()
1532
 
1533
  def recv_getPendingOrdersInventory(self, ):
1534
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1535
    if mtype == TMessageType.EXCEPTION:
1536
      x = TApplicationException()
1537
      x.read(self._iprot)
1538
      self._iprot.readMessageEnd()
1539
      raise x
1540
    result = getPendingOrdersInventory_result()
1541
    result.read(self._iprot)
1542
    self._iprot.readMessageEnd()
1543
    if result.success is not None:
1544
      return result.success
1545
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1546
 
1547
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1548
    """
1549
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
1550
    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
1551
    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
1552
       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
1553
       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
1554
 
1555
    Parameters:
1556
     - warehouseType
1557
     - inventoryType
1558
     - vendorId
1559
     - billingWarehouseId
1560
     - shippingWarehouseId
1561
    """
1562
    self.send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId)
1563
    return self.recv_getWarehouses()
1564
 
1565
  def send_getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1566
    self._oprot.writeMessageBegin('getWarehouses', TMessageType.CALL, self._seqid)
1567
    args = getWarehouses_args()
1568
    args.warehouseType = warehouseType
1569
    args.inventoryType = inventoryType
1570
    args.vendorId = vendorId
1571
    args.billingWarehouseId = billingWarehouseId
1572
    args.shippingWarehouseId = shippingWarehouseId
1573
    args.write(self._oprot)
1574
    self._oprot.writeMessageEnd()
1575
    self._oprot.trans.flush()
1576
 
1577
  def recv_getWarehouses(self, ):
1578
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1579
    if mtype == TMessageType.EXCEPTION:
1580
      x = TApplicationException()
1581
      x.read(self._iprot)
1582
      self._iprot.readMessageEnd()
1583
      raise x
1584
    result = getWarehouses_result()
1585
    result.read(self._iprot)
1586
    self._iprot.readMessageEnd()
1587
    if result.success is not None:
1588
      return result.success
1589
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1590
 
1591
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1592
    """
1593
    Resets availability of an item to the quantity mentioned in a warehouse.
1594
 
1595
    Parameters:
1596
     - itemKey
1597
     - vendorId
1598
     - quantity
1599
     - warehouseId
1600
    """
1601
    self.send_resetAvailability(itemKey, vendorId, quantity, warehouseId)
1602
    self.recv_resetAvailability()
1603
 
1604
  def send_resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1605
    self._oprot.writeMessageBegin('resetAvailability', TMessageType.CALL, self._seqid)
1606
    args = resetAvailability_args()
1607
    args.itemKey = itemKey
1608
    args.vendorId = vendorId
1609
    args.quantity = quantity
1610
    args.warehouseId = warehouseId
1611
    args.write(self._oprot)
1612
    self._oprot.writeMessageEnd()
1613
    self._oprot.trans.flush()
1614
 
1615
  def recv_resetAvailability(self, ):
1616
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1617
    if mtype == TMessageType.EXCEPTION:
1618
      x = TApplicationException()
1619
      x.read(self._iprot)
1620
      self._iprot.readMessageEnd()
1621
      raise x
1622
    result = resetAvailability_result()
1623
    result.read(self._iprot)
1624
    self._iprot.readMessageEnd()
1625
    if result.cex is not None:
1626
      raise result.cex
1627
    return
1628
 
1629
  def resetAvailabilityForWarehouse(self, warehouseId):
1630
    """
1631
    Resets availability of a warehouse to zero.
1632
 
1633
    Parameters:
1634
     - warehouseId
1635
    """
1636
    self.send_resetAvailabilityForWarehouse(warehouseId)
1637
    self.recv_resetAvailabilityForWarehouse()
1638
 
1639
  def send_resetAvailabilityForWarehouse(self, warehouseId):
1640
    self._oprot.writeMessageBegin('resetAvailabilityForWarehouse', TMessageType.CALL, self._seqid)
1641
    args = resetAvailabilityForWarehouse_args()
1642
    args.warehouseId = warehouseId
1643
    args.write(self._oprot)
1644
    self._oprot.writeMessageEnd()
1645
    self._oprot.trans.flush()
1646
 
1647
  def recv_resetAvailabilityForWarehouse(self, ):
1648
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1649
    if mtype == TMessageType.EXCEPTION:
1650
      x = TApplicationException()
1651
      x.read(self._iprot)
1652
      self._iprot.readMessageEnd()
1653
      raise x
1654
    result = resetAvailabilityForWarehouse_result()
1655
    result.read(self._iprot)
1656
    self._iprot.readMessageEnd()
1657
    if result.cex is not None:
1658
      raise result.cex
1659
    return
1660
 
1661
  def getItemKeysToBeProcessed(self, warehouseId):
1662
    """
1663
    Returns the list of item keys which need to be processed for a given warehouse.
1664
    This is currently used by Support application to send item keys whose inventory needs
1665
    to be updated from PLB
1666
 
1667
    Parameters:
1668
     - warehouseId
1669
    """
1670
    self.send_getItemKeysToBeProcessed(warehouseId)
1671
    return self.recv_getItemKeysToBeProcessed()
1672
 
1673
  def send_getItemKeysToBeProcessed(self, warehouseId):
1674
    self._oprot.writeMessageBegin('getItemKeysToBeProcessed', TMessageType.CALL, self._seqid)
1675
    args = getItemKeysToBeProcessed_args()
1676
    args.warehouseId = warehouseId
1677
    args.write(self._oprot)
1678
    self._oprot.writeMessageEnd()
1679
    self._oprot.trans.flush()
1680
 
1681
  def recv_getItemKeysToBeProcessed(self, ):
1682
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1683
    if mtype == TMessageType.EXCEPTION:
1684
      x = TApplicationException()
1685
      x.read(self._iprot)
1686
      self._iprot.readMessageEnd()
1687
      raise x
1688
    result = getItemKeysToBeProcessed_result()
1689
    result.read(self._iprot)
1690
    self._iprot.readMessageEnd()
1691
    if result.success is not None:
1692
      return result.success
1693
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1694
 
1695
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1696
    """
1697
    Marks/Deletes missed inventory updates for a given key and warehouse.
1698
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
1699
 
1700
    Parameters:
1701
     - itemKey
1702
     - warehouseId
1703
    """
1704
    self.send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId)
1705
    self.recv_markMissedInventoryUpdatesAsProcessed()
1706
 
1707
  def send_markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1708
    self._oprot.writeMessageBegin('markMissedInventoryUpdatesAsProcessed', TMessageType.CALL, self._seqid)
1709
    args = markMissedInventoryUpdatesAsProcessed_args()
1710
    args.itemKey = itemKey
1711
    args.warehouseId = warehouseId
1712
    args.write(self._oprot)
1713
    self._oprot.writeMessageEnd()
1714
    self._oprot.trans.flush()
1715
 
1716
  def recv_markMissedInventoryUpdatesAsProcessed(self, ):
1717
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1718
    if mtype == TMessageType.EXCEPTION:
1719
      x = TApplicationException()
1720
      x.read(self._iprot)
1721
      self._iprot.readMessageEnd()
1722
      raise x
1723
    result = markMissedInventoryUpdatesAsProcessed_result()
1724
    result.read(self._iprot)
1725
    self._iprot.readMessageEnd()
1726
    return
1727
 
1728
  def getIgnoredItemKeys(self, ):
1729
    """
1730
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
1731
    and the timestamp from where alert was raised.
1732
    """
1733
    self.send_getIgnoredItemKeys()
1734
    return self.recv_getIgnoredItemKeys()
1735
 
1736
  def send_getIgnoredItemKeys(self, ):
1737
    self._oprot.writeMessageBegin('getIgnoredItemKeys', TMessageType.CALL, self._seqid)
1738
    args = getIgnoredItemKeys_args()
1739
    args.write(self._oprot)
1740
    self._oprot.writeMessageEnd()
1741
    self._oprot.trans.flush()
1742
 
1743
  def recv_getIgnoredItemKeys(self, ):
1744
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1745
    if mtype == TMessageType.EXCEPTION:
1746
      x = TApplicationException()
1747
      x.read(self._iprot)
1748
      self._iprot.readMessageEnd()
1749
      raise x
1750
    result = getIgnoredItemKeys_result()
1751
    result.read(self._iprot)
1752
    self._iprot.readMessageEnd()
1753
    if result.success is not None:
1754
      return result.success
1755
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1756
 
1757
  def addBadInventory(self, itemId, warehouseId, quantity):
1758
    """
1759
    Add the BAD type inventory to existing stock.
1760
 
1761
    Parameters:
1762
     - itemId
1763
     - warehouseId
1764
     - quantity
1765
    """
1766
    self.send_addBadInventory(itemId, warehouseId, quantity)
1767
    self.recv_addBadInventory()
1768
 
1769
  def send_addBadInventory(self, itemId, warehouseId, quantity):
1770
    self._oprot.writeMessageBegin('addBadInventory', TMessageType.CALL, self._seqid)
1771
    args = addBadInventory_args()
1772
    args.itemId = itemId
1773
    args.warehouseId = warehouseId
1774
    args.quantity = quantity
1775
    args.write(self._oprot)
1776
    self._oprot.writeMessageEnd()
1777
    self._oprot.trans.flush()
1778
 
1779
  def recv_addBadInventory(self, ):
1780
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1781
    if mtype == TMessageType.EXCEPTION:
1782
      x = TApplicationException()
1783
      x.read(self._iprot)
1784
      self._iprot.readMessageEnd()
1785
      raise x
1786
    result = addBadInventory_result()
1787
    result.read(self._iprot)
1788
    self._iprot.readMessageEnd()
1789
    if result.cex is not None:
1790
      raise result.cex
1791
    return
1792
 
1793
  def getShippingLocations(self, ):
1794
    """
1795
    Returns all shipping locations
1796
    """
1797
    self.send_getShippingLocations()
1798
    return self.recv_getShippingLocations()
1799
 
1800
  def send_getShippingLocations(self, ):
1801
    self._oprot.writeMessageBegin('getShippingLocations', TMessageType.CALL, self._seqid)
1802
    args = getShippingLocations_args()
1803
    args.write(self._oprot)
1804
    self._oprot.writeMessageEnd()
1805
    self._oprot.trans.flush()
1806
 
1807
  def recv_getShippingLocations(self, ):
1808
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1809
    if mtype == TMessageType.EXCEPTION:
1810
      x = TApplicationException()
1811
      x.read(self._iprot)
1812
      self._iprot.readMessageEnd()
1813
      raise x
1814
    result = getShippingLocations_result()
1815
    result.read(self._iprot)
1816
    self._iprot.readMessageEnd()
1817
    if result.success is not None:
1818
      return result.success
1819
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1820
 
1821
  def getAllVendorItemMappings(self, ):
1822
    """
1823
    Fetches all the vendor item mappings present.
1824
    """
1825
    self.send_getAllVendorItemMappings()
1826
    return self.recv_getAllVendorItemMappings()
1827
 
1828
  def send_getAllVendorItemMappings(self, ):
1829
    self._oprot.writeMessageBegin('getAllVendorItemMappings', TMessageType.CALL, self._seqid)
1830
    args = getAllVendorItemMappings_args()
1831
    args.write(self._oprot)
1832
    self._oprot.writeMessageEnd()
1833
    self._oprot.trans.flush()
1834
 
1835
  def recv_getAllVendorItemMappings(self, ):
1836
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1837
    if mtype == TMessageType.EXCEPTION:
1838
      x = TApplicationException()
1839
      x.read(self._iprot)
1840
      self._iprot.readMessageEnd()
1841
      raise x
1842
    result = getAllVendorItemMappings_result()
1843
    result.read(self._iprot)
1844
    self._iprot.readMessageEnd()
1845
    if result.success is not None:
1846
      return result.success
1847
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1848
 
1849
  def getInventorySnapshot(self, warehouseId):
1850
    """
1851
    Gets items' inventory for a warehouse
1852
    If warehouse is passed as zero, items' inventory across all warehouses is sent
1853
 
1854
    Parameters:
1855
     - warehouseId
1856
    """
1857
    self.send_getInventorySnapshot(warehouseId)
1858
    return self.recv_getInventorySnapshot()
1859
 
1860
  def send_getInventorySnapshot(self, warehouseId):
1861
    self._oprot.writeMessageBegin('getInventorySnapshot', TMessageType.CALL, self._seqid)
1862
    args = getInventorySnapshot_args()
1863
    args.warehouseId = warehouseId
1864
    args.write(self._oprot)
1865
    self._oprot.writeMessageEnd()
1866
    self._oprot.trans.flush()
1867
 
1868
  def recv_getInventorySnapshot(self, ):
1869
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1870
    if mtype == TMessageType.EXCEPTION:
1871
      x = TApplicationException()
1872
      x.read(self._iprot)
1873
      self._iprot.readMessageEnd()
1874
      raise x
1875
    result = getInventorySnapshot_result()
1876
    result.read(self._iprot)
1877
    self._iprot.readMessageEnd()
1878
    if result.success is not None:
1879
      return result.success
1880
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1881
 
1882
  def clearItemAvailabilityCache(self, ):
1883
    """
1884
    Clear item availability cache.
1885
    """
1886
    self.send_clearItemAvailabilityCache()
1887
    self.recv_clearItemAvailabilityCache()
1888
 
1889
  def send_clearItemAvailabilityCache(self, ):
1890
    self._oprot.writeMessageBegin('clearItemAvailabilityCache', TMessageType.CALL, self._seqid)
1891
    args = clearItemAvailabilityCache_args()
1892
    args.write(self._oprot)
1893
    self._oprot.writeMessageEnd()
1894
    self._oprot.trans.flush()
1895
 
1896
  def recv_clearItemAvailabilityCache(self, ):
1897
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1898
    if mtype == TMessageType.EXCEPTION:
1899
      x = TApplicationException()
1900
      x.read(self._iprot)
1901
      self._iprot.readMessageEnd()
1902
      raise x
1903
    result = clearItemAvailabilityCache_result()
1904
    result.read(self._iprot)
1905
    self._iprot.readMessageEnd()
1906
    return
1907
 
1908
  def updateVendorString(self, warehouseId, vendorString):
1909
    """
1910
    Parameters:
1911
     - warehouseId
1912
     - vendorString
1913
    """
1914
    self.send_updateVendorString(warehouseId, vendorString)
1915
    self.recv_updateVendorString()
1916
 
1917
  def send_updateVendorString(self, warehouseId, vendorString):
1918
    self._oprot.writeMessageBegin('updateVendorString', TMessageType.CALL, self._seqid)
1919
    args = updateVendorString_args()
1920
    args.warehouseId = warehouseId
1921
    args.vendorString = vendorString
1922
    args.write(self._oprot)
1923
    self._oprot.writeMessageEnd()
1924
    self._oprot.trans.flush()
1925
 
1926
  def recv_updateVendorString(self, ):
1927
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1928
    if mtype == TMessageType.EXCEPTION:
1929
      x = TApplicationException()
1930
      x.read(self._iprot)
1931
      self._iprot.readMessageEnd()
1932
      raise x
1933
    result = updateVendorString_result()
1934
    result.read(self._iprot)
1935
    self._iprot.readMessageEnd()
1936
    return
1937
 
6096 amit.gupta 1938
  def clearItemAvailabilityCacheForItem(self, item_id):
1939
    """
1940
    Parameters:
1941
     - item_id
1942
    """
1943
    self.send_clearItemAvailabilityCacheForItem(item_id)
1944
    self.recv_clearItemAvailabilityCacheForItem()
5944 mandeep.dh 1945
 
6096 amit.gupta 1946
  def send_clearItemAvailabilityCacheForItem(self, item_id):
1947
    self._oprot.writeMessageBegin('clearItemAvailabilityCacheForItem', TMessageType.CALL, self._seqid)
1948
    args = clearItemAvailabilityCacheForItem_args()
1949
    args.item_id = item_id
1950
    args.write(self._oprot)
1951
    self._oprot.writeMessageEnd()
1952
    self._oprot.trans.flush()
1953
 
1954
  def recv_clearItemAvailabilityCacheForItem(self, ):
1955
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1956
    if mtype == TMessageType.EXCEPTION:
1957
      x = TApplicationException()
1958
      x.read(self._iprot)
1959
      self._iprot.readMessageEnd()
1960
      raise x
1961
    result = clearItemAvailabilityCacheForItem_result()
1962
    result.read(self._iprot)
1963
    self._iprot.readMessageEnd()
1964
    return
1965
 
7718 amar.kumar 1966
  def getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1967
    """
1968
    Parameters:
1969
     - vendorId
7718 amar.kumar 1970
     - billingWarehouseId
6467 amar.kumar 1971
    """
7718 amar.kumar 1972
    self.send_getOurWarehouseIdForVendor(vendorId, billingWarehouseId)
6467 amar.kumar 1973
    return self.recv_getOurWarehouseIdForVendor()
6096 amit.gupta 1974
 
7718 amar.kumar 1975
  def send_getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1976
    self._oprot.writeMessageBegin('getOurWarehouseIdForVendor', TMessageType.CALL, self._seqid)
1977
    args = getOurWarehouseIdForVendor_args()
1978
    args.vendorId = vendorId
7718 amar.kumar 1979
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 1980
    args.write(self._oprot)
1981
    self._oprot.writeMessageEnd()
1982
    self._oprot.trans.flush()
1983
 
1984
  def recv_getOurWarehouseIdForVendor(self, ):
1985
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1986
    if mtype == TMessageType.EXCEPTION:
1987
      x = TApplicationException()
1988
      x.read(self._iprot)
1989
      self._iprot.readMessageEnd()
1990
      raise x
1991
    result = getOurWarehouseIdForVendor_result()
1992
    result.read(self._iprot)
1993
    self._iprot.readMessageEnd()
1994
    if result.success is not None:
1995
      return result.success
1996
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1997
 
6484 amar.kumar 1998
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1999
    """
2000
    Parameters:
2001
     - item_ids
2002
    """
2003
    self.send_getItemAvailabilitiesAtOurWarehouses(item_ids)
2004
    return self.recv_getItemAvailabilitiesAtOurWarehouses()
6467 amar.kumar 2005
 
6484 amar.kumar 2006
  def send_getItemAvailabilitiesAtOurWarehouses(self, item_ids):
2007
    self._oprot.writeMessageBegin('getItemAvailabilitiesAtOurWarehouses', TMessageType.CALL, self._seqid)
2008
    args = getItemAvailabilitiesAtOurWarehouses_args()
2009
    args.item_ids = item_ids
2010
    args.write(self._oprot)
2011
    self._oprot.writeMessageEnd()
2012
    self._oprot.trans.flush()
2013
 
2014
  def recv_getItemAvailabilitiesAtOurWarehouses(self, ):
2015
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2016
    if mtype == TMessageType.EXCEPTION:
2017
      x = TApplicationException()
2018
      x.read(self._iprot)
2019
      self._iprot.readMessageEnd()
2020
      raise x
2021
    result = getItemAvailabilitiesAtOurWarehouses_result()
2022
    result.read(self._iprot)
2023
    self._iprot.readMessageEnd()
2024
    if result.success is not None:
2025
      return result.success
2026
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
2027
 
6531 vikram.rag 2028
  def getMonitoredWarehouseForVendors(self, vendorIds):
2029
    """
2030
    Parameters:
2031
     - vendorIds
2032
    """
2033
    self.send_getMonitoredWarehouseForVendors(vendorIds)
2034
    return self.recv_getMonitoredWarehouseForVendors()
6484 amar.kumar 2035
 
6531 vikram.rag 2036
  def send_getMonitoredWarehouseForVendors(self, vendorIds):
2037
    self._oprot.writeMessageBegin('getMonitoredWarehouseForVendors', TMessageType.CALL, self._seqid)
2038
    args = getMonitoredWarehouseForVendors_args()
2039
    args.vendorIds = vendorIds
2040
    args.write(self._oprot)
2041
    self._oprot.writeMessageEnd()
2042
    self._oprot.trans.flush()
2043
 
2044
  def recv_getMonitoredWarehouseForVendors(self, ):
2045
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2046
    if mtype == TMessageType.EXCEPTION:
2047
      x = TApplicationException()
2048
      x.read(self._iprot)
2049
      self._iprot.readMessageEnd()
2050
      raise x
2051
    result = getMonitoredWarehouseForVendors_result()
2052
    result.read(self._iprot)
2053
    self._iprot.readMessageEnd()
2054
    if result.success is not None:
2055
      return result.success
2056
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
2057
 
2058
  def getIgnoredWarehouseidsAndItemids(self, ):
2059
    self.send_getIgnoredWarehouseidsAndItemids()
2060
    return self.recv_getIgnoredWarehouseidsAndItemids()
2061
 
2062
  def send_getIgnoredWarehouseidsAndItemids(self, ):
2063
    self._oprot.writeMessageBegin('getIgnoredWarehouseidsAndItemids', TMessageType.CALL, self._seqid)
2064
    args = getIgnoredWarehouseidsAndItemids_args()
2065
    args.write(self._oprot)
2066
    self._oprot.writeMessageEnd()
2067
    self._oprot.trans.flush()
2068
 
2069
  def recv_getIgnoredWarehouseidsAndItemids(self, ):
2070
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2071
    if mtype == TMessageType.EXCEPTION:
2072
      x = TApplicationException()
2073
      x.read(self._iprot)
2074
      self._iprot.readMessageEnd()
2075
      raise x
2076
    result = getIgnoredWarehouseidsAndItemids_result()
2077
    result.read(self._iprot)
2078
    self._iprot.readMessageEnd()
2079
    if result.success is not None:
2080
      return result.success
2081
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
2082
 
2083
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2084
    """
2085
    Parameters:
2086
     - item_id
2087
     - warehouse_id
2088
    """
2089
    self.send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id)
2090
    return self.recv_insertItemtoIgnoreInventoryUpdatelist()
2091
 
2092
  def send_insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2093
    self._oprot.writeMessageBegin('insertItemtoIgnoreInventoryUpdatelist', TMessageType.CALL, self._seqid)
2094
    args = insertItemtoIgnoreInventoryUpdatelist_args()
2095
    args.item_id = item_id
2096
    args.warehouse_id = warehouse_id
2097
    args.write(self._oprot)
2098
    self._oprot.writeMessageEnd()
2099
    self._oprot.trans.flush()
2100
 
2101
  def recv_insertItemtoIgnoreInventoryUpdatelist(self, ):
2102
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2103
    if mtype == TMessageType.EXCEPTION:
2104
      x = TApplicationException()
2105
      x.read(self._iprot)
2106
      self._iprot.readMessageEnd()
2107
      raise x
2108
    result = insertItemtoIgnoreInventoryUpdatelist_result()
2109
    result.read(self._iprot)
2110
    self._iprot.readMessageEnd()
2111
    if result.success is not None:
2112
      return result.success
2113
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
2114
 
2115
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2116
    """
2117
    Parameters:
2118
     - item_id
2119
     - warehouse_id
2120
    """
2121
    self.send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id)
2122
    return self.recv_deleteItemFromIgnoredInventoryUpdateList()
2123
 
2124
  def send_deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2125
    self._oprot.writeMessageBegin('deleteItemFromIgnoredInventoryUpdateList', TMessageType.CALL, self._seqid)
2126
    args = deleteItemFromIgnoredInventoryUpdateList_args()
2127
    args.item_id = item_id
2128
    args.warehouse_id = warehouse_id
2129
    args.write(self._oprot)
2130
    self._oprot.writeMessageEnd()
2131
    self._oprot.trans.flush()
2132
 
2133
  def recv_deleteItemFromIgnoredInventoryUpdateList(self, ):
2134
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2135
    if mtype == TMessageType.EXCEPTION:
2136
      x = TApplicationException()
2137
      x.read(self._iprot)
2138
      self._iprot.readMessageEnd()
2139
      raise x
2140
    result = deleteItemFromIgnoredInventoryUpdateList_result()
2141
    result.read(self._iprot)
2142
    self._iprot.readMessageEnd()
2143
    if result.success is not None:
2144
      return result.success
2145
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
2146
 
2147
  def getAllIgnoredInventoryupdateItemsCount(self, ):
2148
    self.send_getAllIgnoredInventoryupdateItemsCount()
2149
    return self.recv_getAllIgnoredInventoryupdateItemsCount()
2150
 
2151
  def send_getAllIgnoredInventoryupdateItemsCount(self, ):
2152
    self._oprot.writeMessageBegin('getAllIgnoredInventoryupdateItemsCount', TMessageType.CALL, self._seqid)
2153
    args = getAllIgnoredInventoryupdateItemsCount_args()
2154
    args.write(self._oprot)
2155
    self._oprot.writeMessageEnd()
2156
    self._oprot.trans.flush()
2157
 
2158
  def recv_getAllIgnoredInventoryupdateItemsCount(self, ):
2159
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2160
    if mtype == TMessageType.EXCEPTION:
2161
      x = TApplicationException()
2162
      x.read(self._iprot)
2163
      self._iprot.readMessageEnd()
2164
      raise x
2165
    result = getAllIgnoredInventoryupdateItemsCount_result()
2166
    result.read(self._iprot)
2167
    self._iprot.readMessageEnd()
2168
    if result.success is not None:
2169
      return result.success
2170
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
2171
 
2172
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
2173
    """
2174
    Parameters:
2175
     - offset
2176
     - limit
2177
    """
2178
    self.send_getIgnoredInventoryUpdateItemids(offset, limit)
2179
    return self.recv_getIgnoredInventoryUpdateItemids()
2180
 
2181
  def send_getIgnoredInventoryUpdateItemids(self, offset, limit):
2182
    self._oprot.writeMessageBegin('getIgnoredInventoryUpdateItemids', TMessageType.CALL, self._seqid)
2183
    args = getIgnoredInventoryUpdateItemids_args()
2184
    args.offset = offset
2185
    args.limit = limit
2186
    args.write(self._oprot)
2187
    self._oprot.writeMessageEnd()
2188
    self._oprot.trans.flush()
2189
 
2190
  def recv_getIgnoredInventoryUpdateItemids(self, ):
2191
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2192
    if mtype == TMessageType.EXCEPTION:
2193
      x = TApplicationException()
2194
      x.read(self._iprot)
2195
      self._iprot.readMessageEnd()
2196
      raise x
2197
    result = getIgnoredInventoryUpdateItemids_result()
2198
    result.read(self._iprot)
2199
    self._iprot.readMessageEnd()
2200
    if result.success is not None:
2201
      return result.success
2202
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
2203
 
6821 amar.kumar 2204
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2205
    """
2206
    Parameters:
2207
     - item_id
2208
     - numOfDaysStock
2209
     - minStockLevel
2210
    """
2211
    self.send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel)
2212
    self.recv_updateItemStockPurchaseParams()
6531 vikram.rag 2213
 
6821 amar.kumar 2214
  def send_updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2215
    self._oprot.writeMessageBegin('updateItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2216
    args = updateItemStockPurchaseParams_args()
2217
    args.item_id = item_id
2218
    args.numOfDaysStock = numOfDaysStock
2219
    args.minStockLevel = minStockLevel
2220
    args.write(self._oprot)
2221
    self._oprot.writeMessageEnd()
2222
    self._oprot.trans.flush()
2223
 
2224
  def recv_updateItemStockPurchaseParams(self, ):
2225
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2226
    if mtype == TMessageType.EXCEPTION:
2227
      x = TApplicationException()
2228
      x.read(self._iprot)
2229
      self._iprot.readMessageEnd()
2230
      raise x
2231
    result = updateItemStockPurchaseParams_result()
2232
    result.read(self._iprot)
2233
    self._iprot.readMessageEnd()
2234
    return
2235
 
2236
  def getItemStockPurchaseParams(self, itemId):
2237
    """
2238
    Parameters:
2239
     - itemId
2240
    """
2241
    self.send_getItemStockPurchaseParams(itemId)
2242
    return self.recv_getItemStockPurchaseParams()
2243
 
2244
  def send_getItemStockPurchaseParams(self, itemId):
2245
    self._oprot.writeMessageBegin('getItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2246
    args = getItemStockPurchaseParams_args()
2247
    args.itemId = itemId
2248
    args.write(self._oprot)
2249
    self._oprot.writeMessageEnd()
2250
    self._oprot.trans.flush()
2251
 
2252
  def recv_getItemStockPurchaseParams(self, ):
2253
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2254
    if mtype == TMessageType.EXCEPTION:
2255
      x = TApplicationException()
2256
      x.read(self._iprot)
2257
      self._iprot.readMessageEnd()
2258
      raise x
2259
    result = getItemStockPurchaseParams_result()
2260
    result.read(self._iprot)
2261
    self._iprot.readMessageEnd()
2262
    if result.success is not None:
2263
      return result.success
2264
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
2265
 
2266
  def addOosStatusForItem(self, oosStatusMap, date):
2267
    """
2268
    Parameters:
2269
     - oosStatusMap
2270
     - date
2271
    """
2272
    self.send_addOosStatusForItem(oosStatusMap, date)
2273
    self.recv_addOosStatusForItem()
2274
 
2275
  def send_addOosStatusForItem(self, oosStatusMap, date):
2276
    self._oprot.writeMessageBegin('addOosStatusForItem', TMessageType.CALL, self._seqid)
2277
    args = addOosStatusForItem_args()
2278
    args.oosStatusMap = oosStatusMap
2279
    args.date = date
2280
    args.write(self._oprot)
2281
    self._oprot.writeMessageEnd()
2282
    self._oprot.trans.flush()
2283
 
2284
  def recv_addOosStatusForItem(self, ):
2285
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2286
    if mtype == TMessageType.EXCEPTION:
2287
      x = TApplicationException()
2288
      x.read(self._iprot)
2289
      self._iprot.readMessageEnd()
2290
      raise x
2291
    result = addOosStatusForItem_result()
2292
    result.read(self._iprot)
2293
    self._iprot.readMessageEnd()
2294
    return
2295
 
9762 amar.kumar 2296
  def getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2297
    """
2298
    Parameters:
2299
     - itemId
9762 amar.kumar 2300
     - sourceId
6832 amar.kumar 2301
     - days
2302
    """
9762 amar.kumar 2303
    self.send_getOosStatusesForXDaysForItem(itemId, sourceId, days)
6832 amar.kumar 2304
    return self.recv_getOosStatusesForXDaysForItem()
6821 amar.kumar 2305
 
9762 amar.kumar 2306
  def send_getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2307
    self._oprot.writeMessageBegin('getOosStatusesForXDaysForItem', TMessageType.CALL, self._seqid)
2308
    args = getOosStatusesForXDaysForItem_args()
2309
    args.itemId = itemId
9762 amar.kumar 2310
    args.sourceId = sourceId
6832 amar.kumar 2311
    args.days = days
2312
    args.write(self._oprot)
2313
    self._oprot.writeMessageEnd()
2314
    self._oprot.trans.flush()
2315
 
2316
  def recv_getOosStatusesForXDaysForItem(self, ):
2317
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2318
    if mtype == TMessageType.EXCEPTION:
2319
      x = TApplicationException()
2320
      x.read(self._iprot)
2321
      self._iprot.readMessageEnd()
2322
      raise x
2323
    result = getOosStatusesForXDaysForItem_result()
2324
    result.read(self._iprot)
2325
    self._iprot.readMessageEnd()
2326
    if result.success is not None:
2327
      return result.success
2328
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
2329
 
10126 amar.kumar 2330
  def getOosStatusesForXDays(self, sourceId, days):
2331
    """
2332
    Parameters:
2333
     - sourceId
2334
     - days
2335
    """
2336
    self.send_getOosStatusesForXDays(sourceId, days)
2337
    return self.recv_getOosStatusesForXDays()
2338
 
2339
  def send_getOosStatusesForXDays(self, sourceId, days):
2340
    self._oprot.writeMessageBegin('getOosStatusesForXDays', TMessageType.CALL, self._seqid)
2341
    args = getOosStatusesForXDays_args()
2342
    args.sourceId = sourceId
2343
    args.days = days
2344
    args.write(self._oprot)
2345
    self._oprot.writeMessageEnd()
2346
    self._oprot.trans.flush()
2347
 
2348
  def recv_getOosStatusesForXDays(self, ):
2349
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2350
    if mtype == TMessageType.EXCEPTION:
2351
      x = TApplicationException()
2352
      x.read(self._iprot)
2353
      self._iprot.readMessageEnd()
2354
      raise x
2355
    result = getOosStatusesForXDays_result()
2356
    result.read(self._iprot)
2357
    self._iprot.readMessageEnd()
2358
    if result.success is not None:
2359
      return result.success
2360
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDays failed: unknown result");
2361
 
2362
  def getAllVendorItemPricing(self, itemId, vendorId):
2363
    """
2364
    Parameters:
2365
     - itemId
2366
     - vendorId
2367
    """
2368
    self.send_getAllVendorItemPricing(itemId, vendorId)
2369
    return self.recv_getAllVendorItemPricing()
2370
 
2371
  def send_getAllVendorItemPricing(self, itemId, vendorId):
2372
    self._oprot.writeMessageBegin('getAllVendorItemPricing', TMessageType.CALL, self._seqid)
2373
    args = getAllVendorItemPricing_args()
2374
    args.itemId = itemId
2375
    args.vendorId = vendorId
2376
    args.write(self._oprot)
2377
    self._oprot.writeMessageEnd()
2378
    self._oprot.trans.flush()
2379
 
2380
  def recv_getAllVendorItemPricing(self, ):
2381
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2382
    if mtype == TMessageType.EXCEPTION:
2383
      x = TApplicationException()
2384
      x.read(self._iprot)
2385
      self._iprot.readMessageEnd()
2386
      raise x
2387
    result = getAllVendorItemPricing_result()
2388
    result.read(self._iprot)
2389
    self._iprot.readMessageEnd()
2390
    if result.success is not None:
2391
      return result.success
2392
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemPricing failed: unknown result");
2393
 
6857 amar.kumar 2394
  def getNonZeroItemStockPurchaseParams(self, ):
2395
    self.send_getNonZeroItemStockPurchaseParams()
2396
    return self.recv_getNonZeroItemStockPurchaseParams()
6832 amar.kumar 2397
 
6857 amar.kumar 2398
  def send_getNonZeroItemStockPurchaseParams(self, ):
2399
    self._oprot.writeMessageBegin('getNonZeroItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2400
    args = getNonZeroItemStockPurchaseParams_args()
2401
    args.write(self._oprot)
2402
    self._oprot.writeMessageEnd()
2403
    self._oprot.trans.flush()
2404
 
2405
  def recv_getNonZeroItemStockPurchaseParams(self, ):
2406
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2407
    if mtype == TMessageType.EXCEPTION:
2408
      x = TApplicationException()
2409
      x.read(self._iprot)
2410
      self._iprot.readMessageEnd()
2411
      raise x
2412
    result = getNonZeroItemStockPurchaseParams_result()
2413
    result.read(self._iprot)
2414
    self._iprot.readMessageEnd()
2415
    if result.success is not None:
2416
      return result.success
2417
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
2418
 
7149 amar.kumar 2419
  def getBillableInventoryAndPendingOrders(self, ):
2420
    """
2421
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
2422
    """
2423
    self.send_getBillableInventoryAndPendingOrders()
2424
    return self.recv_getBillableInventoryAndPendingOrders()
6857 amar.kumar 2425
 
7149 amar.kumar 2426
  def send_getBillableInventoryAndPendingOrders(self, ):
2427
    self._oprot.writeMessageBegin('getBillableInventoryAndPendingOrders', TMessageType.CALL, self._seqid)
2428
    args = getBillableInventoryAndPendingOrders_args()
2429
    args.write(self._oprot)
2430
    self._oprot.writeMessageEnd()
2431
    self._oprot.trans.flush()
2432
 
2433
  def recv_getBillableInventoryAndPendingOrders(self, ):
2434
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2435
    if mtype == TMessageType.EXCEPTION:
2436
      x = TApplicationException()
2437
      x.read(self._iprot)
2438
      self._iprot.readMessageEnd()
2439
      raise x
2440
    result = getBillableInventoryAndPendingOrders_result()
2441
    result.read(self._iprot)
2442
    self._iprot.readMessageEnd()
2443
    if result.success is not None:
2444
      return result.success
2445
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
2446
 
7281 kshitij.so 2447
  def getWarehouseName(self, warehouse_id):
2448
    """
2449
    Parameters:
2450
     - warehouse_id
2451
    """
2452
    self.send_getWarehouseName(warehouse_id)
2453
    return self.recv_getWarehouseName()
7149 amar.kumar 2454
 
7281 kshitij.so 2455
  def send_getWarehouseName(self, warehouse_id):
2456
    self._oprot.writeMessageBegin('getWarehouseName', TMessageType.CALL, self._seqid)
2457
    args = getWarehouseName_args()
2458
    args.warehouse_id = warehouse_id
2459
    args.write(self._oprot)
2460
    self._oprot.writeMessageEnd()
2461
    self._oprot.trans.flush()
2462
 
2463
  def recv_getWarehouseName(self, ):
2464
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2465
    if mtype == TMessageType.EXCEPTION:
2466
      x = TApplicationException()
2467
      x.read(self._iprot)
2468
      self._iprot.readMessageEnd()
2469
      raise x
2470
    result = getWarehouseName_result()
2471
    result.read(self._iprot)
2472
    self._iprot.readMessageEnd()
2473
    if result.success is not None:
2474
      return result.success
2475
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseName failed: unknown result");
2476
 
2477
  def getAmazonInventoryForItem(self, item_id):
2478
    """
2479
    Parameters:
2480
     - item_id
2481
    """
2482
    self.send_getAmazonInventoryForItem(item_id)
2483
    return self.recv_getAmazonInventoryForItem()
2484
 
2485
  def send_getAmazonInventoryForItem(self, item_id):
2486
    self._oprot.writeMessageBegin('getAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2487
    args = getAmazonInventoryForItem_args()
2488
    args.item_id = item_id
2489
    args.write(self._oprot)
2490
    self._oprot.writeMessageEnd()
2491
    self._oprot.trans.flush()
2492
 
2493
  def recv_getAmazonInventoryForItem(self, ):
2494
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2495
    if mtype == TMessageType.EXCEPTION:
2496
      x = TApplicationException()
2497
      x.read(self._iprot)
2498
      self._iprot.readMessageEnd()
2499
      raise x
2500
    result = getAmazonInventoryForItem_result()
2501
    result.read(self._iprot)
2502
    self._iprot.readMessageEnd()
2503
    if result.success is not None:
2504
      return result.success
2505
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonInventoryForItem failed: unknown result");
2506
 
2507
  def getAllAmazonInventory(self, ):
2508
    self.send_getAllAmazonInventory()
2509
    return self.recv_getAllAmazonInventory()
2510
 
2511
  def send_getAllAmazonInventory(self, ):
2512
    self._oprot.writeMessageBegin('getAllAmazonInventory', TMessageType.CALL, self._seqid)
2513
    args = getAllAmazonInventory_args()
2514
    args.write(self._oprot)
2515
    self._oprot.writeMessageEnd()
2516
    self._oprot.trans.flush()
2517
 
2518
  def recv_getAllAmazonInventory(self, ):
2519
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2520
    if mtype == TMessageType.EXCEPTION:
2521
      x = TApplicationException()
2522
      x.read(self._iprot)
2523
      self._iprot.readMessageEnd()
2524
      raise x
2525
    result = getAllAmazonInventory_result()
2526
    result.read(self._iprot)
2527
    self._iprot.readMessageEnd()
2528
    if result.success is not None:
2529
      return result.success
2530
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonInventory failed: unknown result");
2531
 
10450 vikram.rag 2532
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot, time):
7281 kshitij.so 2533
    """
2534
    Parameters:
2535
     - amazonInventorySnapshot
10450 vikram.rag 2536
     - time
7281 kshitij.so 2537
    """
10450 vikram.rag 2538
    self.send_addOrUpdateAmazonInventoryForItem(amazonInventorySnapshot, time)
7281 kshitij.so 2539
    self.recv_addOrUpdateAmazonInventoryForItem()
2540
 
10450 vikram.rag 2541
  def send_addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot, time):
7281 kshitij.so 2542
    self._oprot.writeMessageBegin('addOrUpdateAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2543
    args = addOrUpdateAmazonInventoryForItem_args()
2544
    args.amazonInventorySnapshot = amazonInventorySnapshot
10450 vikram.rag 2545
    args.time = time
7281 kshitij.so 2546
    args.write(self._oprot)
2547
    self._oprot.writeMessageEnd()
2548
    self._oprot.trans.flush()
2549
 
2550
  def recv_addOrUpdateAmazonInventoryForItem(self, ):
2551
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2552
    if mtype == TMessageType.EXCEPTION:
2553
      x = TApplicationException()
2554
      x.read(self._iprot)
2555
      self._iprot.readMessageEnd()
2556
      raise x
2557
    result = addOrUpdateAmazonInventoryForItem_result()
2558
    result.read(self._iprot)
2559
    self._iprot.readMessageEnd()
2560
    return
2561
 
7972 amar.kumar 2562
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
2563
    """
2564
    Parameters:
2565
     - itemId
2566
     - numberOfDays
2567
    """
2568
    self.send_getLastNdaySaleForItem(itemId, numberOfDays)
2569
    return self.recv_getLastNdaySaleForItem()
7281 kshitij.so 2570
 
7972 amar.kumar 2571
  def send_getLastNdaySaleForItem(self, itemId, numberOfDays):
2572
    self._oprot.writeMessageBegin('getLastNdaySaleForItem', TMessageType.CALL, self._seqid)
2573
    args = getLastNdaySaleForItem_args()
2574
    args.itemId = itemId
2575
    args.numberOfDays = numberOfDays
2576
    args.write(self._oprot)
2577
    self._oprot.writeMessageEnd()
2578
    self._oprot.trans.flush()
2579
 
2580
  def recv_getLastNdaySaleForItem(self, ):
2581
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2582
    if mtype == TMessageType.EXCEPTION:
2583
      x = TApplicationException()
2584
      x.read(self._iprot)
2585
      self._iprot.readMessageEnd()
2586
      raise x
2587
    result = getLastNdaySaleForItem_result()
2588
    result.read(self._iprot)
2589
    self._iprot.readMessageEnd()
2590
    if result.success is not None:
2591
      return result.success
2592
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastNdaySaleForItem failed: unknown result");
2593
 
8282 kshitij.so 2594
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2595
    """
2596
    Parameters:
2597
     - amazonfbainventorysnapshot
2598
    """
2599
    self.send_addOrUpdateAmazonFbaInventory(amazonfbainventorysnapshot)
2600
    self.recv_addOrUpdateAmazonFbaInventory()
2601
 
2602
  def send_addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2603
    self._oprot.writeMessageBegin('addOrUpdateAmazonFbaInventory', TMessageType.CALL, self._seqid)
2604
    args = addOrUpdateAmazonFbaInventory_args()
2605
    args.amazonfbainventorysnapshot = amazonfbainventorysnapshot
2606
    args.write(self._oprot)
2607
    self._oprot.writeMessageEnd()
2608
    self._oprot.trans.flush()
2609
 
2610
  def recv_addOrUpdateAmazonFbaInventory(self, ):
2611
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2612
    if mtype == TMessageType.EXCEPTION:
2613
      x = TApplicationException()
2614
      x.read(self._iprot)
2615
      self._iprot.readMessageEnd()
2616
      raise x
2617
    result = addOrUpdateAmazonFbaInventory_result()
2618
    result.read(self._iprot)
2619
    self._iprot.readMessageEnd()
2620
    return
2621
 
8182 amar.kumar 2622
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2623
    """
2624
    Parameters:
2625
     - itemId
2626
     - warehouseId
2627
     - holdQuantity
2628
     - source
2629
    """
2630
    self.send_addUpdateHoldInventory(itemId, warehouseId, holdQuantity, source)
2631
    self.recv_addUpdateHoldInventory()
7972 amar.kumar 2632
 
8182 amar.kumar 2633
  def send_addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2634
    self._oprot.writeMessageBegin('addUpdateHoldInventory', TMessageType.CALL, self._seqid)
2635
    args = addUpdateHoldInventory_args()
2636
    args.itemId = itemId
2637
    args.warehouseId = warehouseId
2638
    args.holdQuantity = holdQuantity
2639
    args.source = source
2640
    args.write(self._oprot)
2641
    self._oprot.writeMessageEnd()
2642
    self._oprot.trans.flush()
2643
 
2644
  def recv_addUpdateHoldInventory(self, ):
2645
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2646
    if mtype == TMessageType.EXCEPTION:
2647
      x = TApplicationException()
2648
      x.read(self._iprot)
2649
      self._iprot.readMessageEnd()
2650
      raise x
2651
    result = addUpdateHoldInventory_result()
2652
    result.read(self._iprot)
2653
    self._iprot.readMessageEnd()
9762 amar.kumar 2654
    if result.cex is not None:
2655
      raise result.cex
8182 amar.kumar 2656
    return
2657
 
8282 kshitij.so 2658
  def getAmazonFbaItemInventory(self, itemId):
2659
    """
2660
    Parameters:
2661
     - itemId
2662
    """
2663
    self.send_getAmazonFbaItemInventory(itemId)
2664
    return self.recv_getAmazonFbaItemInventory()
8182 amar.kumar 2665
 
8282 kshitij.so 2666
  def send_getAmazonFbaItemInventory(self, itemId):
2667
    self._oprot.writeMessageBegin('getAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2668
    args = getAmazonFbaItemInventory_args()
2669
    args.itemId = itemId
2670
    args.write(self._oprot)
2671
    self._oprot.writeMessageEnd()
2672
    self._oprot.trans.flush()
2673
 
2674
  def recv_getAmazonFbaItemInventory(self, ):
2675
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2676
    if mtype == TMessageType.EXCEPTION:
2677
      x = TApplicationException()
2678
      x.read(self._iprot)
2679
      self._iprot.readMessageEnd()
2680
      raise x
2681
    result = getAmazonFbaItemInventory_result()
2682
    result.read(self._iprot)
2683
    self._iprot.readMessageEnd()
2684
    if result.success is not None:
2685
      return result.success
2686
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonFbaItemInventory failed: unknown result");
2687
 
8363 vikram.rag 2688
  def getAllAmazonFbaItemInventory(self, ):
2689
    self.send_getAllAmazonFbaItemInventory()
2690
    return self.recv_getAllAmazonFbaItemInventory()
8282 kshitij.so 2691
 
8363 vikram.rag 2692
  def send_getAllAmazonFbaItemInventory(self, ):
2693
    self._oprot.writeMessageBegin('getAllAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2694
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 2695
    args.write(self._oprot)
2696
    self._oprot.writeMessageEnd()
2697
    self._oprot.trans.flush()
2698
 
8363 vikram.rag 2699
  def recv_getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 2700
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2701
    if mtype == TMessageType.EXCEPTION:
2702
      x = TApplicationException()
2703
      x.read(self._iprot)
2704
      self._iprot.readMessageEnd()
2705
      raise x
8363 vikram.rag 2706
    result = getAllAmazonFbaItemInventory_result()
8282 kshitij.so 2707
    result.read(self._iprot)
2708
    self._iprot.readMessageEnd()
2709
    if result.success is not None:
2710
      return result.success
8363 vikram.rag 2711
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonFbaItemInventory failed: unknown result");
8282 kshitij.so 2712
 
8363 vikram.rag 2713
  def getOursGoodWarehouseIdsForLocation(self, state_id):
2714
    """
2715
    Parameters:
2716
     - state_id
2717
    """
2718
    self.send_getOursGoodWarehouseIdsForLocation(state_id)
2719
    return self.recv_getOursGoodWarehouseIdsForLocation()
8282 kshitij.so 2720
 
8363 vikram.rag 2721
  def send_getOursGoodWarehouseIdsForLocation(self, state_id):
2722
    self._oprot.writeMessageBegin('getOursGoodWarehouseIdsForLocation', TMessageType.CALL, self._seqid)
2723
    args = getOursGoodWarehouseIdsForLocation_args()
2724
    args.state_id = state_id
2725
    args.write(self._oprot)
2726
    self._oprot.writeMessageEnd()
2727
    self._oprot.trans.flush()
2728
 
2729
  def recv_getOursGoodWarehouseIdsForLocation(self, ):
2730
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2731
    if mtype == TMessageType.EXCEPTION:
2732
      x = TApplicationException()
2733
      x.read(self._iprot)
2734
      self._iprot.readMessageEnd()
2735
      raise x
2736
    result = getOursGoodWarehouseIdsForLocation_result()
2737
    result.read(self._iprot)
2738
    self._iprot.readMessageEnd()
2739
    if result.success is not None:
2740
      return result.success
2741
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOursGoodWarehouseIdsForLocation failed: unknown result");
2742
 
8955 vikram.rag 2743
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2744
    """
2745
    Parameters:
2746
     - id
2747
     - warehouse_id
2748
     - source
2749
    """
2750
    self.send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(id, warehouse_id, source)
2751
    return self.recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource()
8363 vikram.rag 2752
 
8955 vikram.rag 2753
  def send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2754
    self._oprot.writeMessageBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource', TMessageType.CALL, self._seqid)
2755
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
2756
    args.id = id
2757
    args.warehouse_id = warehouse_id
2758
    args.source = source
2759
    args.write(self._oprot)
2760
    self._oprot.writeMessageEnd()
2761
    self._oprot.trans.flush()
2762
 
2763
  def recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, ):
2764
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2765
    if mtype == TMessageType.EXCEPTION:
2766
      x = TApplicationException()
2767
      x.read(self._iprot)
2768
      self._iprot.readMessageEnd()
2769
      raise x
2770
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
2771
    result.read(self._iprot)
2772
    self._iprot.readMessageEnd()
2773
    if result.success is not None:
2774
      return result.success
2775
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetailForItemForWarehouseIdExceptSource failed: unknown result");
2776
 
9404 vikram.rag 2777
  def getSnapdealInventoryForItem(self, item_id):
2778
    """
2779
    Parameters:
2780
     - item_id
2781
    """
2782
    self.send_getSnapdealInventoryForItem(item_id)
2783
    return self.recv_getSnapdealInventoryForItem()
8955 vikram.rag 2784
 
9404 vikram.rag 2785
  def send_getSnapdealInventoryForItem(self, item_id):
2786
    self._oprot.writeMessageBegin('getSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2787
    args = getSnapdealInventoryForItem_args()
2788
    args.item_id = item_id
2789
    args.write(self._oprot)
2790
    self._oprot.writeMessageEnd()
2791
    self._oprot.trans.flush()
2792
 
2793
  def recv_getSnapdealInventoryForItem(self, ):
2794
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2795
    if mtype == TMessageType.EXCEPTION:
2796
      x = TApplicationException()
2797
      x.read(self._iprot)
2798
      self._iprot.readMessageEnd()
2799
      raise x
2800
    result = getSnapdealInventoryForItem_result()
2801
    result.read(self._iprot)
2802
    self._iprot.readMessageEnd()
2803
    if result.success is not None:
2804
      return result.success
2805
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventoryForItem failed: unknown result");
2806
 
2807
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2808
    """
2809
    Parameters:
2810
     - snapdealinventoryitem
2811
    """
2812
    self.send_addOrUpdateSnapdealInventoryForItem(snapdealinventoryitem)
2813
    self.recv_addOrUpdateSnapdealInventoryForItem()
2814
 
2815
  def send_addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2816
    self._oprot.writeMessageBegin('addOrUpdateSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2817
    args = addOrUpdateSnapdealInventoryForItem_args()
2818
    args.snapdealinventoryitem = snapdealinventoryitem
2819
    args.write(self._oprot)
2820
    self._oprot.writeMessageEnd()
2821
    self._oprot.trans.flush()
2822
 
2823
  def recv_addOrUpdateSnapdealInventoryForItem(self, ):
2824
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2825
    if mtype == TMessageType.EXCEPTION:
2826
      x = TApplicationException()
2827
      x.read(self._iprot)
2828
      self._iprot.readMessageEnd()
2829
      raise x
2830
    result = addOrUpdateSnapdealInventoryForItem_result()
2831
    result.read(self._iprot)
2832
    self._iprot.readMessageEnd()
2833
    return
2834
 
2835
  def getNlcForWarehouse(self, warehouse_id, item_id):
2836
    """
2837
    Parameters:
2838
     - warehouse_id
2839
     - item_id
2840
    """
2841
    self.send_getNlcForWarehouse(warehouse_id, item_id)
2842
    return self.recv_getNlcForWarehouse()
2843
 
2844
  def send_getNlcForWarehouse(self, warehouse_id, item_id):
2845
    self._oprot.writeMessageBegin('getNlcForWarehouse', TMessageType.CALL, self._seqid)
2846
    args = getNlcForWarehouse_args()
2847
    args.warehouse_id = warehouse_id
2848
    args.item_id = item_id
2849
    args.write(self._oprot)
2850
    self._oprot.writeMessageEnd()
2851
    self._oprot.trans.flush()
2852
 
2853
  def recv_getNlcForWarehouse(self, ):
2854
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2855
    if mtype == TMessageType.EXCEPTION:
2856
      x = TApplicationException()
2857
      x.read(self._iprot)
2858
      self._iprot.readMessageEnd()
2859
      raise x
2860
    result = getNlcForWarehouse_result()
2861
    result.read(self._iprot)
2862
    self._iprot.readMessageEnd()
2863
    if result.success is not None:
2864
      return result.success
2865
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
2866
 
9640 amar.kumar 2867
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
2868
    """
2869
    Parameters:
2870
     - item_id
2871
     - warehouse_id
2872
    """
2873
    self.send_getHeldInventoryMapForItem(item_id, warehouse_id)
2874
    return self.recv_getHeldInventoryMapForItem()
2875
 
2876
  def send_getHeldInventoryMapForItem(self, item_id, warehouse_id):
2877
    self._oprot.writeMessageBegin('getHeldInventoryMapForItem', TMessageType.CALL, self._seqid)
2878
    args = getHeldInventoryMapForItem_args()
2879
    args.item_id = item_id
2880
    args.warehouse_id = warehouse_id
2881
    args.write(self._oprot)
2882
    self._oprot.writeMessageEnd()
2883
    self._oprot.trans.flush()
2884
 
2885
  def recv_getHeldInventoryMapForItem(self, ):
2886
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2887
    if mtype == TMessageType.EXCEPTION:
2888
      x = TApplicationException()
2889
      x.read(self._iprot)
2890
      self._iprot.readMessageEnd()
2891
      raise x
2892
    result = getHeldInventoryMapForItem_result()
2893
    result.read(self._iprot)
2894
    self._iprot.readMessageEnd()
2895
    if result.success is not None:
2896
      return result.success
2897
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHeldInventoryMapForItem failed: unknown result");
2898
 
9495 vikram.rag 2899
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2900
    """
2901
    Parameters:
2902
     - allamazonfbainventorysnapshot
2903
    """
2904
    self.send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot)
2905
    self.recv_addOrUpdateAllAmazonFbaInventory()
9404 vikram.rag 2906
 
9495 vikram.rag 2907
  def send_addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2908
    self._oprot.writeMessageBegin('addOrUpdateAllAmazonFbaInventory', TMessageType.CALL, self._seqid)
2909
    args = addOrUpdateAllAmazonFbaInventory_args()
2910
    args.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 2911
    args.write(self._oprot)
2912
    self._oprot.writeMessageEnd()
2913
    self._oprot.trans.flush()
2914
 
9495 vikram.rag 2915
  def recv_addOrUpdateAllAmazonFbaInventory(self, ):
9456 vikram.rag 2916
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2917
    if mtype == TMessageType.EXCEPTION:
2918
      x = TApplicationException()
2919
      x.read(self._iprot)
2920
      self._iprot.readMessageEnd()
2921
      raise x
9495 vikram.rag 2922
    result = addOrUpdateAllAmazonFbaInventory_result()
9456 vikram.rag 2923
    result.read(self._iprot)
2924
    self._iprot.readMessageEnd()
9495 vikram.rag 2925
    return
9456 vikram.rag 2926
 
9495 vikram.rag 2927
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
9482 vikram.rag 2928
    """
2929
    Parameters:
9495 vikram.rag 2930
     - allsnapdealinventorysnapshot
9482 vikram.rag 2931
    """
9495 vikram.rag 2932
    self.send_addOrUpdateAllSnapdealInventory(allsnapdealinventorysnapshot)
2933
    self.recv_addOrUpdateAllSnapdealInventory()
9456 vikram.rag 2934
 
9495 vikram.rag 2935
  def send_addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
2936
    self._oprot.writeMessageBegin('addOrUpdateAllSnapdealInventory', TMessageType.CALL, self._seqid)
2937
    args = addOrUpdateAllSnapdealInventory_args()
2938
    args.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 2939
    args.write(self._oprot)
2940
    self._oprot.writeMessageEnd()
2941
    self._oprot.trans.flush()
2942
 
9495 vikram.rag 2943
  def recv_addOrUpdateAllSnapdealInventory(self, ):
9482 vikram.rag 2944
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2945
    if mtype == TMessageType.EXCEPTION:
2946
      x = TApplicationException()
2947
      x.read(self._iprot)
2948
      self._iprot.readMessageEnd()
2949
      raise x
9495 vikram.rag 2950
    result = addOrUpdateAllSnapdealInventory_result()
9482 vikram.rag 2951
    result.read(self._iprot)
2952
    self._iprot.readMessageEnd()
2953
    return
2954
 
9495 vikram.rag 2955
  def getSnapdealInventorySnapshot(self, ):
2956
    self.send_getSnapdealInventorySnapshot()
2957
    return self.recv_getSnapdealInventorySnapshot()
9482 vikram.rag 2958
 
9495 vikram.rag 2959
  def send_getSnapdealInventorySnapshot(self, ):
2960
    self._oprot.writeMessageBegin('getSnapdealInventorySnapshot', TMessageType.CALL, self._seqid)
2961
    args = getSnapdealInventorySnapshot_args()
2962
    args.write(self._oprot)
2963
    self._oprot.writeMessageEnd()
2964
    self._oprot.trans.flush()
2965
 
2966
  def recv_getSnapdealInventorySnapshot(self, ):
2967
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2968
    if mtype == TMessageType.EXCEPTION:
2969
      x = TApplicationException()
2970
      x.read(self._iprot)
2971
      self._iprot.readMessageEnd()
2972
      raise x
2973
    result = getSnapdealInventorySnapshot_result()
2974
    result.read(self._iprot)
2975
    self._iprot.readMessageEnd()
2976
    if result.success is not None:
2977
      return result.success
2978
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventorySnapshot failed: unknown result");
2979
 
9761 amar.kumar 2980
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
2981
    """
2982
    Parameters:
2983
     - itemId
2984
     - warehouseId
2985
     - source
2986
    """
2987
    self.send_getHoldInventoryDetails(itemId, warehouseId, source)
2988
    return self.recv_getHoldInventoryDetails()
9495 vikram.rag 2989
 
9761 amar.kumar 2990
  def send_getHoldInventoryDetails(self, itemId, warehouseId, source):
2991
    self._oprot.writeMessageBegin('getHoldInventoryDetails', TMessageType.CALL, self._seqid)
2992
    args = getHoldInventoryDetails_args()
2993
    args.itemId = itemId
2994
    args.warehouseId = warehouseId
2995
    args.source = source
2996
    args.write(self._oprot)
2997
    self._oprot.writeMessageEnd()
2998
    self._oprot.trans.flush()
2999
 
3000
  def recv_getHoldInventoryDetails(self, ):
3001
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3002
    if mtype == TMessageType.EXCEPTION:
3003
      x = TApplicationException()
3004
      x.read(self._iprot)
3005
      self._iprot.readMessageEnd()
3006
      raise x
3007
    result = getHoldInventoryDetails_result()
3008
    result.read(self._iprot)
3009
    self._iprot.readMessageEnd()
3010
    if result.success is not None:
3011
      return result.success
3012
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetails failed: unknown result");
3013
 
10450 vikram.rag 3014
  def addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot, time):
10050 vikram.rag 3015
    """
3016
    Parameters:
3017
     - flipkartInventorySnapshot
10450 vikram.rag 3018
     - time
10050 vikram.rag 3019
    """
10450 vikram.rag 3020
    self.send_addOrUpdateFlipkartInventorySnapshot(flipkartInventorySnapshot, time)
10050 vikram.rag 3021
    self.recv_addOrUpdateFlipkartInventorySnapshot()
9761 amar.kumar 3022
 
10450 vikram.rag 3023
  def send_addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot, time):
10050 vikram.rag 3024
    self._oprot.writeMessageBegin('addOrUpdateFlipkartInventorySnapshot', TMessageType.CALL, self._seqid)
3025
    args = addOrUpdateFlipkartInventorySnapshot_args()
3026
    args.flipkartInventorySnapshot = flipkartInventorySnapshot
10450 vikram.rag 3027
    args.time = time
10050 vikram.rag 3028
    args.write(self._oprot)
3029
    self._oprot.writeMessageEnd()
3030
    self._oprot.trans.flush()
3031
 
3032
  def recv_addOrUpdateFlipkartInventorySnapshot(self, ):
3033
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3034
    if mtype == TMessageType.EXCEPTION:
3035
      x = TApplicationException()
3036
      x.read(self._iprot)
3037
      self._iprot.readMessageEnd()
3038
      raise x
3039
    result = addOrUpdateFlipkartInventorySnapshot_result()
3040
    result.read(self._iprot)
3041
    self._iprot.readMessageEnd()
3042
    return
3043
 
3044
  def getFlipkartInventorySnapshot(self, ):
3045
    self.send_getFlipkartInventorySnapshot()
3046
    return self.recv_getFlipkartInventorySnapshot()
3047
 
3048
  def send_getFlipkartInventorySnapshot(self, ):
3049
    self._oprot.writeMessageBegin('getFlipkartInventorySnapshot', TMessageType.CALL, self._seqid)
3050
    args = getFlipkartInventorySnapshot_args()
3051
    args.write(self._oprot)
3052
    self._oprot.writeMessageEnd()
3053
    self._oprot.trans.flush()
3054
 
3055
  def recv_getFlipkartInventorySnapshot(self, ):
3056
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3057
    if mtype == TMessageType.EXCEPTION:
3058
      x = TApplicationException()
3059
      x.read(self._iprot)
3060
      self._iprot.readMessageEnd()
3061
      raise x
3062
    result = getFlipkartInventorySnapshot_result()
3063
    result.read(self._iprot)
3064
    self._iprot.readMessageEnd()
3065
    if result.success is not None:
3066
      return result.success
3067
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartInventorySnapshot failed: unknown result");
3068
 
10097 kshitij.so 3069
  def getFlipkartlInventoryForItem(self, item_id):
3070
    """
3071
    Parameters:
3072
     - item_id
3073
    """
3074
    self.send_getFlipkartlInventoryForItem(item_id)
3075
    return self.recv_getFlipkartlInventoryForItem()
10050 vikram.rag 3076
 
10097 kshitij.so 3077
  def send_getFlipkartlInventoryForItem(self, item_id):
3078
    self._oprot.writeMessageBegin('getFlipkartlInventoryForItem', TMessageType.CALL, self._seqid)
3079
    args = getFlipkartlInventoryForItem_args()
3080
    args.item_id = item_id
3081
    args.write(self._oprot)
3082
    self._oprot.writeMessageEnd()
3083
    self._oprot.trans.flush()
3084
 
3085
  def recv_getFlipkartlInventoryForItem(self, ):
3086
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3087
    if mtype == TMessageType.EXCEPTION:
3088
      x = TApplicationException()
3089
      x.read(self._iprot)
3090
      self._iprot.readMessageEnd()
3091
      raise x
3092
    result = getFlipkartlInventoryForItem_result()
3093
    result.read(self._iprot)
3094
    self._iprot.readMessageEnd()
3095
    if result.success is not None:
3096
      return result.success
3097
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartlInventoryForItem failed: unknown result");
3098
 
10485 vikram.rag 3099
  def getStateMaster(self, ):
3100
    self.send_getStateMaster()
3101
    return self.recv_getStateMaster()
10097 kshitij.so 3102
 
10485 vikram.rag 3103
  def send_getStateMaster(self, ):
3104
    self._oprot.writeMessageBegin('getStateMaster', TMessageType.CALL, self._seqid)
3105
    args = getStateMaster_args()
3106
    args.write(self._oprot)
3107
    self._oprot.writeMessageEnd()
3108
    self._oprot.trans.flush()
3109
 
3110
  def recv_getStateMaster(self, ):
3111
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3112
    if mtype == TMessageType.EXCEPTION:
3113
      x = TApplicationException()
3114
      x.read(self._iprot)
3115
      self._iprot.readMessageEnd()
3116
      raise x
3117
    result = getStateMaster_result()
3118
    result.read(self._iprot)
3119
    self._iprot.readMessageEnd()
3120
    if result.success is not None:
3121
      return result.success
3122
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStateMaster failed: unknown result");
3123
 
10544 vikram.rag 3124
  def updateSnapdealStockAtEOD(self, allsnapdealstock):
3125
    """
3126
    Parameters:
3127
     - allsnapdealstock
3128
    """
3129
    self.send_updateSnapdealStockAtEOD(allsnapdealstock)
3130
    self.recv_updateSnapdealStockAtEOD()
10485 vikram.rag 3131
 
10544 vikram.rag 3132
  def send_updateSnapdealStockAtEOD(self, allsnapdealstock):
3133
    self._oprot.writeMessageBegin('updateSnapdealStockAtEOD', TMessageType.CALL, self._seqid)
3134
    args = updateSnapdealStockAtEOD_args()
3135
    args.allsnapdealstock = allsnapdealstock
3136
    args.write(self._oprot)
3137
    self._oprot.writeMessageEnd()
3138
    self._oprot.trans.flush()
3139
 
3140
  def recv_updateSnapdealStockAtEOD(self, ):
3141
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3142
    if mtype == TMessageType.EXCEPTION:
3143
      x = TApplicationException()
3144
      x.read(self._iprot)
3145
      self._iprot.readMessageEnd()
3146
      raise x
3147
    result = updateSnapdealStockAtEOD_result()
3148
    result.read(self._iprot)
3149
    self._iprot.readMessageEnd()
3150
    return
3151
 
3152
  def updateFlipkartStockAtEOD(self, allflipkartstock):
3153
    """
3154
    Parameters:
3155
     - allflipkartstock
3156
    """
3157
    self.send_updateFlipkartStockAtEOD(allflipkartstock)
3158
    self.recv_updateFlipkartStockAtEOD()
3159
 
3160
  def send_updateFlipkartStockAtEOD(self, allflipkartstock):
3161
    self._oprot.writeMessageBegin('updateFlipkartStockAtEOD', TMessageType.CALL, self._seqid)
3162
    args = updateFlipkartStockAtEOD_args()
3163
    args.allflipkartstock = allflipkartstock
3164
    args.write(self._oprot)
3165
    self._oprot.writeMessageEnd()
3166
    self._oprot.trans.flush()
3167
 
3168
  def recv_updateFlipkartStockAtEOD(self, ):
3169
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3170
    if mtype == TMessageType.EXCEPTION:
3171
      x = TApplicationException()
3172
      x.read(self._iprot)
3173
      self._iprot.readMessageEnd()
3174
      raise x
3175
    result = updateFlipkartStockAtEOD_result()
3176
    result.read(self._iprot)
3177
    self._iprot.readMessageEnd()
3178
    return
3179
 
12363 kshitij.so 3180
  def getWanNlcForSource(self, item_id, source):
3181
    """
3182
    Parameters:
3183
     - item_id
3184
     - source
3185
    """
3186
    self.send_getWanNlcForSource(item_id, source)
3187
    return self.recv_getWanNlcForSource()
10544 vikram.rag 3188
 
12363 kshitij.so 3189
  def send_getWanNlcForSource(self, item_id, source):
3190
    self._oprot.writeMessageBegin('getWanNlcForSource', TMessageType.CALL, self._seqid)
3191
    args = getWanNlcForSource_args()
3192
    args.item_id = item_id
3193
    args.source = source
3194
    args.write(self._oprot)
3195
    self._oprot.writeMessageEnd()
3196
    self._oprot.trans.flush()
3197
 
3198
  def recv_getWanNlcForSource(self, ):
3199
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3200
    if mtype == TMessageType.EXCEPTION:
3201
      x = TApplicationException()
3202
      x.read(self._iprot)
3203
      self._iprot.readMessageEnd()
3204
      raise x
3205
    result = getWanNlcForSource_result()
3206
    result.read(self._iprot)
3207
    self._iprot.readMessageEnd()
3208
    if result.success is not None:
3209
      return result.success
3210
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWanNlcForSource failed: unknown result");
3211
 
3212
  def getAllAvailableAmazonFbaItemInventory(self, ):
3213
    self.send_getAllAvailableAmazonFbaItemInventory()
3214
    return self.recv_getAllAvailableAmazonFbaItemInventory()
3215
 
3216
  def send_getAllAvailableAmazonFbaItemInventory(self, ):
3217
    self._oprot.writeMessageBegin('getAllAvailableAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
3218
    args = getAllAvailableAmazonFbaItemInventory_args()
3219
    args.write(self._oprot)
3220
    self._oprot.writeMessageEnd()
3221
    self._oprot.trans.flush()
3222
 
3223
  def recv_getAllAvailableAmazonFbaItemInventory(self, ):
3224
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3225
    if mtype == TMessageType.EXCEPTION:
3226
      x = TApplicationException()
3227
      x.read(self._iprot)
3228
      self._iprot.readMessageEnd()
3229
      raise x
3230
    result = getAllAvailableAmazonFbaItemInventory_result()
3231
    result.read(self._iprot)
3232
    self._iprot.readMessageEnd()
3233
    if result.success is not None:
3234
      return result.success
3235
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAvailableAmazonFbaItemInventory failed: unknown result");
3236
 
17990 kshitij.so 3237
  def updateItemAvailabilityForItemIds(self, itemIds):
3238
    """
3239
    Parameters:
3240
     - itemIds
3241
    """
3242
    self.send_updateItemAvailabilityForItemIds(itemIds)
3243
    return self.recv_updateItemAvailabilityForItemIds()
12363 kshitij.so 3244
 
17990 kshitij.so 3245
  def send_updateItemAvailabilityForItemIds(self, itemIds):
3246
    self._oprot.writeMessageBegin('updateItemAvailabilityForItemIds', TMessageType.CALL, self._seqid)
3247
    args = updateItemAvailabilityForItemIds_args()
3248
    args.itemIds = itemIds
3249
    args.write(self._oprot)
3250
    self._oprot.writeMessageEnd()
3251
    self._oprot.trans.flush()
3252
 
3253
  def recv_updateItemAvailabilityForItemIds(self, ):
3254
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3255
    if mtype == TMessageType.EXCEPTION:
3256
      x = TApplicationException()
3257
      x.read(self._iprot)
3258
      self._iprot.readMessageEnd()
3259
      raise x
3260
    result = updateItemAvailabilityForItemIds_result()
3261
    result.read(self._iprot)
3262
    self._iprot.readMessageEnd()
3263
    if result.success is not None:
3264
      return result.success
3265
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemAvailabilityForItemIds failed: unknown result");
3266
 
19247 kshitij.so 3267
  def addVendorItemPricingInBulk(self, vendorItemPricingList):
3268
    """
3269
    Parameters:
3270
     - vendorItemPricingList
3271
    """
3272
    self.send_addVendorItemPricingInBulk(vendorItemPricingList)
3273
    return self.recv_addVendorItemPricingInBulk()
17990 kshitij.so 3274
 
19247 kshitij.so 3275
  def send_addVendorItemPricingInBulk(self, vendorItemPricingList):
3276
    self._oprot.writeMessageBegin('addVendorItemPricingInBulk', TMessageType.CALL, self._seqid)
3277
    args = addVendorItemPricingInBulk_args()
3278
    args.vendorItemPricingList = vendorItemPricingList
3279
    args.write(self._oprot)
3280
    self._oprot.writeMessageEnd()
3281
    self._oprot.trans.flush()
3282
 
3283
  def recv_addVendorItemPricingInBulk(self, ):
3284
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3285
    if mtype == TMessageType.EXCEPTION:
3286
      x = TApplicationException()
3287
      x.read(self._iprot)
3288
      self._iprot.readMessageEnd()
3289
      raise x
3290
    result = addVendorItemPricingInBulk_result()
3291
    result.read(self._iprot)
3292
    self._iprot.readMessageEnd()
3293
    if result.success is not None:
3294
      return result.success
3295
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addVendorItemPricingInBulk failed: unknown result");
3296
 
3297
  def addInventoryInBulk(self, bulkInventoryList):
3298
    """
3299
    Parameters:
3300
     - bulkInventoryList
3301
    """
3302
    self.send_addInventoryInBulk(bulkInventoryList)
3303
    self.recv_addInventoryInBulk()
3304
 
3305
  def send_addInventoryInBulk(self, bulkInventoryList):
3306
    self._oprot.writeMessageBegin('addInventoryInBulk', TMessageType.CALL, self._seqid)
3307
    args = addInventoryInBulk_args()
3308
    args.bulkInventoryList = bulkInventoryList
3309
    args.write(self._oprot)
3310
    self._oprot.writeMessageEnd()
3311
    self._oprot.trans.flush()
3312
 
3313
  def recv_addInventoryInBulk(self, ):
3314
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3315
    if mtype == TMessageType.EXCEPTION:
3316
      x = TApplicationException()
3317
      x.read(self._iprot)
3318
      self._iprot.readMessageEnd()
3319
      raise x
3320
    result = addInventoryInBulk_result()
3321
    result.read(self._iprot)
3322
    self._iprot.readMessageEnd()
3323
    if result.cex is not None:
3324
      raise result.cex
3325
    return
3326
 
3327
 
5944 mandeep.dh 3328
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3329
  def __init__(self, handler):
3330
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3331
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
3332
    self._processMap["addVendor"] = Processor.process_addVendor
3333
    self._processMap["updateInventoryHistory"] = Processor.process_updateInventoryHistory
3334
    self._processMap["updateInventory"] = Processor.process_updateInventory
3335
    self._processMap["addInventory"] = Processor.process_addInventory
3336
    self._processMap["retireWarehouse"] = Processor.process_retireWarehouse
3337
    self._processMap["getItemInventoryByItemId"] = Processor.process_getItemInventoryByItemId
3338
    self._processMap["getItemAvailibilityAtWarehouse"] = Processor.process_getItemAvailibilityAtWarehouse
3339
    self._processMap["getItemAvailabilityAtLocation"] = Processor.process_getItemAvailabilityAtLocation
3340
    self._processMap["getAllWarehouses"] = Processor.process_getAllWarehouses
3341
    self._processMap["getWarehouse"] = Processor.process_getWarehouse
3342
    self._processMap["getAllItemsForWarehouse"] = Processor.process_getAllItemsForWarehouse
5966 rajveer 3343
    self._processMap["isOrderBillable"] = Processor.process_isOrderBillable
5944 mandeep.dh 3344
    self._processMap["reserveItemInWarehouse"] = Processor.process_reserveItemInWarehouse
7968 amar.kumar 3345
    self._processMap["updateReservationForOrder"] = Processor.process_updateReservationForOrder
5944 mandeep.dh 3346
    self._processMap["reduceReservationCount"] = Processor.process_reduceReservationCount
3347
    self._processMap["getItemPricing"] = Processor.process_getItemPricing
3348
    self._processMap["getAllItemPricing"] = Processor.process_getAllItemPricing
3349
    self._processMap["addVendorItemPricing"] = Processor.process_addVendorItemPricing
3350
    self._processMap["getVendor"] = Processor.process_getVendor
3351
    self._processMap["getAllVendors"] = Processor.process_getAllVendors
3352
    self._processMap["addVendorItemMapping"] = Processor.process_addVendorItemMapping
3353
    self._processMap["getVendorItemMappings"] = Processor.process_getVendorItemMappings
3354
    self._processMap["getPendingOrdersInventory"] = Processor.process_getPendingOrdersInventory
3355
    self._processMap["getWarehouses"] = Processor.process_getWarehouses
3356
    self._processMap["resetAvailability"] = Processor.process_resetAvailability
3357
    self._processMap["resetAvailabilityForWarehouse"] = Processor.process_resetAvailabilityForWarehouse
3358
    self._processMap["getItemKeysToBeProcessed"] = Processor.process_getItemKeysToBeProcessed
3359
    self._processMap["markMissedInventoryUpdatesAsProcessed"] = Processor.process_markMissedInventoryUpdatesAsProcessed
3360
    self._processMap["getIgnoredItemKeys"] = Processor.process_getIgnoredItemKeys
3361
    self._processMap["addBadInventory"] = Processor.process_addBadInventory
3362
    self._processMap["getShippingLocations"] = Processor.process_getShippingLocations
3363
    self._processMap["getAllVendorItemMappings"] = Processor.process_getAllVendorItemMappings
3364
    self._processMap["getInventorySnapshot"] = Processor.process_getInventorySnapshot
3365
    self._processMap["clearItemAvailabilityCache"] = Processor.process_clearItemAvailabilityCache
3366
    self._processMap["updateVendorString"] = Processor.process_updateVendorString
6096 amit.gupta 3367
    self._processMap["clearItemAvailabilityCacheForItem"] = Processor.process_clearItemAvailabilityCacheForItem
6467 amar.kumar 3368
    self._processMap["getOurWarehouseIdForVendor"] = Processor.process_getOurWarehouseIdForVendor
6484 amar.kumar 3369
    self._processMap["getItemAvailabilitiesAtOurWarehouses"] = Processor.process_getItemAvailabilitiesAtOurWarehouses
6531 vikram.rag 3370
    self._processMap["getMonitoredWarehouseForVendors"] = Processor.process_getMonitoredWarehouseForVendors
3371
    self._processMap["getIgnoredWarehouseidsAndItemids"] = Processor.process_getIgnoredWarehouseidsAndItemids
3372
    self._processMap["insertItemtoIgnoreInventoryUpdatelist"] = Processor.process_insertItemtoIgnoreInventoryUpdatelist
3373
    self._processMap["deleteItemFromIgnoredInventoryUpdateList"] = Processor.process_deleteItemFromIgnoredInventoryUpdateList
3374
    self._processMap["getAllIgnoredInventoryupdateItemsCount"] = Processor.process_getAllIgnoredInventoryupdateItemsCount
3375
    self._processMap["getIgnoredInventoryUpdateItemids"] = Processor.process_getIgnoredInventoryUpdateItemids
6821 amar.kumar 3376
    self._processMap["updateItemStockPurchaseParams"] = Processor.process_updateItemStockPurchaseParams
3377
    self._processMap["getItemStockPurchaseParams"] = Processor.process_getItemStockPurchaseParams
3378
    self._processMap["addOosStatusForItem"] = Processor.process_addOosStatusForItem
6832 amar.kumar 3379
    self._processMap["getOosStatusesForXDaysForItem"] = Processor.process_getOosStatusesForXDaysForItem
10126 amar.kumar 3380
    self._processMap["getOosStatusesForXDays"] = Processor.process_getOosStatusesForXDays
3381
    self._processMap["getAllVendorItemPricing"] = Processor.process_getAllVendorItemPricing
6857 amar.kumar 3382
    self._processMap["getNonZeroItemStockPurchaseParams"] = Processor.process_getNonZeroItemStockPurchaseParams
7149 amar.kumar 3383
    self._processMap["getBillableInventoryAndPendingOrders"] = Processor.process_getBillableInventoryAndPendingOrders
7281 kshitij.so 3384
    self._processMap["getWarehouseName"] = Processor.process_getWarehouseName
3385
    self._processMap["getAmazonInventoryForItem"] = Processor.process_getAmazonInventoryForItem
3386
    self._processMap["getAllAmazonInventory"] = Processor.process_getAllAmazonInventory
3387
    self._processMap["addOrUpdateAmazonInventoryForItem"] = Processor.process_addOrUpdateAmazonInventoryForItem
7972 amar.kumar 3388
    self._processMap["getLastNdaySaleForItem"] = Processor.process_getLastNdaySaleForItem
8282 kshitij.so 3389
    self._processMap["addOrUpdateAmazonFbaInventory"] = Processor.process_addOrUpdateAmazonFbaInventory
8182 amar.kumar 3390
    self._processMap["addUpdateHoldInventory"] = Processor.process_addUpdateHoldInventory
8282 kshitij.so 3391
    self._processMap["getAmazonFbaItemInventory"] = Processor.process_getAmazonFbaItemInventory
8363 vikram.rag 3392
    self._processMap["getAllAmazonFbaItemInventory"] = Processor.process_getAllAmazonFbaItemInventory
3393
    self._processMap["getOursGoodWarehouseIdsForLocation"] = Processor.process_getOursGoodWarehouseIdsForLocation
8955 vikram.rag 3394
    self._processMap["getHoldInventoryDetailForItemForWarehouseIdExceptSource"] = Processor.process_getHoldInventoryDetailForItemForWarehouseIdExceptSource
9404 vikram.rag 3395
    self._processMap["getSnapdealInventoryForItem"] = Processor.process_getSnapdealInventoryForItem
3396
    self._processMap["addOrUpdateSnapdealInventoryForItem"] = Processor.process_addOrUpdateSnapdealInventoryForItem
3397
    self._processMap["getNlcForWarehouse"] = Processor.process_getNlcForWarehouse
9640 amar.kumar 3398
    self._processMap["getHeldInventoryMapForItem"] = Processor.process_getHeldInventoryMapForItem
9482 vikram.rag 3399
    self._processMap["addOrUpdateAllAmazonFbaInventory"] = Processor.process_addOrUpdateAllAmazonFbaInventory
9495 vikram.rag 3400
    self._processMap["addOrUpdateAllSnapdealInventory"] = Processor.process_addOrUpdateAllSnapdealInventory
3401
    self._processMap["getSnapdealInventorySnapshot"] = Processor.process_getSnapdealInventorySnapshot
9761 amar.kumar 3402
    self._processMap["getHoldInventoryDetails"] = Processor.process_getHoldInventoryDetails
10050 vikram.rag 3403
    self._processMap["addOrUpdateFlipkartInventorySnapshot"] = Processor.process_addOrUpdateFlipkartInventorySnapshot
3404
    self._processMap["getFlipkartInventorySnapshot"] = Processor.process_getFlipkartInventorySnapshot
10097 kshitij.so 3405
    self._processMap["getFlipkartlInventoryForItem"] = Processor.process_getFlipkartlInventoryForItem
10485 vikram.rag 3406
    self._processMap["getStateMaster"] = Processor.process_getStateMaster
10544 vikram.rag 3407
    self._processMap["updateSnapdealStockAtEOD"] = Processor.process_updateSnapdealStockAtEOD
3408
    self._processMap["updateFlipkartStockAtEOD"] = Processor.process_updateFlipkartStockAtEOD
12363 kshitij.so 3409
    self._processMap["getWanNlcForSource"] = Processor.process_getWanNlcForSource
3410
    self._processMap["getAllAvailableAmazonFbaItemInventory"] = Processor.process_getAllAvailableAmazonFbaItemInventory
17990 kshitij.so 3411
    self._processMap["updateItemAvailabilityForItemIds"] = Processor.process_updateItemAvailabilityForItemIds
19247 kshitij.so 3412
    self._processMap["addVendorItemPricingInBulk"] = Processor.process_addVendorItemPricingInBulk
3413
    self._processMap["addInventoryInBulk"] = Processor.process_addInventoryInBulk
5944 mandeep.dh 3414
 
3415
  def process(self, iprot, oprot):
3416
    (name, type, seqid) = iprot.readMessageBegin()
3417
    if name not in self._processMap:
3418
      iprot.skip(TType.STRUCT)
3419
      iprot.readMessageEnd()
3420
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3421
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3422
      x.write(oprot)
3423
      oprot.writeMessageEnd()
3424
      oprot.trans.flush()
3425
      return
3426
    else:
3427
      self._processMap[name](self, seqid, iprot, oprot)
3428
    return True
3429
 
3430
  def process_addWarehouse(self, seqid, iprot, oprot):
3431
    args = addWarehouse_args()
3432
    args.read(iprot)
3433
    iprot.readMessageEnd()
3434
    result = addWarehouse_result()
3435
    try:
3436
      result.success = self._handler.addWarehouse(args.warehouse)
3437
    except InventoryServiceException, cex:
3438
      result.cex = cex
3439
    oprot.writeMessageBegin("addWarehouse", TMessageType.REPLY, seqid)
3440
    result.write(oprot)
3441
    oprot.writeMessageEnd()
3442
    oprot.trans.flush()
3443
 
3444
  def process_addVendor(self, seqid, iprot, oprot):
3445
    args = addVendor_args()
3446
    args.read(iprot)
3447
    iprot.readMessageEnd()
3448
    result = addVendor_result()
3449
    try:
3450
      result.success = self._handler.addVendor(args.vendor)
3451
    except InventoryServiceException, cex:
3452
      result.cex = cex
3453
    oprot.writeMessageBegin("addVendor", TMessageType.REPLY, seqid)
3454
    result.write(oprot)
3455
    oprot.writeMessageEnd()
3456
    oprot.trans.flush()
3457
 
3458
  def process_updateInventoryHistory(self, seqid, iprot, oprot):
3459
    args = updateInventoryHistory_args()
3460
    args.read(iprot)
3461
    iprot.readMessageEnd()
3462
    result = updateInventoryHistory_result()
3463
    try:
3464
      self._handler.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability)
3465
    except InventoryServiceException, cex:
3466
      result.cex = cex
3467
    oprot.writeMessageBegin("updateInventoryHistory", TMessageType.REPLY, seqid)
3468
    result.write(oprot)
3469
    oprot.writeMessageEnd()
3470
    oprot.trans.flush()
3471
 
3472
  def process_updateInventory(self, seqid, iprot, oprot):
3473
    args = updateInventory_args()
3474
    args.read(iprot)
3475
    iprot.readMessageEnd()
3476
    result = updateInventory_result()
3477
    try:
3478
      self._handler.updateInventory(args.warehouse_id, args.timestamp, args.availability)
3479
    except InventoryServiceException, cex:
3480
      result.cex = cex
3481
    oprot.writeMessageBegin("updateInventory", TMessageType.REPLY, seqid)
3482
    result.write(oprot)
3483
    oprot.writeMessageEnd()
3484
    oprot.trans.flush()
3485
 
3486
  def process_addInventory(self, seqid, iprot, oprot):
3487
    args = addInventory_args()
3488
    args.read(iprot)
3489
    iprot.readMessageEnd()
3490
    result = addInventory_result()
3491
    try:
3492
      self._handler.addInventory(args.itemId, args.warehouseId, args.quantity)
3493
    except InventoryServiceException, cex:
3494
      result.cex = cex
3495
    oprot.writeMessageBegin("addInventory", TMessageType.REPLY, seqid)
3496
    result.write(oprot)
3497
    oprot.writeMessageEnd()
3498
    oprot.trans.flush()
3499
 
3500
  def process_retireWarehouse(self, seqid, iprot, oprot):
3501
    args = retireWarehouse_args()
3502
    args.read(iprot)
3503
    iprot.readMessageEnd()
3504
    result = retireWarehouse_result()
3505
    try:
3506
      self._handler.retireWarehouse(args.warehouse_id)
3507
    except InventoryServiceException, cex:
3508
      result.cex = cex
3509
    oprot.writeMessageBegin("retireWarehouse", TMessageType.REPLY, seqid)
3510
    result.write(oprot)
3511
    oprot.writeMessageEnd()
3512
    oprot.trans.flush()
3513
 
3514
  def process_getItemInventoryByItemId(self, seqid, iprot, oprot):
3515
    args = getItemInventoryByItemId_args()
3516
    args.read(iprot)
3517
    iprot.readMessageEnd()
3518
    result = getItemInventoryByItemId_result()
3519
    try:
3520
      result.success = self._handler.getItemInventoryByItemId(args.item_id)
3521
    except InventoryServiceException, cex:
3522
      result.cex = cex
3523
    oprot.writeMessageBegin("getItemInventoryByItemId", TMessageType.REPLY, seqid)
3524
    result.write(oprot)
3525
    oprot.writeMessageEnd()
3526
    oprot.trans.flush()
3527
 
3528
  def process_getItemAvailibilityAtWarehouse(self, seqid, iprot, oprot):
3529
    args = getItemAvailibilityAtWarehouse_args()
3530
    args.read(iprot)
3531
    iprot.readMessageEnd()
3532
    result = getItemAvailibilityAtWarehouse_result()
3533
    try:
3534
      result.success = self._handler.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id)
3535
    except InventoryServiceException, cex:
3536
      result.cex = cex
3537
    oprot.writeMessageBegin("getItemAvailibilityAtWarehouse", TMessageType.REPLY, seqid)
3538
    result.write(oprot)
3539
    oprot.writeMessageEnd()
3540
    oprot.trans.flush()
3541
 
3542
  def process_getItemAvailabilityAtLocation(self, seqid, iprot, oprot):
3543
    args = getItemAvailabilityAtLocation_args()
3544
    args.read(iprot)
3545
    iprot.readMessageEnd()
3546
    result = getItemAvailabilityAtLocation_result()
3547
    try:
5978 rajveer 3548
      result.success = self._handler.getItemAvailabilityAtLocation(args.itemId, args.sourceId)
5944 mandeep.dh 3549
    except InventoryServiceException, isex:
3550
      result.isex = isex
3551
    oprot.writeMessageBegin("getItemAvailabilityAtLocation", TMessageType.REPLY, seqid)
3552
    result.write(oprot)
3553
    oprot.writeMessageEnd()
3554
    oprot.trans.flush()
3555
 
3556
  def process_getAllWarehouses(self, seqid, iprot, oprot):
3557
    args = getAllWarehouses_args()
3558
    args.read(iprot)
3559
    iprot.readMessageEnd()
3560
    result = getAllWarehouses_result()
3561
    try:
3562
      result.success = self._handler.getAllWarehouses(args.isActive)
3563
    except InventoryServiceException, cex:
3564
      result.cex = cex
3565
    oprot.writeMessageBegin("getAllWarehouses", TMessageType.REPLY, seqid)
3566
    result.write(oprot)
3567
    oprot.writeMessageEnd()
3568
    oprot.trans.flush()
3569
 
3570
  def process_getWarehouse(self, seqid, iprot, oprot):
3571
    args = getWarehouse_args()
3572
    args.read(iprot)
3573
    iprot.readMessageEnd()
3574
    result = getWarehouse_result()
3575
    try:
3576
      result.success = self._handler.getWarehouse(args.warehouse_id)
3577
    except InventoryServiceException, cex:
3578
      result.cex = cex
3579
    oprot.writeMessageBegin("getWarehouse", TMessageType.REPLY, seqid)
3580
    result.write(oprot)
3581
    oprot.writeMessageEnd()
3582
    oprot.trans.flush()
3583
 
3584
  def process_getAllItemsForWarehouse(self, seqid, iprot, oprot):
3585
    args = getAllItemsForWarehouse_args()
3586
    args.read(iprot)
3587
    iprot.readMessageEnd()
3588
    result = getAllItemsForWarehouse_result()
3589
    try:
3590
      result.success = self._handler.getAllItemsForWarehouse(args.warehouse_id)
3591
    except InventoryServiceException, cex:
3592
      result.cex = cex
3593
    oprot.writeMessageBegin("getAllItemsForWarehouse", TMessageType.REPLY, seqid)
3594
    result.write(oprot)
3595
    oprot.writeMessageEnd()
3596
    oprot.trans.flush()
3597
 
5966 rajveer 3598
  def process_isOrderBillable(self, seqid, iprot, oprot):
3599
    args = isOrderBillable_args()
3600
    args.read(iprot)
3601
    iprot.readMessageEnd()
3602
    result = isOrderBillable_result()
3603
    result.success = self._handler.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId)
3604
    oprot.writeMessageBegin("isOrderBillable", TMessageType.REPLY, seqid)
3605
    result.write(oprot)
3606
    oprot.writeMessageEnd()
3607
    oprot.trans.flush()
3608
 
5944 mandeep.dh 3609
  def process_reserveItemInWarehouse(self, seqid, iprot, oprot):
3610
    args = reserveItemInWarehouse_args()
3611
    args.read(iprot)
3612
    iprot.readMessageEnd()
3613
    result = reserveItemInWarehouse_result()
3614
    try:
5966 rajveer 3615
      result.success = self._handler.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
5944 mandeep.dh 3616
    except InventoryServiceException, cex:
3617
      result.cex = cex
3618
    oprot.writeMessageBegin("reserveItemInWarehouse", TMessageType.REPLY, seqid)
3619
    result.write(oprot)
3620
    oprot.writeMessageEnd()
3621
    oprot.trans.flush()
3622
 
7968 amar.kumar 3623
  def process_updateReservationForOrder(self, seqid, iprot, oprot):
3624
    args = updateReservationForOrder_args()
3625
    args.read(iprot)
3626
    iprot.readMessageEnd()
3627
    result = updateReservationForOrder_result()
3628
    try:
3629
      result.success = self._handler.updateReservationForOrder(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
3630
    except InventoryServiceException, cex:
3631
      result.cex = cex
3632
    oprot.writeMessageBegin("updateReservationForOrder", TMessageType.REPLY, seqid)
3633
    result.write(oprot)
3634
    oprot.writeMessageEnd()
3635
    oprot.trans.flush()
3636
 
5944 mandeep.dh 3637
  def process_reduceReservationCount(self, seqid, iprot, oprot):
3638
    args = reduceReservationCount_args()
3639
    args.read(iprot)
3640
    iprot.readMessageEnd()
3641
    result = reduceReservationCount_result()
3642
    try:
5966 rajveer 3643
      result.success = self._handler.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity)
5944 mandeep.dh 3644
    except InventoryServiceException, cex:
3645
      result.cex = cex
3646
    oprot.writeMessageBegin("reduceReservationCount", TMessageType.REPLY, seqid)
3647
    result.write(oprot)
3648
    oprot.writeMessageEnd()
3649
    oprot.trans.flush()
3650
 
3651
  def process_getItemPricing(self, seqid, iprot, oprot):
3652
    args = getItemPricing_args()
3653
    args.read(iprot)
3654
    iprot.readMessageEnd()
3655
    result = getItemPricing_result()
3656
    try:
3657
      result.success = self._handler.getItemPricing(args.itemId, args.vendorId)
3658
    except InventoryServiceException, cex:
3659
      result.cex = cex
3660
    oprot.writeMessageBegin("getItemPricing", TMessageType.REPLY, seqid)
3661
    result.write(oprot)
3662
    oprot.writeMessageEnd()
3663
    oprot.trans.flush()
3664
 
3665
  def process_getAllItemPricing(self, seqid, iprot, oprot):
3666
    args = getAllItemPricing_args()
3667
    args.read(iprot)
3668
    iprot.readMessageEnd()
3669
    result = getAllItemPricing_result()
3670
    try:
3671
      result.success = self._handler.getAllItemPricing(args.itemId)
3672
    except InventoryServiceException, cex:
3673
      result.cex = cex
3674
    oprot.writeMessageBegin("getAllItemPricing", TMessageType.REPLY, seqid)
3675
    result.write(oprot)
3676
    oprot.writeMessageEnd()
3677
    oprot.trans.flush()
3678
 
3679
  def process_addVendorItemPricing(self, seqid, iprot, oprot):
3680
    args = addVendorItemPricing_args()
3681
    args.read(iprot)
3682
    iprot.readMessageEnd()
3683
    result = addVendorItemPricing_result()
3684
    try:
3685
      self._handler.addVendorItemPricing(args.vendorItemPricing)
3686
    except InventoryServiceException, cex:
3687
      result.cex = cex
3688
    oprot.writeMessageBegin("addVendorItemPricing", TMessageType.REPLY, seqid)
3689
    result.write(oprot)
3690
    oprot.writeMessageEnd()
3691
    oprot.trans.flush()
3692
 
3693
  def process_getVendor(self, seqid, iprot, oprot):
3694
    args = getVendor_args()
3695
    args.read(iprot)
3696
    iprot.readMessageEnd()
3697
    result = getVendor_result()
3698
    result.success = self._handler.getVendor(args.vendorId)
3699
    oprot.writeMessageBegin("getVendor", TMessageType.REPLY, seqid)
3700
    result.write(oprot)
3701
    oprot.writeMessageEnd()
3702
    oprot.trans.flush()
3703
 
3704
  def process_getAllVendors(self, seqid, iprot, oprot):
3705
    args = getAllVendors_args()
3706
    args.read(iprot)
3707
    iprot.readMessageEnd()
3708
    result = getAllVendors_result()
3709
    result.success = self._handler.getAllVendors()
3710
    oprot.writeMessageBegin("getAllVendors", TMessageType.REPLY, seqid)
3711
    result.write(oprot)
3712
    oprot.writeMessageEnd()
3713
    oprot.trans.flush()
3714
 
3715
  def process_addVendorItemMapping(self, seqid, iprot, oprot):
3716
    args = addVendorItemMapping_args()
3717
    args.read(iprot)
3718
    iprot.readMessageEnd()
3719
    result = addVendorItemMapping_result()
3720
    try:
3721
      self._handler.addVendorItemMapping(args.key, args.vendorItemMapping)
3722
    except InventoryServiceException, cex:
3723
      result.cex = cex
3724
    oprot.writeMessageBegin("addVendorItemMapping", TMessageType.REPLY, seqid)
3725
    result.write(oprot)
3726
    oprot.writeMessageEnd()
3727
    oprot.trans.flush()
3728
 
3729
  def process_getVendorItemMappings(self, seqid, iprot, oprot):
3730
    args = getVendorItemMappings_args()
3731
    args.read(iprot)
3732
    iprot.readMessageEnd()
3733
    result = getVendorItemMappings_result()
3734
    try:
3735
      result.success = self._handler.getVendorItemMappings(args.itemId)
3736
    except InventoryServiceException, cex:
3737
      result.cex = cex
3738
    oprot.writeMessageBegin("getVendorItemMappings", TMessageType.REPLY, seqid)
3739
    result.write(oprot)
3740
    oprot.writeMessageEnd()
3741
    oprot.trans.flush()
3742
 
3743
  def process_getPendingOrdersInventory(self, seqid, iprot, oprot):
3744
    args = getPendingOrdersInventory_args()
3745
    args.read(iprot)
3746
    iprot.readMessageEnd()
3747
    result = getPendingOrdersInventory_result()
3748
    result.success = self._handler.getPendingOrdersInventory(args.vendorid)
3749
    oprot.writeMessageBegin("getPendingOrdersInventory", TMessageType.REPLY, seqid)
3750
    result.write(oprot)
3751
    oprot.writeMessageEnd()
3752
    oprot.trans.flush()
3753
 
3754
  def process_getWarehouses(self, seqid, iprot, oprot):
3755
    args = getWarehouses_args()
3756
    args.read(iprot)
3757
    iprot.readMessageEnd()
3758
    result = getWarehouses_result()
3759
    result.success = self._handler.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId)
3760
    oprot.writeMessageBegin("getWarehouses", TMessageType.REPLY, seqid)
3761
    result.write(oprot)
3762
    oprot.writeMessageEnd()
3763
    oprot.trans.flush()
3764
 
3765
  def process_resetAvailability(self, seqid, iprot, oprot):
3766
    args = resetAvailability_args()
3767
    args.read(iprot)
3768
    iprot.readMessageEnd()
3769
    result = resetAvailability_result()
3770
    try:
3771
      self._handler.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId)
3772
    except InventoryServiceException, cex:
3773
      result.cex = cex
3774
    oprot.writeMessageBegin("resetAvailability", TMessageType.REPLY, seqid)
3775
    result.write(oprot)
3776
    oprot.writeMessageEnd()
3777
    oprot.trans.flush()
3778
 
3779
  def process_resetAvailabilityForWarehouse(self, seqid, iprot, oprot):
3780
    args = resetAvailabilityForWarehouse_args()
3781
    args.read(iprot)
3782
    iprot.readMessageEnd()
3783
    result = resetAvailabilityForWarehouse_result()
3784
    try:
3785
      self._handler.resetAvailabilityForWarehouse(args.warehouseId)
3786
    except InventoryServiceException, cex:
3787
      result.cex = cex
3788
    oprot.writeMessageBegin("resetAvailabilityForWarehouse", TMessageType.REPLY, seqid)
3789
    result.write(oprot)
3790
    oprot.writeMessageEnd()
3791
    oprot.trans.flush()
3792
 
3793
  def process_getItemKeysToBeProcessed(self, seqid, iprot, oprot):
3794
    args = getItemKeysToBeProcessed_args()
3795
    args.read(iprot)
3796
    iprot.readMessageEnd()
3797
    result = getItemKeysToBeProcessed_result()
3798
    result.success = self._handler.getItemKeysToBeProcessed(args.warehouseId)
3799
    oprot.writeMessageBegin("getItemKeysToBeProcessed", TMessageType.REPLY, seqid)
3800
    result.write(oprot)
3801
    oprot.writeMessageEnd()
3802
    oprot.trans.flush()
3803
 
3804
  def process_markMissedInventoryUpdatesAsProcessed(self, seqid, iprot, oprot):
3805
    args = markMissedInventoryUpdatesAsProcessed_args()
3806
    args.read(iprot)
3807
    iprot.readMessageEnd()
3808
    result = markMissedInventoryUpdatesAsProcessed_result()
3809
    self._handler.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId)
3810
    oprot.writeMessageBegin("markMissedInventoryUpdatesAsProcessed", TMessageType.REPLY, seqid)
3811
    result.write(oprot)
3812
    oprot.writeMessageEnd()
3813
    oprot.trans.flush()
3814
 
3815
  def process_getIgnoredItemKeys(self, seqid, iprot, oprot):
3816
    args = getIgnoredItemKeys_args()
3817
    args.read(iprot)
3818
    iprot.readMessageEnd()
3819
    result = getIgnoredItemKeys_result()
3820
    result.success = self._handler.getIgnoredItemKeys()
3821
    oprot.writeMessageBegin("getIgnoredItemKeys", TMessageType.REPLY, seqid)
3822
    result.write(oprot)
3823
    oprot.writeMessageEnd()
3824
    oprot.trans.flush()
3825
 
3826
  def process_addBadInventory(self, seqid, iprot, oprot):
3827
    args = addBadInventory_args()
3828
    args.read(iprot)
3829
    iprot.readMessageEnd()
3830
    result = addBadInventory_result()
3831
    try:
3832
      self._handler.addBadInventory(args.itemId, args.warehouseId, args.quantity)
3833
    except InventoryServiceException, cex:
3834
      result.cex = cex
3835
    oprot.writeMessageBegin("addBadInventory", TMessageType.REPLY, seqid)
3836
    result.write(oprot)
3837
    oprot.writeMessageEnd()
3838
    oprot.trans.flush()
3839
 
3840
  def process_getShippingLocations(self, seqid, iprot, oprot):
3841
    args = getShippingLocations_args()
3842
    args.read(iprot)
3843
    iprot.readMessageEnd()
3844
    result = getShippingLocations_result()
3845
    result.success = self._handler.getShippingLocations()
3846
    oprot.writeMessageBegin("getShippingLocations", TMessageType.REPLY, seqid)
3847
    result.write(oprot)
3848
    oprot.writeMessageEnd()
3849
    oprot.trans.flush()
3850
 
3851
  def process_getAllVendorItemMappings(self, seqid, iprot, oprot):
3852
    args = getAllVendorItemMappings_args()
3853
    args.read(iprot)
3854
    iprot.readMessageEnd()
3855
    result = getAllVendorItemMappings_result()
3856
    result.success = self._handler.getAllVendorItemMappings()
3857
    oprot.writeMessageBegin("getAllVendorItemMappings", TMessageType.REPLY, seqid)
3858
    result.write(oprot)
3859
    oprot.writeMessageEnd()
3860
    oprot.trans.flush()
3861
 
3862
  def process_getInventorySnapshot(self, seqid, iprot, oprot):
3863
    args = getInventorySnapshot_args()
3864
    args.read(iprot)
3865
    iprot.readMessageEnd()
3866
    result = getInventorySnapshot_result()
3867
    result.success = self._handler.getInventorySnapshot(args.warehouseId)
3868
    oprot.writeMessageBegin("getInventorySnapshot", TMessageType.REPLY, seqid)
3869
    result.write(oprot)
3870
    oprot.writeMessageEnd()
3871
    oprot.trans.flush()
3872
 
3873
  def process_clearItemAvailabilityCache(self, seqid, iprot, oprot):
3874
    args = clearItemAvailabilityCache_args()
3875
    args.read(iprot)
3876
    iprot.readMessageEnd()
3877
    result = clearItemAvailabilityCache_result()
3878
    self._handler.clearItemAvailabilityCache()
3879
    oprot.writeMessageBegin("clearItemAvailabilityCache", TMessageType.REPLY, seqid)
3880
    result.write(oprot)
3881
    oprot.writeMessageEnd()
3882
    oprot.trans.flush()
3883
 
3884
  def process_updateVendorString(self, seqid, iprot, oprot):
3885
    args = updateVendorString_args()
3886
    args.read(iprot)
3887
    iprot.readMessageEnd()
3888
    result = updateVendorString_result()
3889
    self._handler.updateVendorString(args.warehouseId, args.vendorString)
3890
    oprot.writeMessageBegin("updateVendorString", TMessageType.REPLY, seqid)
3891
    result.write(oprot)
3892
    oprot.writeMessageEnd()
3893
    oprot.trans.flush()
3894
 
6096 amit.gupta 3895
  def process_clearItemAvailabilityCacheForItem(self, seqid, iprot, oprot):
3896
    args = clearItemAvailabilityCacheForItem_args()
3897
    args.read(iprot)
3898
    iprot.readMessageEnd()
3899
    result = clearItemAvailabilityCacheForItem_result()
3900
    self._handler.clearItemAvailabilityCacheForItem(args.item_id)
3901
    oprot.writeMessageBegin("clearItemAvailabilityCacheForItem", TMessageType.REPLY, seqid)
3902
    result.write(oprot)
3903
    oprot.writeMessageEnd()
3904
    oprot.trans.flush()
5944 mandeep.dh 3905
 
6467 amar.kumar 3906
  def process_getOurWarehouseIdForVendor(self, seqid, iprot, oprot):
3907
    args = getOurWarehouseIdForVendor_args()
3908
    args.read(iprot)
3909
    iprot.readMessageEnd()
3910
    result = getOurWarehouseIdForVendor_result()
7718 amar.kumar 3911
    result.success = self._handler.getOurWarehouseIdForVendor(args.vendorId, args.billingWarehouseId)
6467 amar.kumar 3912
    oprot.writeMessageBegin("getOurWarehouseIdForVendor", TMessageType.REPLY, seqid)
3913
    result.write(oprot)
3914
    oprot.writeMessageEnd()
3915
    oprot.trans.flush()
6096 amit.gupta 3916
 
6484 amar.kumar 3917
  def process_getItemAvailabilitiesAtOurWarehouses(self, seqid, iprot, oprot):
3918
    args = getItemAvailabilitiesAtOurWarehouses_args()
3919
    args.read(iprot)
3920
    iprot.readMessageEnd()
3921
    result = getItemAvailabilitiesAtOurWarehouses_result()
3922
    result.success = self._handler.getItemAvailabilitiesAtOurWarehouses(args.item_ids)
3923
    oprot.writeMessageBegin("getItemAvailabilitiesAtOurWarehouses", TMessageType.REPLY, seqid)
3924
    result.write(oprot)
3925
    oprot.writeMessageEnd()
3926
    oprot.trans.flush()
6467 amar.kumar 3927
 
6531 vikram.rag 3928
  def process_getMonitoredWarehouseForVendors(self, seqid, iprot, oprot):
3929
    args = getMonitoredWarehouseForVendors_args()
3930
    args.read(iprot)
3931
    iprot.readMessageEnd()
3932
    result = getMonitoredWarehouseForVendors_result()
3933
    result.success = self._handler.getMonitoredWarehouseForVendors(args.vendorIds)
3934
    oprot.writeMessageBegin("getMonitoredWarehouseForVendors", TMessageType.REPLY, seqid)
3935
    result.write(oprot)
3936
    oprot.writeMessageEnd()
3937
    oprot.trans.flush()
6484 amar.kumar 3938
 
6531 vikram.rag 3939
  def process_getIgnoredWarehouseidsAndItemids(self, seqid, iprot, oprot):
3940
    args = getIgnoredWarehouseidsAndItemids_args()
3941
    args.read(iprot)
3942
    iprot.readMessageEnd()
3943
    result = getIgnoredWarehouseidsAndItemids_result()
3944
    result.success = self._handler.getIgnoredWarehouseidsAndItemids()
3945
    oprot.writeMessageBegin("getIgnoredWarehouseidsAndItemids", TMessageType.REPLY, seqid)
3946
    result.write(oprot)
3947
    oprot.writeMessageEnd()
3948
    oprot.trans.flush()
3949
 
3950
  def process_insertItemtoIgnoreInventoryUpdatelist(self, seqid, iprot, oprot):
3951
    args = insertItemtoIgnoreInventoryUpdatelist_args()
3952
    args.read(iprot)
3953
    iprot.readMessageEnd()
3954
    result = insertItemtoIgnoreInventoryUpdatelist_result()
3955
    result.success = self._handler.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id)
3956
    oprot.writeMessageBegin("insertItemtoIgnoreInventoryUpdatelist", TMessageType.REPLY, seqid)
3957
    result.write(oprot)
3958
    oprot.writeMessageEnd()
3959
    oprot.trans.flush()
3960
 
3961
  def process_deleteItemFromIgnoredInventoryUpdateList(self, seqid, iprot, oprot):
3962
    args = deleteItemFromIgnoredInventoryUpdateList_args()
3963
    args.read(iprot)
3964
    iprot.readMessageEnd()
3965
    result = deleteItemFromIgnoredInventoryUpdateList_result()
3966
    result.success = self._handler.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id)
3967
    oprot.writeMessageBegin("deleteItemFromIgnoredInventoryUpdateList", TMessageType.REPLY, seqid)
3968
    result.write(oprot)
3969
    oprot.writeMessageEnd()
3970
    oprot.trans.flush()
3971
 
3972
  def process_getAllIgnoredInventoryupdateItemsCount(self, seqid, iprot, oprot):
3973
    args = getAllIgnoredInventoryupdateItemsCount_args()
3974
    args.read(iprot)
3975
    iprot.readMessageEnd()
3976
    result = getAllIgnoredInventoryupdateItemsCount_result()
3977
    result.success = self._handler.getAllIgnoredInventoryupdateItemsCount()
3978
    oprot.writeMessageBegin("getAllIgnoredInventoryupdateItemsCount", TMessageType.REPLY, seqid)
3979
    result.write(oprot)
3980
    oprot.writeMessageEnd()
3981
    oprot.trans.flush()
3982
 
3983
  def process_getIgnoredInventoryUpdateItemids(self, seqid, iprot, oprot):
3984
    args = getIgnoredInventoryUpdateItemids_args()
3985
    args.read(iprot)
3986
    iprot.readMessageEnd()
3987
    result = getIgnoredInventoryUpdateItemids_result()
3988
    result.success = self._handler.getIgnoredInventoryUpdateItemids(args.offset, args.limit)
3989
    oprot.writeMessageBegin("getIgnoredInventoryUpdateItemids", TMessageType.REPLY, seqid)
3990
    result.write(oprot)
3991
    oprot.writeMessageEnd()
3992
    oprot.trans.flush()
3993
 
6821 amar.kumar 3994
  def process_updateItemStockPurchaseParams(self, seqid, iprot, oprot):
3995
    args = updateItemStockPurchaseParams_args()
3996
    args.read(iprot)
3997
    iprot.readMessageEnd()
3998
    result = updateItemStockPurchaseParams_result()
3999
    self._handler.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel)
4000
    oprot.writeMessageBegin("updateItemStockPurchaseParams", TMessageType.REPLY, seqid)
4001
    result.write(oprot)
4002
    oprot.writeMessageEnd()
4003
    oprot.trans.flush()
6531 vikram.rag 4004
 
6821 amar.kumar 4005
  def process_getItemStockPurchaseParams(self, seqid, iprot, oprot):
4006
    args = getItemStockPurchaseParams_args()
4007
    args.read(iprot)
4008
    iprot.readMessageEnd()
4009
    result = getItemStockPurchaseParams_result()
4010
    result.success = self._handler.getItemStockPurchaseParams(args.itemId)
4011
    oprot.writeMessageBegin("getItemStockPurchaseParams", TMessageType.REPLY, seqid)
4012
    result.write(oprot)
4013
    oprot.writeMessageEnd()
4014
    oprot.trans.flush()
4015
 
4016
  def process_addOosStatusForItem(self, seqid, iprot, oprot):
4017
    args = addOosStatusForItem_args()
4018
    args.read(iprot)
4019
    iprot.readMessageEnd()
4020
    result = addOosStatusForItem_result()
4021
    self._handler.addOosStatusForItem(args.oosStatusMap, args.date)
4022
    oprot.writeMessageBegin("addOosStatusForItem", TMessageType.REPLY, seqid)
4023
    result.write(oprot)
4024
    oprot.writeMessageEnd()
4025
    oprot.trans.flush()
4026
 
6832 amar.kumar 4027
  def process_getOosStatusesForXDaysForItem(self, seqid, iprot, oprot):
4028
    args = getOosStatusesForXDaysForItem_args()
4029
    args.read(iprot)
4030
    iprot.readMessageEnd()
4031
    result = getOosStatusesForXDaysForItem_result()
9762 amar.kumar 4032
    result.success = self._handler.getOosStatusesForXDaysForItem(args.itemId, args.sourceId, args.days)
6832 amar.kumar 4033
    oprot.writeMessageBegin("getOosStatusesForXDaysForItem", TMessageType.REPLY, seqid)
4034
    result.write(oprot)
4035
    oprot.writeMessageEnd()
4036
    oprot.trans.flush()
6821 amar.kumar 4037
 
10126 amar.kumar 4038
  def process_getOosStatusesForXDays(self, seqid, iprot, oprot):
4039
    args = getOosStatusesForXDays_args()
4040
    args.read(iprot)
4041
    iprot.readMessageEnd()
4042
    result = getOosStatusesForXDays_result()
4043
    result.success = self._handler.getOosStatusesForXDays(args.sourceId, args.days)
4044
    oprot.writeMessageBegin("getOosStatusesForXDays", TMessageType.REPLY, seqid)
4045
    result.write(oprot)
4046
    oprot.writeMessageEnd()
4047
    oprot.trans.flush()
4048
 
4049
  def process_getAllVendorItemPricing(self, seqid, iprot, oprot):
4050
    args = getAllVendorItemPricing_args()
4051
    args.read(iprot)
4052
    iprot.readMessageEnd()
4053
    result = getAllVendorItemPricing_result()
4054
    result.success = self._handler.getAllVendorItemPricing(args.itemId, args.vendorId)
4055
    oprot.writeMessageBegin("getAllVendorItemPricing", TMessageType.REPLY, seqid)
4056
    result.write(oprot)
4057
    oprot.writeMessageEnd()
4058
    oprot.trans.flush()
4059
 
6857 amar.kumar 4060
  def process_getNonZeroItemStockPurchaseParams(self, seqid, iprot, oprot):
4061
    args = getNonZeroItemStockPurchaseParams_args()
4062
    args.read(iprot)
4063
    iprot.readMessageEnd()
4064
    result = getNonZeroItemStockPurchaseParams_result()
4065
    result.success = self._handler.getNonZeroItemStockPurchaseParams()
4066
    oprot.writeMessageBegin("getNonZeroItemStockPurchaseParams", TMessageType.REPLY, seqid)
4067
    result.write(oprot)
4068
    oprot.writeMessageEnd()
4069
    oprot.trans.flush()
6832 amar.kumar 4070
 
7149 amar.kumar 4071
  def process_getBillableInventoryAndPendingOrders(self, seqid, iprot, oprot):
4072
    args = getBillableInventoryAndPendingOrders_args()
4073
    args.read(iprot)
4074
    iprot.readMessageEnd()
4075
    result = getBillableInventoryAndPendingOrders_result()
4076
    result.success = self._handler.getBillableInventoryAndPendingOrders()
4077
    oprot.writeMessageBegin("getBillableInventoryAndPendingOrders", TMessageType.REPLY, seqid)
4078
    result.write(oprot)
4079
    oprot.writeMessageEnd()
4080
    oprot.trans.flush()
6857 amar.kumar 4081
 
7281 kshitij.so 4082
  def process_getWarehouseName(self, seqid, iprot, oprot):
4083
    args = getWarehouseName_args()
4084
    args.read(iprot)
4085
    iprot.readMessageEnd()
4086
    result = getWarehouseName_result()
4087
    result.success = self._handler.getWarehouseName(args.warehouse_id)
4088
    oprot.writeMessageBegin("getWarehouseName", TMessageType.REPLY, seqid)
4089
    result.write(oprot)
4090
    oprot.writeMessageEnd()
4091
    oprot.trans.flush()
7149 amar.kumar 4092
 
7281 kshitij.so 4093
  def process_getAmazonInventoryForItem(self, seqid, iprot, oprot):
4094
    args = getAmazonInventoryForItem_args()
4095
    args.read(iprot)
4096
    iprot.readMessageEnd()
4097
    result = getAmazonInventoryForItem_result()
4098
    result.success = self._handler.getAmazonInventoryForItem(args.item_id)
4099
    oprot.writeMessageBegin("getAmazonInventoryForItem", TMessageType.REPLY, seqid)
4100
    result.write(oprot)
4101
    oprot.writeMessageEnd()
4102
    oprot.trans.flush()
4103
 
4104
  def process_getAllAmazonInventory(self, seqid, iprot, oprot):
4105
    args = getAllAmazonInventory_args()
4106
    args.read(iprot)
4107
    iprot.readMessageEnd()
4108
    result = getAllAmazonInventory_result()
4109
    result.success = self._handler.getAllAmazonInventory()
4110
    oprot.writeMessageBegin("getAllAmazonInventory", TMessageType.REPLY, seqid)
4111
    result.write(oprot)
4112
    oprot.writeMessageEnd()
4113
    oprot.trans.flush()
4114
 
4115
  def process_addOrUpdateAmazonInventoryForItem(self, seqid, iprot, oprot):
4116
    args = addOrUpdateAmazonInventoryForItem_args()
4117
    args.read(iprot)
4118
    iprot.readMessageEnd()
4119
    result = addOrUpdateAmazonInventoryForItem_result()
10450 vikram.rag 4120
    self._handler.addOrUpdateAmazonInventoryForItem(args.amazonInventorySnapshot, args.time)
7281 kshitij.so 4121
    oprot.writeMessageBegin("addOrUpdateAmazonInventoryForItem", TMessageType.REPLY, seqid)
4122
    result.write(oprot)
4123
    oprot.writeMessageEnd()
4124
    oprot.trans.flush()
4125
 
7972 amar.kumar 4126
  def process_getLastNdaySaleForItem(self, seqid, iprot, oprot):
4127
    args = getLastNdaySaleForItem_args()
4128
    args.read(iprot)
4129
    iprot.readMessageEnd()
4130
    result = getLastNdaySaleForItem_result()
4131
    result.success = self._handler.getLastNdaySaleForItem(args.itemId, args.numberOfDays)
4132
    oprot.writeMessageBegin("getLastNdaySaleForItem", TMessageType.REPLY, seqid)
4133
    result.write(oprot)
4134
    oprot.writeMessageEnd()
4135
    oprot.trans.flush()
7281 kshitij.so 4136
 
8282 kshitij.so 4137
  def process_addOrUpdateAmazonFbaInventory(self, seqid, iprot, oprot):
4138
    args = addOrUpdateAmazonFbaInventory_args()
4139
    args.read(iprot)
4140
    iprot.readMessageEnd()
4141
    result = addOrUpdateAmazonFbaInventory_result()
4142
    self._handler.addOrUpdateAmazonFbaInventory(args.amazonfbainventorysnapshot)
4143
    oprot.writeMessageBegin("addOrUpdateAmazonFbaInventory", TMessageType.REPLY, seqid)
4144
    result.write(oprot)
4145
    oprot.writeMessageEnd()
4146
    oprot.trans.flush()
4147
 
8182 amar.kumar 4148
  def process_addUpdateHoldInventory(self, seqid, iprot, oprot):
4149
    args = addUpdateHoldInventory_args()
4150
    args.read(iprot)
4151
    iprot.readMessageEnd()
4152
    result = addUpdateHoldInventory_result()
9762 amar.kumar 4153
    try:
4154
      self._handler.addUpdateHoldInventory(args.itemId, args.warehouseId, args.holdQuantity, args.source)
4155
    except InventoryServiceException, cex:
4156
      result.cex = cex
8182 amar.kumar 4157
    oprot.writeMessageBegin("addUpdateHoldInventory", TMessageType.REPLY, seqid)
4158
    result.write(oprot)
4159
    oprot.writeMessageEnd()
4160
    oprot.trans.flush()
7972 amar.kumar 4161
 
8282 kshitij.so 4162
  def process_getAmazonFbaItemInventory(self, seqid, iprot, oprot):
4163
    args = getAmazonFbaItemInventory_args()
4164
    args.read(iprot)
4165
    iprot.readMessageEnd()
4166
    result = getAmazonFbaItemInventory_result()
4167
    result.success = self._handler.getAmazonFbaItemInventory(args.itemId)
4168
    oprot.writeMessageBegin("getAmazonFbaItemInventory", TMessageType.REPLY, seqid)
4169
    result.write(oprot)
4170
    oprot.writeMessageEnd()
4171
    oprot.trans.flush()
8182 amar.kumar 4172
 
8363 vikram.rag 4173
  def process_getAllAmazonFbaItemInventory(self, seqid, iprot, oprot):
4174
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 4175
    args.read(iprot)
4176
    iprot.readMessageEnd()
8363 vikram.rag 4177
    result = getAllAmazonFbaItemInventory_result()
4178
    result.success = self._handler.getAllAmazonFbaItemInventory()
4179
    oprot.writeMessageBegin("getAllAmazonFbaItemInventory", TMessageType.REPLY, seqid)
8282 kshitij.so 4180
    result.write(oprot)
4181
    oprot.writeMessageEnd()
4182
    oprot.trans.flush()
4183
 
8363 vikram.rag 4184
  def process_getOursGoodWarehouseIdsForLocation(self, seqid, iprot, oprot):
4185
    args = getOursGoodWarehouseIdsForLocation_args()
4186
    args.read(iprot)
4187
    iprot.readMessageEnd()
4188
    result = getOursGoodWarehouseIdsForLocation_result()
4189
    result.success = self._handler.getOursGoodWarehouseIdsForLocation(args.state_id)
4190
    oprot.writeMessageBegin("getOursGoodWarehouseIdsForLocation", TMessageType.REPLY, seqid)
4191
    result.write(oprot)
4192
    oprot.writeMessageEnd()
4193
    oprot.trans.flush()
8282 kshitij.so 4194
 
8955 vikram.rag 4195
  def process_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, seqid, iprot, oprot):
4196
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
4197
    args.read(iprot)
4198
    iprot.readMessageEnd()
4199
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
4200
    result.success = self._handler.getHoldInventoryDetailForItemForWarehouseIdExceptSource(args.id, args.warehouse_id, args.source)
4201
    oprot.writeMessageBegin("getHoldInventoryDetailForItemForWarehouseIdExceptSource", TMessageType.REPLY, seqid)
4202
    result.write(oprot)
4203
    oprot.writeMessageEnd()
4204
    oprot.trans.flush()
8363 vikram.rag 4205
 
9404 vikram.rag 4206
  def process_getSnapdealInventoryForItem(self, seqid, iprot, oprot):
4207
    args = getSnapdealInventoryForItem_args()
4208
    args.read(iprot)
4209
    iprot.readMessageEnd()
4210
    result = getSnapdealInventoryForItem_result()
4211
    result.success = self._handler.getSnapdealInventoryForItem(args.item_id)
4212
    oprot.writeMessageBegin("getSnapdealInventoryForItem", TMessageType.REPLY, seqid)
4213
    result.write(oprot)
4214
    oprot.writeMessageEnd()
4215
    oprot.trans.flush()
8955 vikram.rag 4216
 
9404 vikram.rag 4217
  def process_addOrUpdateSnapdealInventoryForItem(self, seqid, iprot, oprot):
4218
    args = addOrUpdateSnapdealInventoryForItem_args()
4219
    args.read(iprot)
4220
    iprot.readMessageEnd()
4221
    result = addOrUpdateSnapdealInventoryForItem_result()
4222
    self._handler.addOrUpdateSnapdealInventoryForItem(args.snapdealinventoryitem)
4223
    oprot.writeMessageBegin("addOrUpdateSnapdealInventoryForItem", TMessageType.REPLY, seqid)
4224
    result.write(oprot)
4225
    oprot.writeMessageEnd()
4226
    oprot.trans.flush()
4227
 
4228
  def process_getNlcForWarehouse(self, seqid, iprot, oprot):
4229
    args = getNlcForWarehouse_args()
4230
    args.read(iprot)
4231
    iprot.readMessageEnd()
4232
    result = getNlcForWarehouse_result()
4233
    result.success = self._handler.getNlcForWarehouse(args.warehouse_id, args.item_id)
4234
    oprot.writeMessageBegin("getNlcForWarehouse", TMessageType.REPLY, seqid)
4235
    result.write(oprot)
4236
    oprot.writeMessageEnd()
4237
    oprot.trans.flush()
4238
 
9640 amar.kumar 4239
  def process_getHeldInventoryMapForItem(self, seqid, iprot, oprot):
4240
    args = getHeldInventoryMapForItem_args()
4241
    args.read(iprot)
4242
    iprot.readMessageEnd()
4243
    result = getHeldInventoryMapForItem_result()
4244
    result.success = self._handler.getHeldInventoryMapForItem(args.item_id, args.warehouse_id)
4245
    oprot.writeMessageBegin("getHeldInventoryMapForItem", TMessageType.REPLY, seqid)
4246
    result.write(oprot)
4247
    oprot.writeMessageEnd()
4248
    oprot.trans.flush()
4249
 
9495 vikram.rag 4250
  def process_addOrUpdateAllAmazonFbaInventory(self, seqid, iprot, oprot):
4251
    args = addOrUpdateAllAmazonFbaInventory_args()
9456 vikram.rag 4252
    args.read(iprot)
4253
    iprot.readMessageEnd()
9495 vikram.rag 4254
    result = addOrUpdateAllAmazonFbaInventory_result()
4255
    self._handler.addOrUpdateAllAmazonFbaInventory(args.allamazonfbainventorysnapshot)
4256
    oprot.writeMessageBegin("addOrUpdateAllAmazonFbaInventory", TMessageType.REPLY, seqid)
9456 vikram.rag 4257
    result.write(oprot)
4258
    oprot.writeMessageEnd()
4259
    oprot.trans.flush()
9404 vikram.rag 4260
 
9495 vikram.rag 4261
  def process_addOrUpdateAllSnapdealInventory(self, seqid, iprot, oprot):
4262
    args = addOrUpdateAllSnapdealInventory_args()
9482 vikram.rag 4263
    args.read(iprot)
4264
    iprot.readMessageEnd()
9495 vikram.rag 4265
    result = addOrUpdateAllSnapdealInventory_result()
4266
    self._handler.addOrUpdateAllSnapdealInventory(args.allsnapdealinventorysnapshot)
4267
    oprot.writeMessageBegin("addOrUpdateAllSnapdealInventory", TMessageType.REPLY, seqid)
9482 vikram.rag 4268
    result.write(oprot)
4269
    oprot.writeMessageEnd()
4270
    oprot.trans.flush()
9456 vikram.rag 4271
 
9495 vikram.rag 4272
  def process_getSnapdealInventorySnapshot(self, seqid, iprot, oprot):
4273
    args = getSnapdealInventorySnapshot_args()
4274
    args.read(iprot)
4275
    iprot.readMessageEnd()
4276
    result = getSnapdealInventorySnapshot_result()
4277
    result.success = self._handler.getSnapdealInventorySnapshot()
4278
    oprot.writeMessageBegin("getSnapdealInventorySnapshot", TMessageType.REPLY, seqid)
4279
    result.write(oprot)
4280
    oprot.writeMessageEnd()
4281
    oprot.trans.flush()
9482 vikram.rag 4282
 
9761 amar.kumar 4283
  def process_getHoldInventoryDetails(self, seqid, iprot, oprot):
4284
    args = getHoldInventoryDetails_args()
4285
    args.read(iprot)
4286
    iprot.readMessageEnd()
4287
    result = getHoldInventoryDetails_result()
4288
    result.success = self._handler.getHoldInventoryDetails(args.itemId, args.warehouseId, args.source)
4289
    oprot.writeMessageBegin("getHoldInventoryDetails", TMessageType.REPLY, seqid)
4290
    result.write(oprot)
4291
    oprot.writeMessageEnd()
4292
    oprot.trans.flush()
9495 vikram.rag 4293
 
10050 vikram.rag 4294
  def process_addOrUpdateFlipkartInventorySnapshot(self, seqid, iprot, oprot):
4295
    args = addOrUpdateFlipkartInventorySnapshot_args()
4296
    args.read(iprot)
4297
    iprot.readMessageEnd()
4298
    result = addOrUpdateFlipkartInventorySnapshot_result()
10450 vikram.rag 4299
    self._handler.addOrUpdateFlipkartInventorySnapshot(args.flipkartInventorySnapshot, args.time)
10050 vikram.rag 4300
    oprot.writeMessageBegin("addOrUpdateFlipkartInventorySnapshot", TMessageType.REPLY, seqid)
4301
    result.write(oprot)
4302
    oprot.writeMessageEnd()
4303
    oprot.trans.flush()
9761 amar.kumar 4304
 
10050 vikram.rag 4305
  def process_getFlipkartInventorySnapshot(self, seqid, iprot, oprot):
4306
    args = getFlipkartInventorySnapshot_args()
4307
    args.read(iprot)
4308
    iprot.readMessageEnd()
4309
    result = getFlipkartInventorySnapshot_result()
4310
    result.success = self._handler.getFlipkartInventorySnapshot()
4311
    oprot.writeMessageBegin("getFlipkartInventorySnapshot", TMessageType.REPLY, seqid)
4312
    result.write(oprot)
4313
    oprot.writeMessageEnd()
4314
    oprot.trans.flush()
4315
 
10097 kshitij.so 4316
  def process_getFlipkartlInventoryForItem(self, seqid, iprot, oprot):
4317
    args = getFlipkartlInventoryForItem_args()
4318
    args.read(iprot)
4319
    iprot.readMessageEnd()
4320
    result = getFlipkartlInventoryForItem_result()
4321
    result.success = self._handler.getFlipkartlInventoryForItem(args.item_id)
4322
    oprot.writeMessageBegin("getFlipkartlInventoryForItem", TMessageType.REPLY, seqid)
4323
    result.write(oprot)
4324
    oprot.writeMessageEnd()
4325
    oprot.trans.flush()
10050 vikram.rag 4326
 
10485 vikram.rag 4327
  def process_getStateMaster(self, seqid, iprot, oprot):
4328
    args = getStateMaster_args()
4329
    args.read(iprot)
4330
    iprot.readMessageEnd()
4331
    result = getStateMaster_result()
4332
    result.success = self._handler.getStateMaster()
4333
    oprot.writeMessageBegin("getStateMaster", TMessageType.REPLY, seqid)
4334
    result.write(oprot)
4335
    oprot.writeMessageEnd()
4336
    oprot.trans.flush()
10097 kshitij.so 4337
 
10544 vikram.rag 4338
  def process_updateSnapdealStockAtEOD(self, seqid, iprot, oprot):
4339
    args = updateSnapdealStockAtEOD_args()
4340
    args.read(iprot)
4341
    iprot.readMessageEnd()
4342
    result = updateSnapdealStockAtEOD_result()
4343
    self._handler.updateSnapdealStockAtEOD(args.allsnapdealstock)
4344
    oprot.writeMessageBegin("updateSnapdealStockAtEOD", TMessageType.REPLY, seqid)
4345
    result.write(oprot)
4346
    oprot.writeMessageEnd()
4347
    oprot.trans.flush()
10485 vikram.rag 4348
 
10544 vikram.rag 4349
  def process_updateFlipkartStockAtEOD(self, seqid, iprot, oprot):
4350
    args = updateFlipkartStockAtEOD_args()
4351
    args.read(iprot)
4352
    iprot.readMessageEnd()
4353
    result = updateFlipkartStockAtEOD_result()
4354
    self._handler.updateFlipkartStockAtEOD(args.allflipkartstock)
4355
    oprot.writeMessageBegin("updateFlipkartStockAtEOD", TMessageType.REPLY, seqid)
4356
    result.write(oprot)
4357
    oprot.writeMessageEnd()
4358
    oprot.trans.flush()
4359
 
12363 kshitij.so 4360
  def process_getWanNlcForSource(self, seqid, iprot, oprot):
4361
    args = getWanNlcForSource_args()
4362
    args.read(iprot)
4363
    iprot.readMessageEnd()
4364
    result = getWanNlcForSource_result()
4365
    result.success = self._handler.getWanNlcForSource(args.item_id, args.source)
4366
    oprot.writeMessageBegin("getWanNlcForSource", TMessageType.REPLY, seqid)
4367
    result.write(oprot)
4368
    oprot.writeMessageEnd()
4369
    oprot.trans.flush()
10544 vikram.rag 4370
 
12363 kshitij.so 4371
  def process_getAllAvailableAmazonFbaItemInventory(self, seqid, iprot, oprot):
4372
    args = getAllAvailableAmazonFbaItemInventory_args()
4373
    args.read(iprot)
4374
    iprot.readMessageEnd()
4375
    result = getAllAvailableAmazonFbaItemInventory_result()
4376
    result.success = self._handler.getAllAvailableAmazonFbaItemInventory()
4377
    oprot.writeMessageBegin("getAllAvailableAmazonFbaItemInventory", TMessageType.REPLY, seqid)
4378
    result.write(oprot)
4379
    oprot.writeMessageEnd()
4380
    oprot.trans.flush()
4381
 
17990 kshitij.so 4382
  def process_updateItemAvailabilityForItemIds(self, seqid, iprot, oprot):
4383
    args = updateItemAvailabilityForItemIds_args()
4384
    args.read(iprot)
4385
    iprot.readMessageEnd()
4386
    result = updateItemAvailabilityForItemIds_result()
4387
    result.success = self._handler.updateItemAvailabilityForItemIds(args.itemIds)
4388
    oprot.writeMessageBegin("updateItemAvailabilityForItemIds", TMessageType.REPLY, seqid)
4389
    result.write(oprot)
4390
    oprot.writeMessageEnd()
4391
    oprot.trans.flush()
12363 kshitij.so 4392
 
19247 kshitij.so 4393
  def process_addVendorItemPricingInBulk(self, seqid, iprot, oprot):
4394
    args = addVendorItemPricingInBulk_args()
4395
    args.read(iprot)
4396
    iprot.readMessageEnd()
4397
    result = addVendorItemPricingInBulk_result()
4398
    result.success = self._handler.addVendorItemPricingInBulk(args.vendorItemPricingList)
4399
    oprot.writeMessageBegin("addVendorItemPricingInBulk", TMessageType.REPLY, seqid)
4400
    result.write(oprot)
4401
    oprot.writeMessageEnd()
4402
    oprot.trans.flush()
17990 kshitij.so 4403
 
19247 kshitij.so 4404
  def process_addInventoryInBulk(self, seqid, iprot, oprot):
4405
    args = addInventoryInBulk_args()
4406
    args.read(iprot)
4407
    iprot.readMessageEnd()
4408
    result = addInventoryInBulk_result()
4409
    try:
4410
      self._handler.addInventoryInBulk(args.bulkInventoryList)
4411
    except InventoryServiceException, cex:
4412
      result.cex = cex
4413
    oprot.writeMessageBegin("addInventoryInBulk", TMessageType.REPLY, seqid)
4414
    result.write(oprot)
4415
    oprot.writeMessageEnd()
4416
    oprot.trans.flush()
4417
 
4418
 
5944 mandeep.dh 4419
# HELPER FUNCTIONS AND STRUCTURES
4420
 
4421
class addWarehouse_args:
4422
  """
4423
  Attributes:
4424
   - warehouse
4425
  """
4426
 
4427
  thrift_spec = (
4428
    None, # 0
4429
    (1, TType.STRUCT, 'warehouse', (Warehouse, Warehouse.thrift_spec), None, ), # 1
4430
  )
4431
 
4432
  def __init__(self, warehouse=None,):
4433
    self.warehouse = warehouse
4434
 
4435
  def read(self, iprot):
4436
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4437
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4438
      return
4439
    iprot.readStructBegin()
4440
    while True:
4441
      (fname, ftype, fid) = iprot.readFieldBegin()
4442
      if ftype == TType.STOP:
4443
        break
4444
      if fid == 1:
4445
        if ftype == TType.STRUCT:
4446
          self.warehouse = Warehouse()
4447
          self.warehouse.read(iprot)
4448
        else:
4449
          iprot.skip(ftype)
4450
      else:
4451
        iprot.skip(ftype)
4452
      iprot.readFieldEnd()
4453
    iprot.readStructEnd()
4454
 
4455
  def write(self, oprot):
4456
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4457
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4458
      return
4459
    oprot.writeStructBegin('addWarehouse_args')
4460
    if self.warehouse is not None:
4461
      oprot.writeFieldBegin('warehouse', TType.STRUCT, 1)
4462
      self.warehouse.write(oprot)
4463
      oprot.writeFieldEnd()
4464
    oprot.writeFieldStop()
4465
    oprot.writeStructEnd()
4466
 
4467
  def validate(self):
4468
    return
4469
 
4470
 
4471
  def __repr__(self):
4472
    L = ['%s=%r' % (key, value)
4473
      for key, value in self.__dict__.iteritems()]
4474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4475
 
4476
  def __eq__(self, other):
4477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4478
 
4479
  def __ne__(self, other):
4480
    return not (self == other)
4481
 
4482
class addWarehouse_result:
4483
  """
4484
  Attributes:
4485
   - success
4486
   - cex
4487
  """
4488
 
4489
  thrift_spec = (
4490
    (0, TType.I64, 'success', None, None, ), # 0
4491
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4492
  )
4493
 
4494
  def __init__(self, success=None, cex=None,):
4495
    self.success = success
4496
    self.cex = cex
4497
 
4498
  def read(self, iprot):
4499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4501
      return
4502
    iprot.readStructBegin()
4503
    while True:
4504
      (fname, ftype, fid) = iprot.readFieldBegin()
4505
      if ftype == TType.STOP:
4506
        break
4507
      if fid == 0:
4508
        if ftype == TType.I64:
4509
          self.success = iprot.readI64();
4510
        else:
4511
          iprot.skip(ftype)
4512
      elif fid == 1:
4513
        if ftype == TType.STRUCT:
4514
          self.cex = InventoryServiceException()
4515
          self.cex.read(iprot)
4516
        else:
4517
          iprot.skip(ftype)
4518
      else:
4519
        iprot.skip(ftype)
4520
      iprot.readFieldEnd()
4521
    iprot.readStructEnd()
4522
 
4523
  def write(self, oprot):
4524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4526
      return
4527
    oprot.writeStructBegin('addWarehouse_result')
4528
    if self.success is not None:
4529
      oprot.writeFieldBegin('success', TType.I64, 0)
4530
      oprot.writeI64(self.success)
4531
      oprot.writeFieldEnd()
4532
    if self.cex is not None:
4533
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4534
      self.cex.write(oprot)
4535
      oprot.writeFieldEnd()
4536
    oprot.writeFieldStop()
4537
    oprot.writeStructEnd()
4538
 
4539
  def validate(self):
4540
    return
4541
 
4542
 
4543
  def __repr__(self):
4544
    L = ['%s=%r' % (key, value)
4545
      for key, value in self.__dict__.iteritems()]
4546
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4547
 
4548
  def __eq__(self, other):
4549
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4550
 
4551
  def __ne__(self, other):
4552
    return not (self == other)
4553
 
4554
class addVendor_args:
4555
  """
4556
  Attributes:
4557
   - vendor
4558
  """
4559
 
4560
  thrift_spec = (
4561
    None, # 0
4562
    (1, TType.STRUCT, 'vendor', (Vendor, Vendor.thrift_spec), None, ), # 1
4563
  )
4564
 
4565
  def __init__(self, vendor=None,):
4566
    self.vendor = vendor
4567
 
4568
  def read(self, iprot):
4569
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4570
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4571
      return
4572
    iprot.readStructBegin()
4573
    while True:
4574
      (fname, ftype, fid) = iprot.readFieldBegin()
4575
      if ftype == TType.STOP:
4576
        break
4577
      if fid == 1:
4578
        if ftype == TType.STRUCT:
4579
          self.vendor = Vendor()
4580
          self.vendor.read(iprot)
4581
        else:
4582
          iprot.skip(ftype)
4583
      else:
4584
        iprot.skip(ftype)
4585
      iprot.readFieldEnd()
4586
    iprot.readStructEnd()
4587
 
4588
  def write(self, oprot):
4589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4591
      return
4592
    oprot.writeStructBegin('addVendor_args')
4593
    if self.vendor is not None:
4594
      oprot.writeFieldBegin('vendor', TType.STRUCT, 1)
4595
      self.vendor.write(oprot)
4596
      oprot.writeFieldEnd()
4597
    oprot.writeFieldStop()
4598
    oprot.writeStructEnd()
4599
 
4600
  def validate(self):
4601
    return
4602
 
4603
 
4604
  def __repr__(self):
4605
    L = ['%s=%r' % (key, value)
4606
      for key, value in self.__dict__.iteritems()]
4607
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4608
 
4609
  def __eq__(self, other):
4610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4611
 
4612
  def __ne__(self, other):
4613
    return not (self == other)
4614
 
4615
class addVendor_result:
4616
  """
4617
  Attributes:
4618
   - success
4619
   - cex
4620
  """
4621
 
4622
  thrift_spec = (
4623
    (0, TType.I64, 'success', None, None, ), # 0
4624
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4625
  )
4626
 
4627
  def __init__(self, success=None, cex=None,):
4628
    self.success = success
4629
    self.cex = cex
4630
 
4631
  def read(self, iprot):
4632
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4633
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4634
      return
4635
    iprot.readStructBegin()
4636
    while True:
4637
      (fname, ftype, fid) = iprot.readFieldBegin()
4638
      if ftype == TType.STOP:
4639
        break
4640
      if fid == 0:
4641
        if ftype == TType.I64:
4642
          self.success = iprot.readI64();
4643
        else:
4644
          iprot.skip(ftype)
4645
      elif fid == 1:
4646
        if ftype == TType.STRUCT:
4647
          self.cex = InventoryServiceException()
4648
          self.cex.read(iprot)
4649
        else:
4650
          iprot.skip(ftype)
4651
      else:
4652
        iprot.skip(ftype)
4653
      iprot.readFieldEnd()
4654
    iprot.readStructEnd()
4655
 
4656
  def write(self, oprot):
4657
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4658
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4659
      return
4660
    oprot.writeStructBegin('addVendor_result')
4661
    if self.success is not None:
4662
      oprot.writeFieldBegin('success', TType.I64, 0)
4663
      oprot.writeI64(self.success)
4664
      oprot.writeFieldEnd()
4665
    if self.cex is not None:
4666
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4667
      self.cex.write(oprot)
4668
      oprot.writeFieldEnd()
4669
    oprot.writeFieldStop()
4670
    oprot.writeStructEnd()
4671
 
4672
  def validate(self):
4673
    return
4674
 
4675
 
4676
  def __repr__(self):
4677
    L = ['%s=%r' % (key, value)
4678
      for key, value in self.__dict__.iteritems()]
4679
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4680
 
4681
  def __eq__(self, other):
4682
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4683
 
4684
  def __ne__(self, other):
4685
    return not (self == other)
4686
 
4687
class updateInventoryHistory_args:
4688
  """
4689
  Attributes:
4690
   - warehouse_id
4691
   - timestamp
4692
   - availability
4693
  """
4694
 
4695
  thrift_spec = (
4696
    None, # 0
4697
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4698
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4699
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4700
  )
4701
 
4702
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4703
    self.warehouse_id = warehouse_id
4704
    self.timestamp = timestamp
4705
    self.availability = availability
4706
 
4707
  def read(self, iprot):
4708
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4709
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4710
      return
4711
    iprot.readStructBegin()
4712
    while True:
4713
      (fname, ftype, fid) = iprot.readFieldBegin()
4714
      if ftype == TType.STOP:
4715
        break
4716
      if fid == 1:
4717
        if ftype == TType.I64:
4718
          self.warehouse_id = iprot.readI64();
4719
        else:
4720
          iprot.skip(ftype)
4721
      elif fid == 2:
4722
        if ftype == TType.STRING:
4723
          self.timestamp = iprot.readString();
4724
        else:
4725
          iprot.skip(ftype)
4726
      elif fid == 3:
4727
        if ftype == TType.MAP:
4728
          self.availability = {}
8182 amar.kumar 4729
          (_ktype28, _vtype29, _size27 ) = iprot.readMapBegin() 
4730
          for _i31 in xrange(_size27):
4731
            _key32 = iprot.readString();
4732
            _val33 = iprot.readI64();
4733
            self.availability[_key32] = _val33
5944 mandeep.dh 4734
          iprot.readMapEnd()
4735
        else:
4736
          iprot.skip(ftype)
4737
      else:
4738
        iprot.skip(ftype)
4739
      iprot.readFieldEnd()
4740
    iprot.readStructEnd()
4741
 
4742
  def write(self, oprot):
4743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4745
      return
4746
    oprot.writeStructBegin('updateInventoryHistory_args')
4747
    if self.warehouse_id is not None:
4748
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4749
      oprot.writeI64(self.warehouse_id)
4750
      oprot.writeFieldEnd()
4751
    if self.timestamp is not None:
4752
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4753
      oprot.writeString(self.timestamp)
4754
      oprot.writeFieldEnd()
4755
    if self.availability is not None:
4756
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4757
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4758
      for kiter34,viter35 in self.availability.items():
4759
        oprot.writeString(kiter34)
4760
        oprot.writeI64(viter35)
5944 mandeep.dh 4761
      oprot.writeMapEnd()
4762
      oprot.writeFieldEnd()
4763
    oprot.writeFieldStop()
4764
    oprot.writeStructEnd()
4765
 
4766
  def validate(self):
4767
    return
4768
 
4769
 
4770
  def __repr__(self):
4771
    L = ['%s=%r' % (key, value)
4772
      for key, value in self.__dict__.iteritems()]
4773
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4774
 
4775
  def __eq__(self, other):
4776
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4777
 
4778
  def __ne__(self, other):
4779
    return not (self == other)
4780
 
4781
class updateInventoryHistory_result:
4782
  """
4783
  Attributes:
4784
   - cex
4785
  """
4786
 
4787
  thrift_spec = (
4788
    None, # 0
4789
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4790
  )
4791
 
4792
  def __init__(self, cex=None,):
4793
    self.cex = cex
4794
 
4795
  def read(self, iprot):
4796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4798
      return
4799
    iprot.readStructBegin()
4800
    while True:
4801
      (fname, ftype, fid) = iprot.readFieldBegin()
4802
      if ftype == TType.STOP:
4803
        break
4804
      if fid == 1:
4805
        if ftype == TType.STRUCT:
4806
          self.cex = InventoryServiceException()
4807
          self.cex.read(iprot)
4808
        else:
4809
          iprot.skip(ftype)
4810
      else:
4811
        iprot.skip(ftype)
4812
      iprot.readFieldEnd()
4813
    iprot.readStructEnd()
4814
 
4815
  def write(self, oprot):
4816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4818
      return
4819
    oprot.writeStructBegin('updateInventoryHistory_result')
4820
    if self.cex is not None:
4821
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4822
      self.cex.write(oprot)
4823
      oprot.writeFieldEnd()
4824
    oprot.writeFieldStop()
4825
    oprot.writeStructEnd()
4826
 
4827
  def validate(self):
4828
    return
4829
 
4830
 
4831
  def __repr__(self):
4832
    L = ['%s=%r' % (key, value)
4833
      for key, value in self.__dict__.iteritems()]
4834
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4835
 
4836
  def __eq__(self, other):
4837
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4838
 
4839
  def __ne__(self, other):
4840
    return not (self == other)
4841
 
4842
class updateInventory_args:
4843
  """
4844
  Attributes:
4845
   - warehouse_id
4846
   - timestamp
4847
   - availability
4848
  """
4849
 
4850
  thrift_spec = (
4851
    None, # 0
4852
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4853
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4854
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4855
  )
4856
 
4857
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4858
    self.warehouse_id = warehouse_id
4859
    self.timestamp = timestamp
4860
    self.availability = availability
4861
 
4862
  def read(self, iprot):
4863
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4864
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4865
      return
4866
    iprot.readStructBegin()
4867
    while True:
4868
      (fname, ftype, fid) = iprot.readFieldBegin()
4869
      if ftype == TType.STOP:
4870
        break
4871
      if fid == 1:
4872
        if ftype == TType.I64:
4873
          self.warehouse_id = iprot.readI64();
4874
        else:
4875
          iprot.skip(ftype)
4876
      elif fid == 2:
4877
        if ftype == TType.STRING:
4878
          self.timestamp = iprot.readString();
4879
        else:
4880
          iprot.skip(ftype)
4881
      elif fid == 3:
4882
        if ftype == TType.MAP:
4883
          self.availability = {}
8182 amar.kumar 4884
          (_ktype37, _vtype38, _size36 ) = iprot.readMapBegin() 
4885
          for _i40 in xrange(_size36):
4886
            _key41 = iprot.readString();
4887
            _val42 = iprot.readI64();
4888
            self.availability[_key41] = _val42
5944 mandeep.dh 4889
          iprot.readMapEnd()
4890
        else:
4891
          iprot.skip(ftype)
4892
      else:
4893
        iprot.skip(ftype)
4894
      iprot.readFieldEnd()
4895
    iprot.readStructEnd()
4896
 
4897
  def write(self, oprot):
4898
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4899
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4900
      return
4901
    oprot.writeStructBegin('updateInventory_args')
4902
    if self.warehouse_id is not None:
4903
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4904
      oprot.writeI64(self.warehouse_id)
4905
      oprot.writeFieldEnd()
4906
    if self.timestamp is not None:
4907
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4908
      oprot.writeString(self.timestamp)
4909
      oprot.writeFieldEnd()
4910
    if self.availability is not None:
4911
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4912
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4913
      for kiter43,viter44 in self.availability.items():
4914
        oprot.writeString(kiter43)
4915
        oprot.writeI64(viter44)
5944 mandeep.dh 4916
      oprot.writeMapEnd()
4917
      oprot.writeFieldEnd()
4918
    oprot.writeFieldStop()
4919
    oprot.writeStructEnd()
4920
 
4921
  def validate(self):
4922
    return
4923
 
4924
 
4925
  def __repr__(self):
4926
    L = ['%s=%r' % (key, value)
4927
      for key, value in self.__dict__.iteritems()]
4928
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4929
 
4930
  def __eq__(self, other):
4931
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4932
 
4933
  def __ne__(self, other):
4934
    return not (self == other)
4935
 
4936
class updateInventory_result:
4937
  """
4938
  Attributes:
4939
   - cex
4940
  """
4941
 
4942
  thrift_spec = (
4943
    None, # 0
4944
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4945
  )
4946
 
4947
  def __init__(self, cex=None,):
4948
    self.cex = cex
4949
 
4950
  def read(self, iprot):
4951
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4952
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4953
      return
4954
    iprot.readStructBegin()
4955
    while True:
4956
      (fname, ftype, fid) = iprot.readFieldBegin()
4957
      if ftype == TType.STOP:
4958
        break
4959
      if fid == 1:
4960
        if ftype == TType.STRUCT:
4961
          self.cex = InventoryServiceException()
4962
          self.cex.read(iprot)
4963
        else:
4964
          iprot.skip(ftype)
4965
      else:
4966
        iprot.skip(ftype)
4967
      iprot.readFieldEnd()
4968
    iprot.readStructEnd()
4969
 
4970
  def write(self, oprot):
4971
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4972
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4973
      return
4974
    oprot.writeStructBegin('updateInventory_result')
4975
    if self.cex is not None:
4976
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4977
      self.cex.write(oprot)
4978
      oprot.writeFieldEnd()
4979
    oprot.writeFieldStop()
4980
    oprot.writeStructEnd()
4981
 
4982
  def validate(self):
4983
    return
4984
 
4985
 
4986
  def __repr__(self):
4987
    L = ['%s=%r' % (key, value)
4988
      for key, value in self.__dict__.iteritems()]
4989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4990
 
4991
  def __eq__(self, other):
4992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4993
 
4994
  def __ne__(self, other):
4995
    return not (self == other)
4996
 
4997
class addInventory_args:
4998
  """
4999
  Attributes:
5000
   - itemId
5001
   - warehouseId
5002
   - quantity
5003
  """
5004
 
5005
  thrift_spec = (
5006
    None, # 0
5007
    (1, TType.I64, 'itemId', None, None, ), # 1
5008
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5009
    (3, TType.I64, 'quantity', None, None, ), # 3
5010
  )
5011
 
5012
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
5013
    self.itemId = itemId
5014
    self.warehouseId = warehouseId
5015
    self.quantity = quantity
5016
 
5017
  def read(self, iprot):
5018
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5019
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5020
      return
5021
    iprot.readStructBegin()
5022
    while True:
5023
      (fname, ftype, fid) = iprot.readFieldBegin()
5024
      if ftype == TType.STOP:
5025
        break
5026
      if fid == 1:
5027
        if ftype == TType.I64:
5028
          self.itemId = iprot.readI64();
5029
        else:
5030
          iprot.skip(ftype)
5031
      elif fid == 2:
5032
        if ftype == TType.I64:
5033
          self.warehouseId = iprot.readI64();
5034
        else:
5035
          iprot.skip(ftype)
5036
      elif fid == 3:
5037
        if ftype == TType.I64:
5038
          self.quantity = iprot.readI64();
5039
        else:
5040
          iprot.skip(ftype)
5041
      else:
5042
        iprot.skip(ftype)
5043
      iprot.readFieldEnd()
5044
    iprot.readStructEnd()
5045
 
5046
  def write(self, oprot):
5047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5049
      return
5050
    oprot.writeStructBegin('addInventory_args')
5051
    if self.itemId is not None:
5052
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5053
      oprot.writeI64(self.itemId)
5054
      oprot.writeFieldEnd()
5055
    if self.warehouseId is not None:
5056
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5057
      oprot.writeI64(self.warehouseId)
5058
      oprot.writeFieldEnd()
5059
    if self.quantity is not None:
5060
      oprot.writeFieldBegin('quantity', TType.I64, 3)
5061
      oprot.writeI64(self.quantity)
5062
      oprot.writeFieldEnd()
5063
    oprot.writeFieldStop()
5064
    oprot.writeStructEnd()
5065
 
5066
  def validate(self):
5067
    return
5068
 
5069
 
5070
  def __repr__(self):
5071
    L = ['%s=%r' % (key, value)
5072
      for key, value in self.__dict__.iteritems()]
5073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5074
 
5075
  def __eq__(self, other):
5076
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5077
 
5078
  def __ne__(self, other):
5079
    return not (self == other)
5080
 
5081
class addInventory_result:
5082
  """
5083
  Attributes:
5084
   - cex
5085
  """
5086
 
5087
  thrift_spec = (
5088
    None, # 0
5089
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5090
  )
5091
 
5092
  def __init__(self, cex=None,):
5093
    self.cex = cex
5094
 
5095
  def read(self, iprot):
5096
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5097
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5098
      return
5099
    iprot.readStructBegin()
5100
    while True:
5101
      (fname, ftype, fid) = iprot.readFieldBegin()
5102
      if ftype == TType.STOP:
5103
        break
5104
      if fid == 1:
5105
        if ftype == TType.STRUCT:
5106
          self.cex = InventoryServiceException()
5107
          self.cex.read(iprot)
5108
        else:
5109
          iprot.skip(ftype)
5110
      else:
5111
        iprot.skip(ftype)
5112
      iprot.readFieldEnd()
5113
    iprot.readStructEnd()
5114
 
5115
  def write(self, oprot):
5116
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5117
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5118
      return
5119
    oprot.writeStructBegin('addInventory_result')
5120
    if self.cex is not None:
5121
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5122
      self.cex.write(oprot)
5123
      oprot.writeFieldEnd()
5124
    oprot.writeFieldStop()
5125
    oprot.writeStructEnd()
5126
 
5127
  def validate(self):
5128
    return
5129
 
5130
 
5131
  def __repr__(self):
5132
    L = ['%s=%r' % (key, value)
5133
      for key, value in self.__dict__.iteritems()]
5134
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5135
 
5136
  def __eq__(self, other):
5137
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5138
 
5139
  def __ne__(self, other):
5140
    return not (self == other)
5141
 
5142
class retireWarehouse_args:
5143
  """
5144
  Attributes:
5145
   - warehouse_id
5146
  """
5147
 
5148
  thrift_spec = (
5149
    None, # 0
5150
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5151
  )
5152
 
5153
  def __init__(self, warehouse_id=None,):
5154
    self.warehouse_id = warehouse_id
5155
 
5156
  def read(self, iprot):
5157
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5158
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5159
      return
5160
    iprot.readStructBegin()
5161
    while True:
5162
      (fname, ftype, fid) = iprot.readFieldBegin()
5163
      if ftype == TType.STOP:
5164
        break
5165
      if fid == 1:
5166
        if ftype == TType.I64:
5167
          self.warehouse_id = iprot.readI64();
5168
        else:
5169
          iprot.skip(ftype)
5170
      else:
5171
        iprot.skip(ftype)
5172
      iprot.readFieldEnd()
5173
    iprot.readStructEnd()
5174
 
5175
  def write(self, oprot):
5176
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5177
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5178
      return
5179
    oprot.writeStructBegin('retireWarehouse_args')
5180
    if self.warehouse_id is not None:
5181
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5182
      oprot.writeI64(self.warehouse_id)
5183
      oprot.writeFieldEnd()
5184
    oprot.writeFieldStop()
5185
    oprot.writeStructEnd()
5186
 
5187
  def validate(self):
5188
    return
5189
 
5190
 
5191
  def __repr__(self):
5192
    L = ['%s=%r' % (key, value)
5193
      for key, value in self.__dict__.iteritems()]
5194
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5195
 
5196
  def __eq__(self, other):
5197
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5198
 
5199
  def __ne__(self, other):
5200
    return not (self == other)
5201
 
5202
class retireWarehouse_result:
5203
  """
5204
  Attributes:
5205
   - cex
5206
  """
5207
 
5208
  thrift_spec = (
5209
    None, # 0
5210
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5211
  )
5212
 
5213
  def __init__(self, cex=None,):
5214
    self.cex = cex
5215
 
5216
  def read(self, iprot):
5217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5219
      return
5220
    iprot.readStructBegin()
5221
    while True:
5222
      (fname, ftype, fid) = iprot.readFieldBegin()
5223
      if ftype == TType.STOP:
5224
        break
5225
      if fid == 1:
5226
        if ftype == TType.STRUCT:
5227
          self.cex = InventoryServiceException()
5228
          self.cex.read(iprot)
5229
        else:
5230
          iprot.skip(ftype)
5231
      else:
5232
        iprot.skip(ftype)
5233
      iprot.readFieldEnd()
5234
    iprot.readStructEnd()
5235
 
5236
  def write(self, oprot):
5237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5239
      return
5240
    oprot.writeStructBegin('retireWarehouse_result')
5241
    if self.cex is not None:
5242
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5243
      self.cex.write(oprot)
5244
      oprot.writeFieldEnd()
5245
    oprot.writeFieldStop()
5246
    oprot.writeStructEnd()
5247
 
5248
  def validate(self):
5249
    return
5250
 
5251
 
5252
  def __repr__(self):
5253
    L = ['%s=%r' % (key, value)
5254
      for key, value in self.__dict__.iteritems()]
5255
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5256
 
5257
  def __eq__(self, other):
5258
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5259
 
5260
  def __ne__(self, other):
5261
    return not (self == other)
5262
 
5263
class getItemInventoryByItemId_args:
5264
  """
5265
  Attributes:
5266
   - item_id
5267
  """
5268
 
5269
  thrift_spec = (
5270
    None, # 0
5271
    (1, TType.I64, 'item_id', None, None, ), # 1
5272
  )
5273
 
5274
  def __init__(self, item_id=None,):
5275
    self.item_id = item_id
5276
 
5277
  def read(self, iprot):
5278
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5279
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5280
      return
5281
    iprot.readStructBegin()
5282
    while True:
5283
      (fname, ftype, fid) = iprot.readFieldBegin()
5284
      if ftype == TType.STOP:
5285
        break
5286
      if fid == 1:
5287
        if ftype == TType.I64:
5288
          self.item_id = iprot.readI64();
5289
        else:
5290
          iprot.skip(ftype)
5291
      else:
5292
        iprot.skip(ftype)
5293
      iprot.readFieldEnd()
5294
    iprot.readStructEnd()
5295
 
5296
  def write(self, oprot):
5297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5299
      return
5300
    oprot.writeStructBegin('getItemInventoryByItemId_args')
5301
    if self.item_id is not None:
5302
      oprot.writeFieldBegin('item_id', TType.I64, 1)
5303
      oprot.writeI64(self.item_id)
5304
      oprot.writeFieldEnd()
5305
    oprot.writeFieldStop()
5306
    oprot.writeStructEnd()
5307
 
5308
  def validate(self):
5309
    return
5310
 
5311
 
5312
  def __repr__(self):
5313
    L = ['%s=%r' % (key, value)
5314
      for key, value in self.__dict__.iteritems()]
5315
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5316
 
5317
  def __eq__(self, other):
5318
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5319
 
5320
  def __ne__(self, other):
5321
    return not (self == other)
5322
 
5323
class getItemInventoryByItemId_result:
5324
  """
5325
  Attributes:
5326
   - success
5327
   - cex
5328
  """
5329
 
5330
  thrift_spec = (
5331
    (0, TType.STRUCT, 'success', (ItemInventory, ItemInventory.thrift_spec), None, ), # 0
5332
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5333
  )
5334
 
5335
  def __init__(self, success=None, cex=None,):
5336
    self.success = success
5337
    self.cex = cex
5338
 
5339
  def read(self, iprot):
5340
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5341
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5342
      return
5343
    iprot.readStructBegin()
5344
    while True:
5345
      (fname, ftype, fid) = iprot.readFieldBegin()
5346
      if ftype == TType.STOP:
5347
        break
5348
      if fid == 0:
5349
        if ftype == TType.STRUCT:
5350
          self.success = ItemInventory()
5351
          self.success.read(iprot)
5352
        else:
5353
          iprot.skip(ftype)
5354
      elif fid == 1:
5355
        if ftype == TType.STRUCT:
5356
          self.cex = InventoryServiceException()
5357
          self.cex.read(iprot)
5358
        else:
5359
          iprot.skip(ftype)
5360
      else:
5361
        iprot.skip(ftype)
5362
      iprot.readFieldEnd()
5363
    iprot.readStructEnd()
5364
 
5365
  def write(self, oprot):
5366
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5367
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5368
      return
5369
    oprot.writeStructBegin('getItemInventoryByItemId_result')
5370
    if self.success is not None:
5371
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5372
      self.success.write(oprot)
5373
      oprot.writeFieldEnd()
5374
    if self.cex is not None:
5375
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5376
      self.cex.write(oprot)
5377
      oprot.writeFieldEnd()
5378
    oprot.writeFieldStop()
5379
    oprot.writeStructEnd()
5380
 
5381
  def validate(self):
5382
    return
5383
 
5384
 
5385
  def __repr__(self):
5386
    L = ['%s=%r' % (key, value)
5387
      for key, value in self.__dict__.iteritems()]
5388
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5389
 
5390
  def __eq__(self, other):
5391
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5392
 
5393
  def __ne__(self, other):
5394
    return not (self == other)
5395
 
5396
class getItemAvailibilityAtWarehouse_args:
5397
  """
5398
  Attributes:
5399
   - warehouse_id
5400
   - item_id
5401
  """
5402
 
5403
  thrift_spec = (
5404
    None, # 0
5405
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5406
    (2, TType.I64, 'item_id', None, None, ), # 2
5407
  )
5408
 
5409
  def __init__(self, warehouse_id=None, item_id=None,):
5410
    self.warehouse_id = warehouse_id
5411
    self.item_id = item_id
5412
 
5413
  def read(self, iprot):
5414
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5415
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5416
      return
5417
    iprot.readStructBegin()
5418
    while True:
5419
      (fname, ftype, fid) = iprot.readFieldBegin()
5420
      if ftype == TType.STOP:
5421
        break
5422
      if fid == 1:
5423
        if ftype == TType.I64:
5424
          self.warehouse_id = iprot.readI64();
5425
        else:
5426
          iprot.skip(ftype)
5427
      elif fid == 2:
5428
        if ftype == TType.I64:
5429
          self.item_id = iprot.readI64();
5430
        else:
5431
          iprot.skip(ftype)
5432
      else:
5433
        iprot.skip(ftype)
5434
      iprot.readFieldEnd()
5435
    iprot.readStructEnd()
5436
 
5437
  def write(self, oprot):
5438
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5439
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5440
      return
5441
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_args')
5442
    if self.warehouse_id is not None:
5443
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5444
      oprot.writeI64(self.warehouse_id)
5445
      oprot.writeFieldEnd()
5446
    if self.item_id is not None:
5447
      oprot.writeFieldBegin('item_id', TType.I64, 2)
5448
      oprot.writeI64(self.item_id)
5449
      oprot.writeFieldEnd()
5450
    oprot.writeFieldStop()
5451
    oprot.writeStructEnd()
5452
 
5453
  def validate(self):
5454
    return
5455
 
5456
 
5457
  def __repr__(self):
5458
    L = ['%s=%r' % (key, value)
5459
      for key, value in self.__dict__.iteritems()]
5460
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5461
 
5462
  def __eq__(self, other):
5463
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5464
 
5465
  def __ne__(self, other):
5466
    return not (self == other)
5467
 
5468
class getItemAvailibilityAtWarehouse_result:
5469
  """
5470
  Attributes:
5471
   - success
5472
   - cex
5473
  """
5474
 
5475
  thrift_spec = (
5476
    (0, TType.I64, 'success', None, None, ), # 0
5477
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5478
  )
5479
 
5480
  def __init__(self, success=None, cex=None,):
5481
    self.success = success
5482
    self.cex = cex
5483
 
5484
  def read(self, iprot):
5485
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5486
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5487
      return
5488
    iprot.readStructBegin()
5489
    while True:
5490
      (fname, ftype, fid) = iprot.readFieldBegin()
5491
      if ftype == TType.STOP:
5492
        break
5493
      if fid == 0:
5494
        if ftype == TType.I64:
5495
          self.success = iprot.readI64();
5496
        else:
5497
          iprot.skip(ftype)
5498
      elif fid == 1:
5499
        if ftype == TType.STRUCT:
5500
          self.cex = InventoryServiceException()
5501
          self.cex.read(iprot)
5502
        else:
5503
          iprot.skip(ftype)
5504
      else:
5505
        iprot.skip(ftype)
5506
      iprot.readFieldEnd()
5507
    iprot.readStructEnd()
5508
 
5509
  def write(self, oprot):
5510
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5511
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5512
      return
5513
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_result')
5514
    if self.success is not None:
5515
      oprot.writeFieldBegin('success', TType.I64, 0)
5516
      oprot.writeI64(self.success)
5517
      oprot.writeFieldEnd()
5518
    if self.cex is not None:
5519
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5520
      self.cex.write(oprot)
5521
      oprot.writeFieldEnd()
5522
    oprot.writeFieldStop()
5523
    oprot.writeStructEnd()
5524
 
5525
  def validate(self):
5526
    return
5527
 
5528
 
5529
  def __repr__(self):
5530
    L = ['%s=%r' % (key, value)
5531
      for key, value in self.__dict__.iteritems()]
5532
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5533
 
5534
  def __eq__(self, other):
5535
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5536
 
5537
  def __ne__(self, other):
5538
    return not (self == other)
5539
 
5540
class getItemAvailabilityAtLocation_args:
5541
  """
5542
  Attributes:
5543
   - itemId
5978 rajveer 5544
   - sourceId
5944 mandeep.dh 5545
  """
5546
 
5547
  thrift_spec = (
5548
    None, # 0
5549
    (1, TType.I64, 'itemId', None, None, ), # 1
5978 rajveer 5550
    (2, TType.I64, 'sourceId', None, None, ), # 2
5944 mandeep.dh 5551
  )
5552
 
5978 rajveer 5553
  def __init__(self, itemId=None, sourceId=None,):
5944 mandeep.dh 5554
    self.itemId = itemId
5978 rajveer 5555
    self.sourceId = sourceId
5944 mandeep.dh 5556
 
5557
  def read(self, iprot):
5558
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5559
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5560
      return
5561
    iprot.readStructBegin()
5562
    while True:
5563
      (fname, ftype, fid) = iprot.readFieldBegin()
5564
      if ftype == TType.STOP:
5565
        break
5566
      if fid == 1:
5567
        if ftype == TType.I64:
5568
          self.itemId = iprot.readI64();
5569
        else:
5570
          iprot.skip(ftype)
5978 rajveer 5571
      elif fid == 2:
5572
        if ftype == TType.I64:
5573
          self.sourceId = iprot.readI64();
5574
        else:
5575
          iprot.skip(ftype)
5944 mandeep.dh 5576
      else:
5577
        iprot.skip(ftype)
5578
      iprot.readFieldEnd()
5579
    iprot.readStructEnd()
5580
 
5581
  def write(self, oprot):
5582
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5583
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5584
      return
5585
    oprot.writeStructBegin('getItemAvailabilityAtLocation_args')
5586
    if self.itemId is not None:
5587
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5588
      oprot.writeI64(self.itemId)
5589
      oprot.writeFieldEnd()
5978 rajveer 5590
    if self.sourceId is not None:
5591
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
5592
      oprot.writeI64(self.sourceId)
5593
      oprot.writeFieldEnd()
5944 mandeep.dh 5594
    oprot.writeFieldStop()
5595
    oprot.writeStructEnd()
5596
 
5597
  def validate(self):
5598
    return
5599
 
5600
 
5601
  def __repr__(self):
5602
    L = ['%s=%r' % (key, value)
5603
      for key, value in self.__dict__.iteritems()]
5604
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5605
 
5606
  def __eq__(self, other):
5607
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5608
 
5609
  def __ne__(self, other):
5610
    return not (self == other)
5611
 
5612
class getItemAvailabilityAtLocation_result:
5613
  """
5614
  Attributes:
5615
   - success
5616
   - isex
5617
  """
5618
 
5619
  thrift_spec = (
5620
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5621
    (1, TType.STRUCT, 'isex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5622
  )
5623
 
5624
  def __init__(self, success=None, isex=None,):
5625
    self.success = success
5626
    self.isex = isex
5627
 
5628
  def read(self, iprot):
5629
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5630
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5631
      return
5632
    iprot.readStructBegin()
5633
    while True:
5634
      (fname, ftype, fid) = iprot.readFieldBegin()
5635
      if ftype == TType.STOP:
5636
        break
5637
      if fid == 0:
5638
        if ftype == TType.LIST:
5639
          self.success = []
8182 amar.kumar 5640
          (_etype48, _size45) = iprot.readListBegin()
5641
          for _i49 in xrange(_size45):
5642
            _elem50 = iprot.readI64();
5643
            self.success.append(_elem50)
5944 mandeep.dh 5644
          iprot.readListEnd()
5645
        else:
5646
          iprot.skip(ftype)
5647
      elif fid == 1:
5648
        if ftype == TType.STRUCT:
5649
          self.isex = InventoryServiceException()
5650
          self.isex.read(iprot)
5651
        else:
5652
          iprot.skip(ftype)
5653
      else:
5654
        iprot.skip(ftype)
5655
      iprot.readFieldEnd()
5656
    iprot.readStructEnd()
5657
 
5658
  def write(self, oprot):
5659
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5660
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5661
      return
5662
    oprot.writeStructBegin('getItemAvailabilityAtLocation_result')
5663
    if self.success is not None:
5664
      oprot.writeFieldBegin('success', TType.LIST, 0)
5665
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5666
      for iter51 in self.success:
5667
        oprot.writeI64(iter51)
5944 mandeep.dh 5668
      oprot.writeListEnd()
5669
      oprot.writeFieldEnd()
5670
    if self.isex is not None:
5671
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
5672
      self.isex.write(oprot)
5673
      oprot.writeFieldEnd()
5674
    oprot.writeFieldStop()
5675
    oprot.writeStructEnd()
5676
 
5677
  def validate(self):
5678
    return
5679
 
5680
 
5681
  def __repr__(self):
5682
    L = ['%s=%r' % (key, value)
5683
      for key, value in self.__dict__.iteritems()]
5684
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5685
 
5686
  def __eq__(self, other):
5687
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5688
 
5689
  def __ne__(self, other):
5690
    return not (self == other)
5691
 
5692
class getAllWarehouses_args:
5693
  """
5694
  Attributes:
5695
   - isActive
5696
  """
5697
 
5698
  thrift_spec = (
5699
    None, # 0
5700
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5701
  )
5702
 
5703
  def __init__(self, isActive=None,):
5704
    self.isActive = isActive
5705
 
5706
  def read(self, iprot):
5707
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5708
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5709
      return
5710
    iprot.readStructBegin()
5711
    while True:
5712
      (fname, ftype, fid) = iprot.readFieldBegin()
5713
      if ftype == TType.STOP:
5714
        break
5715
      if fid == 1:
5716
        if ftype == TType.BOOL:
5717
          self.isActive = iprot.readBool();
5718
        else:
5719
          iprot.skip(ftype)
5720
      else:
5721
        iprot.skip(ftype)
5722
      iprot.readFieldEnd()
5723
    iprot.readStructEnd()
5724
 
5725
  def write(self, oprot):
5726
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5727
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5728
      return
5729
    oprot.writeStructBegin('getAllWarehouses_args')
5730
    if self.isActive is not None:
5731
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5732
      oprot.writeBool(self.isActive)
5733
      oprot.writeFieldEnd()
5734
    oprot.writeFieldStop()
5735
    oprot.writeStructEnd()
5736
 
5737
  def validate(self):
5738
    return
5739
 
5740
 
5741
  def __repr__(self):
5742
    L = ['%s=%r' % (key, value)
5743
      for key, value in self.__dict__.iteritems()]
5744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5745
 
5746
  def __eq__(self, other):
5747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5748
 
5749
  def __ne__(self, other):
5750
    return not (self == other)
5751
 
5752
class getAllWarehouses_result:
5753
  """
5754
  Attributes:
5755
   - success
5756
   - cex
5757
  """
5758
 
5759
  thrift_spec = (
5760
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
5761
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5762
  )
5763
 
5764
  def __init__(self, success=None, cex=None,):
5765
    self.success = success
5766
    self.cex = cex
5767
 
5768
  def read(self, iprot):
5769
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5770
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5771
      return
5772
    iprot.readStructBegin()
5773
    while True:
5774
      (fname, ftype, fid) = iprot.readFieldBegin()
5775
      if ftype == TType.STOP:
5776
        break
5777
      if fid == 0:
5778
        if ftype == TType.LIST:
5779
          self.success = []
8182 amar.kumar 5780
          (_etype55, _size52) = iprot.readListBegin()
5781
          for _i56 in xrange(_size52):
5782
            _elem57 = Warehouse()
5783
            _elem57.read(iprot)
5784
            self.success.append(_elem57)
5944 mandeep.dh 5785
          iprot.readListEnd()
5786
        else:
5787
          iprot.skip(ftype)
5788
      elif fid == 1:
5789
        if ftype == TType.STRUCT:
5790
          self.cex = InventoryServiceException()
5791
          self.cex.read(iprot)
5792
        else:
5793
          iprot.skip(ftype)
5794
      else:
5795
        iprot.skip(ftype)
5796
      iprot.readFieldEnd()
5797
    iprot.readStructEnd()
5798
 
5799
  def write(self, oprot):
5800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5802
      return
5803
    oprot.writeStructBegin('getAllWarehouses_result')
5804
    if self.success is not None:
5805
      oprot.writeFieldBegin('success', TType.LIST, 0)
5806
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 5807
      for iter58 in self.success:
5808
        iter58.write(oprot)
5944 mandeep.dh 5809
      oprot.writeListEnd()
5810
      oprot.writeFieldEnd()
5811
    if self.cex is not None:
5812
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5813
      self.cex.write(oprot)
5814
      oprot.writeFieldEnd()
5815
    oprot.writeFieldStop()
5816
    oprot.writeStructEnd()
5817
 
5818
  def validate(self):
5819
    return
5820
 
5821
 
5822
  def __repr__(self):
5823
    L = ['%s=%r' % (key, value)
5824
      for key, value in self.__dict__.iteritems()]
5825
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5826
 
5827
  def __eq__(self, other):
5828
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5829
 
5830
  def __ne__(self, other):
5831
    return not (self == other)
5832
 
5833
class getWarehouse_args:
5834
  """
5835
  Attributes:
5836
   - warehouse_id
5837
  """
5838
 
5839
  thrift_spec = (
5840
    None, # 0
5841
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5842
  )
5843
 
5844
  def __init__(self, warehouse_id=None,):
5845
    self.warehouse_id = warehouse_id
5846
 
5847
  def read(self, iprot):
5848
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5849
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5850
      return
5851
    iprot.readStructBegin()
5852
    while True:
5853
      (fname, ftype, fid) = iprot.readFieldBegin()
5854
      if ftype == TType.STOP:
5855
        break
5856
      if fid == 1:
5857
        if ftype == TType.I64:
5858
          self.warehouse_id = iprot.readI64();
5859
        else:
5860
          iprot.skip(ftype)
5861
      else:
5862
        iprot.skip(ftype)
5863
      iprot.readFieldEnd()
5864
    iprot.readStructEnd()
5865
 
5866
  def write(self, oprot):
5867
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5868
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5869
      return
5870
    oprot.writeStructBegin('getWarehouse_args')
5871
    if self.warehouse_id is not None:
5872
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5873
      oprot.writeI64(self.warehouse_id)
5874
      oprot.writeFieldEnd()
5875
    oprot.writeFieldStop()
5876
    oprot.writeStructEnd()
5877
 
5878
  def validate(self):
5879
    return
5880
 
5881
 
5882
  def __repr__(self):
5883
    L = ['%s=%r' % (key, value)
5884
      for key, value in self.__dict__.iteritems()]
5885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5886
 
5887
  def __eq__(self, other):
5888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5889
 
5890
  def __ne__(self, other):
5891
    return not (self == other)
5892
 
5893
class getWarehouse_result:
5894
  """
5895
  Attributes:
5896
   - success
5897
   - cex
5898
  """
5899
 
5900
  thrift_spec = (
5901
    (0, TType.STRUCT, 'success', (Warehouse, Warehouse.thrift_spec), None, ), # 0
5902
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5903
  )
5904
 
5905
  def __init__(self, success=None, cex=None,):
5906
    self.success = success
5907
    self.cex = cex
5908
 
5909
  def read(self, iprot):
5910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5912
      return
5913
    iprot.readStructBegin()
5914
    while True:
5915
      (fname, ftype, fid) = iprot.readFieldBegin()
5916
      if ftype == TType.STOP:
5917
        break
5918
      if fid == 0:
5919
        if ftype == TType.STRUCT:
5920
          self.success = Warehouse()
5921
          self.success.read(iprot)
5922
        else:
5923
          iprot.skip(ftype)
5924
      elif fid == 1:
5925
        if ftype == TType.STRUCT:
5926
          self.cex = InventoryServiceException()
5927
          self.cex.read(iprot)
5928
        else:
5929
          iprot.skip(ftype)
5930
      else:
5931
        iprot.skip(ftype)
5932
      iprot.readFieldEnd()
5933
    iprot.readStructEnd()
5934
 
5935
  def write(self, oprot):
5936
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5937
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5938
      return
5939
    oprot.writeStructBegin('getWarehouse_result')
5940
    if self.success is not None:
5941
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5942
      self.success.write(oprot)
5943
      oprot.writeFieldEnd()
5944
    if self.cex is not None:
5945
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5946
      self.cex.write(oprot)
5947
      oprot.writeFieldEnd()
5948
    oprot.writeFieldStop()
5949
    oprot.writeStructEnd()
5950
 
5951
  def validate(self):
5952
    return
5953
 
5954
 
5955
  def __repr__(self):
5956
    L = ['%s=%r' % (key, value)
5957
      for key, value in self.__dict__.iteritems()]
5958
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5959
 
5960
  def __eq__(self, other):
5961
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5962
 
5963
  def __ne__(self, other):
5964
    return not (self == other)
5965
 
5966
class getAllItemsForWarehouse_args:
5967
  """
5968
  Attributes:
5969
   - warehouse_id
5970
  """
5971
 
5972
  thrift_spec = (
5973
    None, # 0
5974
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5975
  )
5976
 
5977
  def __init__(self, warehouse_id=None,):
5978
    self.warehouse_id = warehouse_id
5979
 
5980
  def read(self, iprot):
5981
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5982
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5983
      return
5984
    iprot.readStructBegin()
5985
    while True:
5986
      (fname, ftype, fid) = iprot.readFieldBegin()
5987
      if ftype == TType.STOP:
5988
        break
5989
      if fid == 1:
5990
        if ftype == TType.I64:
5991
          self.warehouse_id = iprot.readI64();
5992
        else:
5993
          iprot.skip(ftype)
5994
      else:
5995
        iprot.skip(ftype)
5996
      iprot.readFieldEnd()
5997
    iprot.readStructEnd()
5998
 
5999
  def write(self, oprot):
6000
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6001
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6002
      return
6003
    oprot.writeStructBegin('getAllItemsForWarehouse_args')
6004
    if self.warehouse_id is not None:
6005
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
6006
      oprot.writeI64(self.warehouse_id)
6007
      oprot.writeFieldEnd()
6008
    oprot.writeFieldStop()
6009
    oprot.writeStructEnd()
6010
 
6011
  def validate(self):
6012
    return
6013
 
6014
 
6015
  def __repr__(self):
6016
    L = ['%s=%r' % (key, value)
6017
      for key, value in self.__dict__.iteritems()]
6018
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6019
 
6020
  def __eq__(self, other):
6021
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6022
 
6023
  def __ne__(self, other):
6024
    return not (self == other)
6025
 
6026
class getAllItemsForWarehouse_result:
6027
  """
6028
  Attributes:
6029
   - success
6030
   - cex
6031
  """
6032
 
6033
  thrift_spec = (
6034
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6035
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6036
  )
6037
 
6038
  def __init__(self, success=None, cex=None,):
6039
    self.success = success
6040
    self.cex = cex
6041
 
6042
  def read(self, iprot):
6043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6045
      return
6046
    iprot.readStructBegin()
6047
    while True:
6048
      (fname, ftype, fid) = iprot.readFieldBegin()
6049
      if ftype == TType.STOP:
6050
        break
6051
      if fid == 0:
6052
        if ftype == TType.LIST:
6053
          self.success = []
8182 amar.kumar 6054
          (_etype62, _size59) = iprot.readListBegin()
6055
          for _i63 in xrange(_size59):
6056
            _elem64 = iprot.readI64();
6057
            self.success.append(_elem64)
5944 mandeep.dh 6058
          iprot.readListEnd()
6059
        else:
6060
          iprot.skip(ftype)
6061
      elif fid == 1:
6062
        if ftype == TType.STRUCT:
6063
          self.cex = InventoryServiceException()
6064
          self.cex.read(iprot)
6065
        else:
6066
          iprot.skip(ftype)
6067
      else:
6068
        iprot.skip(ftype)
6069
      iprot.readFieldEnd()
6070
    iprot.readStructEnd()
6071
 
6072
  def write(self, oprot):
6073
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6074
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6075
      return
6076
    oprot.writeStructBegin('getAllItemsForWarehouse_result')
6077
    if self.success is not None:
6078
      oprot.writeFieldBegin('success', TType.LIST, 0)
6079
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 6080
      for iter65 in self.success:
6081
        oprot.writeI64(iter65)
5944 mandeep.dh 6082
      oprot.writeListEnd()
6083
      oprot.writeFieldEnd()
6084
    if self.cex is not None:
6085
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6086
      self.cex.write(oprot)
6087
      oprot.writeFieldEnd()
6088
    oprot.writeFieldStop()
6089
    oprot.writeStructEnd()
6090
 
6091
  def validate(self):
6092
    return
6093
 
6094
 
6095
  def __repr__(self):
6096
    L = ['%s=%r' % (key, value)
6097
      for key, value in self.__dict__.iteritems()]
6098
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6099
 
6100
  def __eq__(self, other):
6101
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6102
 
6103
  def __ne__(self, other):
6104
    return not (self == other)
6105
 
5966 rajveer 6106
class isOrderBillable_args:
6107
  """
6108
  Attributes:
6109
   - itemId
6110
   - warehouseId
6111
   - sourceId
6112
   - orderId
6113
  """
6114
 
6115
  thrift_spec = (
6116
    None, # 0
6117
    (1, TType.I64, 'itemId', None, None, ), # 1
6118
    (2, TType.I64, 'warehouseId', None, None, ), # 2
6119
    (3, TType.I64, 'sourceId', None, None, ), # 3
6120
    (4, TType.I64, 'orderId', None, None, ), # 4
6121
  )
6122
 
6123
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None,):
6124
    self.itemId = itemId
6125
    self.warehouseId = warehouseId
6126
    self.sourceId = sourceId
6127
    self.orderId = orderId
6128
 
6129
  def read(self, iprot):
6130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6132
      return
6133
    iprot.readStructBegin()
6134
    while True:
6135
      (fname, ftype, fid) = iprot.readFieldBegin()
6136
      if ftype == TType.STOP:
6137
        break
6138
      if fid == 1:
6139
        if ftype == TType.I64:
6140
          self.itemId = iprot.readI64();
6141
        else:
6142
          iprot.skip(ftype)
6143
      elif fid == 2:
6144
        if ftype == TType.I64:
6145
          self.warehouseId = iprot.readI64();
6146
        else:
6147
          iprot.skip(ftype)
6148
      elif fid == 3:
6149
        if ftype == TType.I64:
6150
          self.sourceId = iprot.readI64();
6151
        else:
6152
          iprot.skip(ftype)
6153
      elif fid == 4:
6154
        if ftype == TType.I64:
6155
          self.orderId = iprot.readI64();
6156
        else:
6157
          iprot.skip(ftype)
6158
      else:
6159
        iprot.skip(ftype)
6160
      iprot.readFieldEnd()
6161
    iprot.readStructEnd()
6162
 
6163
  def write(self, oprot):
6164
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6165
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6166
      return
6167
    oprot.writeStructBegin('isOrderBillable_args')
6168
    if self.itemId is not None:
6169
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6170
      oprot.writeI64(self.itemId)
6171
      oprot.writeFieldEnd()
6172
    if self.warehouseId is not None:
6173
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6174
      oprot.writeI64(self.warehouseId)
6175
      oprot.writeFieldEnd()
6176
    if self.sourceId is not None:
6177
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6178
      oprot.writeI64(self.sourceId)
6179
      oprot.writeFieldEnd()
6180
    if self.orderId is not None:
6181
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6182
      oprot.writeI64(self.orderId)
6183
      oprot.writeFieldEnd()
6184
    oprot.writeFieldStop()
6185
    oprot.writeStructEnd()
6186
 
6187
  def validate(self):
6188
    return
6189
 
6190
 
6191
  def __repr__(self):
6192
    L = ['%s=%r' % (key, value)
6193
      for key, value in self.__dict__.iteritems()]
6194
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6195
 
6196
  def __eq__(self, other):
6197
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6198
 
6199
  def __ne__(self, other):
6200
    return not (self == other)
6201
 
6202
class isOrderBillable_result:
6203
  """
6204
  Attributes:
6205
   - success
6206
  """
6207
 
6208
  thrift_spec = (
6209
    (0, TType.BOOL, 'success', None, None, ), # 0
6210
  )
6211
 
6212
  def __init__(self, success=None,):
6213
    self.success = success
6214
 
6215
  def read(self, iprot):
6216
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6217
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6218
      return
6219
    iprot.readStructBegin()
6220
    while True:
6221
      (fname, ftype, fid) = iprot.readFieldBegin()
6222
      if ftype == TType.STOP:
6223
        break
6224
      if fid == 0:
6225
        if ftype == TType.BOOL:
6226
          self.success = iprot.readBool();
6227
        else:
6228
          iprot.skip(ftype)
6229
      else:
6230
        iprot.skip(ftype)
6231
      iprot.readFieldEnd()
6232
    iprot.readStructEnd()
6233
 
6234
  def write(self, oprot):
6235
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6236
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6237
      return
6238
    oprot.writeStructBegin('isOrderBillable_result')
6239
    if self.success is not None:
6240
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6241
      oprot.writeBool(self.success)
6242
      oprot.writeFieldEnd()
6243
    oprot.writeFieldStop()
6244
    oprot.writeStructEnd()
6245
 
6246
  def validate(self):
6247
    return
6248
 
6249
 
6250
  def __repr__(self):
6251
    L = ['%s=%r' % (key, value)
6252
      for key, value in self.__dict__.iteritems()]
6253
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6254
 
6255
  def __eq__(self, other):
6256
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6257
 
6258
  def __ne__(self, other):
6259
    return not (self == other)
6260
 
5944 mandeep.dh 6261
class reserveItemInWarehouse_args:
6262
  """
6263
  Attributes:
6264
   - itemId
6265
   - warehouseId
5966 rajveer 6266
   - sourceId
6267
   - orderId
6268
   - createdTimestamp
6269
   - promisedShippingTimestamp
5944 mandeep.dh 6270
   - quantity
6271
  """
6272
 
6273
  thrift_spec = (
6274
    None, # 0
6275
    (1, TType.I64, 'itemId', None, None, ), # 1
6276
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 6277
    (3, TType.I64, 'sourceId', None, None, ), # 3
6278
    (4, TType.I64, 'orderId', None, None, ), # 4
6279
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
6280
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
6281
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
5944 mandeep.dh 6282
  )
6283
 
5966 rajveer 6284
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
5944 mandeep.dh 6285
    self.itemId = itemId
6286
    self.warehouseId = warehouseId
5966 rajveer 6287
    self.sourceId = sourceId
6288
    self.orderId = orderId
6289
    self.createdTimestamp = createdTimestamp
6290
    self.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 6291
    self.quantity = quantity
6292
 
6293
  def read(self, iprot):
6294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6296
      return
6297
    iprot.readStructBegin()
6298
    while True:
6299
      (fname, ftype, fid) = iprot.readFieldBegin()
6300
      if ftype == TType.STOP:
6301
        break
6302
      if fid == 1:
6303
        if ftype == TType.I64:
6304
          self.itemId = iprot.readI64();
6305
        else:
6306
          iprot.skip(ftype)
6307
      elif fid == 2:
6308
        if ftype == TType.I64:
6309
          self.warehouseId = iprot.readI64();
6310
        else:
6311
          iprot.skip(ftype)
6312
      elif fid == 3:
5966 rajveer 6313
        if ftype == TType.I64:
6314
          self.sourceId = iprot.readI64();
6315
        else:
6316
          iprot.skip(ftype)
6317
      elif fid == 4:
6318
        if ftype == TType.I64:
6319
          self.orderId = iprot.readI64();
6320
        else:
6321
          iprot.skip(ftype)
6322
      elif fid == 5:
6323
        if ftype == TType.I64:
6324
          self.createdTimestamp = iprot.readI64();
6325
        else:
6326
          iprot.skip(ftype)
6327
      elif fid == 6:
6328
        if ftype == TType.I64:
6329
          self.promisedShippingTimestamp = iprot.readI64();
6330
        else:
6331
          iprot.skip(ftype)
6332
      elif fid == 7:
5944 mandeep.dh 6333
        if ftype == TType.DOUBLE:
6334
          self.quantity = iprot.readDouble();
6335
        else:
6336
          iprot.skip(ftype)
6337
      else:
6338
        iprot.skip(ftype)
6339
      iprot.readFieldEnd()
6340
    iprot.readStructEnd()
6341
 
6342
  def write(self, oprot):
6343
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6344
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6345
      return
6346
    oprot.writeStructBegin('reserveItemInWarehouse_args')
6347
    if self.itemId is not None:
6348
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6349
      oprot.writeI64(self.itemId)
6350
      oprot.writeFieldEnd()
6351
    if self.warehouseId is not None:
6352
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6353
      oprot.writeI64(self.warehouseId)
6354
      oprot.writeFieldEnd()
5966 rajveer 6355
    if self.sourceId is not None:
6356
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6357
      oprot.writeI64(self.sourceId)
6358
      oprot.writeFieldEnd()
6359
    if self.orderId is not None:
6360
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6361
      oprot.writeI64(self.orderId)
6362
      oprot.writeFieldEnd()
6363
    if self.createdTimestamp is not None:
6364
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
6365
      oprot.writeI64(self.createdTimestamp)
6366
      oprot.writeFieldEnd()
6367
    if self.promisedShippingTimestamp is not None:
6368
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
6369
      oprot.writeI64(self.promisedShippingTimestamp)
6370
      oprot.writeFieldEnd()
5944 mandeep.dh 6371
    if self.quantity is not None:
5966 rajveer 6372
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
5944 mandeep.dh 6373
      oprot.writeDouble(self.quantity)
6374
      oprot.writeFieldEnd()
6375
    oprot.writeFieldStop()
6376
    oprot.writeStructEnd()
6377
 
6378
  def validate(self):
6379
    return
6380
 
6381
 
6382
  def __repr__(self):
6383
    L = ['%s=%r' % (key, value)
6384
      for key, value in self.__dict__.iteritems()]
6385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6386
 
6387
  def __eq__(self, other):
6388
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6389
 
6390
  def __ne__(self, other):
6391
    return not (self == other)
6392
 
6393
class reserveItemInWarehouse_result:
6394
  """
6395
  Attributes:
6396
   - success
6397
   - cex
6398
  """
6399
 
6400
  thrift_spec = (
6401
    (0, TType.BOOL, 'success', None, None, ), # 0
6402
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6403
  )
6404
 
6405
  def __init__(self, success=None, cex=None,):
6406
    self.success = success
6407
    self.cex = cex
6408
 
6409
  def read(self, iprot):
6410
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6411
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6412
      return
6413
    iprot.readStructBegin()
6414
    while True:
6415
      (fname, ftype, fid) = iprot.readFieldBegin()
6416
      if ftype == TType.STOP:
6417
        break
6418
      if fid == 0:
6419
        if ftype == TType.BOOL:
6420
          self.success = iprot.readBool();
6421
        else:
6422
          iprot.skip(ftype)
6423
      elif fid == 1:
6424
        if ftype == TType.STRUCT:
6425
          self.cex = InventoryServiceException()
6426
          self.cex.read(iprot)
6427
        else:
6428
          iprot.skip(ftype)
6429
      else:
6430
        iprot.skip(ftype)
6431
      iprot.readFieldEnd()
6432
    iprot.readStructEnd()
6433
 
6434
  def write(self, oprot):
6435
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6436
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6437
      return
6438
    oprot.writeStructBegin('reserveItemInWarehouse_result')
6439
    if self.success is not None:
6440
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6441
      oprot.writeBool(self.success)
6442
      oprot.writeFieldEnd()
6443
    if self.cex is not None:
6444
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6445
      self.cex.write(oprot)
6446
      oprot.writeFieldEnd()
6447
    oprot.writeFieldStop()
6448
    oprot.writeStructEnd()
6449
 
6450
  def validate(self):
6451
    return
6452
 
6453
 
6454
  def __repr__(self):
6455
    L = ['%s=%r' % (key, value)
6456
      for key, value in self.__dict__.iteritems()]
6457
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6458
 
6459
  def __eq__(self, other):
6460
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6461
 
6462
  def __ne__(self, other):
6463
    return not (self == other)
6464
 
7968 amar.kumar 6465
class updateReservationForOrder_args:
6466
  """
6467
  Attributes:
6468
   - itemId
6469
   - warehouseId
6470
   - sourceId
6471
   - orderId
6472
   - createdTimestamp
6473
   - promisedShippingTimestamp
6474
   - quantity
6475
  """
6476
 
6477
  thrift_spec = (
6478
    None, # 0
6479
    (1, TType.I64, 'itemId', None, None, ), # 1
6480
    (2, TType.I64, 'warehouseId', None, None, ), # 2
6481
    (3, TType.I64, 'sourceId', None, None, ), # 3
6482
    (4, TType.I64, 'orderId', None, None, ), # 4
6483
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
6484
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
6485
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
6486
  )
6487
 
6488
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
6489
    self.itemId = itemId
6490
    self.warehouseId = warehouseId
6491
    self.sourceId = sourceId
6492
    self.orderId = orderId
6493
    self.createdTimestamp = createdTimestamp
6494
    self.promisedShippingTimestamp = promisedShippingTimestamp
6495
    self.quantity = quantity
6496
 
6497
  def read(self, iprot):
6498
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6499
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6500
      return
6501
    iprot.readStructBegin()
6502
    while True:
6503
      (fname, ftype, fid) = iprot.readFieldBegin()
6504
      if ftype == TType.STOP:
6505
        break
6506
      if fid == 1:
6507
        if ftype == TType.I64:
6508
          self.itemId = iprot.readI64();
6509
        else:
6510
          iprot.skip(ftype)
6511
      elif fid == 2:
6512
        if ftype == TType.I64:
6513
          self.warehouseId = iprot.readI64();
6514
        else:
6515
          iprot.skip(ftype)
6516
      elif fid == 3:
6517
        if ftype == TType.I64:
6518
          self.sourceId = iprot.readI64();
6519
        else:
6520
          iprot.skip(ftype)
6521
      elif fid == 4:
6522
        if ftype == TType.I64:
6523
          self.orderId = iprot.readI64();
6524
        else:
6525
          iprot.skip(ftype)
6526
      elif fid == 5:
6527
        if ftype == TType.I64:
6528
          self.createdTimestamp = iprot.readI64();
6529
        else:
6530
          iprot.skip(ftype)
6531
      elif fid == 6:
6532
        if ftype == TType.I64:
6533
          self.promisedShippingTimestamp = iprot.readI64();
6534
        else:
6535
          iprot.skip(ftype)
6536
      elif fid == 7:
6537
        if ftype == TType.DOUBLE:
6538
          self.quantity = iprot.readDouble();
6539
        else:
6540
          iprot.skip(ftype)
6541
      else:
6542
        iprot.skip(ftype)
6543
      iprot.readFieldEnd()
6544
    iprot.readStructEnd()
6545
 
6546
  def write(self, oprot):
6547
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6548
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6549
      return
6550
    oprot.writeStructBegin('updateReservationForOrder_args')
6551
    if self.itemId is not None:
6552
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6553
      oprot.writeI64(self.itemId)
6554
      oprot.writeFieldEnd()
6555
    if self.warehouseId is not None:
6556
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6557
      oprot.writeI64(self.warehouseId)
6558
      oprot.writeFieldEnd()
6559
    if self.sourceId is not None:
6560
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6561
      oprot.writeI64(self.sourceId)
6562
      oprot.writeFieldEnd()
6563
    if self.orderId is not None:
6564
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6565
      oprot.writeI64(self.orderId)
6566
      oprot.writeFieldEnd()
6567
    if self.createdTimestamp is not None:
6568
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
6569
      oprot.writeI64(self.createdTimestamp)
6570
      oprot.writeFieldEnd()
6571
    if self.promisedShippingTimestamp is not None:
6572
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
6573
      oprot.writeI64(self.promisedShippingTimestamp)
6574
      oprot.writeFieldEnd()
6575
    if self.quantity is not None:
6576
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
6577
      oprot.writeDouble(self.quantity)
6578
      oprot.writeFieldEnd()
6579
    oprot.writeFieldStop()
6580
    oprot.writeStructEnd()
6581
 
6582
  def validate(self):
6583
    return
6584
 
6585
 
6586
  def __repr__(self):
6587
    L = ['%s=%r' % (key, value)
6588
      for key, value in self.__dict__.iteritems()]
6589
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6590
 
6591
  def __eq__(self, other):
6592
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6593
 
6594
  def __ne__(self, other):
6595
    return not (self == other)
6596
 
6597
class updateReservationForOrder_result:
6598
  """
6599
  Attributes:
6600
   - success
6601
   - cex
6602
  """
6603
 
6604
  thrift_spec = (
6605
    (0, TType.BOOL, 'success', None, None, ), # 0
6606
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6607
  )
6608
 
6609
  def __init__(self, success=None, cex=None,):
6610
    self.success = success
6611
    self.cex = cex
6612
 
6613
  def read(self, iprot):
6614
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6615
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6616
      return
6617
    iprot.readStructBegin()
6618
    while True:
6619
      (fname, ftype, fid) = iprot.readFieldBegin()
6620
      if ftype == TType.STOP:
6621
        break
6622
      if fid == 0:
6623
        if ftype == TType.BOOL:
6624
          self.success = iprot.readBool();
6625
        else:
6626
          iprot.skip(ftype)
6627
      elif fid == 1:
6628
        if ftype == TType.STRUCT:
6629
          self.cex = InventoryServiceException()
6630
          self.cex.read(iprot)
6631
        else:
6632
          iprot.skip(ftype)
6633
      else:
6634
        iprot.skip(ftype)
6635
      iprot.readFieldEnd()
6636
    iprot.readStructEnd()
6637
 
6638
  def write(self, oprot):
6639
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6640
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6641
      return
6642
    oprot.writeStructBegin('updateReservationForOrder_result')
6643
    if self.success is not None:
6644
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6645
      oprot.writeBool(self.success)
6646
      oprot.writeFieldEnd()
6647
    if self.cex is not None:
6648
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6649
      self.cex.write(oprot)
6650
      oprot.writeFieldEnd()
6651
    oprot.writeFieldStop()
6652
    oprot.writeStructEnd()
6653
 
6654
  def validate(self):
6655
    return
6656
 
6657
 
6658
  def __repr__(self):
6659
    L = ['%s=%r' % (key, value)
6660
      for key, value in self.__dict__.iteritems()]
6661
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6662
 
6663
  def __eq__(self, other):
6664
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6665
 
6666
  def __ne__(self, other):
6667
    return not (self == other)
6668
 
5944 mandeep.dh 6669
class reduceReservationCount_args:
6670
  """
6671
  Attributes:
6672
   - itemId
6673
   - warehouseId
5966 rajveer 6674
   - sourceId
6675
   - orderId
5944 mandeep.dh 6676
   - quantity
6677
  """
6678
 
6679
  thrift_spec = (
6680
    None, # 0
6681
    (1, TType.I64, 'itemId', None, None, ), # 1
6682
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 6683
    (3, TType.I64, 'sourceId', None, None, ), # 3
6684
    (4, TType.I64, 'orderId', None, None, ), # 4
6685
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
5944 mandeep.dh 6686
  )
6687
 
5966 rajveer 6688
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, quantity=None,):
5944 mandeep.dh 6689
    self.itemId = itemId
6690
    self.warehouseId = warehouseId
5966 rajveer 6691
    self.sourceId = sourceId
6692
    self.orderId = orderId
5944 mandeep.dh 6693
    self.quantity = quantity
6694
 
6695
  def read(self, iprot):
6696
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6697
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6698
      return
6699
    iprot.readStructBegin()
6700
    while True:
6701
      (fname, ftype, fid) = iprot.readFieldBegin()
6702
      if ftype == TType.STOP:
6703
        break
6704
      if fid == 1:
6705
        if ftype == TType.I64:
6706
          self.itemId = iprot.readI64();
6707
        else:
6708
          iprot.skip(ftype)
6709
      elif fid == 2:
6710
        if ftype == TType.I64:
6711
          self.warehouseId = iprot.readI64();
6712
        else:
6713
          iprot.skip(ftype)
6714
      elif fid == 3:
5966 rajveer 6715
        if ftype == TType.I64:
6716
          self.sourceId = iprot.readI64();
6717
        else:
6718
          iprot.skip(ftype)
6719
      elif fid == 4:
6720
        if ftype == TType.I64:
6721
          self.orderId = iprot.readI64();
6722
        else:
6723
          iprot.skip(ftype)
6724
      elif fid == 5:
5944 mandeep.dh 6725
        if ftype == TType.DOUBLE:
6726
          self.quantity = iprot.readDouble();
6727
        else:
6728
          iprot.skip(ftype)
6729
      else:
6730
        iprot.skip(ftype)
6731
      iprot.readFieldEnd()
6732
    iprot.readStructEnd()
6733
 
6734
  def write(self, oprot):
6735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6737
      return
6738
    oprot.writeStructBegin('reduceReservationCount_args')
6739
    if self.itemId is not None:
6740
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6741
      oprot.writeI64(self.itemId)
6742
      oprot.writeFieldEnd()
6743
    if self.warehouseId is not None:
6744
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6745
      oprot.writeI64(self.warehouseId)
6746
      oprot.writeFieldEnd()
5966 rajveer 6747
    if self.sourceId is not None:
6748
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6749
      oprot.writeI64(self.sourceId)
6750
      oprot.writeFieldEnd()
6751
    if self.orderId is not None:
6752
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6753
      oprot.writeI64(self.orderId)
6754
      oprot.writeFieldEnd()
5944 mandeep.dh 6755
    if self.quantity is not None:
5966 rajveer 6756
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
5944 mandeep.dh 6757
      oprot.writeDouble(self.quantity)
6758
      oprot.writeFieldEnd()
6759
    oprot.writeFieldStop()
6760
    oprot.writeStructEnd()
6761
 
6762
  def validate(self):
6763
    return
6764
 
6765
 
6766
  def __repr__(self):
6767
    L = ['%s=%r' % (key, value)
6768
      for key, value in self.__dict__.iteritems()]
6769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6770
 
6771
  def __eq__(self, other):
6772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6773
 
6774
  def __ne__(self, other):
6775
    return not (self == other)
6776
 
6777
class reduceReservationCount_result:
6778
  """
6779
  Attributes:
6780
   - success
6781
   - cex
6782
  """
6783
 
6784
  thrift_spec = (
6785
    (0, TType.BOOL, 'success', None, None, ), # 0
6786
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6787
  )
6788
 
6789
  def __init__(self, success=None, cex=None,):
6790
    self.success = success
6791
    self.cex = cex
6792
 
6793
  def read(self, iprot):
6794
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6795
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6796
      return
6797
    iprot.readStructBegin()
6798
    while True:
6799
      (fname, ftype, fid) = iprot.readFieldBegin()
6800
      if ftype == TType.STOP:
6801
        break
6802
      if fid == 0:
6803
        if ftype == TType.BOOL:
6804
          self.success = iprot.readBool();
6805
        else:
6806
          iprot.skip(ftype)
6807
      elif fid == 1:
6808
        if ftype == TType.STRUCT:
6809
          self.cex = InventoryServiceException()
6810
          self.cex.read(iprot)
6811
        else:
6812
          iprot.skip(ftype)
6813
      else:
6814
        iprot.skip(ftype)
6815
      iprot.readFieldEnd()
6816
    iprot.readStructEnd()
6817
 
6818
  def write(self, oprot):
6819
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6820
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6821
      return
6822
    oprot.writeStructBegin('reduceReservationCount_result')
6823
    if self.success is not None:
6824
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6825
      oprot.writeBool(self.success)
6826
      oprot.writeFieldEnd()
6827
    if self.cex is not None:
6828
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6829
      self.cex.write(oprot)
6830
      oprot.writeFieldEnd()
6831
    oprot.writeFieldStop()
6832
    oprot.writeStructEnd()
6833
 
6834
  def validate(self):
6835
    return
6836
 
6837
 
6838
  def __repr__(self):
6839
    L = ['%s=%r' % (key, value)
6840
      for key, value in self.__dict__.iteritems()]
6841
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6842
 
6843
  def __eq__(self, other):
6844
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6845
 
6846
  def __ne__(self, other):
6847
    return not (self == other)
6848
 
6849
class getItemPricing_args:
6850
  """
6851
  Attributes:
6852
   - itemId
6853
   - vendorId
6854
  """
6855
 
6856
  thrift_spec = (
6857
    None, # 0
6858
    (1, TType.I64, 'itemId', None, None, ), # 1
6859
    (2, TType.I64, 'vendorId', None, None, ), # 2
6860
  )
6861
 
6862
  def __init__(self, itemId=None, vendorId=None,):
6863
    self.itemId = itemId
6864
    self.vendorId = vendorId
6865
 
6866
  def read(self, iprot):
6867
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6868
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6869
      return
6870
    iprot.readStructBegin()
6871
    while True:
6872
      (fname, ftype, fid) = iprot.readFieldBegin()
6873
      if ftype == TType.STOP:
6874
        break
6875
      if fid == 1:
6876
        if ftype == TType.I64:
6877
          self.itemId = iprot.readI64();
6878
        else:
6879
          iprot.skip(ftype)
6880
      elif fid == 2:
6881
        if ftype == TType.I64:
6882
          self.vendorId = iprot.readI64();
6883
        else:
6884
          iprot.skip(ftype)
6885
      else:
6886
        iprot.skip(ftype)
6887
      iprot.readFieldEnd()
6888
    iprot.readStructEnd()
6889
 
6890
  def write(self, oprot):
6891
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6892
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6893
      return
6894
    oprot.writeStructBegin('getItemPricing_args')
6895
    if self.itemId is not None:
6896
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6897
      oprot.writeI64(self.itemId)
6898
      oprot.writeFieldEnd()
6899
    if self.vendorId is not None:
6900
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6901
      oprot.writeI64(self.vendorId)
6902
      oprot.writeFieldEnd()
6903
    oprot.writeFieldStop()
6904
    oprot.writeStructEnd()
6905
 
6906
  def validate(self):
6907
    return
6908
 
6909
 
6910
  def __repr__(self):
6911
    L = ['%s=%r' % (key, value)
6912
      for key, value in self.__dict__.iteritems()]
6913
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6914
 
6915
  def __eq__(self, other):
6916
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6917
 
6918
  def __ne__(self, other):
6919
    return not (self == other)
6920
 
6921
class getItemPricing_result:
6922
  """
6923
  Attributes:
6924
   - success
6925
   - cex
6926
  """
6927
 
6928
  thrift_spec = (
6929
    (0, TType.STRUCT, 'success', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 0
6930
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6931
  )
6932
 
6933
  def __init__(self, success=None, cex=None,):
6934
    self.success = success
6935
    self.cex = cex
6936
 
6937
  def read(self, iprot):
6938
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6939
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6940
      return
6941
    iprot.readStructBegin()
6942
    while True:
6943
      (fname, ftype, fid) = iprot.readFieldBegin()
6944
      if ftype == TType.STOP:
6945
        break
6946
      if fid == 0:
6947
        if ftype == TType.STRUCT:
6948
          self.success = VendorItemPricing()
6949
          self.success.read(iprot)
6950
        else:
6951
          iprot.skip(ftype)
6952
      elif fid == 1:
6953
        if ftype == TType.STRUCT:
6954
          self.cex = InventoryServiceException()
6955
          self.cex.read(iprot)
6956
        else:
6957
          iprot.skip(ftype)
6958
      else:
6959
        iprot.skip(ftype)
6960
      iprot.readFieldEnd()
6961
    iprot.readStructEnd()
6962
 
6963
  def write(self, oprot):
6964
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6965
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6966
      return
6967
    oprot.writeStructBegin('getItemPricing_result')
6968
    if self.success is not None:
6969
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6970
      self.success.write(oprot)
6971
      oprot.writeFieldEnd()
6972
    if self.cex is not None:
6973
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6974
      self.cex.write(oprot)
6975
      oprot.writeFieldEnd()
6976
    oprot.writeFieldStop()
6977
    oprot.writeStructEnd()
6978
 
6979
  def validate(self):
6980
    return
6981
 
6982
 
6983
  def __repr__(self):
6984
    L = ['%s=%r' % (key, value)
6985
      for key, value in self.__dict__.iteritems()]
6986
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6987
 
6988
  def __eq__(self, other):
6989
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6990
 
6991
  def __ne__(self, other):
6992
    return not (self == other)
6993
 
6994
class getAllItemPricing_args:
6995
  """
6996
  Attributes:
6997
   - itemId
6998
  """
6999
 
7000
  thrift_spec = (
7001
    None, # 0
7002
    (1, TType.I64, 'itemId', None, None, ), # 1
7003
  )
7004
 
7005
  def __init__(self, itemId=None,):
7006
    self.itemId = itemId
7007
 
7008
  def read(self, iprot):
7009
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7010
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7011
      return
7012
    iprot.readStructBegin()
7013
    while True:
7014
      (fname, ftype, fid) = iprot.readFieldBegin()
7015
      if ftype == TType.STOP:
7016
        break
7017
      if fid == 1:
7018
        if ftype == TType.I64:
7019
          self.itemId = iprot.readI64();
7020
        else:
7021
          iprot.skip(ftype)
7022
      else:
7023
        iprot.skip(ftype)
7024
      iprot.readFieldEnd()
7025
    iprot.readStructEnd()
7026
 
7027
  def write(self, oprot):
7028
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7029
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7030
      return
7031
    oprot.writeStructBegin('getAllItemPricing_args')
7032
    if self.itemId is not None:
7033
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7034
      oprot.writeI64(self.itemId)
7035
      oprot.writeFieldEnd()
7036
    oprot.writeFieldStop()
7037
    oprot.writeStructEnd()
7038
 
7039
  def validate(self):
7040
    return
7041
 
7042
 
7043
  def __repr__(self):
7044
    L = ['%s=%r' % (key, value)
7045
      for key, value in self.__dict__.iteritems()]
7046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7047
 
7048
  def __eq__(self, other):
7049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7050
 
7051
  def __ne__(self, other):
7052
    return not (self == other)
7053
 
7054
class getAllItemPricing_result:
7055
  """
7056
  Attributes:
7057
   - success
7058
   - cex
7059
  """
7060
 
7061
  thrift_spec = (
7062
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
7063
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7064
  )
7065
 
7066
  def __init__(self, success=None, cex=None,):
7067
    self.success = success
7068
    self.cex = cex
7069
 
7070
  def read(self, iprot):
7071
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7072
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7073
      return
7074
    iprot.readStructBegin()
7075
    while True:
7076
      (fname, ftype, fid) = iprot.readFieldBegin()
7077
      if ftype == TType.STOP:
7078
        break
7079
      if fid == 0:
7080
        if ftype == TType.LIST:
7081
          self.success = []
8182 amar.kumar 7082
          (_etype69, _size66) = iprot.readListBegin()
7083
          for _i70 in xrange(_size66):
7084
            _elem71 = VendorItemPricing()
7085
            _elem71.read(iprot)
7086
            self.success.append(_elem71)
5944 mandeep.dh 7087
          iprot.readListEnd()
7088
        else:
7089
          iprot.skip(ftype)
7090
      elif fid == 1:
7091
        if ftype == TType.STRUCT:
7092
          self.cex = InventoryServiceException()
7093
          self.cex.read(iprot)
7094
        else:
7095
          iprot.skip(ftype)
7096
      else:
7097
        iprot.skip(ftype)
7098
      iprot.readFieldEnd()
7099
    iprot.readStructEnd()
7100
 
7101
  def write(self, oprot):
7102
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7103
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7104
      return
7105
    oprot.writeStructBegin('getAllItemPricing_result')
7106
    if self.success is not None:
7107
      oprot.writeFieldBegin('success', TType.LIST, 0)
7108
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7109
      for iter72 in self.success:
7110
        iter72.write(oprot)
5944 mandeep.dh 7111
      oprot.writeListEnd()
7112
      oprot.writeFieldEnd()
7113
    if self.cex is not None:
7114
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7115
      self.cex.write(oprot)
7116
      oprot.writeFieldEnd()
7117
    oprot.writeFieldStop()
7118
    oprot.writeStructEnd()
7119
 
7120
  def validate(self):
7121
    return
7122
 
7123
 
7124
  def __repr__(self):
7125
    L = ['%s=%r' % (key, value)
7126
      for key, value in self.__dict__.iteritems()]
7127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7128
 
7129
  def __eq__(self, other):
7130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7131
 
7132
  def __ne__(self, other):
7133
    return not (self == other)
7134
 
7135
class addVendorItemPricing_args:
7136
  """
7137
  Attributes:
7138
   - vendorItemPricing
7139
  """
7140
 
7141
  thrift_spec = (
7142
    None, # 0
7143
    (1, TType.STRUCT, 'vendorItemPricing', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 1
7144
  )
7145
 
7146
  def __init__(self, vendorItemPricing=None,):
7147
    self.vendorItemPricing = vendorItemPricing
7148
 
7149
  def read(self, iprot):
7150
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7151
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7152
      return
7153
    iprot.readStructBegin()
7154
    while True:
7155
      (fname, ftype, fid) = iprot.readFieldBegin()
7156
      if ftype == TType.STOP:
7157
        break
7158
      if fid == 1:
7159
        if ftype == TType.STRUCT:
7160
          self.vendorItemPricing = VendorItemPricing()
7161
          self.vendorItemPricing.read(iprot)
7162
        else:
7163
          iprot.skip(ftype)
7164
      else:
7165
        iprot.skip(ftype)
7166
      iprot.readFieldEnd()
7167
    iprot.readStructEnd()
7168
 
7169
  def write(self, oprot):
7170
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7171
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7172
      return
7173
    oprot.writeStructBegin('addVendorItemPricing_args')
7174
    if self.vendorItemPricing is not None:
7175
      oprot.writeFieldBegin('vendorItemPricing', TType.STRUCT, 1)
7176
      self.vendorItemPricing.write(oprot)
7177
      oprot.writeFieldEnd()
7178
    oprot.writeFieldStop()
7179
    oprot.writeStructEnd()
7180
 
7181
  def validate(self):
7182
    return
7183
 
7184
 
7185
  def __repr__(self):
7186
    L = ['%s=%r' % (key, value)
7187
      for key, value in self.__dict__.iteritems()]
7188
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7189
 
7190
  def __eq__(self, other):
7191
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7192
 
7193
  def __ne__(self, other):
7194
    return not (self == other)
7195
 
7196
class addVendorItemPricing_result:
7197
  """
7198
  Attributes:
7199
   - cex
7200
  """
7201
 
7202
  thrift_spec = (
7203
    None, # 0
7204
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7205
  )
7206
 
7207
  def __init__(self, cex=None,):
7208
    self.cex = cex
7209
 
7210
  def read(self, iprot):
7211
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7212
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7213
      return
7214
    iprot.readStructBegin()
7215
    while True:
7216
      (fname, ftype, fid) = iprot.readFieldBegin()
7217
      if ftype == TType.STOP:
7218
        break
7219
      if fid == 1:
7220
        if ftype == TType.STRUCT:
7221
          self.cex = InventoryServiceException()
7222
          self.cex.read(iprot)
7223
        else:
7224
          iprot.skip(ftype)
7225
      else:
7226
        iprot.skip(ftype)
7227
      iprot.readFieldEnd()
7228
    iprot.readStructEnd()
7229
 
7230
  def write(self, oprot):
7231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7233
      return
7234
    oprot.writeStructBegin('addVendorItemPricing_result')
7235
    if self.cex is not None:
7236
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7237
      self.cex.write(oprot)
7238
      oprot.writeFieldEnd()
7239
    oprot.writeFieldStop()
7240
    oprot.writeStructEnd()
7241
 
7242
  def validate(self):
7243
    return
7244
 
7245
 
7246
  def __repr__(self):
7247
    L = ['%s=%r' % (key, value)
7248
      for key, value in self.__dict__.iteritems()]
7249
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7250
 
7251
  def __eq__(self, other):
7252
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7253
 
7254
  def __ne__(self, other):
7255
    return not (self == other)
7256
 
7257
class getVendor_args:
7258
  """
7259
  Attributes:
7260
   - vendorId
7261
  """
7262
 
7263
  thrift_spec = (
7264
    None, # 0
7265
    (1, TType.I64, 'vendorId', None, None, ), # 1
7266
  )
7267
 
7268
  def __init__(self, vendorId=None,):
7269
    self.vendorId = vendorId
7270
 
7271
  def read(self, iprot):
7272
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7273
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7274
      return
7275
    iprot.readStructBegin()
7276
    while True:
7277
      (fname, ftype, fid) = iprot.readFieldBegin()
7278
      if ftype == TType.STOP:
7279
        break
7280
      if fid == 1:
7281
        if ftype == TType.I64:
7282
          self.vendorId = iprot.readI64();
7283
        else:
7284
          iprot.skip(ftype)
7285
      else:
7286
        iprot.skip(ftype)
7287
      iprot.readFieldEnd()
7288
    iprot.readStructEnd()
7289
 
7290
  def write(self, oprot):
7291
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7292
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7293
      return
7294
    oprot.writeStructBegin('getVendor_args')
7295
    if self.vendorId is not None:
7296
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
7297
      oprot.writeI64(self.vendorId)
7298
      oprot.writeFieldEnd()
7299
    oprot.writeFieldStop()
7300
    oprot.writeStructEnd()
7301
 
7302
  def validate(self):
7303
    return
7304
 
7305
 
7306
  def __repr__(self):
7307
    L = ['%s=%r' % (key, value)
7308
      for key, value in self.__dict__.iteritems()]
7309
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7310
 
7311
  def __eq__(self, other):
7312
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7313
 
7314
  def __ne__(self, other):
7315
    return not (self == other)
7316
 
7317
class getVendor_result:
7318
  """
7319
  Attributes:
7320
   - success
7321
  """
7322
 
7323
  thrift_spec = (
7324
    (0, TType.STRUCT, 'success', (Vendor, Vendor.thrift_spec), None, ), # 0
7325
  )
7326
 
7327
  def __init__(self, success=None,):
7328
    self.success = success
7329
 
7330
  def read(self, iprot):
7331
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7332
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7333
      return
7334
    iprot.readStructBegin()
7335
    while True:
7336
      (fname, ftype, fid) = iprot.readFieldBegin()
7337
      if ftype == TType.STOP:
7338
        break
7339
      if fid == 0:
7340
        if ftype == TType.STRUCT:
7341
          self.success = Vendor()
7342
          self.success.read(iprot)
7343
        else:
7344
          iprot.skip(ftype)
7345
      else:
7346
        iprot.skip(ftype)
7347
      iprot.readFieldEnd()
7348
    iprot.readStructEnd()
7349
 
7350
  def write(self, oprot):
7351
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7352
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7353
      return
7354
    oprot.writeStructBegin('getVendor_result')
7355
    if self.success is not None:
7356
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7357
      self.success.write(oprot)
7358
      oprot.writeFieldEnd()
7359
    oprot.writeFieldStop()
7360
    oprot.writeStructEnd()
7361
 
7362
  def validate(self):
7363
    return
7364
 
7365
 
7366
  def __repr__(self):
7367
    L = ['%s=%r' % (key, value)
7368
      for key, value in self.__dict__.iteritems()]
7369
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7370
 
7371
  def __eq__(self, other):
7372
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7373
 
7374
  def __ne__(self, other):
7375
    return not (self == other)
7376
 
7377
class getAllVendors_args:
7378
 
7379
  thrift_spec = (
7380
  )
7381
 
7382
  def read(self, iprot):
7383
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7384
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7385
      return
7386
    iprot.readStructBegin()
7387
    while True:
7388
      (fname, ftype, fid) = iprot.readFieldBegin()
7389
      if ftype == TType.STOP:
7390
        break
7391
      else:
7392
        iprot.skip(ftype)
7393
      iprot.readFieldEnd()
7394
    iprot.readStructEnd()
7395
 
7396
  def write(self, oprot):
7397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7399
      return
7400
    oprot.writeStructBegin('getAllVendors_args')
7401
    oprot.writeFieldStop()
7402
    oprot.writeStructEnd()
7403
 
7404
  def validate(self):
7405
    return
7406
 
7407
 
7408
  def __repr__(self):
7409
    L = ['%s=%r' % (key, value)
7410
      for key, value in self.__dict__.iteritems()]
7411
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7412
 
7413
  def __eq__(self, other):
7414
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7415
 
7416
  def __ne__(self, other):
7417
    return not (self == other)
7418
 
7419
class getAllVendors_result:
7420
  """
7421
  Attributes:
7422
   - success
7423
  """
7424
 
7425
  thrift_spec = (
7426
    (0, TType.LIST, 'success', (TType.STRUCT,(Vendor, Vendor.thrift_spec)), None, ), # 0
7427
  )
7428
 
7429
  def __init__(self, success=None,):
7430
    self.success = success
7431
 
7432
  def read(self, iprot):
7433
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7434
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7435
      return
7436
    iprot.readStructBegin()
7437
    while True:
7438
      (fname, ftype, fid) = iprot.readFieldBegin()
7439
      if ftype == TType.STOP:
7440
        break
7441
      if fid == 0:
7442
        if ftype == TType.LIST:
7443
          self.success = []
8182 amar.kumar 7444
          (_etype76, _size73) = iprot.readListBegin()
7445
          for _i77 in xrange(_size73):
7446
            _elem78 = Vendor()
7447
            _elem78.read(iprot)
7448
            self.success.append(_elem78)
5944 mandeep.dh 7449
          iprot.readListEnd()
7450
        else:
7451
          iprot.skip(ftype)
7452
      else:
7453
        iprot.skip(ftype)
7454
      iprot.readFieldEnd()
7455
    iprot.readStructEnd()
7456
 
7457
  def write(self, oprot):
7458
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7459
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7460
      return
7461
    oprot.writeStructBegin('getAllVendors_result')
7462
    if self.success is not None:
7463
      oprot.writeFieldBegin('success', TType.LIST, 0)
7464
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7465
      for iter79 in self.success:
7466
        iter79.write(oprot)
5944 mandeep.dh 7467
      oprot.writeListEnd()
7468
      oprot.writeFieldEnd()
7469
    oprot.writeFieldStop()
7470
    oprot.writeStructEnd()
7471
 
7472
  def validate(self):
7473
    return
7474
 
7475
 
7476
  def __repr__(self):
7477
    L = ['%s=%r' % (key, value)
7478
      for key, value in self.__dict__.iteritems()]
7479
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7480
 
7481
  def __eq__(self, other):
7482
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7483
 
7484
  def __ne__(self, other):
7485
    return not (self == other)
7486
 
7487
class addVendorItemMapping_args:
7488
  """
7489
  Attributes:
7490
   - key
7491
   - vendorItemMapping
7492
  """
7493
 
7494
  thrift_spec = (
7495
    None, # 0
7496
    (1, TType.STRING, 'key', None, None, ), # 1
7497
    (2, TType.STRUCT, 'vendorItemMapping', (VendorItemMapping, VendorItemMapping.thrift_spec), None, ), # 2
7498
  )
7499
 
7500
  def __init__(self, key=None, vendorItemMapping=None,):
7501
    self.key = key
7502
    self.vendorItemMapping = vendorItemMapping
7503
 
7504
  def read(self, iprot):
7505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7507
      return
7508
    iprot.readStructBegin()
7509
    while True:
7510
      (fname, ftype, fid) = iprot.readFieldBegin()
7511
      if ftype == TType.STOP:
7512
        break
7513
      if fid == 1:
7514
        if ftype == TType.STRING:
7515
          self.key = iprot.readString();
7516
        else:
7517
          iprot.skip(ftype)
7518
      elif fid == 2:
7519
        if ftype == TType.STRUCT:
7520
          self.vendorItemMapping = VendorItemMapping()
7521
          self.vendorItemMapping.read(iprot)
7522
        else:
7523
          iprot.skip(ftype)
7524
      else:
7525
        iprot.skip(ftype)
7526
      iprot.readFieldEnd()
7527
    iprot.readStructEnd()
7528
 
7529
  def write(self, oprot):
7530
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7531
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7532
      return
7533
    oprot.writeStructBegin('addVendorItemMapping_args')
7534
    if self.key is not None:
7535
      oprot.writeFieldBegin('key', TType.STRING, 1)
7536
      oprot.writeString(self.key)
7537
      oprot.writeFieldEnd()
7538
    if self.vendorItemMapping is not None:
7539
      oprot.writeFieldBegin('vendorItemMapping', TType.STRUCT, 2)
7540
      self.vendorItemMapping.write(oprot)
7541
      oprot.writeFieldEnd()
7542
    oprot.writeFieldStop()
7543
    oprot.writeStructEnd()
7544
 
7545
  def validate(self):
7546
    return
7547
 
7548
 
7549
  def __repr__(self):
7550
    L = ['%s=%r' % (key, value)
7551
      for key, value in self.__dict__.iteritems()]
7552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7553
 
7554
  def __eq__(self, other):
7555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7556
 
7557
  def __ne__(self, other):
7558
    return not (self == other)
7559
 
7560
class addVendorItemMapping_result:
7561
  """
7562
  Attributes:
7563
   - cex
7564
  """
7565
 
7566
  thrift_spec = (
7567
    None, # 0
7568
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7569
  )
7570
 
7571
  def __init__(self, cex=None,):
7572
    self.cex = cex
7573
 
7574
  def read(self, iprot):
7575
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7576
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7577
      return
7578
    iprot.readStructBegin()
7579
    while True:
7580
      (fname, ftype, fid) = iprot.readFieldBegin()
7581
      if ftype == TType.STOP:
7582
        break
7583
      if fid == 1:
7584
        if ftype == TType.STRUCT:
7585
          self.cex = InventoryServiceException()
7586
          self.cex.read(iprot)
7587
        else:
7588
          iprot.skip(ftype)
7589
      else:
7590
        iprot.skip(ftype)
7591
      iprot.readFieldEnd()
7592
    iprot.readStructEnd()
7593
 
7594
  def write(self, oprot):
7595
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7596
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7597
      return
7598
    oprot.writeStructBegin('addVendorItemMapping_result')
7599
    if self.cex is not None:
7600
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7601
      self.cex.write(oprot)
7602
      oprot.writeFieldEnd()
7603
    oprot.writeFieldStop()
7604
    oprot.writeStructEnd()
7605
 
7606
  def validate(self):
7607
    return
7608
 
7609
 
7610
  def __repr__(self):
7611
    L = ['%s=%r' % (key, value)
7612
      for key, value in self.__dict__.iteritems()]
7613
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7614
 
7615
  def __eq__(self, other):
7616
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7617
 
7618
  def __ne__(self, other):
7619
    return not (self == other)
7620
 
7621
class getVendorItemMappings_args:
7622
  """
7623
  Attributes:
7624
   - itemId
7625
  """
7626
 
7627
  thrift_spec = (
7628
    None, # 0
7629
    (1, TType.I64, 'itemId', None, None, ), # 1
7630
  )
7631
 
7632
  def __init__(self, itemId=None,):
7633
    self.itemId = itemId
7634
 
7635
  def read(self, iprot):
7636
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7637
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7638
      return
7639
    iprot.readStructBegin()
7640
    while True:
7641
      (fname, ftype, fid) = iprot.readFieldBegin()
7642
      if ftype == TType.STOP:
7643
        break
7644
      if fid == 1:
7645
        if ftype == TType.I64:
7646
          self.itemId = iprot.readI64();
7647
        else:
7648
          iprot.skip(ftype)
7649
      else:
7650
        iprot.skip(ftype)
7651
      iprot.readFieldEnd()
7652
    iprot.readStructEnd()
7653
 
7654
  def write(self, oprot):
7655
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7656
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7657
      return
7658
    oprot.writeStructBegin('getVendorItemMappings_args')
7659
    if self.itemId is not None:
7660
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7661
      oprot.writeI64(self.itemId)
7662
      oprot.writeFieldEnd()
7663
    oprot.writeFieldStop()
7664
    oprot.writeStructEnd()
7665
 
7666
  def validate(self):
7667
    return
7668
 
7669
 
7670
  def __repr__(self):
7671
    L = ['%s=%r' % (key, value)
7672
      for key, value in self.__dict__.iteritems()]
7673
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7674
 
7675
  def __eq__(self, other):
7676
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7677
 
7678
  def __ne__(self, other):
7679
    return not (self == other)
7680
 
7681
class getVendorItemMappings_result:
7682
  """
7683
  Attributes:
7684
   - success
7685
   - cex
7686
  """
7687
 
7688
  thrift_spec = (
7689
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
7690
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7691
  )
7692
 
7693
  def __init__(self, success=None, cex=None,):
7694
    self.success = success
7695
    self.cex = cex
7696
 
7697
  def read(self, iprot):
7698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7700
      return
7701
    iprot.readStructBegin()
7702
    while True:
7703
      (fname, ftype, fid) = iprot.readFieldBegin()
7704
      if ftype == TType.STOP:
7705
        break
7706
      if fid == 0:
7707
        if ftype == TType.LIST:
7708
          self.success = []
8182 amar.kumar 7709
          (_etype83, _size80) = iprot.readListBegin()
7710
          for _i84 in xrange(_size80):
7711
            _elem85 = VendorItemMapping()
7712
            _elem85.read(iprot)
7713
            self.success.append(_elem85)
5944 mandeep.dh 7714
          iprot.readListEnd()
7715
        else:
7716
          iprot.skip(ftype)
7717
      elif fid == 1:
7718
        if ftype == TType.STRUCT:
7719
          self.cex = InventoryServiceException()
7720
          self.cex.read(iprot)
7721
        else:
7722
          iprot.skip(ftype)
7723
      else:
7724
        iprot.skip(ftype)
7725
      iprot.readFieldEnd()
7726
    iprot.readStructEnd()
7727
 
7728
  def write(self, oprot):
7729
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7730
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7731
      return
7732
    oprot.writeStructBegin('getVendorItemMappings_result')
7733
    if self.success is not None:
7734
      oprot.writeFieldBegin('success', TType.LIST, 0)
7735
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7736
      for iter86 in self.success:
7737
        iter86.write(oprot)
5944 mandeep.dh 7738
      oprot.writeListEnd()
7739
      oprot.writeFieldEnd()
7740
    if self.cex is not None:
7741
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7742
      self.cex.write(oprot)
7743
      oprot.writeFieldEnd()
7744
    oprot.writeFieldStop()
7745
    oprot.writeStructEnd()
7746
 
7747
  def validate(self):
7748
    return
7749
 
7750
 
7751
  def __repr__(self):
7752
    L = ['%s=%r' % (key, value)
7753
      for key, value in self.__dict__.iteritems()]
7754
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7755
 
7756
  def __eq__(self, other):
7757
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7758
 
7759
  def __ne__(self, other):
7760
    return not (self == other)
7761
 
7762
class getPendingOrdersInventory_args:
7763
  """
7764
  Attributes:
7765
   - vendorid
7766
  """
7767
 
7768
  thrift_spec = (
7769
    None, # 0
7770
    (1, TType.I64, 'vendorid', None, None, ), # 1
7771
  )
7772
 
7773
  def __init__(self, vendorid=None,):
7774
    self.vendorid = vendorid
7775
 
7776
  def read(self, iprot):
7777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7779
      return
7780
    iprot.readStructBegin()
7781
    while True:
7782
      (fname, ftype, fid) = iprot.readFieldBegin()
7783
      if ftype == TType.STOP:
7784
        break
7785
      if fid == 1:
7786
        if ftype == TType.I64:
7787
          self.vendorid = iprot.readI64();
7788
        else:
7789
          iprot.skip(ftype)
7790
      else:
7791
        iprot.skip(ftype)
7792
      iprot.readFieldEnd()
7793
    iprot.readStructEnd()
7794
 
7795
  def write(self, oprot):
7796
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7797
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7798
      return
7799
    oprot.writeStructBegin('getPendingOrdersInventory_args')
7800
    if self.vendorid is not None:
7801
      oprot.writeFieldBegin('vendorid', TType.I64, 1)
7802
      oprot.writeI64(self.vendorid)
7803
      oprot.writeFieldEnd()
7804
    oprot.writeFieldStop()
7805
    oprot.writeStructEnd()
7806
 
7807
  def validate(self):
7808
    return
7809
 
7810
 
7811
  def __repr__(self):
7812
    L = ['%s=%r' % (key, value)
7813
      for key, value in self.__dict__.iteritems()]
7814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7815
 
7816
  def __eq__(self, other):
7817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7818
 
7819
  def __ne__(self, other):
7820
    return not (self == other)
7821
 
7822
class getPendingOrdersInventory_result:
7823
  """
7824
  Attributes:
7825
   - success
7826
  """
7827
 
7828
  thrift_spec = (
7829
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
7830
  )
7831
 
7832
  def __init__(self, success=None,):
7833
    self.success = success
7834
 
7835
  def read(self, iprot):
7836
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7837
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7838
      return
7839
    iprot.readStructBegin()
7840
    while True:
7841
      (fname, ftype, fid) = iprot.readFieldBegin()
7842
      if ftype == TType.STOP:
7843
        break
7844
      if fid == 0:
7845
        if ftype == TType.LIST:
7846
          self.success = []
8182 amar.kumar 7847
          (_etype90, _size87) = iprot.readListBegin()
7848
          for _i91 in xrange(_size87):
7849
            _elem92 = AvailableAndReservedStock()
7850
            _elem92.read(iprot)
7851
            self.success.append(_elem92)
5944 mandeep.dh 7852
          iprot.readListEnd()
7853
        else:
7854
          iprot.skip(ftype)
7855
      else:
7856
        iprot.skip(ftype)
7857
      iprot.readFieldEnd()
7858
    iprot.readStructEnd()
7859
 
7860
  def write(self, oprot):
7861
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7862
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7863
      return
7864
    oprot.writeStructBegin('getPendingOrdersInventory_result')
7865
    if self.success is not None:
7866
      oprot.writeFieldBegin('success', TType.LIST, 0)
7867
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7868
      for iter93 in self.success:
7869
        iter93.write(oprot)
5944 mandeep.dh 7870
      oprot.writeListEnd()
7871
      oprot.writeFieldEnd()
7872
    oprot.writeFieldStop()
7873
    oprot.writeStructEnd()
7874
 
7875
  def validate(self):
7876
    return
7877
 
7878
 
7879
  def __repr__(self):
7880
    L = ['%s=%r' % (key, value)
7881
      for key, value in self.__dict__.iteritems()]
7882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7883
 
7884
  def __eq__(self, other):
7885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7886
 
7887
  def __ne__(self, other):
7888
    return not (self == other)
7889
 
7890
class getWarehouses_args:
7891
  """
7892
  Attributes:
7893
   - warehouseType
7894
   - inventoryType
7895
   - vendorId
7896
   - billingWarehouseId
7897
   - shippingWarehouseId
7898
  """
7899
 
7900
  thrift_spec = (
7901
    None, # 0
7902
    (1, TType.I32, 'warehouseType', None, None, ), # 1
7903
    (2, TType.I32, 'inventoryType', None, None, ), # 2
7904
    (3, TType.I64, 'vendorId', None, None, ), # 3
7905
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
7906
    (5, TType.I64, 'shippingWarehouseId', None, None, ), # 5
7907
  )
7908
 
7909
  def __init__(self, warehouseType=None, inventoryType=None, vendorId=None, billingWarehouseId=None, shippingWarehouseId=None,):
7910
    self.warehouseType = warehouseType
7911
    self.inventoryType = inventoryType
7912
    self.vendorId = vendorId
7913
    self.billingWarehouseId = billingWarehouseId
7914
    self.shippingWarehouseId = shippingWarehouseId
7915
 
7916
  def read(self, iprot):
7917
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7918
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7919
      return
7920
    iprot.readStructBegin()
7921
    while True:
7922
      (fname, ftype, fid) = iprot.readFieldBegin()
7923
      if ftype == TType.STOP:
7924
        break
7925
      if fid == 1:
7926
        if ftype == TType.I32:
7927
          self.warehouseType = iprot.readI32();
7928
        else:
7929
          iprot.skip(ftype)
7930
      elif fid == 2:
7931
        if ftype == TType.I32:
7932
          self.inventoryType = iprot.readI32();
7933
        else:
7934
          iprot.skip(ftype)
7935
      elif fid == 3:
7936
        if ftype == TType.I64:
7937
          self.vendorId = iprot.readI64();
7938
        else:
7939
          iprot.skip(ftype)
7940
      elif fid == 4:
7941
        if ftype == TType.I64:
7942
          self.billingWarehouseId = iprot.readI64();
7943
        else:
7944
          iprot.skip(ftype)
7945
      elif fid == 5:
7946
        if ftype == TType.I64:
7947
          self.shippingWarehouseId = iprot.readI64();
7948
        else:
7949
          iprot.skip(ftype)
7950
      else:
7951
        iprot.skip(ftype)
7952
      iprot.readFieldEnd()
7953
    iprot.readStructEnd()
7954
 
7955
  def write(self, oprot):
7956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7958
      return
7959
    oprot.writeStructBegin('getWarehouses_args')
7960
    if self.warehouseType is not None:
7961
      oprot.writeFieldBegin('warehouseType', TType.I32, 1)
7962
      oprot.writeI32(self.warehouseType)
7963
      oprot.writeFieldEnd()
7964
    if self.inventoryType is not None:
7965
      oprot.writeFieldBegin('inventoryType', TType.I32, 2)
7966
      oprot.writeI32(self.inventoryType)
7967
      oprot.writeFieldEnd()
7968
    if self.vendorId is not None:
7969
      oprot.writeFieldBegin('vendorId', TType.I64, 3)
7970
      oprot.writeI64(self.vendorId)
7971
      oprot.writeFieldEnd()
7972
    if self.billingWarehouseId is not None:
7973
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
7974
      oprot.writeI64(self.billingWarehouseId)
7975
      oprot.writeFieldEnd()
7976
    if self.shippingWarehouseId is not None:
7977
      oprot.writeFieldBegin('shippingWarehouseId', TType.I64, 5)
7978
      oprot.writeI64(self.shippingWarehouseId)
7979
      oprot.writeFieldEnd()
7980
    oprot.writeFieldStop()
7981
    oprot.writeStructEnd()
7982
 
7983
  def validate(self):
7984
    return
7985
 
7986
 
7987
  def __repr__(self):
7988
    L = ['%s=%r' % (key, value)
7989
      for key, value in self.__dict__.iteritems()]
7990
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7991
 
7992
  def __eq__(self, other):
7993
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7994
 
7995
  def __ne__(self, other):
7996
    return not (self == other)
7997
 
7998
class getWarehouses_result:
7999
  """
8000
  Attributes:
8001
   - success
8002
  """
8003
 
8004
  thrift_spec = (
8005
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
8006
  )
8007
 
8008
  def __init__(self, success=None,):
8009
    self.success = success
8010
 
8011
  def read(self, iprot):
8012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8014
      return
8015
    iprot.readStructBegin()
8016
    while True:
8017
      (fname, ftype, fid) = iprot.readFieldBegin()
8018
      if ftype == TType.STOP:
8019
        break
8020
      if fid == 0:
8021
        if ftype == TType.LIST:
8022
          self.success = []
8182 amar.kumar 8023
          (_etype97, _size94) = iprot.readListBegin()
8024
          for _i98 in xrange(_size94):
8025
            _elem99 = Warehouse()
8026
            _elem99.read(iprot)
8027
            self.success.append(_elem99)
5944 mandeep.dh 8028
          iprot.readListEnd()
8029
        else:
8030
          iprot.skip(ftype)
8031
      else:
8032
        iprot.skip(ftype)
8033
      iprot.readFieldEnd()
8034
    iprot.readStructEnd()
8035
 
8036
  def write(self, oprot):
8037
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8038
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8039
      return
8040
    oprot.writeStructBegin('getWarehouses_result')
8041
    if self.success is not None:
8042
      oprot.writeFieldBegin('success', TType.LIST, 0)
8043
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8044
      for iter100 in self.success:
8045
        iter100.write(oprot)
5944 mandeep.dh 8046
      oprot.writeListEnd()
8047
      oprot.writeFieldEnd()
8048
    oprot.writeFieldStop()
8049
    oprot.writeStructEnd()
8050
 
8051
  def validate(self):
8052
    return
8053
 
8054
 
8055
  def __repr__(self):
8056
    L = ['%s=%r' % (key, value)
8057
      for key, value in self.__dict__.iteritems()]
8058
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8059
 
8060
  def __eq__(self, other):
8061
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8062
 
8063
  def __ne__(self, other):
8064
    return not (self == other)
8065
 
8066
class resetAvailability_args:
8067
  """
8068
  Attributes:
8069
   - itemKey
8070
   - vendorId
8071
   - quantity
8072
   - warehouseId
8073
  """
8074
 
8075
  thrift_spec = (
8076
    None, # 0
8077
    (1, TType.STRING, 'itemKey', None, None, ), # 1
8078
    (2, TType.I64, 'vendorId', None, None, ), # 2
8079
    (3, TType.I64, 'quantity', None, None, ), # 3
8080
    (4, TType.I64, 'warehouseId', None, None, ), # 4
8081
  )
8082
 
8083
  def __init__(self, itemKey=None, vendorId=None, quantity=None, warehouseId=None,):
8084
    self.itemKey = itemKey
8085
    self.vendorId = vendorId
8086
    self.quantity = quantity
8087
    self.warehouseId = warehouseId
8088
 
8089
  def read(self, iprot):
8090
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8091
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8092
      return
8093
    iprot.readStructBegin()
8094
    while True:
8095
      (fname, ftype, fid) = iprot.readFieldBegin()
8096
      if ftype == TType.STOP:
8097
        break
8098
      if fid == 1:
8099
        if ftype == TType.STRING:
8100
          self.itemKey = iprot.readString();
8101
        else:
8102
          iprot.skip(ftype)
8103
      elif fid == 2:
8104
        if ftype == TType.I64:
8105
          self.vendorId = iprot.readI64();
8106
        else:
8107
          iprot.skip(ftype)
8108
      elif fid == 3:
8109
        if ftype == TType.I64:
8110
          self.quantity = iprot.readI64();
8111
        else:
8112
          iprot.skip(ftype)
8113
      elif fid == 4:
8114
        if ftype == TType.I64:
8115
          self.warehouseId = iprot.readI64();
8116
        else:
8117
          iprot.skip(ftype)
8118
      else:
8119
        iprot.skip(ftype)
8120
      iprot.readFieldEnd()
8121
    iprot.readStructEnd()
8122
 
8123
  def write(self, oprot):
8124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8126
      return
8127
    oprot.writeStructBegin('resetAvailability_args')
8128
    if self.itemKey is not None:
8129
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
8130
      oprot.writeString(self.itemKey)
8131
      oprot.writeFieldEnd()
8132
    if self.vendorId is not None:
8133
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
8134
      oprot.writeI64(self.vendorId)
8135
      oprot.writeFieldEnd()
8136
    if self.quantity is not None:
8137
      oprot.writeFieldBegin('quantity', TType.I64, 3)
8138
      oprot.writeI64(self.quantity)
8139
      oprot.writeFieldEnd()
8140
    if self.warehouseId is not None:
8141
      oprot.writeFieldBegin('warehouseId', TType.I64, 4)
8142
      oprot.writeI64(self.warehouseId)
8143
      oprot.writeFieldEnd()
8144
    oprot.writeFieldStop()
8145
    oprot.writeStructEnd()
8146
 
8147
  def validate(self):
8148
    return
8149
 
8150
 
8151
  def __repr__(self):
8152
    L = ['%s=%r' % (key, value)
8153
      for key, value in self.__dict__.iteritems()]
8154
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8155
 
8156
  def __eq__(self, other):
8157
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8158
 
8159
  def __ne__(self, other):
8160
    return not (self == other)
8161
 
8162
class resetAvailability_result:
8163
  """
8164
  Attributes:
8165
   - cex
8166
  """
8167
 
8168
  thrift_spec = (
8169
    None, # 0
8170
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8171
  )
8172
 
8173
  def __init__(self, cex=None,):
8174
    self.cex = cex
8175
 
8176
  def read(self, iprot):
8177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8179
      return
8180
    iprot.readStructBegin()
8181
    while True:
8182
      (fname, ftype, fid) = iprot.readFieldBegin()
8183
      if ftype == TType.STOP:
8184
        break
8185
      if fid == 1:
8186
        if ftype == TType.STRUCT:
8187
          self.cex = InventoryServiceException()
8188
          self.cex.read(iprot)
8189
        else:
8190
          iprot.skip(ftype)
8191
      else:
8192
        iprot.skip(ftype)
8193
      iprot.readFieldEnd()
8194
    iprot.readStructEnd()
8195
 
8196
  def write(self, oprot):
8197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8199
      return
8200
    oprot.writeStructBegin('resetAvailability_result')
8201
    if self.cex is not None:
8202
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8203
      self.cex.write(oprot)
8204
      oprot.writeFieldEnd()
8205
    oprot.writeFieldStop()
8206
    oprot.writeStructEnd()
8207
 
8208
  def validate(self):
8209
    return
8210
 
8211
 
8212
  def __repr__(self):
8213
    L = ['%s=%r' % (key, value)
8214
      for key, value in self.__dict__.iteritems()]
8215
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8216
 
8217
  def __eq__(self, other):
8218
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8219
 
8220
  def __ne__(self, other):
8221
    return not (self == other)
8222
 
8223
class resetAvailabilityForWarehouse_args:
8224
  """
8225
  Attributes:
8226
   - warehouseId
8227
  """
8228
 
8229
  thrift_spec = (
8230
    None, # 0
8231
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8232
  )
8233
 
8234
  def __init__(self, warehouseId=None,):
8235
    self.warehouseId = warehouseId
8236
 
8237
  def read(self, iprot):
8238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8240
      return
8241
    iprot.readStructBegin()
8242
    while True:
8243
      (fname, ftype, fid) = iprot.readFieldBegin()
8244
      if ftype == TType.STOP:
8245
        break
8246
      if fid == 1:
8247
        if ftype == TType.I64:
8248
          self.warehouseId = iprot.readI64();
8249
        else:
8250
          iprot.skip(ftype)
8251
      else:
8252
        iprot.skip(ftype)
8253
      iprot.readFieldEnd()
8254
    iprot.readStructEnd()
8255
 
8256
  def write(self, oprot):
8257
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8258
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8259
      return
8260
    oprot.writeStructBegin('resetAvailabilityForWarehouse_args')
8261
    if self.warehouseId is not None:
8262
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8263
      oprot.writeI64(self.warehouseId)
8264
      oprot.writeFieldEnd()
8265
    oprot.writeFieldStop()
8266
    oprot.writeStructEnd()
8267
 
8268
  def validate(self):
8269
    return
8270
 
8271
 
8272
  def __repr__(self):
8273
    L = ['%s=%r' % (key, value)
8274
      for key, value in self.__dict__.iteritems()]
8275
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8276
 
8277
  def __eq__(self, other):
8278
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8279
 
8280
  def __ne__(self, other):
8281
    return not (self == other)
8282
 
8283
class resetAvailabilityForWarehouse_result:
8284
  """
8285
  Attributes:
8286
   - cex
8287
  """
8288
 
8289
  thrift_spec = (
8290
    None, # 0
8291
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8292
  )
8293
 
8294
  def __init__(self, cex=None,):
8295
    self.cex = cex
8296
 
8297
  def read(self, iprot):
8298
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8299
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8300
      return
8301
    iprot.readStructBegin()
8302
    while True:
8303
      (fname, ftype, fid) = iprot.readFieldBegin()
8304
      if ftype == TType.STOP:
8305
        break
8306
      if fid == 1:
8307
        if ftype == TType.STRUCT:
8308
          self.cex = InventoryServiceException()
8309
          self.cex.read(iprot)
8310
        else:
8311
          iprot.skip(ftype)
8312
      else:
8313
        iprot.skip(ftype)
8314
      iprot.readFieldEnd()
8315
    iprot.readStructEnd()
8316
 
8317
  def write(self, oprot):
8318
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8319
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8320
      return
8321
    oprot.writeStructBegin('resetAvailabilityForWarehouse_result')
8322
    if self.cex is not None:
8323
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8324
      self.cex.write(oprot)
8325
      oprot.writeFieldEnd()
8326
    oprot.writeFieldStop()
8327
    oprot.writeStructEnd()
8328
 
8329
  def validate(self):
8330
    return
8331
 
8332
 
8333
  def __repr__(self):
8334
    L = ['%s=%r' % (key, value)
8335
      for key, value in self.__dict__.iteritems()]
8336
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8337
 
8338
  def __eq__(self, other):
8339
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8340
 
8341
  def __ne__(self, other):
8342
    return not (self == other)
8343
 
8344
class getItemKeysToBeProcessed_args:
8345
  """
8346
  Attributes:
8347
   - warehouseId
8348
  """
8349
 
8350
  thrift_spec = (
8351
    None, # 0
8352
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8353
  )
8354
 
8355
  def __init__(self, warehouseId=None,):
8356
    self.warehouseId = warehouseId
8357
 
8358
  def read(self, iprot):
8359
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8360
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8361
      return
8362
    iprot.readStructBegin()
8363
    while True:
8364
      (fname, ftype, fid) = iprot.readFieldBegin()
8365
      if ftype == TType.STOP:
8366
        break
8367
      if fid == 1:
8368
        if ftype == TType.I64:
8369
          self.warehouseId = iprot.readI64();
8370
        else:
8371
          iprot.skip(ftype)
8372
      else:
8373
        iprot.skip(ftype)
8374
      iprot.readFieldEnd()
8375
    iprot.readStructEnd()
8376
 
8377
  def write(self, oprot):
8378
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8379
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8380
      return
8381
    oprot.writeStructBegin('getItemKeysToBeProcessed_args')
8382
    if self.warehouseId is not None:
8383
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8384
      oprot.writeI64(self.warehouseId)
8385
      oprot.writeFieldEnd()
8386
    oprot.writeFieldStop()
8387
    oprot.writeStructEnd()
8388
 
8389
  def validate(self):
8390
    return
8391
 
8392
 
8393
  def __repr__(self):
8394
    L = ['%s=%r' % (key, value)
8395
      for key, value in self.__dict__.iteritems()]
8396
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8397
 
8398
  def __eq__(self, other):
8399
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8400
 
8401
  def __ne__(self, other):
8402
    return not (self == other)
8403
 
8404
class getItemKeysToBeProcessed_result:
8405
  """
8406
  Attributes:
8407
   - success
8408
  """
8409
 
8410
  thrift_spec = (
8411
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
8412
  )
8413
 
8414
  def __init__(self, success=None,):
8415
    self.success = success
8416
 
8417
  def read(self, iprot):
8418
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8419
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8420
      return
8421
    iprot.readStructBegin()
8422
    while True:
8423
      (fname, ftype, fid) = iprot.readFieldBegin()
8424
      if ftype == TType.STOP:
8425
        break
8426
      if fid == 0:
8427
        if ftype == TType.LIST:
8428
          self.success = []
8182 amar.kumar 8429
          (_etype104, _size101) = iprot.readListBegin()
8430
          for _i105 in xrange(_size101):
8431
            _elem106 = iprot.readString();
8432
            self.success.append(_elem106)
5944 mandeep.dh 8433
          iprot.readListEnd()
8434
        else:
8435
          iprot.skip(ftype)
8436
      else:
8437
        iprot.skip(ftype)
8438
      iprot.readFieldEnd()
8439
    iprot.readStructEnd()
8440
 
8441
  def write(self, oprot):
8442
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8443
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8444
      return
8445
    oprot.writeStructBegin('getItemKeysToBeProcessed_result')
8446
    if self.success is not None:
8447
      oprot.writeFieldBegin('success', TType.LIST, 0)
8448
      oprot.writeListBegin(TType.STRING, len(self.success))
8182 amar.kumar 8449
      for iter107 in self.success:
8450
        oprot.writeString(iter107)
5944 mandeep.dh 8451
      oprot.writeListEnd()
8452
      oprot.writeFieldEnd()
8453
    oprot.writeFieldStop()
8454
    oprot.writeStructEnd()
8455
 
8456
  def validate(self):
8457
    return
8458
 
8459
 
8460
  def __repr__(self):
8461
    L = ['%s=%r' % (key, value)
8462
      for key, value in self.__dict__.iteritems()]
8463
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8464
 
8465
  def __eq__(self, other):
8466
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8467
 
8468
  def __ne__(self, other):
8469
    return not (self == other)
8470
 
8471
class markMissedInventoryUpdatesAsProcessed_args:
8472
  """
8473
  Attributes:
8474
   - itemKey
8475
   - warehouseId
8476
  """
8477
 
8478
  thrift_spec = (
8479
    None, # 0
8480
    (1, TType.STRING, 'itemKey', None, None, ), # 1
8481
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8482
  )
8483
 
8484
  def __init__(self, itemKey=None, warehouseId=None,):
8485
    self.itemKey = itemKey
8486
    self.warehouseId = warehouseId
8487
 
8488
  def read(self, iprot):
8489
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8490
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8491
      return
8492
    iprot.readStructBegin()
8493
    while True:
8494
      (fname, ftype, fid) = iprot.readFieldBegin()
8495
      if ftype == TType.STOP:
8496
        break
8497
      if fid == 1:
8498
        if ftype == TType.STRING:
8499
          self.itemKey = iprot.readString();
8500
        else:
8501
          iprot.skip(ftype)
8502
      elif fid == 2:
8503
        if ftype == TType.I64:
8504
          self.warehouseId = iprot.readI64();
8505
        else:
8506
          iprot.skip(ftype)
8507
      else:
8508
        iprot.skip(ftype)
8509
      iprot.readFieldEnd()
8510
    iprot.readStructEnd()
8511
 
8512
  def write(self, oprot):
8513
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8514
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8515
      return
8516
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_args')
8517
    if self.itemKey is not None:
8518
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
8519
      oprot.writeString(self.itemKey)
8520
      oprot.writeFieldEnd()
8521
    if self.warehouseId is not None:
8522
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8523
      oprot.writeI64(self.warehouseId)
8524
      oprot.writeFieldEnd()
8525
    oprot.writeFieldStop()
8526
    oprot.writeStructEnd()
8527
 
8528
  def validate(self):
8529
    return
8530
 
8531
 
8532
  def __repr__(self):
8533
    L = ['%s=%r' % (key, value)
8534
      for key, value in self.__dict__.iteritems()]
8535
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8536
 
8537
  def __eq__(self, other):
8538
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8539
 
8540
  def __ne__(self, other):
8541
    return not (self == other)
8542
 
8543
class markMissedInventoryUpdatesAsProcessed_result:
8544
 
8545
  thrift_spec = (
8546
  )
8547
 
8548
  def read(self, iprot):
8549
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8550
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8551
      return
8552
    iprot.readStructBegin()
8553
    while True:
8554
      (fname, ftype, fid) = iprot.readFieldBegin()
8555
      if ftype == TType.STOP:
8556
        break
8557
      else:
8558
        iprot.skip(ftype)
8559
      iprot.readFieldEnd()
8560
    iprot.readStructEnd()
8561
 
8562
  def write(self, oprot):
8563
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8564
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8565
      return
8566
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_result')
8567
    oprot.writeFieldStop()
8568
    oprot.writeStructEnd()
8569
 
8570
  def validate(self):
8571
    return
8572
 
8573
 
8574
  def __repr__(self):
8575
    L = ['%s=%r' % (key, value)
8576
      for key, value in self.__dict__.iteritems()]
8577
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8578
 
8579
  def __eq__(self, other):
8580
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8581
 
8582
  def __ne__(self, other):
8583
    return not (self == other)
8584
 
8585
class getIgnoredItemKeys_args:
8586
 
8587
  thrift_spec = (
8588
  )
8589
 
8590
  def read(self, iprot):
8591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8593
      return
8594
    iprot.readStructBegin()
8595
    while True:
8596
      (fname, ftype, fid) = iprot.readFieldBegin()
8597
      if ftype == TType.STOP:
8598
        break
8599
      else:
8600
        iprot.skip(ftype)
8601
      iprot.readFieldEnd()
8602
    iprot.readStructEnd()
8603
 
8604
  def write(self, oprot):
8605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8607
      return
8608
    oprot.writeStructBegin('getIgnoredItemKeys_args')
8609
    oprot.writeFieldStop()
8610
    oprot.writeStructEnd()
8611
 
8612
  def validate(self):
8613
    return
8614
 
8615
 
8616
  def __repr__(self):
8617
    L = ['%s=%r' % (key, value)
8618
      for key, value in self.__dict__.iteritems()]
8619
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8620
 
8621
  def __eq__(self, other):
8622
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8623
 
8624
  def __ne__(self, other):
8625
    return not (self == other)
8626
 
8627
class getIgnoredItemKeys_result:
8628
  """
8629
  Attributes:
8630
   - success
8631
  """
8632
 
8633
  thrift_spec = (
8634
    (0, TType.MAP, 'success', (TType.STRING,None,TType.MAP,(TType.I64,None,TType.I64,None)), None, ), # 0
8635
  )
8636
 
8637
  def __init__(self, success=None,):
8638
    self.success = success
8639
 
8640
  def read(self, iprot):
8641
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8642
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8643
      return
8644
    iprot.readStructBegin()
8645
    while True:
8646
      (fname, ftype, fid) = iprot.readFieldBegin()
8647
      if ftype == TType.STOP:
8648
        break
8649
      if fid == 0:
8650
        if ftype == TType.MAP:
8651
          self.success = {}
8182 amar.kumar 8652
          (_ktype109, _vtype110, _size108 ) = iprot.readMapBegin() 
8653
          for _i112 in xrange(_size108):
8654
            _key113 = iprot.readString();
8655
            _val114 = {}
8656
            (_ktype116, _vtype117, _size115 ) = iprot.readMapBegin() 
8657
            for _i119 in xrange(_size115):
8658
              _key120 = iprot.readI64();
8659
              _val121 = iprot.readI64();
8660
              _val114[_key120] = _val121
5944 mandeep.dh 8661
            iprot.readMapEnd()
8182 amar.kumar 8662
            self.success[_key113] = _val114
5944 mandeep.dh 8663
          iprot.readMapEnd()
8664
        else:
8665
          iprot.skip(ftype)
8666
      else:
8667
        iprot.skip(ftype)
8668
      iprot.readFieldEnd()
8669
    iprot.readStructEnd()
8670
 
8671
  def write(self, oprot):
8672
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8673
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8674
      return
8675
    oprot.writeStructBegin('getIgnoredItemKeys_result')
8676
    if self.success is not None:
8677
      oprot.writeFieldBegin('success', TType.MAP, 0)
8678
      oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.success))
8182 amar.kumar 8679
      for kiter122,viter123 in self.success.items():
8680
        oprot.writeString(kiter122)
8681
        oprot.writeMapBegin(TType.I64, TType.I64, len(viter123))
8682
        for kiter124,viter125 in viter123.items():
8683
          oprot.writeI64(kiter124)
8684
          oprot.writeI64(viter125)
5944 mandeep.dh 8685
        oprot.writeMapEnd()
8686
      oprot.writeMapEnd()
8687
      oprot.writeFieldEnd()
8688
    oprot.writeFieldStop()
8689
    oprot.writeStructEnd()
8690
 
8691
  def validate(self):
8692
    return
8693
 
8694
 
8695
  def __repr__(self):
8696
    L = ['%s=%r' % (key, value)
8697
      for key, value in self.__dict__.iteritems()]
8698
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8699
 
8700
  def __eq__(self, other):
8701
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8702
 
8703
  def __ne__(self, other):
8704
    return not (self == other)
8705
 
8706
class addBadInventory_args:
8707
  """
8708
  Attributes:
8709
   - itemId
8710
   - warehouseId
8711
   - quantity
8712
  """
8713
 
8714
  thrift_spec = (
8715
    None, # 0
8716
    (1, TType.I64, 'itemId', None, None, ), # 1
8717
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8718
    (3, TType.I64, 'quantity', None, None, ), # 3
8719
  )
8720
 
8721
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
8722
    self.itemId = itemId
8723
    self.warehouseId = warehouseId
8724
    self.quantity = quantity
8725
 
8726
  def read(self, iprot):
8727
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8728
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8729
      return
8730
    iprot.readStructBegin()
8731
    while True:
8732
      (fname, ftype, fid) = iprot.readFieldBegin()
8733
      if ftype == TType.STOP:
8734
        break
8735
      if fid == 1:
8736
        if ftype == TType.I64:
8737
          self.itemId = iprot.readI64();
8738
        else:
8739
          iprot.skip(ftype)
8740
      elif fid == 2:
8741
        if ftype == TType.I64:
8742
          self.warehouseId = iprot.readI64();
8743
        else:
8744
          iprot.skip(ftype)
8745
      elif fid == 3:
8746
        if ftype == TType.I64:
8747
          self.quantity = iprot.readI64();
8748
        else:
8749
          iprot.skip(ftype)
8750
      else:
8751
        iprot.skip(ftype)
8752
      iprot.readFieldEnd()
8753
    iprot.readStructEnd()
8754
 
8755
  def write(self, oprot):
8756
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8757
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8758
      return
8759
    oprot.writeStructBegin('addBadInventory_args')
8760
    if self.itemId is not None:
8761
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8762
      oprot.writeI64(self.itemId)
8763
      oprot.writeFieldEnd()
8764
    if self.warehouseId is not None:
8765
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8766
      oprot.writeI64(self.warehouseId)
8767
      oprot.writeFieldEnd()
8768
    if self.quantity is not None:
8769
      oprot.writeFieldBegin('quantity', TType.I64, 3)
8770
      oprot.writeI64(self.quantity)
8771
      oprot.writeFieldEnd()
8772
    oprot.writeFieldStop()
8773
    oprot.writeStructEnd()
8774
 
8775
  def validate(self):
8776
    return
8777
 
8778
 
8779
  def __repr__(self):
8780
    L = ['%s=%r' % (key, value)
8781
      for key, value in self.__dict__.iteritems()]
8782
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8783
 
8784
  def __eq__(self, other):
8785
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8786
 
8787
  def __ne__(self, other):
8788
    return not (self == other)
8789
 
8790
class addBadInventory_result:
8791
  """
8792
  Attributes:
8793
   - cex
8794
  """
8795
 
8796
  thrift_spec = (
8797
    None, # 0
8798
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8799
  )
8800
 
8801
  def __init__(self, cex=None,):
8802
    self.cex = cex
8803
 
8804
  def read(self, iprot):
8805
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8806
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8807
      return
8808
    iprot.readStructBegin()
8809
    while True:
8810
      (fname, ftype, fid) = iprot.readFieldBegin()
8811
      if ftype == TType.STOP:
8812
        break
8813
      if fid == 1:
8814
        if ftype == TType.STRUCT:
8815
          self.cex = InventoryServiceException()
8816
          self.cex.read(iprot)
8817
        else:
8818
          iprot.skip(ftype)
8819
      else:
8820
        iprot.skip(ftype)
8821
      iprot.readFieldEnd()
8822
    iprot.readStructEnd()
8823
 
8824
  def write(self, oprot):
8825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8827
      return
8828
    oprot.writeStructBegin('addBadInventory_result')
8829
    if self.cex is not None:
8830
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8831
      self.cex.write(oprot)
8832
      oprot.writeFieldEnd()
8833
    oprot.writeFieldStop()
8834
    oprot.writeStructEnd()
8835
 
8836
  def validate(self):
8837
    return
8838
 
8839
 
8840
  def __repr__(self):
8841
    L = ['%s=%r' % (key, value)
8842
      for key, value in self.__dict__.iteritems()]
8843
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8844
 
8845
  def __eq__(self, other):
8846
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8847
 
8848
  def __ne__(self, other):
8849
    return not (self == other)
8850
 
8851
class getShippingLocations_args:
8852
 
8853
  thrift_spec = (
8854
  )
8855
 
8856
  def read(self, iprot):
8857
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8858
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8859
      return
8860
    iprot.readStructBegin()
8861
    while True:
8862
      (fname, ftype, fid) = iprot.readFieldBegin()
8863
      if ftype == TType.STOP:
8864
        break
8865
      else:
8866
        iprot.skip(ftype)
8867
      iprot.readFieldEnd()
8868
    iprot.readStructEnd()
8869
 
8870
  def write(self, oprot):
8871
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8872
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8873
      return
8874
    oprot.writeStructBegin('getShippingLocations_args')
8875
    oprot.writeFieldStop()
8876
    oprot.writeStructEnd()
8877
 
8878
  def validate(self):
8879
    return
8880
 
8881
 
8882
  def __repr__(self):
8883
    L = ['%s=%r' % (key, value)
8884
      for key, value in self.__dict__.iteritems()]
8885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8886
 
8887
  def __eq__(self, other):
8888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8889
 
8890
  def __ne__(self, other):
8891
    return not (self == other)
8892
 
8893
class getShippingLocations_result:
8894
  """
8895
  Attributes:
8896
   - success
8897
  """
8898
 
8899
  thrift_spec = (
8900
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
8901
  )
8902
 
8903
  def __init__(self, success=None,):
8904
    self.success = success
8905
 
8906
  def read(self, iprot):
8907
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8908
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8909
      return
8910
    iprot.readStructBegin()
8911
    while True:
8912
      (fname, ftype, fid) = iprot.readFieldBegin()
8913
      if ftype == TType.STOP:
8914
        break
8915
      if fid == 0:
8916
        if ftype == TType.LIST:
8917
          self.success = []
8182 amar.kumar 8918
          (_etype129, _size126) = iprot.readListBegin()
8919
          for _i130 in xrange(_size126):
8920
            _elem131 = Warehouse()
8921
            _elem131.read(iprot)
8922
            self.success.append(_elem131)
5944 mandeep.dh 8923
          iprot.readListEnd()
8924
        else:
8925
          iprot.skip(ftype)
8926
      else:
8927
        iprot.skip(ftype)
8928
      iprot.readFieldEnd()
8929
    iprot.readStructEnd()
8930
 
8931
  def write(self, oprot):
8932
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8933
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8934
      return
8935
    oprot.writeStructBegin('getShippingLocations_result')
8936
    if self.success is not None:
8937
      oprot.writeFieldBegin('success', TType.LIST, 0)
8938
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8939
      for iter132 in self.success:
8940
        iter132.write(oprot)
5944 mandeep.dh 8941
      oprot.writeListEnd()
8942
      oprot.writeFieldEnd()
8943
    oprot.writeFieldStop()
8944
    oprot.writeStructEnd()
8945
 
8946
  def validate(self):
8947
    return
8948
 
8949
 
8950
  def __repr__(self):
8951
    L = ['%s=%r' % (key, value)
8952
      for key, value in self.__dict__.iteritems()]
8953
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8954
 
8955
  def __eq__(self, other):
8956
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8957
 
8958
  def __ne__(self, other):
8959
    return not (self == other)
8960
 
8961
class getAllVendorItemMappings_args:
8962
 
8963
  thrift_spec = (
8964
  )
8965
 
8966
  def read(self, iprot):
8967
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8968
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8969
      return
8970
    iprot.readStructBegin()
8971
    while True:
8972
      (fname, ftype, fid) = iprot.readFieldBegin()
8973
      if ftype == TType.STOP:
8974
        break
8975
      else:
8976
        iprot.skip(ftype)
8977
      iprot.readFieldEnd()
8978
    iprot.readStructEnd()
8979
 
8980
  def write(self, oprot):
8981
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8982
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8983
      return
8984
    oprot.writeStructBegin('getAllVendorItemMappings_args')
8985
    oprot.writeFieldStop()
8986
    oprot.writeStructEnd()
8987
 
8988
  def validate(self):
8989
    return
8990
 
8991
 
8992
  def __repr__(self):
8993
    L = ['%s=%r' % (key, value)
8994
      for key, value in self.__dict__.iteritems()]
8995
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8996
 
8997
  def __eq__(self, other):
8998
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8999
 
9000
  def __ne__(self, other):
9001
    return not (self == other)
9002
 
9003
class getAllVendorItemMappings_result:
9004
  """
9005
  Attributes:
9006
   - success
9007
  """
9008
 
9009
  thrift_spec = (
9010
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
9011
  )
9012
 
9013
  def __init__(self, success=None,):
9014
    self.success = success
9015
 
9016
  def read(self, iprot):
9017
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9018
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9019
      return
9020
    iprot.readStructBegin()
9021
    while True:
9022
      (fname, ftype, fid) = iprot.readFieldBegin()
9023
      if ftype == TType.STOP:
9024
        break
9025
      if fid == 0:
9026
        if ftype == TType.LIST:
9027
          self.success = []
8182 amar.kumar 9028
          (_etype136, _size133) = iprot.readListBegin()
9029
          for _i137 in xrange(_size133):
9030
            _elem138 = VendorItemMapping()
9031
            _elem138.read(iprot)
9032
            self.success.append(_elem138)
5944 mandeep.dh 9033
          iprot.readListEnd()
9034
        else:
9035
          iprot.skip(ftype)
9036
      else:
9037
        iprot.skip(ftype)
9038
      iprot.readFieldEnd()
9039
    iprot.readStructEnd()
9040
 
9041
  def write(self, oprot):
9042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9044
      return
9045
    oprot.writeStructBegin('getAllVendorItemMappings_result')
9046
    if self.success is not None:
9047
      oprot.writeFieldBegin('success', TType.LIST, 0)
9048
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 9049
      for iter139 in self.success:
9050
        iter139.write(oprot)
5944 mandeep.dh 9051
      oprot.writeListEnd()
9052
      oprot.writeFieldEnd()
9053
    oprot.writeFieldStop()
9054
    oprot.writeStructEnd()
9055
 
9056
  def validate(self):
9057
    return
9058
 
9059
 
9060
  def __repr__(self):
9061
    L = ['%s=%r' % (key, value)
9062
      for key, value in self.__dict__.iteritems()]
9063
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9064
 
9065
  def __eq__(self, other):
9066
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9067
 
9068
  def __ne__(self, other):
9069
    return not (self == other)
9070
 
9071
class getInventorySnapshot_args:
9072
  """
9073
  Attributes:
9074
   - warehouseId
9075
  """
9076
 
9077
  thrift_spec = (
9078
    None, # 0
9079
    (1, TType.I64, 'warehouseId', None, None, ), # 1
9080
  )
9081
 
9082
  def __init__(self, warehouseId=None,):
9083
    self.warehouseId = warehouseId
9084
 
9085
  def read(self, iprot):
9086
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9087
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9088
      return
9089
    iprot.readStructBegin()
9090
    while True:
9091
      (fname, ftype, fid) = iprot.readFieldBegin()
9092
      if ftype == TType.STOP:
9093
        break
9094
      if fid == 1:
9095
        if ftype == TType.I64:
9096
          self.warehouseId = iprot.readI64();
9097
        else:
9098
          iprot.skip(ftype)
9099
      else:
9100
        iprot.skip(ftype)
9101
      iprot.readFieldEnd()
9102
    iprot.readStructEnd()
9103
 
9104
  def write(self, oprot):
9105
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9106
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9107
      return
9108
    oprot.writeStructBegin('getInventorySnapshot_args')
9109
    if self.warehouseId is not None:
9110
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9111
      oprot.writeI64(self.warehouseId)
9112
      oprot.writeFieldEnd()
9113
    oprot.writeFieldStop()
9114
    oprot.writeStructEnd()
9115
 
9116
  def validate(self):
9117
    return
9118
 
9119
 
9120
  def __repr__(self):
9121
    L = ['%s=%r' % (key, value)
9122
      for key, value in self.__dict__.iteritems()]
9123
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9124
 
9125
  def __eq__(self, other):
9126
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9127
 
9128
  def __ne__(self, other):
9129
    return not (self == other)
9130
 
9131
class getInventorySnapshot_result:
9132
  """
9133
  Attributes:
9134
   - success
9135
  """
9136
 
9137
  thrift_spec = (
9138
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ItemInventory, ItemInventory.thrift_spec)), None, ), # 0
9139
  )
9140
 
9141
  def __init__(self, success=None,):
9142
    self.success = success
9143
 
9144
  def read(self, iprot):
9145
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9146
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9147
      return
9148
    iprot.readStructBegin()
9149
    while True:
9150
      (fname, ftype, fid) = iprot.readFieldBegin()
9151
      if ftype == TType.STOP:
9152
        break
9153
      if fid == 0:
9154
        if ftype == TType.MAP:
9155
          self.success = {}
8182 amar.kumar 9156
          (_ktype141, _vtype142, _size140 ) = iprot.readMapBegin() 
9157
          for _i144 in xrange(_size140):
9158
            _key145 = iprot.readI64();
9159
            _val146 = ItemInventory()
9160
            _val146.read(iprot)
9161
            self.success[_key145] = _val146
5944 mandeep.dh 9162
          iprot.readMapEnd()
9163
        else:
9164
          iprot.skip(ftype)
9165
      else:
9166
        iprot.skip(ftype)
9167
      iprot.readFieldEnd()
9168
    iprot.readStructEnd()
9169
 
9170
  def write(self, oprot):
9171
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9172
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9173
      return
9174
    oprot.writeStructBegin('getInventorySnapshot_result')
9175
    if self.success is not None:
9176
      oprot.writeFieldBegin('success', TType.MAP, 0)
9177
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
8182 amar.kumar 9178
      for kiter147,viter148 in self.success.items():
9179
        oprot.writeI64(kiter147)
9180
        viter148.write(oprot)
5944 mandeep.dh 9181
      oprot.writeMapEnd()
9182
      oprot.writeFieldEnd()
9183
    oprot.writeFieldStop()
9184
    oprot.writeStructEnd()
9185
 
9186
  def validate(self):
9187
    return
9188
 
9189
 
9190
  def __repr__(self):
9191
    L = ['%s=%r' % (key, value)
9192
      for key, value in self.__dict__.iteritems()]
9193
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9194
 
9195
  def __eq__(self, other):
9196
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9197
 
9198
  def __ne__(self, other):
9199
    return not (self == other)
9200
 
9201
class clearItemAvailabilityCache_args:
9202
 
9203
  thrift_spec = (
9204
  )
9205
 
9206
  def read(self, iprot):
9207
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9208
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9209
      return
9210
    iprot.readStructBegin()
9211
    while True:
9212
      (fname, ftype, fid) = iprot.readFieldBegin()
9213
      if ftype == TType.STOP:
9214
        break
9215
      else:
9216
        iprot.skip(ftype)
9217
      iprot.readFieldEnd()
9218
    iprot.readStructEnd()
9219
 
9220
  def write(self, oprot):
9221
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9222
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9223
      return
9224
    oprot.writeStructBegin('clearItemAvailabilityCache_args')
9225
    oprot.writeFieldStop()
9226
    oprot.writeStructEnd()
9227
 
9228
  def validate(self):
9229
    return
9230
 
9231
 
9232
  def __repr__(self):
9233
    L = ['%s=%r' % (key, value)
9234
      for key, value in self.__dict__.iteritems()]
9235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9236
 
9237
  def __eq__(self, other):
9238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9239
 
9240
  def __ne__(self, other):
9241
    return not (self == other)
9242
 
9243
class clearItemAvailabilityCache_result:
9244
 
9245
  thrift_spec = (
9246
  )
9247
 
9248
  def read(self, iprot):
9249
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9250
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9251
      return
9252
    iprot.readStructBegin()
9253
    while True:
9254
      (fname, ftype, fid) = iprot.readFieldBegin()
9255
      if ftype == TType.STOP:
9256
        break
9257
      else:
9258
        iprot.skip(ftype)
9259
      iprot.readFieldEnd()
9260
    iprot.readStructEnd()
9261
 
9262
  def write(self, oprot):
9263
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9264
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9265
      return
9266
    oprot.writeStructBegin('clearItemAvailabilityCache_result')
9267
    oprot.writeFieldStop()
9268
    oprot.writeStructEnd()
9269
 
9270
  def validate(self):
9271
    return
9272
 
9273
 
9274
  def __repr__(self):
9275
    L = ['%s=%r' % (key, value)
9276
      for key, value in self.__dict__.iteritems()]
9277
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9278
 
9279
  def __eq__(self, other):
9280
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9281
 
9282
  def __ne__(self, other):
9283
    return not (self == other)
9284
 
9285
class updateVendorString_args:
9286
  """
9287
  Attributes:
9288
   - warehouseId
9289
   - vendorString
9290
  """
9291
 
9292
  thrift_spec = (
9293
    None, # 0
9294
    (1, TType.I64, 'warehouseId', None, None, ), # 1
9295
    (2, TType.STRING, 'vendorString', None, None, ), # 2
9296
  )
9297
 
9298
  def __init__(self, warehouseId=None, vendorString=None,):
9299
    self.warehouseId = warehouseId
9300
    self.vendorString = vendorString
9301
 
9302
  def read(self, iprot):
9303
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9304
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9305
      return
9306
    iprot.readStructBegin()
9307
    while True:
9308
      (fname, ftype, fid) = iprot.readFieldBegin()
9309
      if ftype == TType.STOP:
9310
        break
9311
      if fid == 1:
9312
        if ftype == TType.I64:
9313
          self.warehouseId = iprot.readI64();
9314
        else:
9315
          iprot.skip(ftype)
9316
      elif fid == 2:
9317
        if ftype == TType.STRING:
9318
          self.vendorString = iprot.readString();
9319
        else:
9320
          iprot.skip(ftype)
9321
      else:
9322
        iprot.skip(ftype)
9323
      iprot.readFieldEnd()
9324
    iprot.readStructEnd()
9325
 
9326
  def write(self, oprot):
9327
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9328
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9329
      return
9330
    oprot.writeStructBegin('updateVendorString_args')
9331
    if self.warehouseId is not None:
9332
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9333
      oprot.writeI64(self.warehouseId)
9334
      oprot.writeFieldEnd()
9335
    if self.vendorString is not None:
9336
      oprot.writeFieldBegin('vendorString', TType.STRING, 2)
9337
      oprot.writeString(self.vendorString)
9338
      oprot.writeFieldEnd()
9339
    oprot.writeFieldStop()
9340
    oprot.writeStructEnd()
9341
 
9342
  def validate(self):
9343
    return
9344
 
9345
 
9346
  def __repr__(self):
9347
    L = ['%s=%r' % (key, value)
9348
      for key, value in self.__dict__.iteritems()]
9349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9350
 
9351
  def __eq__(self, other):
9352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9353
 
9354
  def __ne__(self, other):
9355
    return not (self == other)
9356
 
9357
class updateVendorString_result:
9358
 
9359
  thrift_spec = (
9360
  )
9361
 
9362
  def read(self, iprot):
9363
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9364
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9365
      return
9366
    iprot.readStructBegin()
9367
    while True:
9368
      (fname, ftype, fid) = iprot.readFieldBegin()
9369
      if ftype == TType.STOP:
9370
        break
9371
      else:
9372
        iprot.skip(ftype)
9373
      iprot.readFieldEnd()
9374
    iprot.readStructEnd()
9375
 
9376
  def write(self, oprot):
9377
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9378
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9379
      return
9380
    oprot.writeStructBegin('updateVendorString_result')
9381
    oprot.writeFieldStop()
9382
    oprot.writeStructEnd()
9383
 
9384
  def validate(self):
9385
    return
9386
 
9387
 
9388
  def __repr__(self):
9389
    L = ['%s=%r' % (key, value)
9390
      for key, value in self.__dict__.iteritems()]
9391
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9392
 
9393
  def __eq__(self, other):
9394
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9395
 
9396
  def __ne__(self, other):
9397
    return not (self == other)
6096 amit.gupta 9398
 
9399
class clearItemAvailabilityCacheForItem_args:
9400
  """
9401
  Attributes:
9402
   - item_id
9403
  """
9404
 
9405
  thrift_spec = (
9406
    None, # 0
9407
    (1, TType.I64, 'item_id', None, None, ), # 1
9408
  )
9409
 
9410
  def __init__(self, item_id=None,):
9411
    self.item_id = item_id
9412
 
9413
  def read(self, iprot):
9414
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9415
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9416
      return
9417
    iprot.readStructBegin()
9418
    while True:
9419
      (fname, ftype, fid) = iprot.readFieldBegin()
9420
      if ftype == TType.STOP:
9421
        break
9422
      if fid == 1:
9423
        if ftype == TType.I64:
9424
          self.item_id = iprot.readI64();
9425
        else:
9426
          iprot.skip(ftype)
9427
      else:
9428
        iprot.skip(ftype)
9429
      iprot.readFieldEnd()
9430
    iprot.readStructEnd()
9431
 
9432
  def write(self, oprot):
9433
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9434
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9435
      return
9436
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_args')
9437
    if self.item_id is not None:
9438
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9439
      oprot.writeI64(self.item_id)
9440
      oprot.writeFieldEnd()
9441
    oprot.writeFieldStop()
9442
    oprot.writeStructEnd()
9443
 
9444
  def validate(self):
9445
    return
9446
 
9447
 
9448
  def __repr__(self):
9449
    L = ['%s=%r' % (key, value)
9450
      for key, value in self.__dict__.iteritems()]
9451
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9452
 
9453
  def __eq__(self, other):
9454
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9455
 
9456
  def __ne__(self, other):
9457
    return not (self == other)
9458
 
9459
class clearItemAvailabilityCacheForItem_result:
9460
 
9461
  thrift_spec = (
9462
  )
9463
 
9464
  def read(self, iprot):
9465
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9466
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9467
      return
9468
    iprot.readStructBegin()
9469
    while True:
9470
      (fname, ftype, fid) = iprot.readFieldBegin()
9471
      if ftype == TType.STOP:
9472
        break
9473
      else:
9474
        iprot.skip(ftype)
9475
      iprot.readFieldEnd()
9476
    iprot.readStructEnd()
9477
 
9478
  def write(self, oprot):
9479
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9480
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9481
      return
9482
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_result')
9483
    oprot.writeFieldStop()
9484
    oprot.writeStructEnd()
9485
 
9486
  def validate(self):
9487
    return
9488
 
9489
 
9490
  def __repr__(self):
9491
    L = ['%s=%r' % (key, value)
9492
      for key, value in self.__dict__.iteritems()]
9493
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9494
 
9495
  def __eq__(self, other):
9496
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9497
 
9498
  def __ne__(self, other):
9499
    return not (self == other)
6467 amar.kumar 9500
 
9501
class getOurWarehouseIdForVendor_args:
9502
  """
9503
  Attributes:
9504
   - vendorId
7718 amar.kumar 9505
   - billingWarehouseId
6467 amar.kumar 9506
  """
9507
 
9508
  thrift_spec = (
9509
    None, # 0
9510
    (1, TType.I64, 'vendorId', None, None, ), # 1
7718 amar.kumar 9511
    (2, TType.I64, 'billingWarehouseId', None, None, ), # 2
6467 amar.kumar 9512
  )
9513
 
7718 amar.kumar 9514
  def __init__(self, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 9515
    self.vendorId = vendorId
7718 amar.kumar 9516
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 9517
 
9518
  def read(self, iprot):
9519
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9520
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9521
      return
9522
    iprot.readStructBegin()
9523
    while True:
9524
      (fname, ftype, fid) = iprot.readFieldBegin()
9525
      if ftype == TType.STOP:
9526
        break
9527
      if fid == 1:
9528
        if ftype == TType.I64:
9529
          self.vendorId = iprot.readI64();
9530
        else:
9531
          iprot.skip(ftype)
7718 amar.kumar 9532
      elif fid == 2:
9533
        if ftype == TType.I64:
9534
          self.billingWarehouseId = iprot.readI64();
9535
        else:
9536
          iprot.skip(ftype)
6467 amar.kumar 9537
      else:
9538
        iprot.skip(ftype)
9539
      iprot.readFieldEnd()
9540
    iprot.readStructEnd()
9541
 
9542
  def write(self, oprot):
9543
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9544
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9545
      return
9546
    oprot.writeStructBegin('getOurWarehouseIdForVendor_args')
9547
    if self.vendorId is not None:
9548
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
9549
      oprot.writeI64(self.vendorId)
9550
      oprot.writeFieldEnd()
7718 amar.kumar 9551
    if self.billingWarehouseId is not None:
9552
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 2)
9553
      oprot.writeI64(self.billingWarehouseId)
9554
      oprot.writeFieldEnd()
6467 amar.kumar 9555
    oprot.writeFieldStop()
9556
    oprot.writeStructEnd()
9557
 
9558
  def validate(self):
9559
    return
9560
 
9561
 
9562
  def __repr__(self):
9563
    L = ['%s=%r' % (key, value)
9564
      for key, value in self.__dict__.iteritems()]
9565
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9566
 
9567
  def __eq__(self, other):
9568
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9569
 
9570
  def __ne__(self, other):
9571
    return not (self == other)
9572
 
9573
class getOurWarehouseIdForVendor_result:
9574
  """
9575
  Attributes:
9576
   - success
9577
  """
9578
 
9579
  thrift_spec = (
9580
    (0, TType.I64, 'success', None, None, ), # 0
9581
  )
9582
 
9583
  def __init__(self, success=None,):
9584
    self.success = success
9585
 
9586
  def read(self, iprot):
9587
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9588
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9589
      return
9590
    iprot.readStructBegin()
9591
    while True:
9592
      (fname, ftype, fid) = iprot.readFieldBegin()
9593
      if ftype == TType.STOP:
9594
        break
9595
      if fid == 0:
9596
        if ftype == TType.I64:
9597
          self.success = iprot.readI64();
9598
        else:
9599
          iprot.skip(ftype)
9600
      else:
9601
        iprot.skip(ftype)
9602
      iprot.readFieldEnd()
9603
    iprot.readStructEnd()
9604
 
9605
  def write(self, oprot):
9606
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9607
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9608
      return
9609
    oprot.writeStructBegin('getOurWarehouseIdForVendor_result')
9610
    if self.success is not None:
9611
      oprot.writeFieldBegin('success', TType.I64, 0)
9612
      oprot.writeI64(self.success)
9613
      oprot.writeFieldEnd()
9614
    oprot.writeFieldStop()
9615
    oprot.writeStructEnd()
9616
 
9617
  def validate(self):
9618
    return
9619
 
9620
 
9621
  def __repr__(self):
9622
    L = ['%s=%r' % (key, value)
9623
      for key, value in self.__dict__.iteritems()]
9624
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9625
 
9626
  def __eq__(self, other):
9627
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9628
 
9629
  def __ne__(self, other):
9630
    return not (self == other)
6484 amar.kumar 9631
 
9632
class getItemAvailabilitiesAtOurWarehouses_args:
9633
  """
9634
  Attributes:
9635
   - item_ids
9636
  """
9637
 
9638
  thrift_spec = (
9639
    None, # 0
9640
    (1, TType.LIST, 'item_ids', (TType.I64,None), None, ), # 1
9641
  )
9642
 
9643
  def __init__(self, item_ids=None,):
9644
    self.item_ids = item_ids
9645
 
9646
  def read(self, iprot):
9647
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9648
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9649
      return
9650
    iprot.readStructBegin()
9651
    while True:
9652
      (fname, ftype, fid) = iprot.readFieldBegin()
9653
      if ftype == TType.STOP:
9654
        break
9655
      if fid == 1:
9656
        if ftype == TType.LIST:
9657
          self.item_ids = []
8182 amar.kumar 9658
          (_etype152, _size149) = iprot.readListBegin()
9659
          for _i153 in xrange(_size149):
9660
            _elem154 = iprot.readI64();
9661
            self.item_ids.append(_elem154)
6484 amar.kumar 9662
          iprot.readListEnd()
9663
        else:
9664
          iprot.skip(ftype)
9665
      else:
9666
        iprot.skip(ftype)
9667
      iprot.readFieldEnd()
9668
    iprot.readStructEnd()
9669
 
9670
  def write(self, oprot):
9671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9673
      return
9674
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_args')
9675
    if self.item_ids is not None:
9676
      oprot.writeFieldBegin('item_ids', TType.LIST, 1)
9677
      oprot.writeListBegin(TType.I64, len(self.item_ids))
8182 amar.kumar 9678
      for iter155 in self.item_ids:
9679
        oprot.writeI64(iter155)
6484 amar.kumar 9680
      oprot.writeListEnd()
9681
      oprot.writeFieldEnd()
9682
    oprot.writeFieldStop()
9683
    oprot.writeStructEnd()
9684
 
9685
  def validate(self):
9686
    return
9687
 
9688
 
9689
  def __repr__(self):
9690
    L = ['%s=%r' % (key, value)
9691
      for key, value in self.__dict__.iteritems()]
9692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9693
 
9694
  def __eq__(self, other):
9695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9696
 
9697
  def __ne__(self, other):
9698
    return not (self == other)
9699
 
9700
class getItemAvailabilitiesAtOurWarehouses_result:
9701
  """
9702
  Attributes:
9703
   - success
9704
  """
9705
 
9706
  thrift_spec = (
9707
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
9708
  )
9709
 
9710
  def __init__(self, success=None,):
9711
    self.success = success
9712
 
9713
  def read(self, iprot):
9714
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9715
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9716
      return
9717
    iprot.readStructBegin()
9718
    while True:
9719
      (fname, ftype, fid) = iprot.readFieldBegin()
9720
      if ftype == TType.STOP:
9721
        break
9722
      if fid == 0:
9723
        if ftype == TType.MAP:
9724
          self.success = {}
8182 amar.kumar 9725
          (_ktype157, _vtype158, _size156 ) = iprot.readMapBegin() 
9726
          for _i160 in xrange(_size156):
9727
            _key161 = iprot.readI64();
9728
            _val162 = iprot.readI64();
9729
            self.success[_key161] = _val162
6484 amar.kumar 9730
          iprot.readMapEnd()
9731
        else:
9732
          iprot.skip(ftype)
9733
      else:
9734
        iprot.skip(ftype)
9735
      iprot.readFieldEnd()
9736
    iprot.readStructEnd()
9737
 
9738
  def write(self, oprot):
9739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9741
      return
9742
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_result')
9743
    if self.success is not None:
9744
      oprot.writeFieldBegin('success', TType.MAP, 0)
9745
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
8182 amar.kumar 9746
      for kiter163,viter164 in self.success.items():
9747
        oprot.writeI64(kiter163)
9748
        oprot.writeI64(viter164)
6484 amar.kumar 9749
      oprot.writeMapEnd()
9750
      oprot.writeFieldEnd()
9751
    oprot.writeFieldStop()
9752
    oprot.writeStructEnd()
9753
 
9754
  def validate(self):
9755
    return
9756
 
9757
 
9758
  def __repr__(self):
9759
    L = ['%s=%r' % (key, value)
9760
      for key, value in self.__dict__.iteritems()]
9761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9762
 
9763
  def __eq__(self, other):
9764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9765
 
9766
  def __ne__(self, other):
9767
    return not (self == other)
6531 vikram.rag 9768
 
9769
class getMonitoredWarehouseForVendors_args:
9770
  """
9771
  Attributes:
9772
   - vendorIds
9773
  """
9774
 
9775
  thrift_spec = (
9776
    None, # 0
9777
    (1, TType.LIST, 'vendorIds', (TType.I64,None), None, ), # 1
9778
  )
9779
 
9780
  def __init__(self, vendorIds=None,):
9781
    self.vendorIds = vendorIds
9782
 
9783
  def read(self, iprot):
9784
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9785
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9786
      return
9787
    iprot.readStructBegin()
9788
    while True:
9789
      (fname, ftype, fid) = iprot.readFieldBegin()
9790
      if ftype == TType.STOP:
9791
        break
9792
      if fid == 1:
9793
        if ftype == TType.LIST:
9794
          self.vendorIds = []
8182 amar.kumar 9795
          (_etype168, _size165) = iprot.readListBegin()
9796
          for _i169 in xrange(_size165):
9797
            _elem170 = iprot.readI64();
9798
            self.vendorIds.append(_elem170)
6531 vikram.rag 9799
          iprot.readListEnd()
9800
        else:
9801
          iprot.skip(ftype)
9802
      else:
9803
        iprot.skip(ftype)
9804
      iprot.readFieldEnd()
9805
    iprot.readStructEnd()
9806
 
9807
  def write(self, oprot):
9808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9810
      return
9811
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_args')
9812
    if self.vendorIds is not None:
9813
      oprot.writeFieldBegin('vendorIds', TType.LIST, 1)
9814
      oprot.writeListBegin(TType.I64, len(self.vendorIds))
8182 amar.kumar 9815
      for iter171 in self.vendorIds:
9816
        oprot.writeI64(iter171)
6531 vikram.rag 9817
      oprot.writeListEnd()
9818
      oprot.writeFieldEnd()
9819
    oprot.writeFieldStop()
9820
    oprot.writeStructEnd()
9821
 
9822
  def validate(self):
9823
    return
9824
 
9825
 
9826
  def __repr__(self):
9827
    L = ['%s=%r' % (key, value)
9828
      for key, value in self.__dict__.iteritems()]
9829
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9830
 
9831
  def __eq__(self, other):
9832
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9833
 
9834
  def __ne__(self, other):
9835
    return not (self == other)
9836
 
9837
class getMonitoredWarehouseForVendors_result:
9838
  """
9839
  Attributes:
9840
   - success
9841
  """
9842
 
9843
  thrift_spec = (
9844
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9845
  )
9846
 
9847
  def __init__(self, success=None,):
9848
    self.success = success
9849
 
9850
  def read(self, iprot):
9851
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9852
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9853
      return
9854
    iprot.readStructBegin()
9855
    while True:
9856
      (fname, ftype, fid) = iprot.readFieldBegin()
9857
      if ftype == TType.STOP:
9858
        break
9859
      if fid == 0:
9860
        if ftype == TType.LIST:
9861
          self.success = []
8182 amar.kumar 9862
          (_etype175, _size172) = iprot.readListBegin()
9863
          for _i176 in xrange(_size172):
9864
            _elem177 = iprot.readI64();
9865
            self.success.append(_elem177)
6531 vikram.rag 9866
          iprot.readListEnd()
9867
        else:
9868
          iprot.skip(ftype)
9869
      else:
9870
        iprot.skip(ftype)
9871
      iprot.readFieldEnd()
9872
    iprot.readStructEnd()
9873
 
9874
  def write(self, oprot):
9875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9877
      return
9878
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_result')
9879
    if self.success is not None:
9880
      oprot.writeFieldBegin('success', TType.LIST, 0)
9881
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 9882
      for iter178 in self.success:
9883
        oprot.writeI64(iter178)
6531 vikram.rag 9884
      oprot.writeListEnd()
9885
      oprot.writeFieldEnd()
9886
    oprot.writeFieldStop()
9887
    oprot.writeStructEnd()
9888
 
9889
  def validate(self):
9890
    return
9891
 
9892
 
9893
  def __repr__(self):
9894
    L = ['%s=%r' % (key, value)
9895
      for key, value in self.__dict__.iteritems()]
9896
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9897
 
9898
  def __eq__(self, other):
9899
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9900
 
9901
  def __ne__(self, other):
9902
    return not (self == other)
9903
 
9904
class getIgnoredWarehouseidsAndItemids_args:
9905
 
9906
  thrift_spec = (
9907
  )
9908
 
9909
  def read(self, iprot):
9910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9912
      return
9913
    iprot.readStructBegin()
9914
    while True:
9915
      (fname, ftype, fid) = iprot.readFieldBegin()
9916
      if ftype == TType.STOP:
9917
        break
9918
      else:
9919
        iprot.skip(ftype)
9920
      iprot.readFieldEnd()
9921
    iprot.readStructEnd()
9922
 
9923
  def write(self, oprot):
9924
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9925
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9926
      return
9927
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_args')
9928
    oprot.writeFieldStop()
9929
    oprot.writeStructEnd()
9930
 
9931
  def validate(self):
9932
    return
9933
 
9934
 
9935
  def __repr__(self):
9936
    L = ['%s=%r' % (key, value)
9937
      for key, value in self.__dict__.iteritems()]
9938
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9939
 
9940
  def __eq__(self, other):
9941
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9942
 
9943
  def __ne__(self, other):
9944
    return not (self == other)
9945
 
9946
class getIgnoredWarehouseidsAndItemids_result:
9947
  """
9948
  Attributes:
9949
   - success
9950
  """
9951
 
9952
  thrift_spec = (
9953
    (0, TType.LIST, 'success', (TType.STRUCT,(IgnoredInventoryUpdateItems, IgnoredInventoryUpdateItems.thrift_spec)), None, ), # 0
9954
  )
9955
 
9956
  def __init__(self, success=None,):
9957
    self.success = success
9958
 
9959
  def read(self, iprot):
9960
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9961
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9962
      return
9963
    iprot.readStructBegin()
9964
    while True:
9965
      (fname, ftype, fid) = iprot.readFieldBegin()
9966
      if ftype == TType.STOP:
9967
        break
9968
      if fid == 0:
9969
        if ftype == TType.LIST:
9970
          self.success = []
8182 amar.kumar 9971
          (_etype182, _size179) = iprot.readListBegin()
9972
          for _i183 in xrange(_size179):
9973
            _elem184 = IgnoredInventoryUpdateItems()
9974
            _elem184.read(iprot)
9975
            self.success.append(_elem184)
6531 vikram.rag 9976
          iprot.readListEnd()
9977
        else:
9978
          iprot.skip(ftype)
9979
      else:
9980
        iprot.skip(ftype)
9981
      iprot.readFieldEnd()
9982
    iprot.readStructEnd()
9983
 
9984
  def write(self, oprot):
9985
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9986
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9987
      return
9988
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_result')
9989
    if self.success is not None:
9990
      oprot.writeFieldBegin('success', TType.LIST, 0)
9991
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 9992
      for iter185 in self.success:
9993
        iter185.write(oprot)
6531 vikram.rag 9994
      oprot.writeListEnd()
9995
      oprot.writeFieldEnd()
9996
    oprot.writeFieldStop()
9997
    oprot.writeStructEnd()
9998
 
9999
  def validate(self):
10000
    return
10001
 
10002
 
10003
  def __repr__(self):
10004
    L = ['%s=%r' % (key, value)
10005
      for key, value in self.__dict__.iteritems()]
10006
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10007
 
10008
  def __eq__(self, other):
10009
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10010
 
10011
  def __ne__(self, other):
10012
    return not (self == other)
10013
 
10014
class insertItemtoIgnoreInventoryUpdatelist_args:
10015
  """
10016
  Attributes:
10017
   - item_id
10018
   - warehouse_id
10019
  """
10020
 
10021
  thrift_spec = (
10022
    None, # 0
10023
    (1, TType.I64, 'item_id', None, None, ), # 1
10024
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
10025
  )
10026
 
10027
  def __init__(self, item_id=None, warehouse_id=None,):
10028
    self.item_id = item_id
10029
    self.warehouse_id = warehouse_id
10030
 
10031
  def read(self, iprot):
10032
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10033
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10034
      return
10035
    iprot.readStructBegin()
10036
    while True:
10037
      (fname, ftype, fid) = iprot.readFieldBegin()
10038
      if ftype == TType.STOP:
10039
        break
10040
      if fid == 1:
10041
        if ftype == TType.I64:
10042
          self.item_id = iprot.readI64();
10043
        else:
10044
          iprot.skip(ftype)
10045
      elif fid == 2:
10046
        if ftype == TType.I64:
10047
          self.warehouse_id = iprot.readI64();
10048
        else:
10049
          iprot.skip(ftype)
10050
      else:
10051
        iprot.skip(ftype)
10052
      iprot.readFieldEnd()
10053
    iprot.readStructEnd()
10054
 
10055
  def write(self, oprot):
10056
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10057
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10058
      return
10059
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_args')
10060
    if self.item_id is not None:
10061
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10062
      oprot.writeI64(self.item_id)
10063
      oprot.writeFieldEnd()
10064
    if self.warehouse_id is not None:
10065
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
10066
      oprot.writeI64(self.warehouse_id)
10067
      oprot.writeFieldEnd()
10068
    oprot.writeFieldStop()
10069
    oprot.writeStructEnd()
10070
 
10071
  def validate(self):
10072
    return
10073
 
10074
 
10075
  def __repr__(self):
10076
    L = ['%s=%r' % (key, value)
10077
      for key, value in self.__dict__.iteritems()]
10078
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10079
 
10080
  def __eq__(self, other):
10081
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10082
 
10083
  def __ne__(self, other):
10084
    return not (self == other)
10085
 
10086
class insertItemtoIgnoreInventoryUpdatelist_result:
10087
  """
10088
  Attributes:
10089
   - success
10090
  """
10091
 
10092
  thrift_spec = (
10093
    (0, TType.BOOL, 'success', None, None, ), # 0
10094
  )
10095
 
10096
  def __init__(self, success=None,):
10097
    self.success = success
10098
 
10099
  def read(self, iprot):
10100
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10101
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10102
      return
10103
    iprot.readStructBegin()
10104
    while True:
10105
      (fname, ftype, fid) = iprot.readFieldBegin()
10106
      if ftype == TType.STOP:
10107
        break
10108
      if fid == 0:
10109
        if ftype == TType.BOOL:
10110
          self.success = iprot.readBool();
10111
        else:
10112
          iprot.skip(ftype)
10113
      else:
10114
        iprot.skip(ftype)
10115
      iprot.readFieldEnd()
10116
    iprot.readStructEnd()
10117
 
10118
  def write(self, oprot):
10119
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10120
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10121
      return
10122
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_result')
10123
    if self.success is not None:
10124
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10125
      oprot.writeBool(self.success)
10126
      oprot.writeFieldEnd()
10127
    oprot.writeFieldStop()
10128
    oprot.writeStructEnd()
10129
 
10130
  def validate(self):
10131
    return
10132
 
10133
 
10134
  def __repr__(self):
10135
    L = ['%s=%r' % (key, value)
10136
      for key, value in self.__dict__.iteritems()]
10137
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10138
 
10139
  def __eq__(self, other):
10140
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10141
 
10142
  def __ne__(self, other):
10143
    return not (self == other)
10144
 
10145
class deleteItemFromIgnoredInventoryUpdateList_args:
10146
  """
10147
  Attributes:
10148
   - item_id
10149
   - warehouse_id
10150
  """
10151
 
10152
  thrift_spec = (
10153
    None, # 0
10154
    (1, TType.I64, 'item_id', None, None, ), # 1
10155
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
10156
  )
10157
 
10158
  def __init__(self, item_id=None, warehouse_id=None,):
10159
    self.item_id = item_id
10160
    self.warehouse_id = warehouse_id
10161
 
10162
  def read(self, iprot):
10163
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10164
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10165
      return
10166
    iprot.readStructBegin()
10167
    while True:
10168
      (fname, ftype, fid) = iprot.readFieldBegin()
10169
      if ftype == TType.STOP:
10170
        break
10171
      if fid == 1:
10172
        if ftype == TType.I64:
10173
          self.item_id = iprot.readI64();
10174
        else:
10175
          iprot.skip(ftype)
10176
      elif fid == 2:
10177
        if ftype == TType.I64:
10178
          self.warehouse_id = iprot.readI64();
10179
        else:
10180
          iprot.skip(ftype)
10181
      else:
10182
        iprot.skip(ftype)
10183
      iprot.readFieldEnd()
10184
    iprot.readStructEnd()
10185
 
10186
  def write(self, oprot):
10187
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10188
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10189
      return
10190
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_args')
10191
    if self.item_id is not None:
10192
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10193
      oprot.writeI64(self.item_id)
10194
      oprot.writeFieldEnd()
10195
    if self.warehouse_id is not None:
10196
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
10197
      oprot.writeI64(self.warehouse_id)
10198
      oprot.writeFieldEnd()
10199
    oprot.writeFieldStop()
10200
    oprot.writeStructEnd()
10201
 
10202
  def validate(self):
10203
    return
10204
 
10205
 
10206
  def __repr__(self):
10207
    L = ['%s=%r' % (key, value)
10208
      for key, value in self.__dict__.iteritems()]
10209
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10210
 
10211
  def __eq__(self, other):
10212
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10213
 
10214
  def __ne__(self, other):
10215
    return not (self == other)
10216
 
10217
class deleteItemFromIgnoredInventoryUpdateList_result:
10218
  """
10219
  Attributes:
10220
   - success
10221
  """
10222
 
10223
  thrift_spec = (
10224
    (0, TType.BOOL, 'success', None, None, ), # 0
10225
  )
10226
 
10227
  def __init__(self, success=None,):
10228
    self.success = success
10229
 
10230
  def read(self, iprot):
10231
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10232
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10233
      return
10234
    iprot.readStructBegin()
10235
    while True:
10236
      (fname, ftype, fid) = iprot.readFieldBegin()
10237
      if ftype == TType.STOP:
10238
        break
10239
      if fid == 0:
10240
        if ftype == TType.BOOL:
10241
          self.success = iprot.readBool();
10242
        else:
10243
          iprot.skip(ftype)
10244
      else:
10245
        iprot.skip(ftype)
10246
      iprot.readFieldEnd()
10247
    iprot.readStructEnd()
10248
 
10249
  def write(self, oprot):
10250
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10251
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10252
      return
10253
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_result')
10254
    if self.success is not None:
10255
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10256
      oprot.writeBool(self.success)
10257
      oprot.writeFieldEnd()
10258
    oprot.writeFieldStop()
10259
    oprot.writeStructEnd()
10260
 
10261
  def validate(self):
10262
    return
10263
 
10264
 
10265
  def __repr__(self):
10266
    L = ['%s=%r' % (key, value)
10267
      for key, value in self.__dict__.iteritems()]
10268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10269
 
10270
  def __eq__(self, other):
10271
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10272
 
10273
  def __ne__(self, other):
10274
    return not (self == other)
10275
 
10276
class getAllIgnoredInventoryupdateItemsCount_args:
10277
 
10278
  thrift_spec = (
10279
  )
10280
 
10281
  def read(self, iprot):
10282
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10283
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10284
      return
10285
    iprot.readStructBegin()
10286
    while True:
10287
      (fname, ftype, fid) = iprot.readFieldBegin()
10288
      if ftype == TType.STOP:
10289
        break
10290
      else:
10291
        iprot.skip(ftype)
10292
      iprot.readFieldEnd()
10293
    iprot.readStructEnd()
10294
 
10295
  def write(self, oprot):
10296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10297
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10298
      return
10299
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_args')
10300
    oprot.writeFieldStop()
10301
    oprot.writeStructEnd()
10302
 
10303
  def validate(self):
10304
    return
10305
 
10306
 
10307
  def __repr__(self):
10308
    L = ['%s=%r' % (key, value)
10309
      for key, value in self.__dict__.iteritems()]
10310
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10311
 
10312
  def __eq__(self, other):
10313
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10314
 
10315
  def __ne__(self, other):
10316
    return not (self == other)
10317
 
10318
class getAllIgnoredInventoryupdateItemsCount_result:
10319
  """
10320
  Attributes:
10321
   - success
10322
  """
10323
 
10324
  thrift_spec = (
10325
    (0, TType.I32, 'success', None, None, ), # 0
10326
  )
10327
 
10328
  def __init__(self, success=None,):
10329
    self.success = success
10330
 
10331
  def read(self, iprot):
10332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10334
      return
10335
    iprot.readStructBegin()
10336
    while True:
10337
      (fname, ftype, fid) = iprot.readFieldBegin()
10338
      if ftype == TType.STOP:
10339
        break
10340
      if fid == 0:
10341
        if ftype == TType.I32:
10342
          self.success = iprot.readI32();
10343
        else:
10344
          iprot.skip(ftype)
10345
      else:
10346
        iprot.skip(ftype)
10347
      iprot.readFieldEnd()
10348
    iprot.readStructEnd()
10349
 
10350
  def write(self, oprot):
10351
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10352
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10353
      return
10354
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_result')
10355
    if self.success is not None:
10356
      oprot.writeFieldBegin('success', TType.I32, 0)
10357
      oprot.writeI32(self.success)
10358
      oprot.writeFieldEnd()
10359
    oprot.writeFieldStop()
10360
    oprot.writeStructEnd()
10361
 
10362
  def validate(self):
10363
    return
10364
 
10365
 
10366
  def __repr__(self):
10367
    L = ['%s=%r' % (key, value)
10368
      for key, value in self.__dict__.iteritems()]
10369
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10370
 
10371
  def __eq__(self, other):
10372
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10373
 
10374
  def __ne__(self, other):
10375
    return not (self == other)
10376
 
10377
class getIgnoredInventoryUpdateItemids_args:
10378
  """
10379
  Attributes:
10380
   - offset
10381
   - limit
10382
  """
10383
 
10384
  thrift_spec = (
10385
    None, # 0
10386
    (1, TType.I32, 'offset', None, None, ), # 1
10387
    (2, TType.I32, 'limit', None, None, ), # 2
10388
  )
10389
 
10390
  def __init__(self, offset=None, limit=None,):
10391
    self.offset = offset
10392
    self.limit = limit
10393
 
10394
  def read(self, iprot):
10395
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10396
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10397
      return
10398
    iprot.readStructBegin()
10399
    while True:
10400
      (fname, ftype, fid) = iprot.readFieldBegin()
10401
      if ftype == TType.STOP:
10402
        break
10403
      if fid == 1:
10404
        if ftype == TType.I32:
10405
          self.offset = iprot.readI32();
10406
        else:
10407
          iprot.skip(ftype)
10408
      elif fid == 2:
10409
        if ftype == TType.I32:
10410
          self.limit = iprot.readI32();
10411
        else:
10412
          iprot.skip(ftype)
10413
      else:
10414
        iprot.skip(ftype)
10415
      iprot.readFieldEnd()
10416
    iprot.readStructEnd()
10417
 
10418
  def write(self, oprot):
10419
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10420
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10421
      return
10422
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_args')
10423
    if self.offset is not None:
10424
      oprot.writeFieldBegin('offset', TType.I32, 1)
10425
      oprot.writeI32(self.offset)
10426
      oprot.writeFieldEnd()
10427
    if self.limit is not None:
10428
      oprot.writeFieldBegin('limit', TType.I32, 2)
10429
      oprot.writeI32(self.limit)
10430
      oprot.writeFieldEnd()
10431
    oprot.writeFieldStop()
10432
    oprot.writeStructEnd()
10433
 
10434
  def validate(self):
10435
    return
10436
 
10437
 
10438
  def __repr__(self):
10439
    L = ['%s=%r' % (key, value)
10440
      for key, value in self.__dict__.iteritems()]
10441
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10442
 
10443
  def __eq__(self, other):
10444
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10445
 
10446
  def __ne__(self, other):
10447
    return not (self == other)
10448
 
10449
class getIgnoredInventoryUpdateItemids_result:
10450
  """
10451
  Attributes:
10452
   - success
10453
  """
10454
 
10455
  thrift_spec = (
10456
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10457
  )
10458
 
10459
  def __init__(self, success=None,):
10460
    self.success = success
10461
 
10462
  def read(self, iprot):
10463
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10464
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10465
      return
10466
    iprot.readStructBegin()
10467
    while True:
10468
      (fname, ftype, fid) = iprot.readFieldBegin()
10469
      if ftype == TType.STOP:
10470
        break
10471
      if fid == 0:
10472
        if ftype == TType.LIST:
10473
          self.success = []
8182 amar.kumar 10474
          (_etype189, _size186) = iprot.readListBegin()
10475
          for _i190 in xrange(_size186):
10476
            _elem191 = iprot.readI64();
10477
            self.success.append(_elem191)
6531 vikram.rag 10478
          iprot.readListEnd()
10479
        else:
10480
          iprot.skip(ftype)
10481
      else:
10482
        iprot.skip(ftype)
10483
      iprot.readFieldEnd()
10484
    iprot.readStructEnd()
10485
 
10486
  def write(self, oprot):
10487
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10488
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10489
      return
10490
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_result')
10491
    if self.success is not None:
10492
      oprot.writeFieldBegin('success', TType.LIST, 0)
10493
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 10494
      for iter192 in self.success:
10495
        oprot.writeI64(iter192)
6531 vikram.rag 10496
      oprot.writeListEnd()
10497
      oprot.writeFieldEnd()
10498
    oprot.writeFieldStop()
10499
    oprot.writeStructEnd()
10500
 
10501
  def validate(self):
10502
    return
10503
 
10504
 
10505
  def __repr__(self):
10506
    L = ['%s=%r' % (key, value)
10507
      for key, value in self.__dict__.iteritems()]
10508
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10509
 
10510
  def __eq__(self, other):
10511
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10512
 
10513
  def __ne__(self, other):
10514
    return not (self == other)
6821 amar.kumar 10515
 
10516
class updateItemStockPurchaseParams_args:
10517
  """
10518
  Attributes:
10519
   - item_id
10520
   - numOfDaysStock
10521
   - minStockLevel
10522
  """
10523
 
10524
  thrift_spec = (
10525
    None, # 0
10526
    (1, TType.I64, 'item_id', None, None, ), # 1
10527
    (2, TType.I32, 'numOfDaysStock', None, None, ), # 2
10528
    (3, TType.I64, 'minStockLevel', None, None, ), # 3
10529
  )
10530
 
10531
  def __init__(self, item_id=None, numOfDaysStock=None, minStockLevel=None,):
10532
    self.item_id = item_id
10533
    self.numOfDaysStock = numOfDaysStock
10534
    self.minStockLevel = minStockLevel
10535
 
10536
  def read(self, iprot):
10537
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10538
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10539
      return
10540
    iprot.readStructBegin()
10541
    while True:
10542
      (fname, ftype, fid) = iprot.readFieldBegin()
10543
      if ftype == TType.STOP:
10544
        break
10545
      if fid == 1:
10546
        if ftype == TType.I64:
10547
          self.item_id = iprot.readI64();
10548
        else:
10549
          iprot.skip(ftype)
10550
      elif fid == 2:
10551
        if ftype == TType.I32:
10552
          self.numOfDaysStock = iprot.readI32();
10553
        else:
10554
          iprot.skip(ftype)
10555
      elif fid == 3:
10556
        if ftype == TType.I64:
10557
          self.minStockLevel = iprot.readI64();
10558
        else:
10559
          iprot.skip(ftype)
10560
      else:
10561
        iprot.skip(ftype)
10562
      iprot.readFieldEnd()
10563
    iprot.readStructEnd()
10564
 
10565
  def write(self, oprot):
10566
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10567
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10568
      return
10569
    oprot.writeStructBegin('updateItemStockPurchaseParams_args')
10570
    if self.item_id is not None:
10571
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10572
      oprot.writeI64(self.item_id)
10573
      oprot.writeFieldEnd()
10574
    if self.numOfDaysStock is not None:
10575
      oprot.writeFieldBegin('numOfDaysStock', TType.I32, 2)
10576
      oprot.writeI32(self.numOfDaysStock)
10577
      oprot.writeFieldEnd()
10578
    if self.minStockLevel is not None:
10579
      oprot.writeFieldBegin('minStockLevel', TType.I64, 3)
10580
      oprot.writeI64(self.minStockLevel)
10581
      oprot.writeFieldEnd()
10582
    oprot.writeFieldStop()
10583
    oprot.writeStructEnd()
10584
 
10585
  def validate(self):
10586
    return
10587
 
10588
 
10589
  def __repr__(self):
10590
    L = ['%s=%r' % (key, value)
10591
      for key, value in self.__dict__.iteritems()]
10592
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10593
 
10594
  def __eq__(self, other):
10595
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10596
 
10597
  def __ne__(self, other):
10598
    return not (self == other)
10599
 
10600
class updateItemStockPurchaseParams_result:
10601
 
10602
  thrift_spec = (
10603
  )
10604
 
10605
  def read(self, iprot):
10606
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10607
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10608
      return
10609
    iprot.readStructBegin()
10610
    while True:
10611
      (fname, ftype, fid) = iprot.readFieldBegin()
10612
      if ftype == TType.STOP:
10613
        break
10614
      else:
10615
        iprot.skip(ftype)
10616
      iprot.readFieldEnd()
10617
    iprot.readStructEnd()
10618
 
10619
  def write(self, oprot):
10620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10622
      return
10623
    oprot.writeStructBegin('updateItemStockPurchaseParams_result')
10624
    oprot.writeFieldStop()
10625
    oprot.writeStructEnd()
10626
 
10627
  def validate(self):
10628
    return
10629
 
10630
 
10631
  def __repr__(self):
10632
    L = ['%s=%r' % (key, value)
10633
      for key, value in self.__dict__.iteritems()]
10634
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10635
 
10636
  def __eq__(self, other):
10637
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10638
 
10639
  def __ne__(self, other):
10640
    return not (self == other)
10641
 
10642
class getItemStockPurchaseParams_args:
10643
  """
10644
  Attributes:
10645
   - itemId
10646
  """
10647
 
10648
  thrift_spec = (
10649
    None, # 0
10650
    (1, TType.I64, 'itemId', None, None, ), # 1
10651
  )
10652
 
10653
  def __init__(self, itemId=None,):
10654
    self.itemId = itemId
10655
 
10656
  def read(self, iprot):
10657
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10658
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10659
      return
10660
    iprot.readStructBegin()
10661
    while True:
10662
      (fname, ftype, fid) = iprot.readFieldBegin()
10663
      if ftype == TType.STOP:
10664
        break
10665
      if fid == 1:
10666
        if ftype == TType.I64:
10667
          self.itemId = iprot.readI64();
10668
        else:
10669
          iprot.skip(ftype)
10670
      else:
10671
        iprot.skip(ftype)
10672
      iprot.readFieldEnd()
10673
    iprot.readStructEnd()
10674
 
10675
  def write(self, oprot):
10676
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10677
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10678
      return
10679
    oprot.writeStructBegin('getItemStockPurchaseParams_args')
10680
    if self.itemId is not None:
10681
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10682
      oprot.writeI64(self.itemId)
10683
      oprot.writeFieldEnd()
10684
    oprot.writeFieldStop()
10685
    oprot.writeStructEnd()
10686
 
10687
  def validate(self):
10688
    return
10689
 
10690
 
10691
  def __repr__(self):
10692
    L = ['%s=%r' % (key, value)
10693
      for key, value in self.__dict__.iteritems()]
10694
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10695
 
10696
  def __eq__(self, other):
10697
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10698
 
10699
  def __ne__(self, other):
10700
    return not (self == other)
10701
 
10702
class getItemStockPurchaseParams_result:
10703
  """
10704
  Attributes:
10705
   - success
10706
  """
10707
 
10708
  thrift_spec = (
10709
    (0, TType.STRUCT, 'success', (ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec), None, ), # 0
10710
  )
10711
 
10712
  def __init__(self, success=None,):
10713
    self.success = success
10714
 
10715
  def read(self, iprot):
10716
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10717
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10718
      return
10719
    iprot.readStructBegin()
10720
    while True:
10721
      (fname, ftype, fid) = iprot.readFieldBegin()
10722
      if ftype == TType.STOP:
10723
        break
10724
      if fid == 0:
10725
        if ftype == TType.STRUCT:
10726
          self.success = ItemStockPurchaseParams()
10727
          self.success.read(iprot)
10728
        else:
10729
          iprot.skip(ftype)
10730
      else:
10731
        iprot.skip(ftype)
10732
      iprot.readFieldEnd()
10733
    iprot.readStructEnd()
10734
 
10735
  def write(self, oprot):
10736
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10737
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10738
      return
10739
    oprot.writeStructBegin('getItemStockPurchaseParams_result')
10740
    if self.success is not None:
10741
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10742
      self.success.write(oprot)
10743
      oprot.writeFieldEnd()
10744
    oprot.writeFieldStop()
10745
    oprot.writeStructEnd()
10746
 
10747
  def validate(self):
10748
    return
10749
 
10750
 
10751
  def __repr__(self):
10752
    L = ['%s=%r' % (key, value)
10753
      for key, value in self.__dict__.iteritems()]
10754
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10755
 
10756
  def __eq__(self, other):
10757
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10758
 
10759
  def __ne__(self, other):
10760
    return not (self == other)
10761
 
10762
class addOosStatusForItem_args:
10763
  """
10764
  Attributes:
10765
   - oosStatusMap
10766
   - date
10767
  """
10768
 
10769
  thrift_spec = (
10770
    None, # 0
10771
    (1, TType.MAP, 'oosStatusMap', (TType.I64,None,TType.BOOL,None), None, ), # 1
10772
    (2, TType.I64, 'date', None, None, ), # 2
10773
  )
10774
 
10775
  def __init__(self, oosStatusMap=None, date=None,):
10776
    self.oosStatusMap = oosStatusMap
10777
    self.date = date
10778
 
10779
  def read(self, iprot):
10780
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10781
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10782
      return
10783
    iprot.readStructBegin()
10784
    while True:
10785
      (fname, ftype, fid) = iprot.readFieldBegin()
10786
      if ftype == TType.STOP:
10787
        break
10788
      if fid == 1:
10789
        if ftype == TType.MAP:
10790
          self.oosStatusMap = {}
8182 amar.kumar 10791
          (_ktype194, _vtype195, _size193 ) = iprot.readMapBegin() 
10792
          for _i197 in xrange(_size193):
10793
            _key198 = iprot.readI64();
10794
            _val199 = iprot.readBool();
10795
            self.oosStatusMap[_key198] = _val199
6821 amar.kumar 10796
          iprot.readMapEnd()
10797
        else:
10798
          iprot.skip(ftype)
10799
      elif fid == 2:
10800
        if ftype == TType.I64:
10801
          self.date = iprot.readI64();
10802
        else:
10803
          iprot.skip(ftype)
10804
      else:
10805
        iprot.skip(ftype)
10806
      iprot.readFieldEnd()
10807
    iprot.readStructEnd()
10808
 
10809
  def write(self, oprot):
10810
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10811
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10812
      return
10813
    oprot.writeStructBegin('addOosStatusForItem_args')
10814
    if self.oosStatusMap is not None:
10815
      oprot.writeFieldBegin('oosStatusMap', TType.MAP, 1)
10816
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.oosStatusMap))
8182 amar.kumar 10817
      for kiter200,viter201 in self.oosStatusMap.items():
10818
        oprot.writeI64(kiter200)
10819
        oprot.writeBool(viter201)
6821 amar.kumar 10820
      oprot.writeMapEnd()
10821
      oprot.writeFieldEnd()
10822
    if self.date is not None:
10823
      oprot.writeFieldBegin('date', TType.I64, 2)
10824
      oprot.writeI64(self.date)
10825
      oprot.writeFieldEnd()
10826
    oprot.writeFieldStop()
10827
    oprot.writeStructEnd()
10828
 
10829
  def validate(self):
10830
    return
10831
 
10832
 
10833
  def __repr__(self):
10834
    L = ['%s=%r' % (key, value)
10835
      for key, value in self.__dict__.iteritems()]
10836
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10837
 
10838
  def __eq__(self, other):
10839
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10840
 
10841
  def __ne__(self, other):
10842
    return not (self == other)
10843
 
10844
class addOosStatusForItem_result:
10845
 
10846
  thrift_spec = (
10847
  )
10848
 
10849
  def read(self, iprot):
10850
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10851
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10852
      return
10853
    iprot.readStructBegin()
10854
    while True:
10855
      (fname, ftype, fid) = iprot.readFieldBegin()
10856
      if ftype == TType.STOP:
10857
        break
10858
      else:
10859
        iprot.skip(ftype)
10860
      iprot.readFieldEnd()
10861
    iprot.readStructEnd()
10862
 
10863
  def write(self, oprot):
10864
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10865
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10866
      return
10867
    oprot.writeStructBegin('addOosStatusForItem_result')
10868
    oprot.writeFieldStop()
10869
    oprot.writeStructEnd()
10870
 
10871
  def validate(self):
10872
    return
10873
 
10874
 
10875
  def __repr__(self):
10876
    L = ['%s=%r' % (key, value)
10877
      for key, value in self.__dict__.iteritems()]
10878
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10879
 
10880
  def __eq__(self, other):
10881
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10882
 
10883
  def __ne__(self, other):
10884
    return not (self == other)
6832 amar.kumar 10885
 
10886
class getOosStatusesForXDaysForItem_args:
10887
  """
10888
  Attributes:
10889
   - itemId
9762 amar.kumar 10890
   - sourceId
6832 amar.kumar 10891
   - days
10892
  """
10893
 
10894
  thrift_spec = (
10895
    None, # 0
10896
    (1, TType.I64, 'itemId', None, None, ), # 1
9762 amar.kumar 10897
    (2, TType.I32, 'sourceId', None, None, ), # 2
10898
    (3, TType.I32, 'days', None, None, ), # 3
6832 amar.kumar 10899
  )
10900
 
9762 amar.kumar 10901
  def __init__(self, itemId=None, sourceId=None, days=None,):
6832 amar.kumar 10902
    self.itemId = itemId
9762 amar.kumar 10903
    self.sourceId = sourceId
6832 amar.kumar 10904
    self.days = days
10905
 
10906
  def read(self, iprot):
10907
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10908
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10909
      return
10910
    iprot.readStructBegin()
10911
    while True:
10912
      (fname, ftype, fid) = iprot.readFieldBegin()
10913
      if ftype == TType.STOP:
10914
        break
10915
      if fid == 1:
10916
        if ftype == TType.I64:
10917
          self.itemId = iprot.readI64();
10918
        else:
10919
          iprot.skip(ftype)
10920
      elif fid == 2:
10921
        if ftype == TType.I32:
9762 amar.kumar 10922
          self.sourceId = iprot.readI32();
10923
        else:
10924
          iprot.skip(ftype)
10925
      elif fid == 3:
10926
        if ftype == TType.I32:
6832 amar.kumar 10927
          self.days = iprot.readI32();
10928
        else:
10929
          iprot.skip(ftype)
10930
      else:
10931
        iprot.skip(ftype)
10932
      iprot.readFieldEnd()
10933
    iprot.readStructEnd()
10934
 
10935
  def write(self, oprot):
10936
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10937
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10938
      return
10939
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_args')
10940
    if self.itemId is not None:
10941
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10942
      oprot.writeI64(self.itemId)
10943
      oprot.writeFieldEnd()
9762 amar.kumar 10944
    if self.sourceId is not None:
10945
      oprot.writeFieldBegin('sourceId', TType.I32, 2)
10946
      oprot.writeI32(self.sourceId)
10947
      oprot.writeFieldEnd()
6832 amar.kumar 10948
    if self.days is not None:
9762 amar.kumar 10949
      oprot.writeFieldBegin('days', TType.I32, 3)
6832 amar.kumar 10950
      oprot.writeI32(self.days)
10951
      oprot.writeFieldEnd()
10952
    oprot.writeFieldStop()
10953
    oprot.writeStructEnd()
10954
 
10955
  def validate(self):
10956
    return
10957
 
10958
 
10959
  def __repr__(self):
10960
    L = ['%s=%r' % (key, value)
10961
      for key, value in self.__dict__.iteritems()]
10962
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10963
 
10964
  def __eq__(self, other):
10965
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10966
 
10967
  def __ne__(self, other):
10968
    return not (self == other)
10969
 
10970
class getOosStatusesForXDaysForItem_result:
10971
  """
10972
  Attributes:
10973
   - success
10974
  """
10975
 
10976
  thrift_spec = (
10977
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.thrift_spec)), None, ), # 0
10978
  )
10979
 
10980
  def __init__(self, success=None,):
10981
    self.success = success
10982
 
10983
  def read(self, iprot):
10984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10986
      return
10987
    iprot.readStructBegin()
10988
    while True:
10989
      (fname, ftype, fid) = iprot.readFieldBegin()
10990
      if ftype == TType.STOP:
10991
        break
10992
      if fid == 0:
10993
        if ftype == TType.LIST:
10994
          self.success = []
8182 amar.kumar 10995
          (_etype205, _size202) = iprot.readListBegin()
10996
          for _i206 in xrange(_size202):
10997
            _elem207 = OOSStatus()
10998
            _elem207.read(iprot)
10999
            self.success.append(_elem207)
6832 amar.kumar 11000
          iprot.readListEnd()
11001
        else:
11002
          iprot.skip(ftype)
11003
      else:
11004
        iprot.skip(ftype)
11005
      iprot.readFieldEnd()
11006
    iprot.readStructEnd()
11007
 
11008
  def write(self, oprot):
11009
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11010
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11011
      return
11012
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_result')
11013
    if self.success is not None:
11014
      oprot.writeFieldBegin('success', TType.LIST, 0)
11015
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 11016
      for iter208 in self.success:
11017
        iter208.write(oprot)
6832 amar.kumar 11018
      oprot.writeListEnd()
11019
      oprot.writeFieldEnd()
11020
    oprot.writeFieldStop()
11021
    oprot.writeStructEnd()
11022
 
11023
  def validate(self):
11024
    return
11025
 
11026
 
11027
  def __repr__(self):
11028
    L = ['%s=%r' % (key, value)
11029
      for key, value in self.__dict__.iteritems()]
11030
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11031
 
11032
  def __eq__(self, other):
11033
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11034
 
11035
  def __ne__(self, other):
11036
    return not (self == other)
6857 amar.kumar 11037
 
10126 amar.kumar 11038
class getOosStatusesForXDays_args:
11039
  """
11040
  Attributes:
11041
   - sourceId
11042
   - days
11043
  """
6857 amar.kumar 11044
 
11045
  thrift_spec = (
10126 amar.kumar 11046
    None, # 0
11047
    (1, TType.I32, 'sourceId', None, None, ), # 1
11048
    (2, TType.I32, 'days', None, None, ), # 2
6857 amar.kumar 11049
  )
11050
 
10126 amar.kumar 11051
  def __init__(self, sourceId=None, days=None,):
11052
    self.sourceId = sourceId
11053
    self.days = days
11054
 
6857 amar.kumar 11055
  def read(self, iprot):
11056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11058
      return
11059
    iprot.readStructBegin()
11060
    while True:
11061
      (fname, ftype, fid) = iprot.readFieldBegin()
11062
      if ftype == TType.STOP:
11063
        break
10126 amar.kumar 11064
      if fid == 1:
11065
        if ftype == TType.I32:
11066
          self.sourceId = iprot.readI32();
11067
        else:
11068
          iprot.skip(ftype)
11069
      elif fid == 2:
11070
        if ftype == TType.I32:
11071
          self.days = iprot.readI32();
11072
        else:
11073
          iprot.skip(ftype)
6857 amar.kumar 11074
      else:
11075
        iprot.skip(ftype)
11076
      iprot.readFieldEnd()
11077
    iprot.readStructEnd()
11078
 
11079
  def write(self, oprot):
11080
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11081
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11082
      return
10126 amar.kumar 11083
    oprot.writeStructBegin('getOosStatusesForXDays_args')
11084
    if self.sourceId is not None:
11085
      oprot.writeFieldBegin('sourceId', TType.I32, 1)
11086
      oprot.writeI32(self.sourceId)
11087
      oprot.writeFieldEnd()
11088
    if self.days is not None:
11089
      oprot.writeFieldBegin('days', TType.I32, 2)
11090
      oprot.writeI32(self.days)
11091
      oprot.writeFieldEnd()
6857 amar.kumar 11092
    oprot.writeFieldStop()
11093
    oprot.writeStructEnd()
11094
 
11095
  def validate(self):
11096
    return
11097
 
11098
 
11099
  def __repr__(self):
11100
    L = ['%s=%r' % (key, value)
11101
      for key, value in self.__dict__.iteritems()]
11102
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11103
 
11104
  def __eq__(self, other):
11105
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11106
 
11107
  def __ne__(self, other):
11108
    return not (self == other)
11109
 
10126 amar.kumar 11110
class getOosStatusesForXDays_result:
6857 amar.kumar 11111
  """
11112
  Attributes:
11113
   - success
11114
  """
11115
 
11116
  thrift_spec = (
10126 amar.kumar 11117
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.thrift_spec)), None, ), # 0
6857 amar.kumar 11118
  )
11119
 
11120
  def __init__(self, success=None,):
11121
    self.success = success
11122
 
11123
  def read(self, iprot):
11124
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11125
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11126
      return
11127
    iprot.readStructBegin()
11128
    while True:
11129
      (fname, ftype, fid) = iprot.readFieldBegin()
11130
      if ftype == TType.STOP:
11131
        break
11132
      if fid == 0:
11133
        if ftype == TType.LIST:
11134
          self.success = []
8182 amar.kumar 11135
          (_etype212, _size209) = iprot.readListBegin()
11136
          for _i213 in xrange(_size209):
10126 amar.kumar 11137
            _elem214 = OOSStatus()
8182 amar.kumar 11138
            _elem214.read(iprot)
11139
            self.success.append(_elem214)
6857 amar.kumar 11140
          iprot.readListEnd()
11141
        else:
11142
          iprot.skip(ftype)
11143
      else:
11144
        iprot.skip(ftype)
11145
      iprot.readFieldEnd()
11146
    iprot.readStructEnd()
11147
 
11148
  def write(self, oprot):
11149
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11150
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11151
      return
10126 amar.kumar 11152
    oprot.writeStructBegin('getOosStatusesForXDays_result')
6857 amar.kumar 11153
    if self.success is not None:
11154
      oprot.writeFieldBegin('success', TType.LIST, 0)
11155
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 11156
      for iter215 in self.success:
11157
        iter215.write(oprot)
6857 amar.kumar 11158
      oprot.writeListEnd()
11159
      oprot.writeFieldEnd()
11160
    oprot.writeFieldStop()
11161
    oprot.writeStructEnd()
11162
 
11163
  def validate(self):
11164
    return
11165
 
11166
 
11167
  def __repr__(self):
11168
    L = ['%s=%r' % (key, value)
11169
      for key, value in self.__dict__.iteritems()]
11170
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11171
 
11172
  def __eq__(self, other):
11173
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11174
 
11175
  def __ne__(self, other):
11176
    return not (self == other)
7149 amar.kumar 11177
 
10126 amar.kumar 11178
class getAllVendorItemPricing_args:
11179
  """
11180
  Attributes:
11181
   - itemId
11182
   - vendorId
11183
  """
7149 amar.kumar 11184
 
11185
  thrift_spec = (
10126 amar.kumar 11186
    None, # 0
11187
    (1, TType.I64, 'itemId', None, None, ), # 1
11188
    (2, TType.I64, 'vendorId', None, None, ), # 2
7149 amar.kumar 11189
  )
11190
 
10126 amar.kumar 11191
  def __init__(self, itemId=None, vendorId=None,):
11192
    self.itemId = itemId
11193
    self.vendorId = vendorId
11194
 
7149 amar.kumar 11195
  def read(self, iprot):
11196
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11197
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11198
      return
11199
    iprot.readStructBegin()
11200
    while True:
11201
      (fname, ftype, fid) = iprot.readFieldBegin()
11202
      if ftype == TType.STOP:
11203
        break
10126 amar.kumar 11204
      if fid == 1:
11205
        if ftype == TType.I64:
11206
          self.itemId = iprot.readI64();
11207
        else:
11208
          iprot.skip(ftype)
11209
      elif fid == 2:
11210
        if ftype == TType.I64:
11211
          self.vendorId = iprot.readI64();
11212
        else:
11213
          iprot.skip(ftype)
7149 amar.kumar 11214
      else:
11215
        iprot.skip(ftype)
11216
      iprot.readFieldEnd()
11217
    iprot.readStructEnd()
11218
 
11219
  def write(self, oprot):
11220
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11221
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11222
      return
10126 amar.kumar 11223
    oprot.writeStructBegin('getAllVendorItemPricing_args')
11224
    if self.itemId is not None:
11225
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11226
      oprot.writeI64(self.itemId)
11227
      oprot.writeFieldEnd()
11228
    if self.vendorId is not None:
11229
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
11230
      oprot.writeI64(self.vendorId)
11231
      oprot.writeFieldEnd()
7149 amar.kumar 11232
    oprot.writeFieldStop()
11233
    oprot.writeStructEnd()
11234
 
11235
  def validate(self):
11236
    return
11237
 
11238
 
11239
  def __repr__(self):
11240
    L = ['%s=%r' % (key, value)
11241
      for key, value in self.__dict__.iteritems()]
11242
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11243
 
11244
  def __eq__(self, other):
11245
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11246
 
11247
  def __ne__(self, other):
11248
    return not (self == other)
11249
 
10126 amar.kumar 11250
class getAllVendorItemPricing_result:
7149 amar.kumar 11251
  """
11252
  Attributes:
11253
   - success
11254
  """
11255
 
11256
  thrift_spec = (
10126 amar.kumar 11257
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
7149 amar.kumar 11258
  )
11259
 
11260
  def __init__(self, success=None,):
11261
    self.success = success
11262
 
11263
  def read(self, iprot):
11264
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11265
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11266
      return
11267
    iprot.readStructBegin()
11268
    while True:
11269
      (fname, ftype, fid) = iprot.readFieldBegin()
11270
      if ftype == TType.STOP:
11271
        break
11272
      if fid == 0:
11273
        if ftype == TType.LIST:
11274
          self.success = []
8182 amar.kumar 11275
          (_etype219, _size216) = iprot.readListBegin()
11276
          for _i220 in xrange(_size216):
10126 amar.kumar 11277
            _elem221 = VendorItemPricing()
8182 amar.kumar 11278
            _elem221.read(iprot)
11279
            self.success.append(_elem221)
7149 amar.kumar 11280
          iprot.readListEnd()
11281
        else:
11282
          iprot.skip(ftype)
11283
      else:
11284
        iprot.skip(ftype)
11285
      iprot.readFieldEnd()
11286
    iprot.readStructEnd()
11287
 
11288
  def write(self, oprot):
11289
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11290
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11291
      return
10126 amar.kumar 11292
    oprot.writeStructBegin('getAllVendorItemPricing_result')
7149 amar.kumar 11293
    if self.success is not None:
11294
      oprot.writeFieldBegin('success', TType.LIST, 0)
11295
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 11296
      for iter222 in self.success:
11297
        iter222.write(oprot)
7149 amar.kumar 11298
      oprot.writeListEnd()
11299
      oprot.writeFieldEnd()
11300
    oprot.writeFieldStop()
11301
    oprot.writeStructEnd()
11302
 
11303
  def validate(self):
11304
    return
11305
 
11306
 
11307
  def __repr__(self):
11308
    L = ['%s=%r' % (key, value)
11309
      for key, value in self.__dict__.iteritems()]
11310
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11311
 
11312
  def __eq__(self, other):
11313
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11314
 
11315
  def __ne__(self, other):
11316
    return not (self == other)
7281 kshitij.so 11317
 
10126 amar.kumar 11318
class getNonZeroItemStockPurchaseParams_args:
11319
 
11320
  thrift_spec = (
11321
  )
11322
 
11323
  def read(self, iprot):
11324
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11325
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11326
      return
11327
    iprot.readStructBegin()
11328
    while True:
11329
      (fname, ftype, fid) = iprot.readFieldBegin()
11330
      if ftype == TType.STOP:
11331
        break
11332
      else:
11333
        iprot.skip(ftype)
11334
      iprot.readFieldEnd()
11335
    iprot.readStructEnd()
11336
 
11337
  def write(self, oprot):
11338
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11339
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11340
      return
11341
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_args')
11342
    oprot.writeFieldStop()
11343
    oprot.writeStructEnd()
11344
 
11345
  def validate(self):
11346
    return
11347
 
11348
 
11349
  def __repr__(self):
11350
    L = ['%s=%r' % (key, value)
11351
      for key, value in self.__dict__.iteritems()]
11352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11353
 
11354
  def __eq__(self, other):
11355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11356
 
11357
  def __ne__(self, other):
11358
    return not (self == other)
11359
 
11360
class getNonZeroItemStockPurchaseParams_result:
11361
  """
11362
  Attributes:
11363
   - success
11364
  """
11365
 
11366
  thrift_spec = (
11367
    (0, TType.LIST, 'success', (TType.STRUCT,(ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec)), None, ), # 0
11368
  )
11369
 
11370
  def __init__(self, success=None,):
11371
    self.success = success
11372
 
11373
  def read(self, iprot):
11374
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11375
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11376
      return
11377
    iprot.readStructBegin()
11378
    while True:
11379
      (fname, ftype, fid) = iprot.readFieldBegin()
11380
      if ftype == TType.STOP:
11381
        break
11382
      if fid == 0:
11383
        if ftype == TType.LIST:
11384
          self.success = []
11385
          (_etype226, _size223) = iprot.readListBegin()
11386
          for _i227 in xrange(_size223):
11387
            _elem228 = ItemStockPurchaseParams()
11388
            _elem228.read(iprot)
11389
            self.success.append(_elem228)
11390
          iprot.readListEnd()
11391
        else:
11392
          iprot.skip(ftype)
11393
      else:
11394
        iprot.skip(ftype)
11395
      iprot.readFieldEnd()
11396
    iprot.readStructEnd()
11397
 
11398
  def write(self, oprot):
11399
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11400
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11401
      return
11402
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_result')
11403
    if self.success is not None:
11404
      oprot.writeFieldBegin('success', TType.LIST, 0)
11405
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11406
      for iter229 in self.success:
11407
        iter229.write(oprot)
11408
      oprot.writeListEnd()
11409
      oprot.writeFieldEnd()
11410
    oprot.writeFieldStop()
11411
    oprot.writeStructEnd()
11412
 
11413
  def validate(self):
11414
    return
11415
 
11416
 
11417
  def __repr__(self):
11418
    L = ['%s=%r' % (key, value)
11419
      for key, value in self.__dict__.iteritems()]
11420
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11421
 
11422
  def __eq__(self, other):
11423
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11424
 
11425
  def __ne__(self, other):
11426
    return not (self == other)
11427
 
11428
class getBillableInventoryAndPendingOrders_args:
11429
 
11430
  thrift_spec = (
11431
  )
11432
 
11433
  def read(self, iprot):
11434
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11435
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11436
      return
11437
    iprot.readStructBegin()
11438
    while True:
11439
      (fname, ftype, fid) = iprot.readFieldBegin()
11440
      if ftype == TType.STOP:
11441
        break
11442
      else:
11443
        iprot.skip(ftype)
11444
      iprot.readFieldEnd()
11445
    iprot.readStructEnd()
11446
 
11447
  def write(self, oprot):
11448
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11449
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11450
      return
11451
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_args')
11452
    oprot.writeFieldStop()
11453
    oprot.writeStructEnd()
11454
 
11455
  def validate(self):
11456
    return
11457
 
11458
 
11459
  def __repr__(self):
11460
    L = ['%s=%r' % (key, value)
11461
      for key, value in self.__dict__.iteritems()]
11462
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11463
 
11464
  def __eq__(self, other):
11465
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11466
 
11467
  def __ne__(self, other):
11468
    return not (self == other)
11469
 
11470
class getBillableInventoryAndPendingOrders_result:
11471
  """
11472
  Attributes:
11473
   - success
11474
  """
11475
 
11476
  thrift_spec = (
11477
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
11478
  )
11479
 
11480
  def __init__(self, success=None,):
11481
    self.success = success
11482
 
11483
  def read(self, iprot):
11484
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11485
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11486
      return
11487
    iprot.readStructBegin()
11488
    while True:
11489
      (fname, ftype, fid) = iprot.readFieldBegin()
11490
      if ftype == TType.STOP:
11491
        break
11492
      if fid == 0:
11493
        if ftype == TType.LIST:
11494
          self.success = []
11495
          (_etype233, _size230) = iprot.readListBegin()
11496
          for _i234 in xrange(_size230):
11497
            _elem235 = AvailableAndReservedStock()
11498
            _elem235.read(iprot)
11499
            self.success.append(_elem235)
11500
          iprot.readListEnd()
11501
        else:
11502
          iprot.skip(ftype)
11503
      else:
11504
        iprot.skip(ftype)
11505
      iprot.readFieldEnd()
11506
    iprot.readStructEnd()
11507
 
11508
  def write(self, oprot):
11509
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11510
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11511
      return
11512
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_result')
11513
    if self.success is not None:
11514
      oprot.writeFieldBegin('success', TType.LIST, 0)
11515
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11516
      for iter236 in self.success:
11517
        iter236.write(oprot)
11518
      oprot.writeListEnd()
11519
      oprot.writeFieldEnd()
11520
    oprot.writeFieldStop()
11521
    oprot.writeStructEnd()
11522
 
11523
  def validate(self):
11524
    return
11525
 
11526
 
11527
  def __repr__(self):
11528
    L = ['%s=%r' % (key, value)
11529
      for key, value in self.__dict__.iteritems()]
11530
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11531
 
11532
  def __eq__(self, other):
11533
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11534
 
11535
  def __ne__(self, other):
11536
    return not (self == other)
11537
 
7281 kshitij.so 11538
class getWarehouseName_args:
11539
  """
11540
  Attributes:
11541
   - warehouse_id
11542
  """
11543
 
11544
  thrift_spec = (
11545
    None, # 0
11546
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
11547
  )
11548
 
11549
  def __init__(self, warehouse_id=None,):
11550
    self.warehouse_id = warehouse_id
11551
 
11552
  def read(self, iprot):
11553
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11554
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11555
      return
11556
    iprot.readStructBegin()
11557
    while True:
11558
      (fname, ftype, fid) = iprot.readFieldBegin()
11559
      if ftype == TType.STOP:
11560
        break
11561
      if fid == 1:
11562
        if ftype == TType.I64:
11563
          self.warehouse_id = iprot.readI64();
11564
        else:
11565
          iprot.skip(ftype)
11566
      else:
11567
        iprot.skip(ftype)
11568
      iprot.readFieldEnd()
11569
    iprot.readStructEnd()
11570
 
11571
  def write(self, oprot):
11572
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11573
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11574
      return
11575
    oprot.writeStructBegin('getWarehouseName_args')
11576
    if self.warehouse_id is not None:
11577
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
11578
      oprot.writeI64(self.warehouse_id)
11579
      oprot.writeFieldEnd()
11580
    oprot.writeFieldStop()
11581
    oprot.writeStructEnd()
11582
 
11583
  def validate(self):
11584
    return
11585
 
11586
 
11587
  def __repr__(self):
11588
    L = ['%s=%r' % (key, value)
11589
      for key, value in self.__dict__.iteritems()]
11590
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11591
 
11592
  def __eq__(self, other):
11593
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11594
 
11595
  def __ne__(self, other):
11596
    return not (self == other)
11597
 
11598
class getWarehouseName_result:
11599
  """
11600
  Attributes:
11601
   - success
11602
  """
11603
 
11604
  thrift_spec = (
11605
    (0, TType.STRING, 'success', None, None, ), # 0
11606
  )
11607
 
11608
  def __init__(self, success=None,):
11609
    self.success = success
11610
 
11611
  def read(self, iprot):
11612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11614
      return
11615
    iprot.readStructBegin()
11616
    while True:
11617
      (fname, ftype, fid) = iprot.readFieldBegin()
11618
      if ftype == TType.STOP:
11619
        break
11620
      if fid == 0:
11621
        if ftype == TType.STRING:
11622
          self.success = iprot.readString();
11623
        else:
11624
          iprot.skip(ftype)
11625
      else:
11626
        iprot.skip(ftype)
11627
      iprot.readFieldEnd()
11628
    iprot.readStructEnd()
11629
 
11630
  def write(self, oprot):
11631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11633
      return
11634
    oprot.writeStructBegin('getWarehouseName_result')
11635
    if self.success is not None:
11636
      oprot.writeFieldBegin('success', TType.STRING, 0)
11637
      oprot.writeString(self.success)
11638
      oprot.writeFieldEnd()
11639
    oprot.writeFieldStop()
11640
    oprot.writeStructEnd()
11641
 
11642
  def validate(self):
11643
    return
11644
 
11645
 
11646
  def __repr__(self):
11647
    L = ['%s=%r' % (key, value)
11648
      for key, value in self.__dict__.iteritems()]
11649
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11650
 
11651
  def __eq__(self, other):
11652
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11653
 
11654
  def __ne__(self, other):
11655
    return not (self == other)
11656
 
11657
class getAmazonInventoryForItem_args:
11658
  """
11659
  Attributes:
11660
   - item_id
11661
  """
11662
 
11663
  thrift_spec = (
11664
    None, # 0
11665
    (1, TType.I64, 'item_id', None, None, ), # 1
11666
  )
11667
 
11668
  def __init__(self, item_id=None,):
11669
    self.item_id = item_id
11670
 
11671
  def read(self, iprot):
11672
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11673
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11674
      return
11675
    iprot.readStructBegin()
11676
    while True:
11677
      (fname, ftype, fid) = iprot.readFieldBegin()
11678
      if ftype == TType.STOP:
11679
        break
11680
      if fid == 1:
11681
        if ftype == TType.I64:
11682
          self.item_id = iprot.readI64();
11683
        else:
11684
          iprot.skip(ftype)
11685
      else:
11686
        iprot.skip(ftype)
11687
      iprot.readFieldEnd()
11688
    iprot.readStructEnd()
11689
 
11690
  def write(self, oprot):
11691
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11692
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11693
      return
11694
    oprot.writeStructBegin('getAmazonInventoryForItem_args')
11695
    if self.item_id is not None:
11696
      oprot.writeFieldBegin('item_id', TType.I64, 1)
11697
      oprot.writeI64(self.item_id)
11698
      oprot.writeFieldEnd()
11699
    oprot.writeFieldStop()
11700
    oprot.writeStructEnd()
11701
 
11702
  def validate(self):
11703
    return
11704
 
11705
 
11706
  def __repr__(self):
11707
    L = ['%s=%r' % (key, value)
11708
      for key, value in self.__dict__.iteritems()]
11709
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11710
 
11711
  def __eq__(self, other):
11712
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11713
 
11714
  def __ne__(self, other):
11715
    return not (self == other)
11716
 
11717
class getAmazonInventoryForItem_result:
11718
  """
11719
  Attributes:
11720
   - success
11721
  """
11722
 
11723
  thrift_spec = (
11724
    (0, TType.STRUCT, 'success', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 0
11725
  )
11726
 
11727
  def __init__(self, success=None,):
11728
    self.success = success
11729
 
11730
  def read(self, iprot):
11731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11733
      return
11734
    iprot.readStructBegin()
11735
    while True:
11736
      (fname, ftype, fid) = iprot.readFieldBegin()
11737
      if ftype == TType.STOP:
11738
        break
11739
      if fid == 0:
11740
        if ftype == TType.STRUCT:
11741
          self.success = AmazonInventorySnapshot()
11742
          self.success.read(iprot)
11743
        else:
11744
          iprot.skip(ftype)
11745
      else:
11746
        iprot.skip(ftype)
11747
      iprot.readFieldEnd()
11748
    iprot.readStructEnd()
11749
 
11750
  def write(self, oprot):
11751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11753
      return
11754
    oprot.writeStructBegin('getAmazonInventoryForItem_result')
11755
    if self.success is not None:
11756
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11757
      self.success.write(oprot)
11758
      oprot.writeFieldEnd()
11759
    oprot.writeFieldStop()
11760
    oprot.writeStructEnd()
11761
 
11762
  def validate(self):
11763
    return
11764
 
11765
 
11766
  def __repr__(self):
11767
    L = ['%s=%r' % (key, value)
11768
      for key, value in self.__dict__.iteritems()]
11769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11770
 
11771
  def __eq__(self, other):
11772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11773
 
11774
  def __ne__(self, other):
11775
    return not (self == other)
11776
 
11777
class getAllAmazonInventory_args:
11778
 
11779
  thrift_spec = (
11780
  )
11781
 
11782
  def read(self, iprot):
11783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11785
      return
11786
    iprot.readStructBegin()
11787
    while True:
11788
      (fname, ftype, fid) = iprot.readFieldBegin()
11789
      if ftype == TType.STOP:
11790
        break
11791
      else:
11792
        iprot.skip(ftype)
11793
      iprot.readFieldEnd()
11794
    iprot.readStructEnd()
11795
 
11796
  def write(self, oprot):
11797
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11798
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11799
      return
11800
    oprot.writeStructBegin('getAllAmazonInventory_args')
11801
    oprot.writeFieldStop()
11802
    oprot.writeStructEnd()
11803
 
11804
  def validate(self):
11805
    return
11806
 
11807
 
11808
  def __repr__(self):
11809
    L = ['%s=%r' % (key, value)
11810
      for key, value in self.__dict__.iteritems()]
11811
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11812
 
11813
  def __eq__(self, other):
11814
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11815
 
11816
  def __ne__(self, other):
11817
    return not (self == other)
11818
 
11819
class getAllAmazonInventory_result:
11820
  """
11821
  Attributes:
11822
   - success
11823
  """
11824
 
11825
  thrift_spec = (
11826
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec)), None, ), # 0
11827
  )
11828
 
11829
  def __init__(self, success=None,):
11830
    self.success = success
11831
 
11832
  def read(self, iprot):
11833
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11834
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11835
      return
11836
    iprot.readStructBegin()
11837
    while True:
11838
      (fname, ftype, fid) = iprot.readFieldBegin()
11839
      if ftype == TType.STOP:
11840
        break
11841
      if fid == 0:
11842
        if ftype == TType.LIST:
11843
          self.success = []
10126 amar.kumar 11844
          (_etype240, _size237) = iprot.readListBegin()
11845
          for _i241 in xrange(_size237):
11846
            _elem242 = AmazonInventorySnapshot()
11847
            _elem242.read(iprot)
11848
            self.success.append(_elem242)
7281 kshitij.so 11849
          iprot.readListEnd()
11850
        else:
11851
          iprot.skip(ftype)
11852
      else:
11853
        iprot.skip(ftype)
11854
      iprot.readFieldEnd()
11855
    iprot.readStructEnd()
11856
 
11857
  def write(self, oprot):
11858
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11859
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11860
      return
11861
    oprot.writeStructBegin('getAllAmazonInventory_result')
11862
    if self.success is not None:
11863
      oprot.writeFieldBegin('success', TType.LIST, 0)
11864
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10126 amar.kumar 11865
      for iter243 in self.success:
11866
        iter243.write(oprot)
7281 kshitij.so 11867
      oprot.writeListEnd()
11868
      oprot.writeFieldEnd()
11869
    oprot.writeFieldStop()
11870
    oprot.writeStructEnd()
11871
 
11872
  def validate(self):
11873
    return
11874
 
11875
 
11876
  def __repr__(self):
11877
    L = ['%s=%r' % (key, value)
11878
      for key, value in self.__dict__.iteritems()]
11879
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11880
 
11881
  def __eq__(self, other):
11882
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11883
 
11884
  def __ne__(self, other):
11885
    return not (self == other)
11886
 
11887
class addOrUpdateAmazonInventoryForItem_args:
11888
  """
11889
  Attributes:
11890
   - amazonInventorySnapshot
10450 vikram.rag 11891
   - time
7281 kshitij.so 11892
  """
11893
 
11894
  thrift_spec = (
11895
    None, # 0
11896
    (1, TType.STRUCT, 'amazonInventorySnapshot', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 1
10450 vikram.rag 11897
    (2, TType.I64, 'time', None, None, ), # 2
7281 kshitij.so 11898
  )
11899
 
10450 vikram.rag 11900
  def __init__(self, amazonInventorySnapshot=None, time=None,):
7281 kshitij.so 11901
    self.amazonInventorySnapshot = amazonInventorySnapshot
10450 vikram.rag 11902
    self.time = time
7281 kshitij.so 11903
 
11904
  def read(self, iprot):
11905
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11906
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11907
      return
11908
    iprot.readStructBegin()
11909
    while True:
11910
      (fname, ftype, fid) = iprot.readFieldBegin()
11911
      if ftype == TType.STOP:
11912
        break
11913
      if fid == 1:
11914
        if ftype == TType.STRUCT:
11915
          self.amazonInventorySnapshot = AmazonInventorySnapshot()
11916
          self.amazonInventorySnapshot.read(iprot)
11917
        else:
11918
          iprot.skip(ftype)
10450 vikram.rag 11919
      elif fid == 2:
11920
        if ftype == TType.I64:
11921
          self.time = iprot.readI64();
11922
        else:
11923
          iprot.skip(ftype)
7281 kshitij.so 11924
      else:
11925
        iprot.skip(ftype)
11926
      iprot.readFieldEnd()
11927
    iprot.readStructEnd()
11928
 
11929
  def write(self, oprot):
11930
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11931
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11932
      return
11933
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_args')
11934
    if self.amazonInventorySnapshot is not None:
11935
      oprot.writeFieldBegin('amazonInventorySnapshot', TType.STRUCT, 1)
11936
      self.amazonInventorySnapshot.write(oprot)
11937
      oprot.writeFieldEnd()
10450 vikram.rag 11938
    if self.time is not None:
11939
      oprot.writeFieldBegin('time', TType.I64, 2)
11940
      oprot.writeI64(self.time)
11941
      oprot.writeFieldEnd()
7281 kshitij.so 11942
    oprot.writeFieldStop()
11943
    oprot.writeStructEnd()
11944
 
11945
  def validate(self):
11946
    return
11947
 
11948
 
11949
  def __repr__(self):
11950
    L = ['%s=%r' % (key, value)
11951
      for key, value in self.__dict__.iteritems()]
11952
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11953
 
11954
  def __eq__(self, other):
11955
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11956
 
11957
  def __ne__(self, other):
11958
    return not (self == other)
11959
 
11960
class addOrUpdateAmazonInventoryForItem_result:
11961
 
11962
  thrift_spec = (
11963
  )
11964
 
11965
  def read(self, iprot):
11966
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11967
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11968
      return
11969
    iprot.readStructBegin()
11970
    while True:
11971
      (fname, ftype, fid) = iprot.readFieldBegin()
11972
      if ftype == TType.STOP:
11973
        break
11974
      else:
11975
        iprot.skip(ftype)
11976
      iprot.readFieldEnd()
11977
    iprot.readStructEnd()
11978
 
11979
  def write(self, oprot):
11980
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11981
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11982
      return
11983
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_result')
11984
    oprot.writeFieldStop()
11985
    oprot.writeStructEnd()
11986
 
11987
  def validate(self):
11988
    return
11989
 
11990
 
11991
  def __repr__(self):
11992
    L = ['%s=%r' % (key, value)
11993
      for key, value in self.__dict__.iteritems()]
11994
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11995
 
11996
  def __eq__(self, other):
11997
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11998
 
11999
  def __ne__(self, other):
12000
    return not (self == other)
7972 amar.kumar 12001
 
12002
class getLastNdaySaleForItem_args:
12003
  """
12004
  Attributes:
12005
   - itemId
12006
   - numberOfDays
12007
  """
12008
 
12009
  thrift_spec = (
12010
    None, # 0
12011
    (1, TType.I64, 'itemId', None, None, ), # 1
12012
    (2, TType.I64, 'numberOfDays', None, None, ), # 2
12013
  )
12014
 
12015
  def __init__(self, itemId=None, numberOfDays=None,):
12016
    self.itemId = itemId
12017
    self.numberOfDays = numberOfDays
12018
 
12019
  def read(self, iprot):
12020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12022
      return
12023
    iprot.readStructBegin()
12024
    while True:
12025
      (fname, ftype, fid) = iprot.readFieldBegin()
12026
      if ftype == TType.STOP:
12027
        break
12028
      if fid == 1:
12029
        if ftype == TType.I64:
12030
          self.itemId = iprot.readI64();
12031
        else:
12032
          iprot.skip(ftype)
12033
      elif fid == 2:
12034
        if ftype == TType.I64:
12035
          self.numberOfDays = iprot.readI64();
12036
        else:
12037
          iprot.skip(ftype)
12038
      else:
12039
        iprot.skip(ftype)
12040
      iprot.readFieldEnd()
12041
    iprot.readStructEnd()
12042
 
12043
  def write(self, oprot):
12044
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12045
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12046
      return
12047
    oprot.writeStructBegin('getLastNdaySaleForItem_args')
12048
    if self.itemId is not None:
12049
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12050
      oprot.writeI64(self.itemId)
12051
      oprot.writeFieldEnd()
12052
    if self.numberOfDays is not None:
12053
      oprot.writeFieldBegin('numberOfDays', TType.I64, 2)
12054
      oprot.writeI64(self.numberOfDays)
12055
      oprot.writeFieldEnd()
12056
    oprot.writeFieldStop()
12057
    oprot.writeStructEnd()
12058
 
12059
  def validate(self):
12060
    return
12061
 
12062
 
12063
  def __repr__(self):
12064
    L = ['%s=%r' % (key, value)
12065
      for key, value in self.__dict__.iteritems()]
12066
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12067
 
12068
  def __eq__(self, other):
12069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12070
 
12071
  def __ne__(self, other):
12072
    return not (self == other)
12073
 
12074
class getLastNdaySaleForItem_result:
12075
  """
12076
  Attributes:
12077
   - success
12078
  """
12079
 
12080
  thrift_spec = (
12081
    (0, TType.STRING, 'success', None, None, ), # 0
12082
  )
12083
 
12084
  def __init__(self, success=None,):
12085
    self.success = success
12086
 
12087
  def read(self, iprot):
12088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12090
      return
12091
    iprot.readStructBegin()
12092
    while True:
12093
      (fname, ftype, fid) = iprot.readFieldBegin()
12094
      if ftype == TType.STOP:
12095
        break
12096
      if fid == 0:
12097
        if ftype == TType.STRING:
12098
          self.success = iprot.readString();
12099
        else:
12100
          iprot.skip(ftype)
12101
      else:
12102
        iprot.skip(ftype)
12103
      iprot.readFieldEnd()
12104
    iprot.readStructEnd()
12105
 
12106
  def write(self, oprot):
12107
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12108
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12109
      return
12110
    oprot.writeStructBegin('getLastNdaySaleForItem_result')
12111
    if self.success is not None:
12112
      oprot.writeFieldBegin('success', TType.STRING, 0)
12113
      oprot.writeString(self.success)
12114
      oprot.writeFieldEnd()
12115
    oprot.writeFieldStop()
12116
    oprot.writeStructEnd()
12117
 
12118
  def validate(self):
12119
    return
12120
 
12121
 
12122
  def __repr__(self):
12123
    L = ['%s=%r' % (key, value)
12124
      for key, value in self.__dict__.iteritems()]
12125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12126
 
12127
  def __eq__(self, other):
12128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12129
 
12130
  def __ne__(self, other):
12131
    return not (self == other)
8182 amar.kumar 12132
 
8282 kshitij.so 12133
class addOrUpdateAmazonFbaInventory_args:
12134
  """
12135
  Attributes:
12136
   - amazonfbainventorysnapshot
12137
  """
12138
 
12139
  thrift_spec = (
12140
    None, # 0
12141
    (1, TType.STRUCT, 'amazonfbainventorysnapshot', (AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec), None, ), # 1
12142
  )
12143
 
12144
  def __init__(self, amazonfbainventorysnapshot=None,):
12145
    self.amazonfbainventorysnapshot = amazonfbainventorysnapshot
12146
 
12147
  def read(self, iprot):
12148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12150
      return
12151
    iprot.readStructBegin()
12152
    while True:
12153
      (fname, ftype, fid) = iprot.readFieldBegin()
12154
      if ftype == TType.STOP:
12155
        break
12156
      if fid == 1:
12157
        if ftype == TType.STRUCT:
12158
          self.amazonfbainventorysnapshot = AmazonFbaInventorySnapshot()
12159
          self.amazonfbainventorysnapshot.read(iprot)
12160
        else:
12161
          iprot.skip(ftype)
12162
      else:
12163
        iprot.skip(ftype)
12164
      iprot.readFieldEnd()
12165
    iprot.readStructEnd()
12166
 
12167
  def write(self, oprot):
12168
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12169
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12170
      return
12171
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_args')
12172
    if self.amazonfbainventorysnapshot is not None:
12173
      oprot.writeFieldBegin('amazonfbainventorysnapshot', TType.STRUCT, 1)
12174
      self.amazonfbainventorysnapshot.write(oprot)
12175
      oprot.writeFieldEnd()
12176
    oprot.writeFieldStop()
12177
    oprot.writeStructEnd()
12178
 
12179
  def validate(self):
12180
    return
12181
 
12182
 
12183
  def __repr__(self):
12184
    L = ['%s=%r' % (key, value)
12185
      for key, value in self.__dict__.iteritems()]
12186
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12187
 
12188
  def __eq__(self, other):
12189
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12190
 
12191
  def __ne__(self, other):
12192
    return not (self == other)
12193
 
12194
class addOrUpdateAmazonFbaInventory_result:
12195
 
12196
  thrift_spec = (
12197
  )
12198
 
12199
  def read(self, iprot):
12200
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12201
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12202
      return
12203
    iprot.readStructBegin()
12204
    while True:
12205
      (fname, ftype, fid) = iprot.readFieldBegin()
12206
      if ftype == TType.STOP:
12207
        break
12208
      else:
12209
        iprot.skip(ftype)
12210
      iprot.readFieldEnd()
12211
    iprot.readStructEnd()
12212
 
12213
  def write(self, oprot):
12214
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12215
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12216
      return
12217
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_result')
12218
    oprot.writeFieldStop()
12219
    oprot.writeStructEnd()
12220
 
12221
  def validate(self):
12222
    return
12223
 
12224
 
12225
  def __repr__(self):
12226
    L = ['%s=%r' % (key, value)
12227
      for key, value in self.__dict__.iteritems()]
12228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12229
 
12230
  def __eq__(self, other):
12231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12232
 
12233
  def __ne__(self, other):
12234
    return not (self == other)
12235
 
8182 amar.kumar 12236
class addUpdateHoldInventory_args:
12237
  """
12238
  Attributes:
12239
   - itemId
12240
   - warehouseId
12241
   - holdQuantity
12242
   - source
12243
  """
12244
 
12245
  thrift_spec = (
12246
    None, # 0
12247
    (1, TType.I64, 'itemId', None, None, ), # 1
12248
    (2, TType.I64, 'warehouseId', None, None, ), # 2
12249
    (3, TType.I64, 'holdQuantity', None, None, ), # 3
12250
    (4, TType.I64, 'source', None, None, ), # 4
12251
  )
12252
 
12253
  def __init__(self, itemId=None, warehouseId=None, holdQuantity=None, source=None,):
12254
    self.itemId = itemId
12255
    self.warehouseId = warehouseId
12256
    self.holdQuantity = holdQuantity
12257
    self.source = source
12258
 
12259
  def read(self, iprot):
12260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12262
      return
12263
    iprot.readStructBegin()
12264
    while True:
12265
      (fname, ftype, fid) = iprot.readFieldBegin()
12266
      if ftype == TType.STOP:
12267
        break
12268
      if fid == 1:
12269
        if ftype == TType.I64:
12270
          self.itemId = iprot.readI64();
12271
        else:
12272
          iprot.skip(ftype)
12273
      elif fid == 2:
12274
        if ftype == TType.I64:
12275
          self.warehouseId = iprot.readI64();
12276
        else:
12277
          iprot.skip(ftype)
12278
      elif fid == 3:
12279
        if ftype == TType.I64:
12280
          self.holdQuantity = iprot.readI64();
12281
        else:
12282
          iprot.skip(ftype)
12283
      elif fid == 4:
12284
        if ftype == TType.I64:
12285
          self.source = iprot.readI64();
12286
        else:
12287
          iprot.skip(ftype)
12288
      else:
12289
        iprot.skip(ftype)
12290
      iprot.readFieldEnd()
12291
    iprot.readStructEnd()
12292
 
12293
  def write(self, oprot):
12294
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12295
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12296
      return
12297
    oprot.writeStructBegin('addUpdateHoldInventory_args')
12298
    if self.itemId is not None:
12299
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12300
      oprot.writeI64(self.itemId)
12301
      oprot.writeFieldEnd()
12302
    if self.warehouseId is not None:
12303
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
12304
      oprot.writeI64(self.warehouseId)
12305
      oprot.writeFieldEnd()
12306
    if self.holdQuantity is not None:
12307
      oprot.writeFieldBegin('holdQuantity', TType.I64, 3)
12308
      oprot.writeI64(self.holdQuantity)
12309
      oprot.writeFieldEnd()
12310
    if self.source is not None:
12311
      oprot.writeFieldBegin('source', TType.I64, 4)
12312
      oprot.writeI64(self.source)
12313
      oprot.writeFieldEnd()
12314
    oprot.writeFieldStop()
12315
    oprot.writeStructEnd()
12316
 
12317
  def validate(self):
12318
    return
12319
 
12320
 
12321
  def __repr__(self):
12322
    L = ['%s=%r' % (key, value)
12323
      for key, value in self.__dict__.iteritems()]
12324
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12325
 
12326
  def __eq__(self, other):
12327
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12328
 
12329
  def __ne__(self, other):
12330
    return not (self == other)
12331
 
12332
class addUpdateHoldInventory_result:
9762 amar.kumar 12333
  """
12334
  Attributes:
12335
   - cex
12336
  """
8182 amar.kumar 12337
 
12338
  thrift_spec = (
9762 amar.kumar 12339
    None, # 0
12340
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8182 amar.kumar 12341
  )
12342
 
9762 amar.kumar 12343
  def __init__(self, cex=None,):
12344
    self.cex = cex
12345
 
8182 amar.kumar 12346
  def read(self, iprot):
12347
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12348
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12349
      return
12350
    iprot.readStructBegin()
12351
    while True:
12352
      (fname, ftype, fid) = iprot.readFieldBegin()
12353
      if ftype == TType.STOP:
12354
        break
9762 amar.kumar 12355
      if fid == 1:
12356
        if ftype == TType.STRUCT:
12357
          self.cex = InventoryServiceException()
12358
          self.cex.read(iprot)
12359
        else:
12360
          iprot.skip(ftype)
8182 amar.kumar 12361
      else:
12362
        iprot.skip(ftype)
12363
      iprot.readFieldEnd()
12364
    iprot.readStructEnd()
12365
 
12366
  def write(self, oprot):
12367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12369
      return
12370
    oprot.writeStructBegin('addUpdateHoldInventory_result')
9762 amar.kumar 12371
    if self.cex is not None:
12372
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12373
      self.cex.write(oprot)
12374
      oprot.writeFieldEnd()
8182 amar.kumar 12375
    oprot.writeFieldStop()
12376
    oprot.writeStructEnd()
12377
 
12378
  def validate(self):
12379
    return
12380
 
12381
 
12382
  def __repr__(self):
12383
    L = ['%s=%r' % (key, value)
12384
      for key, value in self.__dict__.iteritems()]
12385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12386
 
12387
  def __eq__(self, other):
12388
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12389
 
12390
  def __ne__(self, other):
12391
    return not (self == other)
8282 kshitij.so 12392
 
12393
class getAmazonFbaItemInventory_args:
12394
  """
12395
  Attributes:
12396
   - itemId
12397
  """
12398
 
12399
  thrift_spec = (
12400
    None, # 0
12401
    (1, TType.I64, 'itemId', None, None, ), # 1
12402
  )
12403
 
12404
  def __init__(self, itemId=None,):
12405
    self.itemId = itemId
12406
 
12407
  def read(self, iprot):
12408
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12409
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12410
      return
12411
    iprot.readStructBegin()
12412
    while True:
12413
      (fname, ftype, fid) = iprot.readFieldBegin()
12414
      if ftype == TType.STOP:
12415
        break
12416
      if fid == 1:
12417
        if ftype == TType.I64:
12418
          self.itemId = iprot.readI64();
12419
        else:
12420
          iprot.skip(ftype)
12421
      else:
12422
        iprot.skip(ftype)
12423
      iprot.readFieldEnd()
12424
    iprot.readStructEnd()
12425
 
12426
  def write(self, oprot):
12427
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12428
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12429
      return
12430
    oprot.writeStructBegin('getAmazonFbaItemInventory_args')
12431
    if self.itemId is not None:
12432
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12433
      oprot.writeI64(self.itemId)
12434
      oprot.writeFieldEnd()
12435
    oprot.writeFieldStop()
12436
    oprot.writeStructEnd()
12437
 
12438
  def validate(self):
12439
    return
12440
 
12441
 
12442
  def __repr__(self):
12443
    L = ['%s=%r' % (key, value)
12444
      for key, value in self.__dict__.iteritems()]
12445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12446
 
12447
  def __eq__(self, other):
12448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12449
 
12450
  def __ne__(self, other):
12451
    return not (self == other)
12452
 
12453
class getAmazonFbaItemInventory_result:
12454
  """
12455
  Attributes:
12456
   - success
12457
  """
12458
 
12459
  thrift_spec = (
11173 vikram.rag 12460
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
8282 kshitij.so 12461
  )
12462
 
12463
  def __init__(self, success=None,):
12464
    self.success = success
12465
 
12466
  def read(self, iprot):
12467
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12468
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12469
      return
12470
    iprot.readStructBegin()
12471
    while True:
12472
      (fname, ftype, fid) = iprot.readFieldBegin()
12473
      if ftype == TType.STOP:
12474
        break
12475
      if fid == 0:
11173 vikram.rag 12476
        if ftype == TType.LIST:
12477
          self.success = []
12478
          (_etype247, _size244) = iprot.readListBegin()
12479
          for _i248 in xrange(_size244):
12480
            _elem249 = AmazonFbaInventorySnapshot()
12481
            _elem249.read(iprot)
12482
            self.success.append(_elem249)
12483
          iprot.readListEnd()
8282 kshitij.so 12484
        else:
12485
          iprot.skip(ftype)
12486
      else:
12487
        iprot.skip(ftype)
12488
      iprot.readFieldEnd()
12489
    iprot.readStructEnd()
12490
 
12491
  def write(self, oprot):
12492
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12493
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12494
      return
12495
    oprot.writeStructBegin('getAmazonFbaItemInventory_result')
12496
    if self.success is not None:
11173 vikram.rag 12497
      oprot.writeFieldBegin('success', TType.LIST, 0)
12498
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12499
      for iter250 in self.success:
12500
        iter250.write(oprot)
12501
      oprot.writeListEnd()
8282 kshitij.so 12502
      oprot.writeFieldEnd()
12503
    oprot.writeFieldStop()
12504
    oprot.writeStructEnd()
12505
 
12506
  def validate(self):
12507
    return
12508
 
12509
 
12510
  def __repr__(self):
12511
    L = ['%s=%r' % (key, value)
12512
      for key, value in self.__dict__.iteritems()]
12513
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12514
 
12515
  def __eq__(self, other):
12516
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12517
 
12518
  def __ne__(self, other):
12519
    return not (self == other)
12520
 
8363 vikram.rag 12521
class getAllAmazonFbaItemInventory_args:
8282 kshitij.so 12522
 
12523
  thrift_spec = (
12524
  )
12525
 
12526
  def read(self, iprot):
12527
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12528
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12529
      return
12530
    iprot.readStructBegin()
12531
    while True:
12532
      (fname, ftype, fid) = iprot.readFieldBegin()
12533
      if ftype == TType.STOP:
12534
        break
12535
      else:
12536
        iprot.skip(ftype)
12537
      iprot.readFieldEnd()
12538
    iprot.readStructEnd()
12539
 
12540
  def write(self, oprot):
12541
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12542
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12543
      return
8363 vikram.rag 12544
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_args')
8282 kshitij.so 12545
    oprot.writeFieldStop()
12546
    oprot.writeStructEnd()
12547
 
12548
  def validate(self):
12549
    return
12550
 
12551
 
12552
  def __repr__(self):
12553
    L = ['%s=%r' % (key, value)
12554
      for key, value in self.__dict__.iteritems()]
12555
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12556
 
12557
  def __eq__(self, other):
12558
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12559
 
12560
  def __ne__(self, other):
12561
    return not (self == other)
12562
 
8363 vikram.rag 12563
class getAllAmazonFbaItemInventory_result:
8282 kshitij.so 12564
  """
12565
  Attributes:
12566
   - success
12567
  """
12568
 
12569
  thrift_spec = (
12570
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
12571
  )
12572
 
12573
  def __init__(self, success=None,):
12574
    self.success = success
12575
 
12576
  def read(self, iprot):
12577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12579
      return
12580
    iprot.readStructBegin()
12581
    while True:
12582
      (fname, ftype, fid) = iprot.readFieldBegin()
12583
      if ftype == TType.STOP:
12584
        break
12585
      if fid == 0:
12586
        if ftype == TType.LIST:
12587
          self.success = []
11173 vikram.rag 12588
          (_etype254, _size251) = iprot.readListBegin()
12589
          for _i255 in xrange(_size251):
12590
            _elem256 = AmazonFbaInventorySnapshot()
12591
            _elem256.read(iprot)
12592
            self.success.append(_elem256)
8282 kshitij.so 12593
          iprot.readListEnd()
12594
        else:
12595
          iprot.skip(ftype)
12596
      else:
12597
        iprot.skip(ftype)
12598
      iprot.readFieldEnd()
12599
    iprot.readStructEnd()
12600
 
12601
  def write(self, oprot):
12602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12604
      return
8363 vikram.rag 12605
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_result')
8282 kshitij.so 12606
    if self.success is not None:
12607
      oprot.writeFieldBegin('success', TType.LIST, 0)
12608
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 12609
      for iter257 in self.success:
12610
        iter257.write(oprot)
8282 kshitij.so 12611
      oprot.writeListEnd()
12612
      oprot.writeFieldEnd()
12613
    oprot.writeFieldStop()
12614
    oprot.writeStructEnd()
12615
 
12616
  def validate(self):
12617
    return
12618
 
12619
 
12620
  def __repr__(self):
12621
    L = ['%s=%r' % (key, value)
12622
      for key, value in self.__dict__.iteritems()]
12623
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12624
 
12625
  def __eq__(self, other):
12626
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12627
 
12628
  def __ne__(self, other):
12629
    return not (self == other)
8363 vikram.rag 12630
 
12631
class getOursGoodWarehouseIdsForLocation_args:
12632
  """
12633
  Attributes:
12634
   - state_id
12635
  """
12636
 
12637
  thrift_spec = (
12638
    None, # 0
12639
    (1, TType.I64, 'state_id', None, None, ), # 1
12640
  )
12641
 
12642
  def __init__(self, state_id=None,):
12643
    self.state_id = state_id
12644
 
12645
  def read(self, iprot):
12646
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12647
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12648
      return
12649
    iprot.readStructBegin()
12650
    while True:
12651
      (fname, ftype, fid) = iprot.readFieldBegin()
12652
      if ftype == TType.STOP:
12653
        break
12654
      if fid == 1:
12655
        if ftype == TType.I64:
12656
          self.state_id = iprot.readI64();
12657
        else:
12658
          iprot.skip(ftype)
12659
      else:
12660
        iprot.skip(ftype)
12661
      iprot.readFieldEnd()
12662
    iprot.readStructEnd()
12663
 
12664
  def write(self, oprot):
12665
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12666
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12667
      return
12668
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_args')
12669
    if self.state_id is not None:
12670
      oprot.writeFieldBegin('state_id', TType.I64, 1)
12671
      oprot.writeI64(self.state_id)
12672
      oprot.writeFieldEnd()
12673
    oprot.writeFieldStop()
12674
    oprot.writeStructEnd()
12675
 
12676
  def validate(self):
12677
    return
12678
 
12679
 
12680
  def __repr__(self):
12681
    L = ['%s=%r' % (key, value)
12682
      for key, value in self.__dict__.iteritems()]
12683
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12684
 
12685
  def __eq__(self, other):
12686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12687
 
12688
  def __ne__(self, other):
12689
    return not (self == other)
12690
 
12691
class getOursGoodWarehouseIdsForLocation_result:
12692
  """
12693
  Attributes:
12694
   - success
12695
  """
12696
 
12697
  thrift_spec = (
12698
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12699
  )
12700
 
12701
  def __init__(self, success=None,):
12702
    self.success = success
12703
 
12704
  def read(self, iprot):
12705
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12706
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12707
      return
12708
    iprot.readStructBegin()
12709
    while True:
12710
      (fname, ftype, fid) = iprot.readFieldBegin()
12711
      if ftype == TType.STOP:
12712
        break
12713
      if fid == 0:
12714
        if ftype == TType.LIST:
12715
          self.success = []
11173 vikram.rag 12716
          (_etype261, _size258) = iprot.readListBegin()
12717
          for _i262 in xrange(_size258):
12718
            _elem263 = iprot.readI64();
12719
            self.success.append(_elem263)
8363 vikram.rag 12720
          iprot.readListEnd()
12721
        else:
12722
          iprot.skip(ftype)
12723
      else:
12724
        iprot.skip(ftype)
12725
      iprot.readFieldEnd()
12726
    iprot.readStructEnd()
12727
 
12728
  def write(self, oprot):
12729
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12730
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12731
      return
12732
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_result')
12733
    if self.success is not None:
12734
      oprot.writeFieldBegin('success', TType.LIST, 0)
12735
      oprot.writeListBegin(TType.I64, len(self.success))
11173 vikram.rag 12736
      for iter264 in self.success:
12737
        oprot.writeI64(iter264)
8363 vikram.rag 12738
      oprot.writeListEnd()
12739
      oprot.writeFieldEnd()
12740
    oprot.writeFieldStop()
12741
    oprot.writeStructEnd()
12742
 
12743
  def validate(self):
12744
    return
12745
 
12746
 
12747
  def __repr__(self):
12748
    L = ['%s=%r' % (key, value)
12749
      for key, value in self.__dict__.iteritems()]
12750
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12751
 
12752
  def __eq__(self, other):
12753
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12754
 
12755
  def __ne__(self, other):
12756
    return not (self == other)
8955 vikram.rag 12757
 
12758
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_args:
12759
  """
12760
  Attributes:
12761
   - id
12762
   - warehouse_id
12763
   - source
12764
  """
12765
 
12766
  thrift_spec = (
12767
    None, # 0
12768
    (1, TType.I64, 'id', None, None, ), # 1
12769
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
12770
    (3, TType.I64, 'source', None, None, ), # 3
12771
  )
12772
 
12773
  def __init__(self, id=None, warehouse_id=None, source=None,):
12774
    self.id = id
12775
    self.warehouse_id = warehouse_id
12776
    self.source = source
12777
 
12778
  def read(self, iprot):
12779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12781
      return
12782
    iprot.readStructBegin()
12783
    while True:
12784
      (fname, ftype, fid) = iprot.readFieldBegin()
12785
      if ftype == TType.STOP:
12786
        break
12787
      if fid == 1:
12788
        if ftype == TType.I64:
12789
          self.id = iprot.readI64();
12790
        else:
12791
          iprot.skip(ftype)
12792
      elif fid == 2:
12793
        if ftype == TType.I64:
12794
          self.warehouse_id = iprot.readI64();
12795
        else:
12796
          iprot.skip(ftype)
12797
      elif fid == 3:
12798
        if ftype == TType.I64:
12799
          self.source = iprot.readI64();
12800
        else:
12801
          iprot.skip(ftype)
12802
      else:
12803
        iprot.skip(ftype)
12804
      iprot.readFieldEnd()
12805
    iprot.readStructEnd()
12806
 
12807
  def write(self, oprot):
12808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12810
      return
12811
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_args')
12812
    if self.id is not None:
12813
      oprot.writeFieldBegin('id', TType.I64, 1)
12814
      oprot.writeI64(self.id)
12815
      oprot.writeFieldEnd()
12816
    if self.warehouse_id is not None:
12817
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
12818
      oprot.writeI64(self.warehouse_id)
12819
      oprot.writeFieldEnd()
12820
    if self.source is not None:
12821
      oprot.writeFieldBegin('source', TType.I64, 3)
12822
      oprot.writeI64(self.source)
12823
      oprot.writeFieldEnd()
12824
    oprot.writeFieldStop()
12825
    oprot.writeStructEnd()
12826
 
12827
  def validate(self):
12828
    return
12829
 
12830
 
12831
  def __repr__(self):
12832
    L = ['%s=%r' % (key, value)
12833
      for key, value in self.__dict__.iteritems()]
12834
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12835
 
12836
  def __eq__(self, other):
12837
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12838
 
12839
  def __ne__(self, other):
12840
    return not (self == other)
12841
 
12842
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_result:
12843
  """
12844
  Attributes:
12845
   - success
12846
  """
12847
 
12848
  thrift_spec = (
12849
    (0, TType.I64, 'success', None, None, ), # 0
12850
  )
12851
 
12852
  def __init__(self, success=None,):
12853
    self.success = success
12854
 
12855
  def read(self, iprot):
12856
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12857
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12858
      return
12859
    iprot.readStructBegin()
12860
    while True:
12861
      (fname, ftype, fid) = iprot.readFieldBegin()
12862
      if ftype == TType.STOP:
12863
        break
12864
      if fid == 0:
12865
        if ftype == TType.I64:
12866
          self.success = iprot.readI64();
12867
        else:
12868
          iprot.skip(ftype)
12869
      else:
12870
        iprot.skip(ftype)
12871
      iprot.readFieldEnd()
12872
    iprot.readStructEnd()
12873
 
12874
  def write(self, oprot):
12875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12877
      return
12878
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_result')
12879
    if self.success is not None:
12880
      oprot.writeFieldBegin('success', TType.I64, 0)
12881
      oprot.writeI64(self.success)
12882
      oprot.writeFieldEnd()
12883
    oprot.writeFieldStop()
12884
    oprot.writeStructEnd()
12885
 
12886
  def validate(self):
12887
    return
12888
 
12889
 
12890
  def __repr__(self):
12891
    L = ['%s=%r' % (key, value)
12892
      for key, value in self.__dict__.iteritems()]
12893
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12894
 
12895
  def __eq__(self, other):
12896
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12897
 
12898
  def __ne__(self, other):
12899
    return not (self == other)
9404 vikram.rag 12900
 
12901
class getSnapdealInventoryForItem_args:
12902
  """
12903
  Attributes:
12904
   - item_id
12905
  """
12906
 
12907
  thrift_spec = (
12908
    None, # 0
12909
    (1, TType.I64, 'item_id', None, None, ), # 1
12910
  )
12911
 
12912
  def __init__(self, item_id=None,):
12913
    self.item_id = item_id
12914
 
12915
  def read(self, iprot):
12916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12918
      return
12919
    iprot.readStructBegin()
12920
    while True:
12921
      (fname, ftype, fid) = iprot.readFieldBegin()
12922
      if ftype == TType.STOP:
12923
        break
12924
      if fid == 1:
12925
        if ftype == TType.I64:
12926
          self.item_id = iprot.readI64();
12927
        else:
12928
          iprot.skip(ftype)
12929
      else:
12930
        iprot.skip(ftype)
12931
      iprot.readFieldEnd()
12932
    iprot.readStructEnd()
12933
 
12934
  def write(self, oprot):
12935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12937
      return
12938
    oprot.writeStructBegin('getSnapdealInventoryForItem_args')
12939
    if self.item_id is not None:
12940
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12941
      oprot.writeI64(self.item_id)
12942
      oprot.writeFieldEnd()
12943
    oprot.writeFieldStop()
12944
    oprot.writeStructEnd()
12945
 
12946
  def validate(self):
12947
    return
12948
 
12949
 
12950
  def __repr__(self):
12951
    L = ['%s=%r' % (key, value)
12952
      for key, value in self.__dict__.iteritems()]
12953
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12954
 
12955
  def __eq__(self, other):
12956
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12957
 
12958
  def __ne__(self, other):
12959
    return not (self == other)
12960
 
12961
class getSnapdealInventoryForItem_result:
12962
  """
12963
  Attributes:
12964
   - success
12965
  """
12966
 
12967
  thrift_spec = (
12968
    (0, TType.STRUCT, 'success', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 0
12969
  )
12970
 
12971
  def __init__(self, success=None,):
12972
    self.success = success
12973
 
12974
  def read(self, iprot):
12975
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12976
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12977
      return
12978
    iprot.readStructBegin()
12979
    while True:
12980
      (fname, ftype, fid) = iprot.readFieldBegin()
12981
      if ftype == TType.STOP:
12982
        break
12983
      if fid == 0:
12984
        if ftype == TType.STRUCT:
12985
          self.success = SnapdealInventoryItem()
12986
          self.success.read(iprot)
12987
        else:
12988
          iprot.skip(ftype)
12989
      else:
12990
        iprot.skip(ftype)
12991
      iprot.readFieldEnd()
12992
    iprot.readStructEnd()
12993
 
12994
  def write(self, oprot):
12995
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12996
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12997
      return
12998
    oprot.writeStructBegin('getSnapdealInventoryForItem_result')
12999
    if self.success is not None:
13000
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13001
      self.success.write(oprot)
13002
      oprot.writeFieldEnd()
13003
    oprot.writeFieldStop()
13004
    oprot.writeStructEnd()
13005
 
13006
  def validate(self):
13007
    return
13008
 
13009
 
13010
  def __repr__(self):
13011
    L = ['%s=%r' % (key, value)
13012
      for key, value in self.__dict__.iteritems()]
13013
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13014
 
13015
  def __eq__(self, other):
13016
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13017
 
13018
  def __ne__(self, other):
13019
    return not (self == other)
13020
 
13021
class addOrUpdateSnapdealInventoryForItem_args:
13022
  """
13023
  Attributes:
13024
   - snapdealinventoryitem
13025
  """
13026
 
13027
  thrift_spec = (
13028
    None, # 0
13029
    (1, TType.STRUCT, 'snapdealinventoryitem', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 1
13030
  )
13031
 
13032
  def __init__(self, snapdealinventoryitem=None,):
13033
    self.snapdealinventoryitem = snapdealinventoryitem
13034
 
13035
  def read(self, iprot):
13036
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13037
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13038
      return
13039
    iprot.readStructBegin()
13040
    while True:
13041
      (fname, ftype, fid) = iprot.readFieldBegin()
13042
      if ftype == TType.STOP:
13043
        break
13044
      if fid == 1:
13045
        if ftype == TType.STRUCT:
13046
          self.snapdealinventoryitem = SnapdealInventoryItem()
13047
          self.snapdealinventoryitem.read(iprot)
13048
        else:
13049
          iprot.skip(ftype)
13050
      else:
13051
        iprot.skip(ftype)
13052
      iprot.readFieldEnd()
13053
    iprot.readStructEnd()
13054
 
13055
  def write(self, oprot):
13056
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13057
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13058
      return
13059
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_args')
13060
    if self.snapdealinventoryitem is not None:
13061
      oprot.writeFieldBegin('snapdealinventoryitem', TType.STRUCT, 1)
13062
      self.snapdealinventoryitem.write(oprot)
13063
      oprot.writeFieldEnd()
13064
    oprot.writeFieldStop()
13065
    oprot.writeStructEnd()
13066
 
13067
  def validate(self):
13068
    return
13069
 
13070
 
13071
  def __repr__(self):
13072
    L = ['%s=%r' % (key, value)
13073
      for key, value in self.__dict__.iteritems()]
13074
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13075
 
13076
  def __eq__(self, other):
13077
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13078
 
13079
  def __ne__(self, other):
13080
    return not (self == other)
13081
 
13082
class addOrUpdateSnapdealInventoryForItem_result:
13083
 
13084
  thrift_spec = (
13085
  )
13086
 
13087
  def read(self, iprot):
13088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13090
      return
13091
    iprot.readStructBegin()
13092
    while True:
13093
      (fname, ftype, fid) = iprot.readFieldBegin()
13094
      if ftype == TType.STOP:
13095
        break
13096
      else:
13097
        iprot.skip(ftype)
13098
      iprot.readFieldEnd()
13099
    iprot.readStructEnd()
13100
 
13101
  def write(self, oprot):
13102
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13103
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13104
      return
13105
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_result')
13106
    oprot.writeFieldStop()
13107
    oprot.writeStructEnd()
13108
 
13109
  def validate(self):
13110
    return
13111
 
13112
 
13113
  def __repr__(self):
13114
    L = ['%s=%r' % (key, value)
13115
      for key, value in self.__dict__.iteritems()]
13116
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13117
 
13118
  def __eq__(self, other):
13119
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13120
 
13121
  def __ne__(self, other):
13122
    return not (self == other)
13123
 
13124
class getNlcForWarehouse_args:
13125
  """
13126
  Attributes:
13127
   - warehouse_id
13128
   - item_id
13129
  """
13130
 
13131
  thrift_spec = (
13132
    None, # 0
13133
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
13134
    (2, TType.I64, 'item_id', None, None, ), # 2
13135
  )
13136
 
13137
  def __init__(self, warehouse_id=None, item_id=None,):
13138
    self.warehouse_id = warehouse_id
13139
    self.item_id = item_id
13140
 
13141
  def read(self, iprot):
13142
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13143
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13144
      return
13145
    iprot.readStructBegin()
13146
    while True:
13147
      (fname, ftype, fid) = iprot.readFieldBegin()
13148
      if ftype == TType.STOP:
13149
        break
13150
      if fid == 1:
13151
        if ftype == TType.I64:
13152
          self.warehouse_id = iprot.readI64();
13153
        else:
13154
          iprot.skip(ftype)
13155
      elif fid == 2:
13156
        if ftype == TType.I64:
13157
          self.item_id = iprot.readI64();
13158
        else:
13159
          iprot.skip(ftype)
13160
      else:
13161
        iprot.skip(ftype)
13162
      iprot.readFieldEnd()
13163
    iprot.readStructEnd()
13164
 
13165
  def write(self, oprot):
13166
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13167
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13168
      return
13169
    oprot.writeStructBegin('getNlcForWarehouse_args')
13170
    if self.warehouse_id is not None:
13171
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
13172
      oprot.writeI64(self.warehouse_id)
13173
      oprot.writeFieldEnd()
13174
    if self.item_id is not None:
13175
      oprot.writeFieldBegin('item_id', TType.I64, 2)
13176
      oprot.writeI64(self.item_id)
13177
      oprot.writeFieldEnd()
13178
    oprot.writeFieldStop()
13179
    oprot.writeStructEnd()
13180
 
13181
  def validate(self):
13182
    return
13183
 
13184
 
13185
  def __repr__(self):
13186
    L = ['%s=%r' % (key, value)
13187
      for key, value in self.__dict__.iteritems()]
13188
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13189
 
13190
  def __eq__(self, other):
13191
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13192
 
13193
  def __ne__(self, other):
13194
    return not (self == other)
13195
 
13196
class getNlcForWarehouse_result:
13197
  """
13198
  Attributes:
13199
   - success
13200
  """
13201
 
13202
  thrift_spec = (
13203
    (0, TType.DOUBLE, 'success', None, None, ), # 0
13204
  )
13205
 
13206
  def __init__(self, success=None,):
13207
    self.success = success
13208
 
13209
  def read(self, iprot):
13210
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13211
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13212
      return
13213
    iprot.readStructBegin()
13214
    while True:
13215
      (fname, ftype, fid) = iprot.readFieldBegin()
13216
      if ftype == TType.STOP:
13217
        break
13218
      if fid == 0:
13219
        if ftype == TType.DOUBLE:
13220
          self.success = iprot.readDouble();
13221
        else:
13222
          iprot.skip(ftype)
13223
      else:
13224
        iprot.skip(ftype)
13225
      iprot.readFieldEnd()
13226
    iprot.readStructEnd()
13227
 
13228
  def write(self, oprot):
13229
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13230
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13231
      return
13232
    oprot.writeStructBegin('getNlcForWarehouse_result')
13233
    if self.success is not None:
13234
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
13235
      oprot.writeDouble(self.success)
13236
      oprot.writeFieldEnd()
13237
    oprot.writeFieldStop()
13238
    oprot.writeStructEnd()
13239
 
13240
  def validate(self):
13241
    return
13242
 
13243
 
13244
  def __repr__(self):
13245
    L = ['%s=%r' % (key, value)
13246
      for key, value in self.__dict__.iteritems()]
13247
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13248
 
13249
  def __eq__(self, other):
13250
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13251
 
13252
  def __ne__(self, other):
13253
    return not (self == other)
9456 vikram.rag 13254
 
9640 amar.kumar 13255
class getHeldInventoryMapForItem_args:
13256
  """
13257
  Attributes:
13258
   - item_id
13259
   - warehouse_id
13260
  """
13261
 
13262
  thrift_spec = (
13263
    None, # 0
13264
    (1, TType.I64, 'item_id', None, None, ), # 1
13265
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
13266
  )
13267
 
13268
  def __init__(self, item_id=None, warehouse_id=None,):
13269
    self.item_id = item_id
13270
    self.warehouse_id = warehouse_id
13271
 
13272
  def read(self, iprot):
13273
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13274
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13275
      return
13276
    iprot.readStructBegin()
13277
    while True:
13278
      (fname, ftype, fid) = iprot.readFieldBegin()
13279
      if ftype == TType.STOP:
13280
        break
13281
      if fid == 1:
13282
        if ftype == TType.I64:
13283
          self.item_id = iprot.readI64();
13284
        else:
13285
          iprot.skip(ftype)
13286
      elif fid == 2:
13287
        if ftype == TType.I64:
13288
          self.warehouse_id = iprot.readI64();
13289
        else:
13290
          iprot.skip(ftype)
13291
      else:
13292
        iprot.skip(ftype)
13293
      iprot.readFieldEnd()
13294
    iprot.readStructEnd()
13295
 
13296
  def write(self, oprot):
13297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13299
      return
13300
    oprot.writeStructBegin('getHeldInventoryMapForItem_args')
13301
    if self.item_id is not None:
13302
      oprot.writeFieldBegin('item_id', TType.I64, 1)
13303
      oprot.writeI64(self.item_id)
13304
      oprot.writeFieldEnd()
13305
    if self.warehouse_id is not None:
13306
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
13307
      oprot.writeI64(self.warehouse_id)
13308
      oprot.writeFieldEnd()
13309
    oprot.writeFieldStop()
13310
    oprot.writeStructEnd()
13311
 
13312
  def validate(self):
13313
    return
13314
 
13315
 
13316
  def __repr__(self):
13317
    L = ['%s=%r' % (key, value)
13318
      for key, value in self.__dict__.iteritems()]
13319
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13320
 
13321
  def __eq__(self, other):
13322
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13323
 
13324
  def __ne__(self, other):
13325
    return not (self == other)
13326
 
13327
class getHeldInventoryMapForItem_result:
13328
  """
13329
  Attributes:
13330
   - success
13331
  """
13332
 
13333
  thrift_spec = (
13334
    (0, TType.MAP, 'success', (TType.I32,None,TType.I64,None), None, ), # 0
13335
  )
13336
 
13337
  def __init__(self, success=None,):
13338
    self.success = success
13339
 
13340
  def read(self, iprot):
13341
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13342
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13343
      return
13344
    iprot.readStructBegin()
13345
    while True:
13346
      (fname, ftype, fid) = iprot.readFieldBegin()
13347
      if ftype == TType.STOP:
13348
        break
13349
      if fid == 0:
13350
        if ftype == TType.MAP:
13351
          self.success = {}
11173 vikram.rag 13352
          (_ktype266, _vtype267, _size265 ) = iprot.readMapBegin() 
13353
          for _i269 in xrange(_size265):
13354
            _key270 = iprot.readI32();
13355
            _val271 = iprot.readI64();
13356
            self.success[_key270] = _val271
9640 amar.kumar 13357
          iprot.readMapEnd()
13358
        else:
13359
          iprot.skip(ftype)
13360
      else:
13361
        iprot.skip(ftype)
13362
      iprot.readFieldEnd()
13363
    iprot.readStructEnd()
13364
 
13365
  def write(self, oprot):
13366
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13367
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13368
      return
13369
    oprot.writeStructBegin('getHeldInventoryMapForItem_result')
13370
    if self.success is not None:
13371
      oprot.writeFieldBegin('success', TType.MAP, 0)
13372
      oprot.writeMapBegin(TType.I32, TType.I64, len(self.success))
11173 vikram.rag 13373
      for kiter272,viter273 in self.success.items():
13374
        oprot.writeI32(kiter272)
13375
        oprot.writeI64(viter273)
9640 amar.kumar 13376
      oprot.writeMapEnd()
13377
      oprot.writeFieldEnd()
13378
    oprot.writeFieldStop()
13379
    oprot.writeStructEnd()
13380
 
13381
  def validate(self):
13382
    return
13383
 
13384
 
13385
  def __repr__(self):
13386
    L = ['%s=%r' % (key, value)
13387
      for key, value in self.__dict__.iteritems()]
13388
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13389
 
13390
  def __eq__(self, other):
13391
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13392
 
13393
  def __ne__(self, other):
13394
    return not (self == other)
13395
 
9495 vikram.rag 13396
class addOrUpdateAllAmazonFbaInventory_args:
13397
  """
13398
  Attributes:
13399
   - allamazonfbainventorysnapshot
13400
  """
9456 vikram.rag 13401
 
9495 vikram.rag 13402
  thrift_spec = None
13403
  def __init__(self, allamazonfbainventorysnapshot=None,):
13404
    self.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 13405
 
13406
  def read(self, iprot):
13407
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13408
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13409
      return
13410
    iprot.readStructBegin()
13411
    while True:
13412
      (fname, ftype, fid) = iprot.readFieldBegin()
13413
      if ftype == TType.STOP:
13414
        break
9495 vikram.rag 13415
      if fid == -1:
13416
        if ftype == TType.LIST:
13417
          self.allamazonfbainventorysnapshot = []
11173 vikram.rag 13418
          (_etype277, _size274) = iprot.readListBegin()
13419
          for _i278 in xrange(_size274):
13420
            _elem279 = AmazonFbaInventorySnapshot()
13421
            _elem279.read(iprot)
13422
            self.allamazonfbainventorysnapshot.append(_elem279)
9495 vikram.rag 13423
          iprot.readListEnd()
13424
        else:
13425
          iprot.skip(ftype)
9456 vikram.rag 13426
      else:
13427
        iprot.skip(ftype)
13428
      iprot.readFieldEnd()
13429
    iprot.readStructEnd()
13430
 
13431
  def write(self, oprot):
13432
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13433
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13434
      return
9495 vikram.rag 13435
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_args')
13436
    if self.allamazonfbainventorysnapshot is not None:
13437
      oprot.writeFieldBegin('allamazonfbainventorysnapshot', TType.LIST, -1)
13438
      oprot.writeListBegin(TType.STRUCT, len(self.allamazonfbainventorysnapshot))
11173 vikram.rag 13439
      for iter280 in self.allamazonfbainventorysnapshot:
13440
        iter280.write(oprot)
9495 vikram.rag 13441
      oprot.writeListEnd()
13442
      oprot.writeFieldEnd()
9456 vikram.rag 13443
    oprot.writeFieldStop()
13444
    oprot.writeStructEnd()
13445
 
13446
  def validate(self):
13447
    return
13448
 
13449
 
13450
  def __repr__(self):
13451
    L = ['%s=%r' % (key, value)
13452
      for key, value in self.__dict__.iteritems()]
13453
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13454
 
13455
  def __eq__(self, other):
13456
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13457
 
13458
  def __ne__(self, other):
13459
    return not (self == other)
13460
 
9495 vikram.rag 13461
class addOrUpdateAllAmazonFbaInventory_result:
9456 vikram.rag 13462
 
13463
  thrift_spec = (
13464
  )
13465
 
13466
  def read(self, iprot):
13467
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13468
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13469
      return
13470
    iprot.readStructBegin()
13471
    while True:
13472
      (fname, ftype, fid) = iprot.readFieldBegin()
13473
      if ftype == TType.STOP:
13474
        break
13475
      else:
13476
        iprot.skip(ftype)
13477
      iprot.readFieldEnd()
13478
    iprot.readStructEnd()
13479
 
13480
  def write(self, oprot):
13481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13483
      return
9495 vikram.rag 13484
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_result')
9456 vikram.rag 13485
    oprot.writeFieldStop()
13486
    oprot.writeStructEnd()
13487
 
13488
  def validate(self):
13489
    return
13490
 
13491
 
13492
  def __repr__(self):
13493
    L = ['%s=%r' % (key, value)
13494
      for key, value in self.__dict__.iteritems()]
13495
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13496
 
13497
  def __eq__(self, other):
13498
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13499
 
13500
  def __ne__(self, other):
13501
    return not (self == other)
9482 vikram.rag 13502
 
9495 vikram.rag 13503
class addOrUpdateAllSnapdealInventory_args:
9482 vikram.rag 13504
  """
13505
  Attributes:
9495 vikram.rag 13506
   - allsnapdealinventorysnapshot
9482 vikram.rag 13507
  """
13508
 
13509
  thrift_spec = None
9495 vikram.rag 13510
  def __init__(self, allsnapdealinventorysnapshot=None,):
13511
    self.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 13512
 
13513
  def read(self, iprot):
13514
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13515
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13516
      return
13517
    iprot.readStructBegin()
13518
    while True:
13519
      (fname, ftype, fid) = iprot.readFieldBegin()
13520
      if ftype == TType.STOP:
13521
        break
13522
      if fid == -1:
13523
        if ftype == TType.LIST:
9495 vikram.rag 13524
          self.allsnapdealinventorysnapshot = []
11173 vikram.rag 13525
          (_etype284, _size281) = iprot.readListBegin()
13526
          for _i285 in xrange(_size281):
13527
            _elem286 = SnapdealInventoryItem()
13528
            _elem286.read(iprot)
13529
            self.allsnapdealinventorysnapshot.append(_elem286)
9482 vikram.rag 13530
          iprot.readListEnd()
13531
        else:
13532
          iprot.skip(ftype)
13533
      else:
13534
        iprot.skip(ftype)
13535
      iprot.readFieldEnd()
13536
    iprot.readStructEnd()
13537
 
13538
  def write(self, oprot):
13539
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13540
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13541
      return
9495 vikram.rag 13542
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_args')
13543
    if self.allsnapdealinventorysnapshot is not None:
13544
      oprot.writeFieldBegin('allsnapdealinventorysnapshot', TType.LIST, -1)
13545
      oprot.writeListBegin(TType.STRUCT, len(self.allsnapdealinventorysnapshot))
11173 vikram.rag 13546
      for iter287 in self.allsnapdealinventorysnapshot:
13547
        iter287.write(oprot)
9482 vikram.rag 13548
      oprot.writeListEnd()
13549
      oprot.writeFieldEnd()
13550
    oprot.writeFieldStop()
13551
    oprot.writeStructEnd()
13552
 
13553
  def validate(self):
13554
    return
13555
 
13556
 
13557
  def __repr__(self):
13558
    L = ['%s=%r' % (key, value)
13559
      for key, value in self.__dict__.iteritems()]
13560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13561
 
13562
  def __eq__(self, other):
13563
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13564
 
13565
  def __ne__(self, other):
13566
    return not (self == other)
13567
 
9495 vikram.rag 13568
class addOrUpdateAllSnapdealInventory_result:
9482 vikram.rag 13569
 
13570
  thrift_spec = (
13571
  )
13572
 
13573
  def read(self, iprot):
13574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13576
      return
13577
    iprot.readStructBegin()
13578
    while True:
13579
      (fname, ftype, fid) = iprot.readFieldBegin()
13580
      if ftype == TType.STOP:
13581
        break
13582
      else:
13583
        iprot.skip(ftype)
13584
      iprot.readFieldEnd()
13585
    iprot.readStructEnd()
13586
 
13587
  def write(self, oprot):
13588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13590
      return
9495 vikram.rag 13591
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_result')
9482 vikram.rag 13592
    oprot.writeFieldStop()
13593
    oprot.writeStructEnd()
13594
 
13595
  def validate(self):
13596
    return
13597
 
13598
 
13599
  def __repr__(self):
13600
    L = ['%s=%r' % (key, value)
13601
      for key, value in self.__dict__.iteritems()]
13602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13603
 
13604
  def __eq__(self, other):
13605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13606
 
13607
  def __ne__(self, other):
13608
    return not (self == other)
9495 vikram.rag 13609
 
13610
class getSnapdealInventorySnapshot_args:
13611
 
13612
  thrift_spec = (
13613
  )
13614
 
13615
  def read(self, iprot):
13616
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13617
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13618
      return
13619
    iprot.readStructBegin()
13620
    while True:
13621
      (fname, ftype, fid) = iprot.readFieldBegin()
13622
      if ftype == TType.STOP:
13623
        break
13624
      else:
13625
        iprot.skip(ftype)
13626
      iprot.readFieldEnd()
13627
    iprot.readStructEnd()
13628
 
13629
  def write(self, oprot):
13630
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13631
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13632
      return
13633
    oprot.writeStructBegin('getSnapdealInventorySnapshot_args')
13634
    oprot.writeFieldStop()
13635
    oprot.writeStructEnd()
13636
 
13637
  def validate(self):
13638
    return
13639
 
13640
 
13641
  def __repr__(self):
13642
    L = ['%s=%r' % (key, value)
13643
      for key, value in self.__dict__.iteritems()]
13644
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13645
 
13646
  def __eq__(self, other):
13647
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13648
 
13649
  def __ne__(self, other):
13650
    return not (self == other)
13651
 
13652
class getSnapdealInventorySnapshot_result:
13653
  """
13654
  Attributes:
13655
   - success
13656
  """
13657
 
13658
  thrift_spec = (
13659
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec)), None, ), # 0
13660
  )
13661
 
13662
  def __init__(self, success=None,):
13663
    self.success = success
13664
 
13665
  def read(self, iprot):
13666
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13667
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13668
      return
13669
    iprot.readStructBegin()
13670
    while True:
13671
      (fname, ftype, fid) = iprot.readFieldBegin()
13672
      if ftype == TType.STOP:
13673
        break
13674
      if fid == 0:
13675
        if ftype == TType.LIST:
13676
          self.success = []
11173 vikram.rag 13677
          (_etype291, _size288) = iprot.readListBegin()
13678
          for _i292 in xrange(_size288):
13679
            _elem293 = SnapdealInventoryItem()
13680
            _elem293.read(iprot)
13681
            self.success.append(_elem293)
9495 vikram.rag 13682
          iprot.readListEnd()
13683
        else:
13684
          iprot.skip(ftype)
13685
      else:
13686
        iprot.skip(ftype)
13687
      iprot.readFieldEnd()
13688
    iprot.readStructEnd()
13689
 
13690
  def write(self, oprot):
13691
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13692
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13693
      return
13694
    oprot.writeStructBegin('getSnapdealInventorySnapshot_result')
13695
    if self.success is not None:
13696
      oprot.writeFieldBegin('success', TType.LIST, 0)
13697
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 13698
      for iter294 in self.success:
13699
        iter294.write(oprot)
9495 vikram.rag 13700
      oprot.writeListEnd()
13701
      oprot.writeFieldEnd()
13702
    oprot.writeFieldStop()
13703
    oprot.writeStructEnd()
13704
 
13705
  def validate(self):
13706
    return
13707
 
13708
 
13709
  def __repr__(self):
13710
    L = ['%s=%r' % (key, value)
13711
      for key, value in self.__dict__.iteritems()]
13712
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13713
 
13714
  def __eq__(self, other):
13715
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13716
 
13717
  def __ne__(self, other):
13718
    return not (self == other)
9761 amar.kumar 13719
 
13720
class getHoldInventoryDetails_args:
13721
  """
13722
  Attributes:
13723
   - itemId
13724
   - warehouseId
13725
   - source
13726
  """
13727
 
13728
  thrift_spec = (
13729
    None, # 0
13730
    (1, TType.I64, 'itemId', None, None, ), # 1
13731
    (2, TType.I64, 'warehouseId', None, None, ), # 2
13732
    (3, TType.I64, 'source', None, None, ), # 3
13733
  )
13734
 
13735
  def __init__(self, itemId=None, warehouseId=None, source=None,):
13736
    self.itemId = itemId
13737
    self.warehouseId = warehouseId
13738
    self.source = source
13739
 
13740
  def read(self, iprot):
13741
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13742
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13743
      return
13744
    iprot.readStructBegin()
13745
    while True:
13746
      (fname, ftype, fid) = iprot.readFieldBegin()
13747
      if ftype == TType.STOP:
13748
        break
13749
      if fid == 1:
13750
        if ftype == TType.I64:
13751
          self.itemId = iprot.readI64();
13752
        else:
13753
          iprot.skip(ftype)
13754
      elif fid == 2:
13755
        if ftype == TType.I64:
13756
          self.warehouseId = iprot.readI64();
13757
        else:
13758
          iprot.skip(ftype)
13759
      elif fid == 3:
13760
        if ftype == TType.I64:
13761
          self.source = iprot.readI64();
13762
        else:
13763
          iprot.skip(ftype)
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('getHoldInventoryDetails_args')
13774
    if self.itemId is not None:
13775
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13776
      oprot.writeI64(self.itemId)
13777
      oprot.writeFieldEnd()
13778
    if self.warehouseId is not None:
13779
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
13780
      oprot.writeI64(self.warehouseId)
13781
      oprot.writeFieldEnd()
13782
    if self.source is not None:
13783
      oprot.writeFieldBegin('source', TType.I64, 3)
13784
      oprot.writeI64(self.source)
13785
      oprot.writeFieldEnd()
13786
    oprot.writeFieldStop()
13787
    oprot.writeStructEnd()
13788
 
13789
  def validate(self):
13790
    return
13791
 
13792
 
13793
  def __repr__(self):
13794
    L = ['%s=%r' % (key, value)
13795
      for key, value in self.__dict__.iteritems()]
13796
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13797
 
13798
  def __eq__(self, other):
13799
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13800
 
13801
  def __ne__(self, other):
13802
    return not (self == other)
13803
 
13804
class getHoldInventoryDetails_result:
13805
  """
13806
  Attributes:
13807
   - success
13808
  """
13809
 
13810
  thrift_spec = (
13811
    (0, TType.LIST, 'success', (TType.STRUCT,(HoldInventoryDetail, HoldInventoryDetail.thrift_spec)), None, ), # 0
13812
  )
13813
 
13814
  def __init__(self, success=None,):
13815
    self.success = success
13816
 
13817
  def read(self, iprot):
13818
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13819
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13820
      return
13821
    iprot.readStructBegin()
13822
    while True:
13823
      (fname, ftype, fid) = iprot.readFieldBegin()
13824
      if ftype == TType.STOP:
13825
        break
13826
      if fid == 0:
13827
        if ftype == TType.LIST:
13828
          self.success = []
11173 vikram.rag 13829
          (_etype298, _size295) = iprot.readListBegin()
13830
          for _i299 in xrange(_size295):
13831
            _elem300 = HoldInventoryDetail()
13832
            _elem300.read(iprot)
13833
            self.success.append(_elem300)
9761 amar.kumar 13834
          iprot.readListEnd()
13835
        else:
13836
          iprot.skip(ftype)
13837
      else:
13838
        iprot.skip(ftype)
13839
      iprot.readFieldEnd()
13840
    iprot.readStructEnd()
13841
 
13842
  def write(self, oprot):
13843
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13844
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13845
      return
13846
    oprot.writeStructBegin('getHoldInventoryDetails_result')
13847
    if self.success is not None:
13848
      oprot.writeFieldBegin('success', TType.LIST, 0)
13849
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 13850
      for iter301 in self.success:
13851
        iter301.write(oprot)
9761 amar.kumar 13852
      oprot.writeListEnd()
13853
      oprot.writeFieldEnd()
13854
    oprot.writeFieldStop()
13855
    oprot.writeStructEnd()
13856
 
13857
  def validate(self):
13858
    return
13859
 
13860
 
13861
  def __repr__(self):
13862
    L = ['%s=%r' % (key, value)
13863
      for key, value in self.__dict__.iteritems()]
13864
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13865
 
13866
  def __eq__(self, other):
13867
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13868
 
13869
  def __ne__(self, other):
13870
    return not (self == other)
10050 vikram.rag 13871
 
13872
class addOrUpdateFlipkartInventorySnapshot_args:
13873
  """
13874
  Attributes:
13875
   - flipkartInventorySnapshot
10450 vikram.rag 13876
   - time
10050 vikram.rag 13877
  """
13878
 
10450 vikram.rag 13879
  thrift_spec = (
13880
    None, # 0
13881
    (1, TType.LIST, 'flipkartInventorySnapshot', (TType.STRUCT,(FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec)), None, ), # 1
13882
    (2, TType.I64, 'time', None, None, ), # 2
13883
  )
13884
 
13885
  def __init__(self, flipkartInventorySnapshot=None, time=None,):
10050 vikram.rag 13886
    self.flipkartInventorySnapshot = flipkartInventorySnapshot
10450 vikram.rag 13887
    self.time = time
10050 vikram.rag 13888
 
13889
  def read(self, iprot):
13890
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13891
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13892
      return
13893
    iprot.readStructBegin()
13894
    while True:
13895
      (fname, ftype, fid) = iprot.readFieldBegin()
13896
      if ftype == TType.STOP:
13897
        break
10450 vikram.rag 13898
      if fid == 1:
10050 vikram.rag 13899
        if ftype == TType.LIST:
13900
          self.flipkartInventorySnapshot = []
11173 vikram.rag 13901
          (_etype305, _size302) = iprot.readListBegin()
13902
          for _i306 in xrange(_size302):
13903
            _elem307 = FlipkartInventorySnapshot()
13904
            _elem307.read(iprot)
13905
            self.flipkartInventorySnapshot.append(_elem307)
10050 vikram.rag 13906
          iprot.readListEnd()
13907
        else:
13908
          iprot.skip(ftype)
10450 vikram.rag 13909
      elif fid == 2:
13910
        if ftype == TType.I64:
13911
          self.time = iprot.readI64();
13912
        else:
13913
          iprot.skip(ftype)
10050 vikram.rag 13914
      else:
13915
        iprot.skip(ftype)
13916
      iprot.readFieldEnd()
13917
    iprot.readStructEnd()
13918
 
13919
  def write(self, oprot):
13920
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13921
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13922
      return
13923
    oprot.writeStructBegin('addOrUpdateFlipkartInventorySnapshot_args')
13924
    if self.flipkartInventorySnapshot is not None:
10450 vikram.rag 13925
      oprot.writeFieldBegin('flipkartInventorySnapshot', TType.LIST, 1)
10050 vikram.rag 13926
      oprot.writeListBegin(TType.STRUCT, len(self.flipkartInventorySnapshot))
11173 vikram.rag 13927
      for iter308 in self.flipkartInventorySnapshot:
13928
        iter308.write(oprot)
10050 vikram.rag 13929
      oprot.writeListEnd()
13930
      oprot.writeFieldEnd()
10450 vikram.rag 13931
    if self.time is not None:
13932
      oprot.writeFieldBegin('time', TType.I64, 2)
13933
      oprot.writeI64(self.time)
13934
      oprot.writeFieldEnd()
10050 vikram.rag 13935
    oprot.writeFieldStop()
13936
    oprot.writeStructEnd()
13937
 
13938
  def validate(self):
13939
    return
13940
 
13941
 
13942
  def __repr__(self):
13943
    L = ['%s=%r' % (key, value)
13944
      for key, value in self.__dict__.iteritems()]
13945
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13946
 
13947
  def __eq__(self, other):
13948
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13949
 
13950
  def __ne__(self, other):
13951
    return not (self == other)
13952
 
13953
class addOrUpdateFlipkartInventorySnapshot_result:
13954
 
13955
  thrift_spec = (
13956
  )
13957
 
13958
  def read(self, iprot):
13959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13961
      return
13962
    iprot.readStructBegin()
13963
    while True:
13964
      (fname, ftype, fid) = iprot.readFieldBegin()
13965
      if ftype == TType.STOP:
13966
        break
13967
      else:
13968
        iprot.skip(ftype)
13969
      iprot.readFieldEnd()
13970
    iprot.readStructEnd()
13971
 
13972
  def write(self, oprot):
13973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13975
      return
13976
    oprot.writeStructBegin('addOrUpdateFlipkartInventorySnapshot_result')
13977
    oprot.writeFieldStop()
13978
    oprot.writeStructEnd()
13979
 
13980
  def validate(self):
13981
    return
13982
 
13983
 
13984
  def __repr__(self):
13985
    L = ['%s=%r' % (key, value)
13986
      for key, value in self.__dict__.iteritems()]
13987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13988
 
13989
  def __eq__(self, other):
13990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13991
 
13992
  def __ne__(self, other):
13993
    return not (self == other)
13994
 
13995
class getFlipkartInventorySnapshot_args:
13996
 
13997
  thrift_spec = (
13998
  )
13999
 
14000
  def read(self, iprot):
14001
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14002
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14003
      return
14004
    iprot.readStructBegin()
14005
    while True:
14006
      (fname, ftype, fid) = iprot.readFieldBegin()
14007
      if ftype == TType.STOP:
14008
        break
14009
      else:
14010
        iprot.skip(ftype)
14011
      iprot.readFieldEnd()
14012
    iprot.readStructEnd()
14013
 
14014
  def write(self, oprot):
14015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14017
      return
14018
    oprot.writeStructBegin('getFlipkartInventorySnapshot_args')
14019
    oprot.writeFieldStop()
14020
    oprot.writeStructEnd()
14021
 
14022
  def validate(self):
14023
    return
14024
 
14025
 
14026
  def __repr__(self):
14027
    L = ['%s=%r' % (key, value)
14028
      for key, value in self.__dict__.iteritems()]
14029
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14030
 
14031
  def __eq__(self, other):
14032
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14033
 
14034
  def __ne__(self, other):
14035
    return not (self == other)
14036
 
14037
class getFlipkartInventorySnapshot_result:
14038
  """
14039
  Attributes:
14040
   - success
14041
  """
14042
 
14043
  thrift_spec = (
14044
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec)), None, ), # 0
14045
  )
14046
 
14047
  def __init__(self, success=None,):
14048
    self.success = success
14049
 
14050
  def read(self, iprot):
14051
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14052
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14053
      return
14054
    iprot.readStructBegin()
14055
    while True:
14056
      (fname, ftype, fid) = iprot.readFieldBegin()
14057
      if ftype == TType.STOP:
14058
        break
14059
      if fid == 0:
14060
        if ftype == TType.LIST:
14061
          self.success = []
11173 vikram.rag 14062
          (_etype312, _size309) = iprot.readListBegin()
14063
          for _i313 in xrange(_size309):
14064
            _elem314 = FlipkartInventorySnapshot()
14065
            _elem314.read(iprot)
14066
            self.success.append(_elem314)
10050 vikram.rag 14067
          iprot.readListEnd()
14068
        else:
14069
          iprot.skip(ftype)
14070
      else:
14071
        iprot.skip(ftype)
14072
      iprot.readFieldEnd()
14073
    iprot.readStructEnd()
14074
 
14075
  def write(self, oprot):
14076
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14077
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14078
      return
14079
    oprot.writeStructBegin('getFlipkartInventorySnapshot_result')
14080
    if self.success is not None:
14081
      oprot.writeFieldBegin('success', TType.LIST, 0)
14082
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11173 vikram.rag 14083
      for iter315 in self.success:
14084
        iter315.write(oprot)
10050 vikram.rag 14085
      oprot.writeListEnd()
14086
      oprot.writeFieldEnd()
14087
    oprot.writeFieldStop()
14088
    oprot.writeStructEnd()
14089
 
14090
  def validate(self):
14091
    return
14092
 
14093
 
14094
  def __repr__(self):
14095
    L = ['%s=%r' % (key, value)
14096
      for key, value in self.__dict__.iteritems()]
14097
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14098
 
14099
  def __eq__(self, other):
14100
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14101
 
14102
  def __ne__(self, other):
14103
    return not (self == other)
10097 kshitij.so 14104
 
14105
class getFlipkartlInventoryForItem_args:
14106
  """
14107
  Attributes:
14108
   - item_id
14109
  """
14110
 
14111
  thrift_spec = (
14112
    None, # 0
14113
    (1, TType.I64, 'item_id', None, None, ), # 1
14114
  )
14115
 
14116
  def __init__(self, item_id=None,):
14117
    self.item_id = item_id
14118
 
14119
  def read(self, iprot):
14120
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14121
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14122
      return
14123
    iprot.readStructBegin()
14124
    while True:
14125
      (fname, ftype, fid) = iprot.readFieldBegin()
14126
      if ftype == TType.STOP:
14127
        break
14128
      if fid == 1:
14129
        if ftype == TType.I64:
14130
          self.item_id = iprot.readI64();
14131
        else:
14132
          iprot.skip(ftype)
14133
      else:
14134
        iprot.skip(ftype)
14135
      iprot.readFieldEnd()
14136
    iprot.readStructEnd()
14137
 
14138
  def write(self, oprot):
14139
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14140
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14141
      return
14142
    oprot.writeStructBegin('getFlipkartlInventoryForItem_args')
14143
    if self.item_id is not None:
14144
      oprot.writeFieldBegin('item_id', TType.I64, 1)
14145
      oprot.writeI64(self.item_id)
14146
      oprot.writeFieldEnd()
14147
    oprot.writeFieldStop()
14148
    oprot.writeStructEnd()
14149
 
14150
  def validate(self):
14151
    return
14152
 
14153
 
14154
  def __repr__(self):
14155
    L = ['%s=%r' % (key, value)
14156
      for key, value in self.__dict__.iteritems()]
14157
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14158
 
14159
  def __eq__(self, other):
14160
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14161
 
14162
  def __ne__(self, other):
14163
    return not (self == other)
14164
 
14165
class getFlipkartlInventoryForItem_result:
14166
  """
14167
  Attributes:
14168
   - success
14169
  """
14170
 
14171
  thrift_spec = (
14172
    (0, TType.STRUCT, 'success', (FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec), None, ), # 0
14173
  )
14174
 
14175
  def __init__(self, success=None,):
14176
    self.success = success
14177
 
14178
  def read(self, iprot):
14179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14181
      return
14182
    iprot.readStructBegin()
14183
    while True:
14184
      (fname, ftype, fid) = iprot.readFieldBegin()
14185
      if ftype == TType.STOP:
14186
        break
14187
      if fid == 0:
14188
        if ftype == TType.STRUCT:
14189
          self.success = FlipkartInventorySnapshot()
14190
          self.success.read(iprot)
14191
        else:
14192
          iprot.skip(ftype)
14193
      else:
14194
        iprot.skip(ftype)
14195
      iprot.readFieldEnd()
14196
    iprot.readStructEnd()
14197
 
14198
  def write(self, oprot):
14199
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14200
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14201
      return
14202
    oprot.writeStructBegin('getFlipkartlInventoryForItem_result')
14203
    if self.success is not None:
14204
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
14205
      self.success.write(oprot)
14206
      oprot.writeFieldEnd()
14207
    oprot.writeFieldStop()
14208
    oprot.writeStructEnd()
14209
 
14210
  def validate(self):
14211
    return
14212
 
14213
 
14214
  def __repr__(self):
14215
    L = ['%s=%r' % (key, value)
14216
      for key, value in self.__dict__.iteritems()]
14217
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14218
 
14219
  def __eq__(self, other):
14220
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14221
 
14222
  def __ne__(self, other):
14223
    return not (self == other)
10485 vikram.rag 14224
 
14225
class getStateMaster_args:
14226
 
14227
  thrift_spec = (
14228
  )
14229
 
14230
  def read(self, iprot):
14231
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14232
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14233
      return
14234
    iprot.readStructBegin()
14235
    while True:
14236
      (fname, ftype, fid) = iprot.readFieldBegin()
14237
      if ftype == TType.STOP:
14238
        break
14239
      else:
14240
        iprot.skip(ftype)
14241
      iprot.readFieldEnd()
14242
    iprot.readStructEnd()
14243
 
14244
  def write(self, oprot):
14245
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14246
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14247
      return
14248
    oprot.writeStructBegin('getStateMaster_args')
14249
    oprot.writeFieldStop()
14250
    oprot.writeStructEnd()
14251
 
14252
  def validate(self):
14253
    return
14254
 
14255
 
14256
  def __repr__(self):
14257
    L = ['%s=%r' % (key, value)
14258
      for key, value in self.__dict__.iteritems()]
14259
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14260
 
14261
  def __eq__(self, other):
14262
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14263
 
14264
  def __ne__(self, other):
14265
    return not (self == other)
14266
 
14267
class getStateMaster_result:
14268
  """
14269
  Attributes:
14270
   - success
14271
  """
14272
 
14273
  thrift_spec = (
12280 amit.gupta 14274
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(StateInfo, StateInfo.thrift_spec)), None, ), # 0
10485 vikram.rag 14275
  )
14276
 
14277
  def __init__(self, success=None,):
14278
    self.success = success
14279
 
14280
  def read(self, iprot):
14281
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14282
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14283
      return
14284
    iprot.readStructBegin()
14285
    while True:
14286
      (fname, ftype, fid) = iprot.readFieldBegin()
14287
      if ftype == TType.STOP:
14288
        break
14289
      if fid == 0:
14290
        if ftype == TType.MAP:
14291
          self.success = {}
11173 vikram.rag 14292
          (_ktype317, _vtype318, _size316 ) = iprot.readMapBegin() 
14293
          for _i320 in xrange(_size316):
14294
            _key321 = iprot.readI64();
12280 amit.gupta 14295
            _val322 = StateInfo()
14296
            _val322.read(iprot)
11173 vikram.rag 14297
            self.success[_key321] = _val322
10485 vikram.rag 14298
          iprot.readMapEnd()
14299
        else:
14300
          iprot.skip(ftype)
14301
      else:
14302
        iprot.skip(ftype)
14303
      iprot.readFieldEnd()
14304
    iprot.readStructEnd()
14305
 
14306
  def write(self, oprot):
14307
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14308
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14309
      return
14310
    oprot.writeStructBegin('getStateMaster_result')
14311
    if self.success is not None:
14312
      oprot.writeFieldBegin('success', TType.MAP, 0)
12280 amit.gupta 14313
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
11173 vikram.rag 14314
      for kiter323,viter324 in self.success.items():
14315
        oprot.writeI64(kiter323)
12280 amit.gupta 14316
        viter324.write(oprot)
10485 vikram.rag 14317
      oprot.writeMapEnd()
14318
      oprot.writeFieldEnd()
14319
    oprot.writeFieldStop()
14320
    oprot.writeStructEnd()
14321
 
14322
  def validate(self):
14323
    return
14324
 
14325
 
14326
  def __repr__(self):
14327
    L = ['%s=%r' % (key, value)
14328
      for key, value in self.__dict__.iteritems()]
14329
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14330
 
14331
  def __eq__(self, other):
14332
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14333
 
14334
  def __ne__(self, other):
14335
    return not (self == other)
10544 vikram.rag 14336
 
14337
class updateSnapdealStockAtEOD_args:
14338
  """
14339
  Attributes:
14340
   - allsnapdealstock
14341
  """
14342
 
14343
  thrift_spec = None
14344
  def __init__(self, allsnapdealstock=None,):
14345
    self.allsnapdealstock = allsnapdealstock
14346
 
14347
  def read(self, iprot):
14348
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14349
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14350
      return
14351
    iprot.readStructBegin()
14352
    while True:
14353
      (fname, ftype, fid) = iprot.readFieldBegin()
14354
      if ftype == TType.STOP:
14355
        break
14356
      if fid == -1:
14357
        if ftype == TType.LIST:
14358
          self.allsnapdealstock = []
11173 vikram.rag 14359
          (_etype328, _size325) = iprot.readListBegin()
14360
          for _i329 in xrange(_size325):
14361
            _elem330 = SnapdealStockAtEOD()
14362
            _elem330.read(iprot)
14363
            self.allsnapdealstock.append(_elem330)
10544 vikram.rag 14364
          iprot.readListEnd()
14365
        else:
14366
          iprot.skip(ftype)
14367
      else:
14368
        iprot.skip(ftype)
14369
      iprot.readFieldEnd()
14370
    iprot.readStructEnd()
14371
 
14372
  def write(self, oprot):
14373
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14374
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14375
      return
14376
    oprot.writeStructBegin('updateSnapdealStockAtEOD_args')
14377
    if self.allsnapdealstock is not None:
14378
      oprot.writeFieldBegin('allsnapdealstock', TType.LIST, -1)
14379
      oprot.writeListBegin(TType.STRUCT, len(self.allsnapdealstock))
11173 vikram.rag 14380
      for iter331 in self.allsnapdealstock:
14381
        iter331.write(oprot)
10544 vikram.rag 14382
      oprot.writeListEnd()
14383
      oprot.writeFieldEnd()
14384
    oprot.writeFieldStop()
14385
    oprot.writeStructEnd()
14386
 
14387
  def validate(self):
14388
    return
14389
 
14390
 
14391
  def __repr__(self):
14392
    L = ['%s=%r' % (key, value)
14393
      for key, value in self.__dict__.iteritems()]
14394
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14395
 
14396
  def __eq__(self, other):
14397
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14398
 
14399
  def __ne__(self, other):
14400
    return not (self == other)
14401
 
14402
class updateSnapdealStockAtEOD_result:
14403
 
14404
  thrift_spec = (
14405
  )
14406
 
14407
  def read(self, iprot):
14408
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14409
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14410
      return
14411
    iprot.readStructBegin()
14412
    while True:
14413
      (fname, ftype, fid) = iprot.readFieldBegin()
14414
      if ftype == TType.STOP:
14415
        break
14416
      else:
14417
        iprot.skip(ftype)
14418
      iprot.readFieldEnd()
14419
    iprot.readStructEnd()
14420
 
14421
  def write(self, oprot):
14422
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14423
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14424
      return
14425
    oprot.writeStructBegin('updateSnapdealStockAtEOD_result')
14426
    oprot.writeFieldStop()
14427
    oprot.writeStructEnd()
14428
 
14429
  def validate(self):
14430
    return
14431
 
14432
 
14433
  def __repr__(self):
14434
    L = ['%s=%r' % (key, value)
14435
      for key, value in self.__dict__.iteritems()]
14436
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14437
 
14438
  def __eq__(self, other):
14439
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14440
 
14441
  def __ne__(self, other):
14442
    return not (self == other)
14443
 
14444
class updateFlipkartStockAtEOD_args:
14445
  """
14446
  Attributes:
14447
   - allflipkartstock
14448
  """
14449
 
14450
  thrift_spec = None
14451
  def __init__(self, allflipkartstock=None,):
14452
    self.allflipkartstock = allflipkartstock
14453
 
14454
  def read(self, iprot):
14455
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14456
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14457
      return
14458
    iprot.readStructBegin()
14459
    while True:
14460
      (fname, ftype, fid) = iprot.readFieldBegin()
14461
      if ftype == TType.STOP:
14462
        break
14463
      if fid == -1:
14464
        if ftype == TType.LIST:
14465
          self.allflipkartstock = []
11173 vikram.rag 14466
          (_etype335, _size332) = iprot.readListBegin()
14467
          for _i336 in xrange(_size332):
14468
            _elem337 = FlipkartStockAtEOD()
14469
            _elem337.read(iprot)
14470
            self.allflipkartstock.append(_elem337)
10544 vikram.rag 14471
          iprot.readListEnd()
14472
        else:
14473
          iprot.skip(ftype)
14474
      else:
14475
        iprot.skip(ftype)
14476
      iprot.readFieldEnd()
14477
    iprot.readStructEnd()
14478
 
14479
  def write(self, oprot):
14480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14482
      return
14483
    oprot.writeStructBegin('updateFlipkartStockAtEOD_args')
14484
    if self.allflipkartstock is not None:
14485
      oprot.writeFieldBegin('allflipkartstock', TType.LIST, -1)
14486
      oprot.writeListBegin(TType.STRUCT, len(self.allflipkartstock))
11173 vikram.rag 14487
      for iter338 in self.allflipkartstock:
14488
        iter338.write(oprot)
10544 vikram.rag 14489
      oprot.writeListEnd()
14490
      oprot.writeFieldEnd()
14491
    oprot.writeFieldStop()
14492
    oprot.writeStructEnd()
14493
 
14494
  def validate(self):
14495
    return
14496
 
14497
 
14498
  def __repr__(self):
14499
    L = ['%s=%r' % (key, value)
14500
      for key, value in self.__dict__.iteritems()]
14501
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14502
 
14503
  def __eq__(self, other):
14504
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14505
 
14506
  def __ne__(self, other):
14507
    return not (self == other)
14508
 
14509
class updateFlipkartStockAtEOD_result:
14510
 
14511
  thrift_spec = (
14512
  )
14513
 
14514
  def read(self, iprot):
14515
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14516
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14517
      return
14518
    iprot.readStructBegin()
14519
    while True:
14520
      (fname, ftype, fid) = iprot.readFieldBegin()
14521
      if ftype == TType.STOP:
14522
        break
14523
      else:
14524
        iprot.skip(ftype)
14525
      iprot.readFieldEnd()
14526
    iprot.readStructEnd()
14527
 
14528
  def write(self, oprot):
14529
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14530
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14531
      return
14532
    oprot.writeStructBegin('updateFlipkartStockAtEOD_result')
14533
    oprot.writeFieldStop()
14534
    oprot.writeStructEnd()
14535
 
14536
  def validate(self):
14537
    return
14538
 
14539
 
14540
  def __repr__(self):
14541
    L = ['%s=%r' % (key, value)
14542
      for key, value in self.__dict__.iteritems()]
14543
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14544
 
14545
  def __eq__(self, other):
14546
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14547
 
14548
  def __ne__(self, other):
14549
    return not (self == other)
12363 kshitij.so 14550
 
14551
class getWanNlcForSource_args:
14552
  """
14553
  Attributes:
14554
   - item_id
14555
   - source
14556
  """
14557
 
14558
  thrift_spec = (
14559
    None, # 0
14560
    (1, TType.I64, 'item_id', None, None, ), # 1
14561
    (2, TType.I64, 'source', None, None, ), # 2
14562
  )
14563
 
14564
  def __init__(self, item_id=None, source=None,):
14565
    self.item_id = item_id
14566
    self.source = source
14567
 
14568
  def read(self, iprot):
14569
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14570
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14571
      return
14572
    iprot.readStructBegin()
14573
    while True:
14574
      (fname, ftype, fid) = iprot.readFieldBegin()
14575
      if ftype == TType.STOP:
14576
        break
14577
      if fid == 1:
14578
        if ftype == TType.I64:
14579
          self.item_id = iprot.readI64();
14580
        else:
14581
          iprot.skip(ftype)
14582
      elif fid == 2:
14583
        if ftype == TType.I64:
14584
          self.source = iprot.readI64();
14585
        else:
14586
          iprot.skip(ftype)
14587
      else:
14588
        iprot.skip(ftype)
14589
      iprot.readFieldEnd()
14590
    iprot.readStructEnd()
14591
 
14592
  def write(self, oprot):
14593
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14594
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14595
      return
14596
    oprot.writeStructBegin('getWanNlcForSource_args')
14597
    if self.item_id is not None:
14598
      oprot.writeFieldBegin('item_id', TType.I64, 1)
14599
      oprot.writeI64(self.item_id)
14600
      oprot.writeFieldEnd()
14601
    if self.source is not None:
14602
      oprot.writeFieldBegin('source', TType.I64, 2)
14603
      oprot.writeI64(self.source)
14604
      oprot.writeFieldEnd()
14605
    oprot.writeFieldStop()
14606
    oprot.writeStructEnd()
14607
 
14608
  def validate(self):
14609
    return
14610
 
14611
 
14612
  def __repr__(self):
14613
    L = ['%s=%r' % (key, value)
14614
      for key, value in self.__dict__.iteritems()]
14615
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14616
 
14617
  def __eq__(self, other):
14618
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14619
 
14620
  def __ne__(self, other):
14621
    return not (self == other)
14622
 
14623
class getWanNlcForSource_result:
14624
  """
14625
  Attributes:
14626
   - success
14627
  """
14628
 
14629
  thrift_spec = (
14630
    (0, TType.DOUBLE, 'success', None, None, ), # 0
14631
  )
14632
 
14633
  def __init__(self, success=None,):
14634
    self.success = success
14635
 
14636
  def read(self, iprot):
14637
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14638
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14639
      return
14640
    iprot.readStructBegin()
14641
    while True:
14642
      (fname, ftype, fid) = iprot.readFieldBegin()
14643
      if ftype == TType.STOP:
14644
        break
14645
      if fid == 0:
14646
        if ftype == TType.DOUBLE:
14647
          self.success = iprot.readDouble();
14648
        else:
14649
          iprot.skip(ftype)
14650
      else:
14651
        iprot.skip(ftype)
14652
      iprot.readFieldEnd()
14653
    iprot.readStructEnd()
14654
 
14655
  def write(self, oprot):
14656
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14657
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14658
      return
14659
    oprot.writeStructBegin('getWanNlcForSource_result')
14660
    if self.success is not None:
14661
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
14662
      oprot.writeDouble(self.success)
14663
      oprot.writeFieldEnd()
14664
    oprot.writeFieldStop()
14665
    oprot.writeStructEnd()
14666
 
14667
  def validate(self):
14668
    return
14669
 
14670
 
14671
  def __repr__(self):
14672
    L = ['%s=%r' % (key, value)
14673
      for key, value in self.__dict__.iteritems()]
14674
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14675
 
14676
  def __eq__(self, other):
14677
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14678
 
14679
  def __ne__(self, other):
14680
    return not (self == other)
14681
 
14682
class getAllAvailableAmazonFbaItemInventory_args:
14683
 
14684
  thrift_spec = (
14685
  )
14686
 
14687
  def read(self, iprot):
14688
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14689
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14690
      return
14691
    iprot.readStructBegin()
14692
    while True:
14693
      (fname, ftype, fid) = iprot.readFieldBegin()
14694
      if ftype == TType.STOP:
14695
        break
14696
      else:
14697
        iprot.skip(ftype)
14698
      iprot.readFieldEnd()
14699
    iprot.readStructEnd()
14700
 
14701
  def write(self, oprot):
14702
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14703
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14704
      return
14705
    oprot.writeStructBegin('getAllAvailableAmazonFbaItemInventory_args')
14706
    oprot.writeFieldStop()
14707
    oprot.writeStructEnd()
14708
 
14709
  def validate(self):
14710
    return
14711
 
14712
 
14713
  def __repr__(self):
14714
    L = ['%s=%r' % (key, value)
14715
      for key, value in self.__dict__.iteritems()]
14716
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14717
 
14718
  def __eq__(self, other):
14719
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14720
 
14721
  def __ne__(self, other):
14722
    return not (self == other)
14723
 
14724
class getAllAvailableAmazonFbaItemInventory_result:
14725
  """
14726
  Attributes:
14727
   - success
14728
  """
14729
 
14730
  thrift_spec = (
14731
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
14732
  )
14733
 
14734
  def __init__(self, success=None,):
14735
    self.success = success
14736
 
14737
  def read(self, iprot):
14738
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14739
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14740
      return
14741
    iprot.readStructBegin()
14742
    while True:
14743
      (fname, ftype, fid) = iprot.readFieldBegin()
14744
      if ftype == TType.STOP:
14745
        break
14746
      if fid == 0:
14747
        if ftype == TType.LIST:
14748
          self.success = []
14749
          (_etype342, _size339) = iprot.readListBegin()
14750
          for _i343 in xrange(_size339):
14751
            _elem344 = AmazonFbaInventorySnapshot()
14752
            _elem344.read(iprot)
14753
            self.success.append(_elem344)
14754
          iprot.readListEnd()
14755
        else:
14756
          iprot.skip(ftype)
14757
      else:
14758
        iprot.skip(ftype)
14759
      iprot.readFieldEnd()
14760
    iprot.readStructEnd()
14761
 
14762
  def write(self, oprot):
14763
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14764
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14765
      return
14766
    oprot.writeStructBegin('getAllAvailableAmazonFbaItemInventory_result')
14767
    if self.success is not None:
14768
      oprot.writeFieldBegin('success', TType.LIST, 0)
14769
      oprot.writeListBegin(TType.STRUCT, len(self.success))
14770
      for iter345 in self.success:
14771
        iter345.write(oprot)
14772
      oprot.writeListEnd()
14773
      oprot.writeFieldEnd()
14774
    oprot.writeFieldStop()
14775
    oprot.writeStructEnd()
14776
 
14777
  def validate(self):
14778
    return
14779
 
14780
 
14781
  def __repr__(self):
14782
    L = ['%s=%r' % (key, value)
14783
      for key, value in self.__dict__.iteritems()]
14784
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14785
 
14786
  def __eq__(self, other):
14787
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14788
 
14789
  def __ne__(self, other):
14790
    return not (self == other)
17990 kshitij.so 14791
 
14792
class updateItemAvailabilityForItemIds_args:
14793
  """
14794
  Attributes:
14795
   - itemIds
14796
  """
14797
 
14798
  thrift_spec = (
14799
    None, # 0
14800
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
14801
  )
14802
 
14803
  def __init__(self, itemIds=None,):
14804
    self.itemIds = itemIds
14805
 
14806
  def read(self, iprot):
14807
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14808
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14809
      return
14810
    iprot.readStructBegin()
14811
    while True:
14812
      (fname, ftype, fid) = iprot.readFieldBegin()
14813
      if ftype == TType.STOP:
14814
        break
14815
      if fid == 1:
14816
        if ftype == TType.LIST:
14817
          self.itemIds = []
14818
          (_etype349, _size346) = iprot.readListBegin()
14819
          for _i350 in xrange(_size346):
14820
            _elem351 = iprot.readI64();
14821
            self.itemIds.append(_elem351)
14822
          iprot.readListEnd()
14823
        else:
14824
          iprot.skip(ftype)
14825
      else:
14826
        iprot.skip(ftype)
14827
      iprot.readFieldEnd()
14828
    iprot.readStructEnd()
14829
 
14830
  def write(self, oprot):
14831
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14832
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14833
      return
14834
    oprot.writeStructBegin('updateItemAvailabilityForItemIds_args')
14835
    if self.itemIds is not None:
14836
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
14837
      oprot.writeListBegin(TType.I64, len(self.itemIds))
14838
      for iter352 in self.itemIds:
14839
        oprot.writeI64(iter352)
14840
      oprot.writeListEnd()
14841
      oprot.writeFieldEnd()
14842
    oprot.writeFieldStop()
14843
    oprot.writeStructEnd()
14844
 
14845
  def validate(self):
14846
    return
14847
 
14848
 
14849
  def __repr__(self):
14850
    L = ['%s=%r' % (key, value)
14851
      for key, value in self.__dict__.iteritems()]
14852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14853
 
14854
  def __eq__(self, other):
14855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14856
 
14857
  def __ne__(self, other):
14858
    return not (self == other)
14859
 
14860
class updateItemAvailabilityForItemIds_result:
14861
  """
14862
  Attributes:
14863
   - success
14864
  """
14865
 
14866
  thrift_spec = (
14867
    (0, TType.BOOL, 'success', None, None, ), # 0
14868
  )
14869
 
14870
  def __init__(self, success=None,):
14871
    self.success = success
14872
 
14873
  def read(self, iprot):
14874
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14875
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14876
      return
14877
    iprot.readStructBegin()
14878
    while True:
14879
      (fname, ftype, fid) = iprot.readFieldBegin()
14880
      if ftype == TType.STOP:
14881
        break
14882
      if fid == 0:
14883
        if ftype == TType.BOOL:
14884
          self.success = iprot.readBool();
14885
        else:
14886
          iprot.skip(ftype)
14887
      else:
14888
        iprot.skip(ftype)
14889
      iprot.readFieldEnd()
14890
    iprot.readStructEnd()
14891
 
14892
  def write(self, oprot):
14893
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14894
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14895
      return
14896
    oprot.writeStructBegin('updateItemAvailabilityForItemIds_result')
14897
    if self.success is not None:
14898
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14899
      oprot.writeBool(self.success)
14900
      oprot.writeFieldEnd()
14901
    oprot.writeFieldStop()
14902
    oprot.writeStructEnd()
14903
 
14904
  def validate(self):
14905
    return
14906
 
14907
 
14908
  def __repr__(self):
14909
    L = ['%s=%r' % (key, value)
14910
      for key, value in self.__dict__.iteritems()]
14911
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14912
 
14913
  def __eq__(self, other):
14914
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14915
 
14916
  def __ne__(self, other):
14917
    return not (self == other)
19247 kshitij.so 14918
 
14919
class addVendorItemPricingInBulk_args:
14920
  """
14921
  Attributes:
14922
   - vendorItemPricingList
14923
  """
14924
 
14925
  thrift_spec = (
14926
    None, # 0
14927
    (1, TType.LIST, 'vendorItemPricingList', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 1
14928
  )
14929
 
14930
  def __init__(self, vendorItemPricingList=None,):
14931
    self.vendorItemPricingList = vendorItemPricingList
14932
 
14933
  def read(self, iprot):
14934
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14935
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14936
      return
14937
    iprot.readStructBegin()
14938
    while True:
14939
      (fname, ftype, fid) = iprot.readFieldBegin()
14940
      if ftype == TType.STOP:
14941
        break
14942
      if fid == 1:
14943
        if ftype == TType.LIST:
14944
          self.vendorItemPricingList = []
14945
          (_etype356, _size353) = iprot.readListBegin()
14946
          for _i357 in xrange(_size353):
14947
            _elem358 = VendorItemPricing()
14948
            _elem358.read(iprot)
14949
            self.vendorItemPricingList.append(_elem358)
14950
          iprot.readListEnd()
14951
        else:
14952
          iprot.skip(ftype)
14953
      else:
14954
        iprot.skip(ftype)
14955
      iprot.readFieldEnd()
14956
    iprot.readStructEnd()
14957
 
14958
  def write(self, oprot):
14959
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14960
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14961
      return
14962
    oprot.writeStructBegin('addVendorItemPricingInBulk_args')
14963
    if self.vendorItemPricingList is not None:
14964
      oprot.writeFieldBegin('vendorItemPricingList', TType.LIST, 1)
14965
      oprot.writeListBegin(TType.STRUCT, len(self.vendorItemPricingList))
14966
      for iter359 in self.vendorItemPricingList:
14967
        iter359.write(oprot)
14968
      oprot.writeListEnd()
14969
      oprot.writeFieldEnd()
14970
    oprot.writeFieldStop()
14971
    oprot.writeStructEnd()
14972
 
14973
  def validate(self):
14974
    return
14975
 
14976
 
14977
  def __repr__(self):
14978
    L = ['%s=%r' % (key, value)
14979
      for key, value in self.__dict__.iteritems()]
14980
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14981
 
14982
  def __eq__(self, other):
14983
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14984
 
14985
  def __ne__(self, other):
14986
    return not (self == other)
14987
 
14988
class addVendorItemPricingInBulk_result:
14989
  """
14990
  Attributes:
14991
   - success
14992
  """
14993
 
14994
  thrift_spec = (
14995
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
14996
  )
14997
 
14998
  def __init__(self, success=None,):
14999
    self.success = success
15000
 
15001
  def read(self, iprot):
15002
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15003
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15004
      return
15005
    iprot.readStructBegin()
15006
    while True:
15007
      (fname, ftype, fid) = iprot.readFieldBegin()
15008
      if ftype == TType.STOP:
15009
        break
15010
      if fid == 0:
15011
        if ftype == TType.LIST:
15012
          self.success = []
15013
          (_etype363, _size360) = iprot.readListBegin()
15014
          for _i364 in xrange(_size360):
15015
            _elem365 = iprot.readI64();
15016
            self.success.append(_elem365)
15017
          iprot.readListEnd()
15018
        else:
15019
          iprot.skip(ftype)
15020
      else:
15021
        iprot.skip(ftype)
15022
      iprot.readFieldEnd()
15023
    iprot.readStructEnd()
15024
 
15025
  def write(self, oprot):
15026
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15027
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15028
      return
15029
    oprot.writeStructBegin('addVendorItemPricingInBulk_result')
15030
    if self.success is not None:
15031
      oprot.writeFieldBegin('success', TType.LIST, 0)
15032
      oprot.writeListBegin(TType.I64, len(self.success))
15033
      for iter366 in self.success:
15034
        oprot.writeI64(iter366)
15035
      oprot.writeListEnd()
15036
      oprot.writeFieldEnd()
15037
    oprot.writeFieldStop()
15038
    oprot.writeStructEnd()
15039
 
15040
  def validate(self):
15041
    return
15042
 
15043
 
15044
  def __repr__(self):
15045
    L = ['%s=%r' % (key, value)
15046
      for key, value in self.__dict__.iteritems()]
15047
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15048
 
15049
  def __eq__(self, other):
15050
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15051
 
15052
  def __ne__(self, other):
15053
    return not (self == other)
15054
 
15055
class addInventoryInBulk_args:
15056
  """
15057
  Attributes:
15058
   - bulkInventoryList
15059
  """
15060
 
15061
  thrift_spec = (
15062
    None, # 0
15063
    (1, TType.LIST, 'bulkInventoryList', (TType.STRUCT,(BulkAddInventory, BulkAddInventory.thrift_spec)), None, ), # 1
15064
  )
15065
 
15066
  def __init__(self, bulkInventoryList=None,):
15067
    self.bulkInventoryList = bulkInventoryList
15068
 
15069
  def read(self, iprot):
15070
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15071
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15072
      return
15073
    iprot.readStructBegin()
15074
    while True:
15075
      (fname, ftype, fid) = iprot.readFieldBegin()
15076
      if ftype == TType.STOP:
15077
        break
15078
      if fid == 1:
15079
        if ftype == TType.LIST:
15080
          self.bulkInventoryList = []
15081
          (_etype370, _size367) = iprot.readListBegin()
15082
          for _i371 in xrange(_size367):
15083
            _elem372 = BulkAddInventory()
15084
            _elem372.read(iprot)
15085
            self.bulkInventoryList.append(_elem372)
15086
          iprot.readListEnd()
15087
        else:
15088
          iprot.skip(ftype)
15089
      else:
15090
        iprot.skip(ftype)
15091
      iprot.readFieldEnd()
15092
    iprot.readStructEnd()
15093
 
15094
  def write(self, oprot):
15095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15097
      return
15098
    oprot.writeStructBegin('addInventoryInBulk_args')
15099
    if self.bulkInventoryList is not None:
15100
      oprot.writeFieldBegin('bulkInventoryList', TType.LIST, 1)
15101
      oprot.writeListBegin(TType.STRUCT, len(self.bulkInventoryList))
15102
      for iter373 in self.bulkInventoryList:
15103
        iter373.write(oprot)
15104
      oprot.writeListEnd()
15105
      oprot.writeFieldEnd()
15106
    oprot.writeFieldStop()
15107
    oprot.writeStructEnd()
15108
 
15109
  def validate(self):
15110
    return
15111
 
15112
 
15113
  def __repr__(self):
15114
    L = ['%s=%r' % (key, value)
15115
      for key, value in self.__dict__.iteritems()]
15116
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15117
 
15118
  def __eq__(self, other):
15119
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15120
 
15121
  def __ne__(self, other):
15122
    return not (self == other)
15123
 
15124
class addInventoryInBulk_result:
15125
  """
15126
  Attributes:
15127
   - cex
15128
  """
15129
 
15130
  thrift_spec = (
15131
    None, # 0
15132
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
15133
  )
15134
 
15135
  def __init__(self, cex=None,):
15136
    self.cex = cex
15137
 
15138
  def read(self, iprot):
15139
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15140
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15141
      return
15142
    iprot.readStructBegin()
15143
    while True:
15144
      (fname, ftype, fid) = iprot.readFieldBegin()
15145
      if ftype == TType.STOP:
15146
        break
15147
      if fid == 1:
15148
        if ftype == TType.STRUCT:
15149
          self.cex = InventoryServiceException()
15150
          self.cex.read(iprot)
15151
        else:
15152
          iprot.skip(ftype)
15153
      else:
15154
        iprot.skip(ftype)
15155
      iprot.readFieldEnd()
15156
    iprot.readStructEnd()
15157
 
15158
  def write(self, oprot):
15159
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15160
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15161
      return
15162
    oprot.writeStructBegin('addInventoryInBulk_result')
15163
    if self.cex is not None:
15164
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
15165
      self.cex.write(oprot)
15166
      oprot.writeFieldEnd()
15167
    oprot.writeFieldStop()
15168
    oprot.writeStructEnd()
15169
 
15170
  def validate(self):
15171
    return
15172
 
15173
 
15174
  def __repr__(self):
15175
    L = ['%s=%r' % (key, value)
15176
      for key, value in self.__dict__.iteritems()]
15177
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15178
 
15179
  def __eq__(self, other):
15180
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15181
 
15182
  def __ne__(self, other):
15183
    return not (self == other)