Subversion Repositories SmartDukaan

Rev

Rev 10450 | Rev 10544 | 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
 
10485 vikram.rag 646
 
5944 mandeep.dh 647
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
648
  def __init__(self, iprot, oprot=None):
649
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
650
 
651
  def addWarehouse(self, warehouse):
652
    """
653
    Parameters:
654
     - warehouse
655
    """
656
    self.send_addWarehouse(warehouse)
657
    return self.recv_addWarehouse()
658
 
659
  def send_addWarehouse(self, warehouse):
660
    self._oprot.writeMessageBegin('addWarehouse', TMessageType.CALL, self._seqid)
661
    args = addWarehouse_args()
662
    args.warehouse = warehouse
663
    args.write(self._oprot)
664
    self._oprot.writeMessageEnd()
665
    self._oprot.trans.flush()
666
 
667
  def recv_addWarehouse(self, ):
668
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
669
    if mtype == TMessageType.EXCEPTION:
670
      x = TApplicationException()
671
      x.read(self._iprot)
672
      self._iprot.readMessageEnd()
673
      raise x
674
    result = addWarehouse_result()
675
    result.read(self._iprot)
676
    self._iprot.readMessageEnd()
677
    if result.success is not None:
678
      return result.success
679
    if result.cex is not None:
680
      raise result.cex
681
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
682
 
683
  def addVendor(self, vendor):
684
    """
685
    add a new vendor
686
 
687
    Parameters:
688
     - vendor
689
    """
690
    self.send_addVendor(vendor)
691
    return self.recv_addVendor()
692
 
693
  def send_addVendor(self, vendor):
694
    self._oprot.writeMessageBegin('addVendor', TMessageType.CALL, self._seqid)
695
    args = addVendor_args()
696
    args.vendor = vendor
697
    args.write(self._oprot)
698
    self._oprot.writeMessageEnd()
699
    self._oprot.trans.flush()
700
 
701
  def recv_addVendor(self, ):
702
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
703
    if mtype == TMessageType.EXCEPTION:
704
      x = TApplicationException()
705
      x.read(self._iprot)
706
      self._iprot.readMessageEnd()
707
      raise x
708
    result = addVendor_result()
709
    result.read(self._iprot)
710
    self._iprot.readMessageEnd()
711
    if result.success is not None:
712
      return result.success
713
    if result.cex is not None:
714
      raise result.cex
715
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
716
 
717
  def updateInventoryHistory(self, warehouse_id, timestamp, availability):
718
    """
719
    Stores the incremental warehouse updates of items.
720
 
721
    Parameters:
722
     - warehouse_id
723
     - timestamp
724
     - availability
725
    """
726
    self.send_updateInventoryHistory(warehouse_id, timestamp, availability)
727
    self.recv_updateInventoryHistory()
728
 
729
  def send_updateInventoryHistory(self, warehouse_id, timestamp, availability):
730
    self._oprot.writeMessageBegin('updateInventoryHistory', TMessageType.CALL, self._seqid)
731
    args = updateInventoryHistory_args()
732
    args.warehouse_id = warehouse_id
733
    args.timestamp = timestamp
734
    args.availability = availability
735
    args.write(self._oprot)
736
    self._oprot.writeMessageEnd()
737
    self._oprot.trans.flush()
738
 
739
  def recv_updateInventoryHistory(self, ):
740
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
741
    if mtype == TMessageType.EXCEPTION:
742
      x = TApplicationException()
743
      x.read(self._iprot)
744
      self._iprot.readMessageEnd()
745
      raise x
746
    result = updateInventoryHistory_result()
747
    result.read(self._iprot)
748
    self._iprot.readMessageEnd()
749
    if result.cex is not None:
750
      raise result.cex
751
    return
752
 
753
  def updateInventory(self, warehouse_id, timestamp, availability):
754
    """
755
    Stores the final inventory stocks of items.
756
 
757
    Parameters:
758
     - warehouse_id
759
     - timestamp
760
     - availability
761
    """
762
    self.send_updateInventory(warehouse_id, timestamp, availability)
763
    self.recv_updateInventory()
764
 
765
  def send_updateInventory(self, warehouse_id, timestamp, availability):
766
    self._oprot.writeMessageBegin('updateInventory', TMessageType.CALL, self._seqid)
767
    args = updateInventory_args()
768
    args.warehouse_id = warehouse_id
769
    args.timestamp = timestamp
770
    args.availability = availability
771
    args.write(self._oprot)
772
    self._oprot.writeMessageEnd()
773
    self._oprot.trans.flush()
774
 
775
  def recv_updateInventory(self, ):
776
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
777
    if mtype == TMessageType.EXCEPTION:
778
      x = TApplicationException()
779
      x.read(self._iprot)
780
      self._iprot.readMessageEnd()
781
      raise x
782
    result = updateInventory_result()
783
    result.read(self._iprot)
784
    self._iprot.readMessageEnd()
785
    if result.cex is not None:
786
      raise result.cex
787
    return
788
 
789
  def addInventory(self, itemId, warehouseId, quantity):
790
    """
791
    Add the inventory to existing stock.
792
 
793
    Parameters:
794
     - itemId
795
     - warehouseId
796
     - quantity
797
    """
798
    self.send_addInventory(itemId, warehouseId, quantity)
799
    self.recv_addInventory()
800
 
801
  def send_addInventory(self, itemId, warehouseId, quantity):
802
    self._oprot.writeMessageBegin('addInventory', TMessageType.CALL, self._seqid)
803
    args = addInventory_args()
804
    args.itemId = itemId
805
    args.warehouseId = warehouseId
806
    args.quantity = quantity
807
    args.write(self._oprot)
808
    self._oprot.writeMessageEnd()
809
    self._oprot.trans.flush()
810
 
811
  def recv_addInventory(self, ):
812
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
813
    if mtype == TMessageType.EXCEPTION:
814
      x = TApplicationException()
815
      x.read(self._iprot)
816
      self._iprot.readMessageEnd()
817
      raise x
818
    result = addInventory_result()
819
    result.read(self._iprot)
820
    self._iprot.readMessageEnd()
821
    if result.cex is not None:
822
      raise result.cex
823
    return
824
 
825
  def retireWarehouse(self, warehouse_id):
826
    """
827
    Parameters:
828
     - warehouse_id
829
    """
830
    self.send_retireWarehouse(warehouse_id)
831
    self.recv_retireWarehouse()
832
 
833
  def send_retireWarehouse(self, warehouse_id):
834
    self._oprot.writeMessageBegin('retireWarehouse', TMessageType.CALL, self._seqid)
835
    args = retireWarehouse_args()
836
    args.warehouse_id = warehouse_id
837
    args.write(self._oprot)
838
    self._oprot.writeMessageEnd()
839
    self._oprot.trans.flush()
840
 
841
  def recv_retireWarehouse(self, ):
842
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
843
    if mtype == TMessageType.EXCEPTION:
844
      x = TApplicationException()
845
      x.read(self._iprot)
846
      self._iprot.readMessageEnd()
847
      raise x
848
    result = retireWarehouse_result()
849
    result.read(self._iprot)
850
    self._iprot.readMessageEnd()
851
    if result.cex is not None:
852
      raise result.cex
853
    return
854
 
855
  def getItemInventoryByItemId(self, item_id):
856
    """
857
    Parameters:
858
     - item_id
859
    """
860
    self.send_getItemInventoryByItemId(item_id)
861
    return self.recv_getItemInventoryByItemId()
862
 
863
  def send_getItemInventoryByItemId(self, item_id):
864
    self._oprot.writeMessageBegin('getItemInventoryByItemId', TMessageType.CALL, self._seqid)
865
    args = getItemInventoryByItemId_args()
866
    args.item_id = item_id
867
    args.write(self._oprot)
868
    self._oprot.writeMessageEnd()
869
    self._oprot.trans.flush()
870
 
871
  def recv_getItemInventoryByItemId(self, ):
872
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
873
    if mtype == TMessageType.EXCEPTION:
874
      x = TApplicationException()
875
      x.read(self._iprot)
876
      self._iprot.readMessageEnd()
877
      raise x
878
    result = getItemInventoryByItemId_result()
879
    result.read(self._iprot)
880
    self._iprot.readMessageEnd()
881
    if result.success is not None:
882
      return result.success
883
    if result.cex is not None:
884
      raise result.cex
885
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
886
 
887
  def getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
888
    """
889
    Parameters:
890
     - warehouse_id
891
     - item_id
892
    """
893
    self.send_getItemAvailibilityAtWarehouse(warehouse_id, item_id)
894
    return self.recv_getItemAvailibilityAtWarehouse()
895
 
896
  def send_getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
897
    self._oprot.writeMessageBegin('getItemAvailibilityAtWarehouse', TMessageType.CALL, self._seqid)
898
    args = getItemAvailibilityAtWarehouse_args()
899
    args.warehouse_id = warehouse_id
900
    args.item_id = item_id
901
    args.write(self._oprot)
902
    self._oprot.writeMessageEnd()
903
    self._oprot.trans.flush()
904
 
905
  def recv_getItemAvailibilityAtWarehouse(self, ):
906
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
907
    if mtype == TMessageType.EXCEPTION:
908
      x = TApplicationException()
909
      x.read(self._iprot)
910
      self._iprot.readMessageEnd()
911
      raise x
912
    result = getItemAvailibilityAtWarehouse_result()
913
    result.read(self._iprot)
914
    self._iprot.readMessageEnd()
915
    if result.success is not None:
916
      return result.success
917
    if result.cex is not None:
918
      raise result.cex
919
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
920
 
5978 rajveer 921
  def getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 922
    """
923
    Determines the warehouse that should be used to fulfil an order for the given item.
924
    It first checks all the warehouses which are in the logistics location given by the
925
    warehouse_loc parameter. If none of the warehouses there have any inventory, then the
926
    preferred warehouse for the item is used.
927
 
928
    Returns an ordered list of size 4 with following elements in the given order:
929
    1. Id of the fulfillment warehouse which was finally picked up.
930
    2. Expected delay added by the category manager.
931
    3. Id of the billing warehouse which was finally picked up.
932
 
933
    Parameters:
934
     - itemId
5978 rajveer 935
     - sourceId
5944 mandeep.dh 936
    """
5978 rajveer 937
    self.send_getItemAvailabilityAtLocation(itemId, sourceId)
5944 mandeep.dh 938
    return self.recv_getItemAvailabilityAtLocation()
939
 
5978 rajveer 940
  def send_getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 941
    self._oprot.writeMessageBegin('getItemAvailabilityAtLocation', TMessageType.CALL, self._seqid)
942
    args = getItemAvailabilityAtLocation_args()
943
    args.itemId = itemId
5978 rajveer 944
    args.sourceId = sourceId
5944 mandeep.dh 945
    args.write(self._oprot)
946
    self._oprot.writeMessageEnd()
947
    self._oprot.trans.flush()
948
 
949
  def recv_getItemAvailabilityAtLocation(self, ):
950
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
951
    if mtype == TMessageType.EXCEPTION:
952
      x = TApplicationException()
953
      x.read(self._iprot)
954
      self._iprot.readMessageEnd()
955
      raise x
956
    result = getItemAvailabilityAtLocation_result()
957
    result.read(self._iprot)
958
    self._iprot.readMessageEnd()
959
    if result.success is not None:
960
      return result.success
961
    if result.isex is not None:
962
      raise result.isex
963
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
964
 
965
  def getAllWarehouses(self, isActive):
966
    """
967
    Parameters:
968
     - isActive
969
    """
970
    self.send_getAllWarehouses(isActive)
971
    return self.recv_getAllWarehouses()
972
 
973
  def send_getAllWarehouses(self, isActive):
974
    self._oprot.writeMessageBegin('getAllWarehouses', TMessageType.CALL, self._seqid)
975
    args = getAllWarehouses_args()
976
    args.isActive = isActive
977
    args.write(self._oprot)
978
    self._oprot.writeMessageEnd()
979
    self._oprot.trans.flush()
980
 
981
  def recv_getAllWarehouses(self, ):
982
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
983
    if mtype == TMessageType.EXCEPTION:
984
      x = TApplicationException()
985
      x.read(self._iprot)
986
      self._iprot.readMessageEnd()
987
      raise x
988
    result = getAllWarehouses_result()
989
    result.read(self._iprot)
990
    self._iprot.readMessageEnd()
991
    if result.success is not None:
992
      return result.success
993
    if result.cex is not None:
994
      raise result.cex
995
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
996
 
997
  def getWarehouse(self, warehouse_id):
998
    """
999
    Returns the warehouse with the given id.
1000
 
1001
    Parameters:
1002
     - warehouse_id
1003
    """
1004
    self.send_getWarehouse(warehouse_id)
1005
    return self.recv_getWarehouse()
1006
 
1007
  def send_getWarehouse(self, warehouse_id):
1008
    self._oprot.writeMessageBegin('getWarehouse', TMessageType.CALL, self._seqid)
1009
    args = getWarehouse_args()
1010
    args.warehouse_id = warehouse_id
1011
    args.write(self._oprot)
1012
    self._oprot.writeMessageEnd()
1013
    self._oprot.trans.flush()
1014
 
1015
  def recv_getWarehouse(self, ):
1016
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1017
    if mtype == TMessageType.EXCEPTION:
1018
      x = TApplicationException()
1019
      x.read(self._iprot)
1020
      self._iprot.readMessageEnd()
1021
      raise x
1022
    result = getWarehouse_result()
1023
    result.read(self._iprot)
1024
    self._iprot.readMessageEnd()
1025
    if result.success is not None:
1026
      return result.success
1027
    if result.cex is not None:
1028
      raise result.cex
1029
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
1030
 
1031
  def getAllItemsForWarehouse(self, warehouse_id):
1032
    """
1033
    Parameters:
1034
     - warehouse_id
1035
    """
1036
    self.send_getAllItemsForWarehouse(warehouse_id)
1037
    return self.recv_getAllItemsForWarehouse()
1038
 
1039
  def send_getAllItemsForWarehouse(self, warehouse_id):
1040
    self._oprot.writeMessageBegin('getAllItemsForWarehouse', TMessageType.CALL, self._seqid)
1041
    args = getAllItemsForWarehouse_args()
1042
    args.warehouse_id = warehouse_id
1043
    args.write(self._oprot)
1044
    self._oprot.writeMessageEnd()
1045
    self._oprot.trans.flush()
1046
 
1047
  def recv_getAllItemsForWarehouse(self, ):
1048
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1049
    if mtype == TMessageType.EXCEPTION:
1050
      x = TApplicationException()
1051
      x.read(self._iprot)
1052
      self._iprot.readMessageEnd()
1053
      raise x
1054
    result = getAllItemsForWarehouse_result()
1055
    result.read(self._iprot)
1056
    self._iprot.readMessageEnd()
1057
    if result.success is not None:
1058
      return result.success
1059
    if result.cex is not None:
1060
      raise result.cex
1061
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
1062
 
5966 rajveer 1063
  def isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
5944 mandeep.dh 1064
    """
5978 rajveer 1065
    Depending on reservation in the table, verify if we can bill this order or not.
5966 rajveer 1066
 
1067
    Parameters:
1068
     - itemId
1069
     - warehouseId
1070
     - sourceId
1071
     - orderId
1072
    """
1073
    self.send_isOrderBillable(itemId, warehouseId, sourceId, orderId)
1074
    return self.recv_isOrderBillable()
1075
 
1076
  def send_isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
1077
    self._oprot.writeMessageBegin('isOrderBillable', TMessageType.CALL, self._seqid)
1078
    args = isOrderBillable_args()
1079
    args.itemId = itemId
1080
    args.warehouseId = warehouseId
1081
    args.sourceId = sourceId
1082
    args.orderId = orderId
1083
    args.write(self._oprot)
1084
    self._oprot.writeMessageEnd()
1085
    self._oprot.trans.flush()
1086
 
1087
  def recv_isOrderBillable(self, ):
1088
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1089
    if mtype == TMessageType.EXCEPTION:
1090
      x = TApplicationException()
1091
      x.read(self._iprot)
1092
      self._iprot.readMessageEnd()
1093
      raise x
1094
    result = isOrderBillable_result()
1095
    result.read(self._iprot)
1096
    self._iprot.readMessageEnd()
1097
    if result.success is not None:
1098
      return result.success
1099
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
1100
 
1101
  def reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1102
    """
5944 mandeep.dh 1103
    Increases the reservation count for an item in a warehouse. Should always succeed normally.
1104
 
1105
    Parameters:
1106
     - itemId
1107
     - warehouseId
5966 rajveer 1108
     - sourceId
1109
     - orderId
1110
     - createdTimestamp
1111
     - promisedShippingTimestamp
5944 mandeep.dh 1112
     - quantity
1113
    """
5966 rajveer 1114
    self.send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
5944 mandeep.dh 1115
    return self.recv_reserveItemInWarehouse()
1116
 
5966 rajveer 1117
  def send_reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
5944 mandeep.dh 1118
    self._oprot.writeMessageBegin('reserveItemInWarehouse', TMessageType.CALL, self._seqid)
1119
    args = reserveItemInWarehouse_args()
1120
    args.itemId = itemId
1121
    args.warehouseId = warehouseId
5966 rajveer 1122
    args.sourceId = sourceId
1123
    args.orderId = orderId
1124
    args.createdTimestamp = createdTimestamp
1125
    args.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 1126
    args.quantity = quantity
1127
    args.write(self._oprot)
1128
    self._oprot.writeMessageEnd()
1129
    self._oprot.trans.flush()
1130
 
1131
  def recv_reserveItemInWarehouse(self, ):
1132
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1133
    if mtype == TMessageType.EXCEPTION:
1134
      x = TApplicationException()
1135
      x.read(self._iprot)
1136
      self._iprot.readMessageEnd()
1137
      raise x
1138
    result = reserveItemInWarehouse_result()
1139
    result.read(self._iprot)
1140
    self._iprot.readMessageEnd()
1141
    if result.success is not None:
1142
      return result.success
1143
    if result.cex is not None:
1144
      raise result.cex
1145
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
1146
 
7968 amar.kumar 1147
  def updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1148
    """
1149
    Updates the reservation for Order
1150
 
1151
    Parameters:
1152
     - itemId
1153
     - warehouseId
1154
     - sourceId
1155
     - orderId
1156
     - createdTimestamp
1157
     - promisedShippingTimestamp
1158
     - quantity
1159
    """
1160
    self.send_updateReservationForOrder(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
1161
    return self.recv_updateReservationForOrder()
1162
 
1163
  def send_updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1164
    self._oprot.writeMessageBegin('updateReservationForOrder', TMessageType.CALL, self._seqid)
1165
    args = updateReservationForOrder_args()
1166
    args.itemId = itemId
1167
    args.warehouseId = warehouseId
1168
    args.sourceId = sourceId
1169
    args.orderId = orderId
1170
    args.createdTimestamp = createdTimestamp
1171
    args.promisedShippingTimestamp = promisedShippingTimestamp
1172
    args.quantity = quantity
1173
    args.write(self._oprot)
1174
    self._oprot.writeMessageEnd()
1175
    self._oprot.trans.flush()
1176
 
1177
  def recv_updateReservationForOrder(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 = updateReservationForOrder_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, "updateReservationForOrder failed: unknown result");
1192
 
5966 rajveer 1193
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1194
    """
1195
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
1196
 
1197
    Parameters:
1198
     - itemId
1199
     - warehouseId
5966 rajveer 1200
     - sourceId
1201
     - orderId
5944 mandeep.dh 1202
     - quantity
1203
    """
5966 rajveer 1204
    self.send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity)
5944 mandeep.dh 1205
    return self.recv_reduceReservationCount()
1206
 
5966 rajveer 1207
  def send_reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1208
    self._oprot.writeMessageBegin('reduceReservationCount', TMessageType.CALL, self._seqid)
1209
    args = reduceReservationCount_args()
1210
    args.itemId = itemId
1211
    args.warehouseId = warehouseId
5966 rajveer 1212
    args.sourceId = sourceId
1213
    args.orderId = orderId
5944 mandeep.dh 1214
    args.quantity = quantity
1215
    args.write(self._oprot)
1216
    self._oprot.writeMessageEnd()
1217
    self._oprot.trans.flush()
1218
 
1219
  def recv_reduceReservationCount(self, ):
1220
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1221
    if mtype == TMessageType.EXCEPTION:
1222
      x = TApplicationException()
1223
      x.read(self._iprot)
1224
      self._iprot.readMessageEnd()
1225
      raise x
1226
    result = reduceReservationCount_result()
1227
    result.read(self._iprot)
1228
    self._iprot.readMessageEnd()
1229
    if result.success is not None:
1230
      return result.success
1231
    if result.cex is not None:
1232
      raise result.cex
1233
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
1234
 
1235
  def getItemPricing(self, itemId, vendorId):
1236
    """
1237
    Returns the pricing information of an item associated with the vendor of the given warehouse.
1238
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
1239
 
1240
    Parameters:
1241
     - itemId
1242
     - vendorId
1243
    """
1244
    self.send_getItemPricing(itemId, vendorId)
1245
    return self.recv_getItemPricing()
1246
 
1247
  def send_getItemPricing(self, itemId, vendorId):
1248
    self._oprot.writeMessageBegin('getItemPricing', TMessageType.CALL, self._seqid)
1249
    args = getItemPricing_args()
1250
    args.itemId = itemId
1251
    args.vendorId = vendorId
1252
    args.write(self._oprot)
1253
    self._oprot.writeMessageEnd()
1254
    self._oprot.trans.flush()
1255
 
1256
  def recv_getItemPricing(self, ):
1257
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1258
    if mtype == TMessageType.EXCEPTION:
1259
      x = TApplicationException()
1260
      x.read(self._iprot)
1261
      self._iprot.readMessageEnd()
1262
      raise x
1263
    result = getItemPricing_result()
1264
    result.read(self._iprot)
1265
    self._iprot.readMessageEnd()
1266
    if result.success is not None:
1267
      return result.success
1268
    if result.cex is not None:
1269
      raise result.cex
1270
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
1271
 
1272
  def getAllItemPricing(self, itemId):
1273
    """
1274
    Returns the list of vendor pricing information of an item.
1275
    Raises an exception if item not found corresponding to itemId
1276
 
1277
    Parameters:
1278
     - itemId
1279
    """
1280
    self.send_getAllItemPricing(itemId)
1281
    return self.recv_getAllItemPricing()
1282
 
1283
  def send_getAllItemPricing(self, itemId):
1284
    self._oprot.writeMessageBegin('getAllItemPricing', TMessageType.CALL, self._seqid)
1285
    args = getAllItemPricing_args()
1286
    args.itemId = itemId
1287
    args.write(self._oprot)
1288
    self._oprot.writeMessageEnd()
1289
    self._oprot.trans.flush()
1290
 
1291
  def recv_getAllItemPricing(self, ):
1292
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1293
    if mtype == TMessageType.EXCEPTION:
1294
      x = TApplicationException()
1295
      x.read(self._iprot)
1296
      self._iprot.readMessageEnd()
1297
      raise x
1298
    result = getAllItemPricing_result()
1299
    result.read(self._iprot)
1300
    self._iprot.readMessageEnd()
1301
    if result.success is not None:
1302
      return result.success
1303
    if result.cex is not None:
1304
      raise result.cex
1305
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
1306
 
1307
  def addVendorItemPricing(self, vendorItemPricing):
1308
    """
1309
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
1310
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
1311
 
1312
    Parameters:
1313
     - vendorItemPricing
1314
    """
1315
    self.send_addVendorItemPricing(vendorItemPricing)
1316
    self.recv_addVendorItemPricing()
1317
 
1318
  def send_addVendorItemPricing(self, vendorItemPricing):
1319
    self._oprot.writeMessageBegin('addVendorItemPricing', TMessageType.CALL, self._seqid)
1320
    args = addVendorItemPricing_args()
1321
    args.vendorItemPricing = vendorItemPricing
1322
    args.write(self._oprot)
1323
    self._oprot.writeMessageEnd()
1324
    self._oprot.trans.flush()
1325
 
1326
  def recv_addVendorItemPricing(self, ):
1327
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1328
    if mtype == TMessageType.EXCEPTION:
1329
      x = TApplicationException()
1330
      x.read(self._iprot)
1331
      self._iprot.readMessageEnd()
1332
      raise x
1333
    result = addVendorItemPricing_result()
1334
    result.read(self._iprot)
1335
    self._iprot.readMessageEnd()
1336
    if result.cex is not None:
1337
      raise result.cex
1338
    return
1339
 
1340
  def getVendor(self, vendorId):
1341
    """
1342
    Returns a vendor given its id
1343
 
1344
    Parameters:
1345
     - vendorId
1346
    """
1347
    self.send_getVendor(vendorId)
1348
    return self.recv_getVendor()
1349
 
1350
  def send_getVendor(self, vendorId):
1351
    self._oprot.writeMessageBegin('getVendor', TMessageType.CALL, self._seqid)
1352
    args = getVendor_args()
1353
    args.vendorId = vendorId
1354
    args.write(self._oprot)
1355
    self._oprot.writeMessageEnd()
1356
    self._oprot.trans.flush()
1357
 
1358
  def recv_getVendor(self, ):
1359
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1360
    if mtype == TMessageType.EXCEPTION:
1361
      x = TApplicationException()
1362
      x.read(self._iprot)
1363
      self._iprot.readMessageEnd()
1364
      raise x
1365
    result = getVendor_result()
1366
    result.read(self._iprot)
1367
    self._iprot.readMessageEnd()
1368
    if result.success is not None:
1369
      return result.success
1370
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
1371
 
1372
  def getAllVendors(self, ):
1373
    """
1374
    Return list of all vendors
1375
    """
1376
    self.send_getAllVendors()
1377
    return self.recv_getAllVendors()
1378
 
1379
  def send_getAllVendors(self, ):
1380
    self._oprot.writeMessageBegin('getAllVendors', TMessageType.CALL, self._seqid)
1381
    args = getAllVendors_args()
1382
    args.write(self._oprot)
1383
    self._oprot.writeMessageEnd()
1384
    self._oprot.trans.flush()
1385
 
1386
  def recv_getAllVendors(self, ):
1387
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1388
    if mtype == TMessageType.EXCEPTION:
1389
      x = TApplicationException()
1390
      x.read(self._iprot)
1391
      self._iprot.readMessageEnd()
1392
      raise x
1393
    result = getAllVendors_result()
1394
    result.read(self._iprot)
1395
    self._iprot.readMessageEnd()
1396
    if result.success is not None:
1397
      return result.success
1398
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1399
 
1400
  def addVendorItemMapping(self, key, vendorItemMapping):
1401
    """
1402
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
1403
 
1404
    Parameters:
1405
     - key
1406
     - vendorItemMapping
1407
    """
1408
    self.send_addVendorItemMapping(key, vendorItemMapping)
1409
    self.recv_addVendorItemMapping()
1410
 
1411
  def send_addVendorItemMapping(self, key, vendorItemMapping):
1412
    self._oprot.writeMessageBegin('addVendorItemMapping', TMessageType.CALL, self._seqid)
1413
    args = addVendorItemMapping_args()
1414
    args.key = key
1415
    args.vendorItemMapping = vendorItemMapping
1416
    args.write(self._oprot)
1417
    self._oprot.writeMessageEnd()
1418
    self._oprot.trans.flush()
1419
 
1420
  def recv_addVendorItemMapping(self, ):
1421
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1422
    if mtype == TMessageType.EXCEPTION:
1423
      x = TApplicationException()
1424
      x.read(self._iprot)
1425
      self._iprot.readMessageEnd()
1426
      raise x
1427
    result = addVendorItemMapping_result()
1428
    result.read(self._iprot)
1429
    self._iprot.readMessageEnd()
1430
    if result.cex is not None:
1431
      raise result.cex
1432
    return
1433
 
1434
  def getVendorItemMappings(self, itemId):
1435
    """
1436
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
1437
    Raises an exception if item not found corresponding to itemId
1438
 
1439
    Parameters:
1440
     - itemId
1441
    """
1442
    self.send_getVendorItemMappings(itemId)
1443
    return self.recv_getVendorItemMappings()
1444
 
1445
  def send_getVendorItemMappings(self, itemId):
1446
    self._oprot.writeMessageBegin('getVendorItemMappings', TMessageType.CALL, self._seqid)
1447
    args = getVendorItemMappings_args()
1448
    args.itemId = itemId
1449
    args.write(self._oprot)
1450
    self._oprot.writeMessageEnd()
1451
    self._oprot.trans.flush()
1452
 
1453
  def recv_getVendorItemMappings(self, ):
1454
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1455
    if mtype == TMessageType.EXCEPTION:
1456
      x = TApplicationException()
1457
      x.read(self._iprot)
1458
      self._iprot.readMessageEnd()
1459
      raise x
1460
    result = getVendorItemMappings_result()
1461
    result.read(self._iprot)
1462
    self._iprot.readMessageEnd()
1463
    if result.success is not None:
1464
      return result.success
1465
    if result.cex is not None:
1466
      raise result.cex
1467
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
1468
 
1469
  def getPendingOrdersInventory(self, vendorid):
1470
    """
1471
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
1472
 
1473
    Parameters:
1474
     - vendorid
1475
    """
1476
    self.send_getPendingOrdersInventory(vendorid)
1477
    return self.recv_getPendingOrdersInventory()
1478
 
1479
  def send_getPendingOrdersInventory(self, vendorid):
1480
    self._oprot.writeMessageBegin('getPendingOrdersInventory', TMessageType.CALL, self._seqid)
1481
    args = getPendingOrdersInventory_args()
1482
    args.vendorid = vendorid
1483
    args.write(self._oprot)
1484
    self._oprot.writeMessageEnd()
1485
    self._oprot.trans.flush()
1486
 
1487
  def recv_getPendingOrdersInventory(self, ):
1488
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1489
    if mtype == TMessageType.EXCEPTION:
1490
      x = TApplicationException()
1491
      x.read(self._iprot)
1492
      self._iprot.readMessageEnd()
1493
      raise x
1494
    result = getPendingOrdersInventory_result()
1495
    result.read(self._iprot)
1496
    self._iprot.readMessageEnd()
1497
    if result.success is not None:
1498
      return result.success
1499
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1500
 
1501
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1502
    """
1503
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
1504
    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
1505
    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
1506
       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
1507
       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
1508
 
1509
    Parameters:
1510
     - warehouseType
1511
     - inventoryType
1512
     - vendorId
1513
     - billingWarehouseId
1514
     - shippingWarehouseId
1515
    """
1516
    self.send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId)
1517
    return self.recv_getWarehouses()
1518
 
1519
  def send_getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1520
    self._oprot.writeMessageBegin('getWarehouses', TMessageType.CALL, self._seqid)
1521
    args = getWarehouses_args()
1522
    args.warehouseType = warehouseType
1523
    args.inventoryType = inventoryType
1524
    args.vendorId = vendorId
1525
    args.billingWarehouseId = billingWarehouseId
1526
    args.shippingWarehouseId = shippingWarehouseId
1527
    args.write(self._oprot)
1528
    self._oprot.writeMessageEnd()
1529
    self._oprot.trans.flush()
1530
 
1531
  def recv_getWarehouses(self, ):
1532
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1533
    if mtype == TMessageType.EXCEPTION:
1534
      x = TApplicationException()
1535
      x.read(self._iprot)
1536
      self._iprot.readMessageEnd()
1537
      raise x
1538
    result = getWarehouses_result()
1539
    result.read(self._iprot)
1540
    self._iprot.readMessageEnd()
1541
    if result.success is not None:
1542
      return result.success
1543
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1544
 
1545
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1546
    """
1547
    Resets availability of an item to the quantity mentioned in a warehouse.
1548
 
1549
    Parameters:
1550
     - itemKey
1551
     - vendorId
1552
     - quantity
1553
     - warehouseId
1554
    """
1555
    self.send_resetAvailability(itemKey, vendorId, quantity, warehouseId)
1556
    self.recv_resetAvailability()
1557
 
1558
  def send_resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1559
    self._oprot.writeMessageBegin('resetAvailability', TMessageType.CALL, self._seqid)
1560
    args = resetAvailability_args()
1561
    args.itemKey = itemKey
1562
    args.vendorId = vendorId
1563
    args.quantity = quantity
1564
    args.warehouseId = warehouseId
1565
    args.write(self._oprot)
1566
    self._oprot.writeMessageEnd()
1567
    self._oprot.trans.flush()
1568
 
1569
  def recv_resetAvailability(self, ):
1570
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1571
    if mtype == TMessageType.EXCEPTION:
1572
      x = TApplicationException()
1573
      x.read(self._iprot)
1574
      self._iprot.readMessageEnd()
1575
      raise x
1576
    result = resetAvailability_result()
1577
    result.read(self._iprot)
1578
    self._iprot.readMessageEnd()
1579
    if result.cex is not None:
1580
      raise result.cex
1581
    return
1582
 
1583
  def resetAvailabilityForWarehouse(self, warehouseId):
1584
    """
1585
    Resets availability of a warehouse to zero.
1586
 
1587
    Parameters:
1588
     - warehouseId
1589
    """
1590
    self.send_resetAvailabilityForWarehouse(warehouseId)
1591
    self.recv_resetAvailabilityForWarehouse()
1592
 
1593
  def send_resetAvailabilityForWarehouse(self, warehouseId):
1594
    self._oprot.writeMessageBegin('resetAvailabilityForWarehouse', TMessageType.CALL, self._seqid)
1595
    args = resetAvailabilityForWarehouse_args()
1596
    args.warehouseId = warehouseId
1597
    args.write(self._oprot)
1598
    self._oprot.writeMessageEnd()
1599
    self._oprot.trans.flush()
1600
 
1601
  def recv_resetAvailabilityForWarehouse(self, ):
1602
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1603
    if mtype == TMessageType.EXCEPTION:
1604
      x = TApplicationException()
1605
      x.read(self._iprot)
1606
      self._iprot.readMessageEnd()
1607
      raise x
1608
    result = resetAvailabilityForWarehouse_result()
1609
    result.read(self._iprot)
1610
    self._iprot.readMessageEnd()
1611
    if result.cex is not None:
1612
      raise result.cex
1613
    return
1614
 
1615
  def getItemKeysToBeProcessed(self, warehouseId):
1616
    """
1617
    Returns the list of item keys which need to be processed for a given warehouse.
1618
    This is currently used by Support application to send item keys whose inventory needs
1619
    to be updated from PLB
1620
 
1621
    Parameters:
1622
     - warehouseId
1623
    """
1624
    self.send_getItemKeysToBeProcessed(warehouseId)
1625
    return self.recv_getItemKeysToBeProcessed()
1626
 
1627
  def send_getItemKeysToBeProcessed(self, warehouseId):
1628
    self._oprot.writeMessageBegin('getItemKeysToBeProcessed', TMessageType.CALL, self._seqid)
1629
    args = getItemKeysToBeProcessed_args()
1630
    args.warehouseId = warehouseId
1631
    args.write(self._oprot)
1632
    self._oprot.writeMessageEnd()
1633
    self._oprot.trans.flush()
1634
 
1635
  def recv_getItemKeysToBeProcessed(self, ):
1636
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1637
    if mtype == TMessageType.EXCEPTION:
1638
      x = TApplicationException()
1639
      x.read(self._iprot)
1640
      self._iprot.readMessageEnd()
1641
      raise x
1642
    result = getItemKeysToBeProcessed_result()
1643
    result.read(self._iprot)
1644
    self._iprot.readMessageEnd()
1645
    if result.success is not None:
1646
      return result.success
1647
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1648
 
1649
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1650
    """
1651
    Marks/Deletes missed inventory updates for a given key and warehouse.
1652
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
1653
 
1654
    Parameters:
1655
     - itemKey
1656
     - warehouseId
1657
    """
1658
    self.send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId)
1659
    self.recv_markMissedInventoryUpdatesAsProcessed()
1660
 
1661
  def send_markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1662
    self._oprot.writeMessageBegin('markMissedInventoryUpdatesAsProcessed', TMessageType.CALL, self._seqid)
1663
    args = markMissedInventoryUpdatesAsProcessed_args()
1664
    args.itemKey = itemKey
1665
    args.warehouseId = warehouseId
1666
    args.write(self._oprot)
1667
    self._oprot.writeMessageEnd()
1668
    self._oprot.trans.flush()
1669
 
1670
  def recv_markMissedInventoryUpdatesAsProcessed(self, ):
1671
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1672
    if mtype == TMessageType.EXCEPTION:
1673
      x = TApplicationException()
1674
      x.read(self._iprot)
1675
      self._iprot.readMessageEnd()
1676
      raise x
1677
    result = markMissedInventoryUpdatesAsProcessed_result()
1678
    result.read(self._iprot)
1679
    self._iprot.readMessageEnd()
1680
    return
1681
 
1682
  def getIgnoredItemKeys(self, ):
1683
    """
1684
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
1685
    and the timestamp from where alert was raised.
1686
    """
1687
    self.send_getIgnoredItemKeys()
1688
    return self.recv_getIgnoredItemKeys()
1689
 
1690
  def send_getIgnoredItemKeys(self, ):
1691
    self._oprot.writeMessageBegin('getIgnoredItemKeys', TMessageType.CALL, self._seqid)
1692
    args = getIgnoredItemKeys_args()
1693
    args.write(self._oprot)
1694
    self._oprot.writeMessageEnd()
1695
    self._oprot.trans.flush()
1696
 
1697
  def recv_getIgnoredItemKeys(self, ):
1698
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1699
    if mtype == TMessageType.EXCEPTION:
1700
      x = TApplicationException()
1701
      x.read(self._iprot)
1702
      self._iprot.readMessageEnd()
1703
      raise x
1704
    result = getIgnoredItemKeys_result()
1705
    result.read(self._iprot)
1706
    self._iprot.readMessageEnd()
1707
    if result.success is not None:
1708
      return result.success
1709
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1710
 
1711
  def addBadInventory(self, itemId, warehouseId, quantity):
1712
    """
1713
    Add the BAD type inventory to existing stock.
1714
 
1715
    Parameters:
1716
     - itemId
1717
     - warehouseId
1718
     - quantity
1719
    """
1720
    self.send_addBadInventory(itemId, warehouseId, quantity)
1721
    self.recv_addBadInventory()
1722
 
1723
  def send_addBadInventory(self, itemId, warehouseId, quantity):
1724
    self._oprot.writeMessageBegin('addBadInventory', TMessageType.CALL, self._seqid)
1725
    args = addBadInventory_args()
1726
    args.itemId = itemId
1727
    args.warehouseId = warehouseId
1728
    args.quantity = quantity
1729
    args.write(self._oprot)
1730
    self._oprot.writeMessageEnd()
1731
    self._oprot.trans.flush()
1732
 
1733
  def recv_addBadInventory(self, ):
1734
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1735
    if mtype == TMessageType.EXCEPTION:
1736
      x = TApplicationException()
1737
      x.read(self._iprot)
1738
      self._iprot.readMessageEnd()
1739
      raise x
1740
    result = addBadInventory_result()
1741
    result.read(self._iprot)
1742
    self._iprot.readMessageEnd()
1743
    if result.cex is not None:
1744
      raise result.cex
1745
    return
1746
 
1747
  def getShippingLocations(self, ):
1748
    """
1749
    Returns all shipping locations
1750
    """
1751
    self.send_getShippingLocations()
1752
    return self.recv_getShippingLocations()
1753
 
1754
  def send_getShippingLocations(self, ):
1755
    self._oprot.writeMessageBegin('getShippingLocations', TMessageType.CALL, self._seqid)
1756
    args = getShippingLocations_args()
1757
    args.write(self._oprot)
1758
    self._oprot.writeMessageEnd()
1759
    self._oprot.trans.flush()
1760
 
1761
  def recv_getShippingLocations(self, ):
1762
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1763
    if mtype == TMessageType.EXCEPTION:
1764
      x = TApplicationException()
1765
      x.read(self._iprot)
1766
      self._iprot.readMessageEnd()
1767
      raise x
1768
    result = getShippingLocations_result()
1769
    result.read(self._iprot)
1770
    self._iprot.readMessageEnd()
1771
    if result.success is not None:
1772
      return result.success
1773
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1774
 
1775
  def getAllVendorItemMappings(self, ):
1776
    """
1777
    Fetches all the vendor item mappings present.
1778
    """
1779
    self.send_getAllVendorItemMappings()
1780
    return self.recv_getAllVendorItemMappings()
1781
 
1782
  def send_getAllVendorItemMappings(self, ):
1783
    self._oprot.writeMessageBegin('getAllVendorItemMappings', TMessageType.CALL, self._seqid)
1784
    args = getAllVendorItemMappings_args()
1785
    args.write(self._oprot)
1786
    self._oprot.writeMessageEnd()
1787
    self._oprot.trans.flush()
1788
 
1789
  def recv_getAllVendorItemMappings(self, ):
1790
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1791
    if mtype == TMessageType.EXCEPTION:
1792
      x = TApplicationException()
1793
      x.read(self._iprot)
1794
      self._iprot.readMessageEnd()
1795
      raise x
1796
    result = getAllVendorItemMappings_result()
1797
    result.read(self._iprot)
1798
    self._iprot.readMessageEnd()
1799
    if result.success is not None:
1800
      return result.success
1801
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1802
 
1803
  def getInventorySnapshot(self, warehouseId):
1804
    """
1805
    Gets items' inventory for a warehouse
1806
    If warehouse is passed as zero, items' inventory across all warehouses is sent
1807
 
1808
    Parameters:
1809
     - warehouseId
1810
    """
1811
    self.send_getInventorySnapshot(warehouseId)
1812
    return self.recv_getInventorySnapshot()
1813
 
1814
  def send_getInventorySnapshot(self, warehouseId):
1815
    self._oprot.writeMessageBegin('getInventorySnapshot', TMessageType.CALL, self._seqid)
1816
    args = getInventorySnapshot_args()
1817
    args.warehouseId = warehouseId
1818
    args.write(self._oprot)
1819
    self._oprot.writeMessageEnd()
1820
    self._oprot.trans.flush()
1821
 
1822
  def recv_getInventorySnapshot(self, ):
1823
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1824
    if mtype == TMessageType.EXCEPTION:
1825
      x = TApplicationException()
1826
      x.read(self._iprot)
1827
      self._iprot.readMessageEnd()
1828
      raise x
1829
    result = getInventorySnapshot_result()
1830
    result.read(self._iprot)
1831
    self._iprot.readMessageEnd()
1832
    if result.success is not None:
1833
      return result.success
1834
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1835
 
1836
  def clearItemAvailabilityCache(self, ):
1837
    """
1838
    Clear item availability cache.
1839
    """
1840
    self.send_clearItemAvailabilityCache()
1841
    self.recv_clearItemAvailabilityCache()
1842
 
1843
  def send_clearItemAvailabilityCache(self, ):
1844
    self._oprot.writeMessageBegin('clearItemAvailabilityCache', TMessageType.CALL, self._seqid)
1845
    args = clearItemAvailabilityCache_args()
1846
    args.write(self._oprot)
1847
    self._oprot.writeMessageEnd()
1848
    self._oprot.trans.flush()
1849
 
1850
  def recv_clearItemAvailabilityCache(self, ):
1851
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1852
    if mtype == TMessageType.EXCEPTION:
1853
      x = TApplicationException()
1854
      x.read(self._iprot)
1855
      self._iprot.readMessageEnd()
1856
      raise x
1857
    result = clearItemAvailabilityCache_result()
1858
    result.read(self._iprot)
1859
    self._iprot.readMessageEnd()
1860
    return
1861
 
1862
  def updateVendorString(self, warehouseId, vendorString):
1863
    """
1864
    Parameters:
1865
     - warehouseId
1866
     - vendorString
1867
    """
1868
    self.send_updateVendorString(warehouseId, vendorString)
1869
    self.recv_updateVendorString()
1870
 
1871
  def send_updateVendorString(self, warehouseId, vendorString):
1872
    self._oprot.writeMessageBegin('updateVendorString', TMessageType.CALL, self._seqid)
1873
    args = updateVendorString_args()
1874
    args.warehouseId = warehouseId
1875
    args.vendorString = vendorString
1876
    args.write(self._oprot)
1877
    self._oprot.writeMessageEnd()
1878
    self._oprot.trans.flush()
1879
 
1880
  def recv_updateVendorString(self, ):
1881
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1882
    if mtype == TMessageType.EXCEPTION:
1883
      x = TApplicationException()
1884
      x.read(self._iprot)
1885
      self._iprot.readMessageEnd()
1886
      raise x
1887
    result = updateVendorString_result()
1888
    result.read(self._iprot)
1889
    self._iprot.readMessageEnd()
1890
    return
1891
 
6096 amit.gupta 1892
  def clearItemAvailabilityCacheForItem(self, item_id):
1893
    """
1894
    Parameters:
1895
     - item_id
1896
    """
1897
    self.send_clearItemAvailabilityCacheForItem(item_id)
1898
    self.recv_clearItemAvailabilityCacheForItem()
5944 mandeep.dh 1899
 
6096 amit.gupta 1900
  def send_clearItemAvailabilityCacheForItem(self, item_id):
1901
    self._oprot.writeMessageBegin('clearItemAvailabilityCacheForItem', TMessageType.CALL, self._seqid)
1902
    args = clearItemAvailabilityCacheForItem_args()
1903
    args.item_id = item_id
1904
    args.write(self._oprot)
1905
    self._oprot.writeMessageEnd()
1906
    self._oprot.trans.flush()
1907
 
1908
  def recv_clearItemAvailabilityCacheForItem(self, ):
1909
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1910
    if mtype == TMessageType.EXCEPTION:
1911
      x = TApplicationException()
1912
      x.read(self._iprot)
1913
      self._iprot.readMessageEnd()
1914
      raise x
1915
    result = clearItemAvailabilityCacheForItem_result()
1916
    result.read(self._iprot)
1917
    self._iprot.readMessageEnd()
1918
    return
1919
 
7718 amar.kumar 1920
  def getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1921
    """
1922
    Parameters:
1923
     - vendorId
7718 amar.kumar 1924
     - billingWarehouseId
6467 amar.kumar 1925
    """
7718 amar.kumar 1926
    self.send_getOurWarehouseIdForVendor(vendorId, billingWarehouseId)
6467 amar.kumar 1927
    return self.recv_getOurWarehouseIdForVendor()
6096 amit.gupta 1928
 
7718 amar.kumar 1929
  def send_getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1930
    self._oprot.writeMessageBegin('getOurWarehouseIdForVendor', TMessageType.CALL, self._seqid)
1931
    args = getOurWarehouseIdForVendor_args()
1932
    args.vendorId = vendorId
7718 amar.kumar 1933
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 1934
    args.write(self._oprot)
1935
    self._oprot.writeMessageEnd()
1936
    self._oprot.trans.flush()
1937
 
1938
  def recv_getOurWarehouseIdForVendor(self, ):
1939
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1940
    if mtype == TMessageType.EXCEPTION:
1941
      x = TApplicationException()
1942
      x.read(self._iprot)
1943
      self._iprot.readMessageEnd()
1944
      raise x
1945
    result = getOurWarehouseIdForVendor_result()
1946
    result.read(self._iprot)
1947
    self._iprot.readMessageEnd()
1948
    if result.success is not None:
1949
      return result.success
1950
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1951
 
6484 amar.kumar 1952
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1953
    """
1954
    Parameters:
1955
     - item_ids
1956
    """
1957
    self.send_getItemAvailabilitiesAtOurWarehouses(item_ids)
1958
    return self.recv_getItemAvailabilitiesAtOurWarehouses()
6467 amar.kumar 1959
 
6484 amar.kumar 1960
  def send_getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1961
    self._oprot.writeMessageBegin('getItemAvailabilitiesAtOurWarehouses', TMessageType.CALL, self._seqid)
1962
    args = getItemAvailabilitiesAtOurWarehouses_args()
1963
    args.item_ids = item_ids
1964
    args.write(self._oprot)
1965
    self._oprot.writeMessageEnd()
1966
    self._oprot.trans.flush()
1967
 
1968
  def recv_getItemAvailabilitiesAtOurWarehouses(self, ):
1969
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1970
    if mtype == TMessageType.EXCEPTION:
1971
      x = TApplicationException()
1972
      x.read(self._iprot)
1973
      self._iprot.readMessageEnd()
1974
      raise x
1975
    result = getItemAvailabilitiesAtOurWarehouses_result()
1976
    result.read(self._iprot)
1977
    self._iprot.readMessageEnd()
1978
    if result.success is not None:
1979
      return result.success
1980
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
1981
 
6531 vikram.rag 1982
  def getMonitoredWarehouseForVendors(self, vendorIds):
1983
    """
1984
    Parameters:
1985
     - vendorIds
1986
    """
1987
    self.send_getMonitoredWarehouseForVendors(vendorIds)
1988
    return self.recv_getMonitoredWarehouseForVendors()
6484 amar.kumar 1989
 
6531 vikram.rag 1990
  def send_getMonitoredWarehouseForVendors(self, vendorIds):
1991
    self._oprot.writeMessageBegin('getMonitoredWarehouseForVendors', TMessageType.CALL, self._seqid)
1992
    args = getMonitoredWarehouseForVendors_args()
1993
    args.vendorIds = vendorIds
1994
    args.write(self._oprot)
1995
    self._oprot.writeMessageEnd()
1996
    self._oprot.trans.flush()
1997
 
1998
  def recv_getMonitoredWarehouseForVendors(self, ):
1999
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2000
    if mtype == TMessageType.EXCEPTION:
2001
      x = TApplicationException()
2002
      x.read(self._iprot)
2003
      self._iprot.readMessageEnd()
2004
      raise x
2005
    result = getMonitoredWarehouseForVendors_result()
2006
    result.read(self._iprot)
2007
    self._iprot.readMessageEnd()
2008
    if result.success is not None:
2009
      return result.success
2010
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
2011
 
2012
  def getIgnoredWarehouseidsAndItemids(self, ):
2013
    self.send_getIgnoredWarehouseidsAndItemids()
2014
    return self.recv_getIgnoredWarehouseidsAndItemids()
2015
 
2016
  def send_getIgnoredWarehouseidsAndItemids(self, ):
2017
    self._oprot.writeMessageBegin('getIgnoredWarehouseidsAndItemids', TMessageType.CALL, self._seqid)
2018
    args = getIgnoredWarehouseidsAndItemids_args()
2019
    args.write(self._oprot)
2020
    self._oprot.writeMessageEnd()
2021
    self._oprot.trans.flush()
2022
 
2023
  def recv_getIgnoredWarehouseidsAndItemids(self, ):
2024
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2025
    if mtype == TMessageType.EXCEPTION:
2026
      x = TApplicationException()
2027
      x.read(self._iprot)
2028
      self._iprot.readMessageEnd()
2029
      raise x
2030
    result = getIgnoredWarehouseidsAndItemids_result()
2031
    result.read(self._iprot)
2032
    self._iprot.readMessageEnd()
2033
    if result.success is not None:
2034
      return result.success
2035
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
2036
 
2037
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2038
    """
2039
    Parameters:
2040
     - item_id
2041
     - warehouse_id
2042
    """
2043
    self.send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id)
2044
    return self.recv_insertItemtoIgnoreInventoryUpdatelist()
2045
 
2046
  def send_insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2047
    self._oprot.writeMessageBegin('insertItemtoIgnoreInventoryUpdatelist', TMessageType.CALL, self._seqid)
2048
    args = insertItemtoIgnoreInventoryUpdatelist_args()
2049
    args.item_id = item_id
2050
    args.warehouse_id = warehouse_id
2051
    args.write(self._oprot)
2052
    self._oprot.writeMessageEnd()
2053
    self._oprot.trans.flush()
2054
 
2055
  def recv_insertItemtoIgnoreInventoryUpdatelist(self, ):
2056
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2057
    if mtype == TMessageType.EXCEPTION:
2058
      x = TApplicationException()
2059
      x.read(self._iprot)
2060
      self._iprot.readMessageEnd()
2061
      raise x
2062
    result = insertItemtoIgnoreInventoryUpdatelist_result()
2063
    result.read(self._iprot)
2064
    self._iprot.readMessageEnd()
2065
    if result.success is not None:
2066
      return result.success
2067
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
2068
 
2069
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2070
    """
2071
    Parameters:
2072
     - item_id
2073
     - warehouse_id
2074
    """
2075
    self.send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id)
2076
    return self.recv_deleteItemFromIgnoredInventoryUpdateList()
2077
 
2078
  def send_deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2079
    self._oprot.writeMessageBegin('deleteItemFromIgnoredInventoryUpdateList', TMessageType.CALL, self._seqid)
2080
    args = deleteItemFromIgnoredInventoryUpdateList_args()
2081
    args.item_id = item_id
2082
    args.warehouse_id = warehouse_id
2083
    args.write(self._oprot)
2084
    self._oprot.writeMessageEnd()
2085
    self._oprot.trans.flush()
2086
 
2087
  def recv_deleteItemFromIgnoredInventoryUpdateList(self, ):
2088
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2089
    if mtype == TMessageType.EXCEPTION:
2090
      x = TApplicationException()
2091
      x.read(self._iprot)
2092
      self._iprot.readMessageEnd()
2093
      raise x
2094
    result = deleteItemFromIgnoredInventoryUpdateList_result()
2095
    result.read(self._iprot)
2096
    self._iprot.readMessageEnd()
2097
    if result.success is not None:
2098
      return result.success
2099
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
2100
 
2101
  def getAllIgnoredInventoryupdateItemsCount(self, ):
2102
    self.send_getAllIgnoredInventoryupdateItemsCount()
2103
    return self.recv_getAllIgnoredInventoryupdateItemsCount()
2104
 
2105
  def send_getAllIgnoredInventoryupdateItemsCount(self, ):
2106
    self._oprot.writeMessageBegin('getAllIgnoredInventoryupdateItemsCount', TMessageType.CALL, self._seqid)
2107
    args = getAllIgnoredInventoryupdateItemsCount_args()
2108
    args.write(self._oprot)
2109
    self._oprot.writeMessageEnd()
2110
    self._oprot.trans.flush()
2111
 
2112
  def recv_getAllIgnoredInventoryupdateItemsCount(self, ):
2113
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2114
    if mtype == TMessageType.EXCEPTION:
2115
      x = TApplicationException()
2116
      x.read(self._iprot)
2117
      self._iprot.readMessageEnd()
2118
      raise x
2119
    result = getAllIgnoredInventoryupdateItemsCount_result()
2120
    result.read(self._iprot)
2121
    self._iprot.readMessageEnd()
2122
    if result.success is not None:
2123
      return result.success
2124
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
2125
 
2126
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
2127
    """
2128
    Parameters:
2129
     - offset
2130
     - limit
2131
    """
2132
    self.send_getIgnoredInventoryUpdateItemids(offset, limit)
2133
    return self.recv_getIgnoredInventoryUpdateItemids()
2134
 
2135
  def send_getIgnoredInventoryUpdateItemids(self, offset, limit):
2136
    self._oprot.writeMessageBegin('getIgnoredInventoryUpdateItemids', TMessageType.CALL, self._seqid)
2137
    args = getIgnoredInventoryUpdateItemids_args()
2138
    args.offset = offset
2139
    args.limit = limit
2140
    args.write(self._oprot)
2141
    self._oprot.writeMessageEnd()
2142
    self._oprot.trans.flush()
2143
 
2144
  def recv_getIgnoredInventoryUpdateItemids(self, ):
2145
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2146
    if mtype == TMessageType.EXCEPTION:
2147
      x = TApplicationException()
2148
      x.read(self._iprot)
2149
      self._iprot.readMessageEnd()
2150
      raise x
2151
    result = getIgnoredInventoryUpdateItemids_result()
2152
    result.read(self._iprot)
2153
    self._iprot.readMessageEnd()
2154
    if result.success is not None:
2155
      return result.success
2156
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
2157
 
6821 amar.kumar 2158
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2159
    """
2160
    Parameters:
2161
     - item_id
2162
     - numOfDaysStock
2163
     - minStockLevel
2164
    """
2165
    self.send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel)
2166
    self.recv_updateItemStockPurchaseParams()
6531 vikram.rag 2167
 
6821 amar.kumar 2168
  def send_updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2169
    self._oprot.writeMessageBegin('updateItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2170
    args = updateItemStockPurchaseParams_args()
2171
    args.item_id = item_id
2172
    args.numOfDaysStock = numOfDaysStock
2173
    args.minStockLevel = minStockLevel
2174
    args.write(self._oprot)
2175
    self._oprot.writeMessageEnd()
2176
    self._oprot.trans.flush()
2177
 
2178
  def recv_updateItemStockPurchaseParams(self, ):
2179
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2180
    if mtype == TMessageType.EXCEPTION:
2181
      x = TApplicationException()
2182
      x.read(self._iprot)
2183
      self._iprot.readMessageEnd()
2184
      raise x
2185
    result = updateItemStockPurchaseParams_result()
2186
    result.read(self._iprot)
2187
    self._iprot.readMessageEnd()
2188
    return
2189
 
2190
  def getItemStockPurchaseParams(self, itemId):
2191
    """
2192
    Parameters:
2193
     - itemId
2194
    """
2195
    self.send_getItemStockPurchaseParams(itemId)
2196
    return self.recv_getItemStockPurchaseParams()
2197
 
2198
  def send_getItemStockPurchaseParams(self, itemId):
2199
    self._oprot.writeMessageBegin('getItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2200
    args = getItemStockPurchaseParams_args()
2201
    args.itemId = itemId
2202
    args.write(self._oprot)
2203
    self._oprot.writeMessageEnd()
2204
    self._oprot.trans.flush()
2205
 
2206
  def recv_getItemStockPurchaseParams(self, ):
2207
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2208
    if mtype == TMessageType.EXCEPTION:
2209
      x = TApplicationException()
2210
      x.read(self._iprot)
2211
      self._iprot.readMessageEnd()
2212
      raise x
2213
    result = getItemStockPurchaseParams_result()
2214
    result.read(self._iprot)
2215
    self._iprot.readMessageEnd()
2216
    if result.success is not None:
2217
      return result.success
2218
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
2219
 
2220
  def addOosStatusForItem(self, oosStatusMap, date):
2221
    """
2222
    Parameters:
2223
     - oosStatusMap
2224
     - date
2225
    """
2226
    self.send_addOosStatusForItem(oosStatusMap, date)
2227
    self.recv_addOosStatusForItem()
2228
 
2229
  def send_addOosStatusForItem(self, oosStatusMap, date):
2230
    self._oprot.writeMessageBegin('addOosStatusForItem', TMessageType.CALL, self._seqid)
2231
    args = addOosStatusForItem_args()
2232
    args.oosStatusMap = oosStatusMap
2233
    args.date = date
2234
    args.write(self._oprot)
2235
    self._oprot.writeMessageEnd()
2236
    self._oprot.trans.flush()
2237
 
2238
  def recv_addOosStatusForItem(self, ):
2239
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2240
    if mtype == TMessageType.EXCEPTION:
2241
      x = TApplicationException()
2242
      x.read(self._iprot)
2243
      self._iprot.readMessageEnd()
2244
      raise x
2245
    result = addOosStatusForItem_result()
2246
    result.read(self._iprot)
2247
    self._iprot.readMessageEnd()
2248
    return
2249
 
9762 amar.kumar 2250
  def getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2251
    """
2252
    Parameters:
2253
     - itemId
9762 amar.kumar 2254
     - sourceId
6832 amar.kumar 2255
     - days
2256
    """
9762 amar.kumar 2257
    self.send_getOosStatusesForXDaysForItem(itemId, sourceId, days)
6832 amar.kumar 2258
    return self.recv_getOosStatusesForXDaysForItem()
6821 amar.kumar 2259
 
9762 amar.kumar 2260
  def send_getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2261
    self._oprot.writeMessageBegin('getOosStatusesForXDaysForItem', TMessageType.CALL, self._seqid)
2262
    args = getOosStatusesForXDaysForItem_args()
2263
    args.itemId = itemId
9762 amar.kumar 2264
    args.sourceId = sourceId
6832 amar.kumar 2265
    args.days = days
2266
    args.write(self._oprot)
2267
    self._oprot.writeMessageEnd()
2268
    self._oprot.trans.flush()
2269
 
2270
  def recv_getOosStatusesForXDaysForItem(self, ):
2271
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2272
    if mtype == TMessageType.EXCEPTION:
2273
      x = TApplicationException()
2274
      x.read(self._iprot)
2275
      self._iprot.readMessageEnd()
2276
      raise x
2277
    result = getOosStatusesForXDaysForItem_result()
2278
    result.read(self._iprot)
2279
    self._iprot.readMessageEnd()
2280
    if result.success is not None:
2281
      return result.success
2282
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
2283
 
10126 amar.kumar 2284
  def getOosStatusesForXDays(self, sourceId, days):
2285
    """
2286
    Parameters:
2287
     - sourceId
2288
     - days
2289
    """
2290
    self.send_getOosStatusesForXDays(sourceId, days)
2291
    return self.recv_getOosStatusesForXDays()
2292
 
2293
  def send_getOosStatusesForXDays(self, sourceId, days):
2294
    self._oprot.writeMessageBegin('getOosStatusesForXDays', TMessageType.CALL, self._seqid)
2295
    args = getOosStatusesForXDays_args()
2296
    args.sourceId = sourceId
2297
    args.days = days
2298
    args.write(self._oprot)
2299
    self._oprot.writeMessageEnd()
2300
    self._oprot.trans.flush()
2301
 
2302
  def recv_getOosStatusesForXDays(self, ):
2303
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2304
    if mtype == TMessageType.EXCEPTION:
2305
      x = TApplicationException()
2306
      x.read(self._iprot)
2307
      self._iprot.readMessageEnd()
2308
      raise x
2309
    result = getOosStatusesForXDays_result()
2310
    result.read(self._iprot)
2311
    self._iprot.readMessageEnd()
2312
    if result.success is not None:
2313
      return result.success
2314
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDays failed: unknown result");
2315
 
2316
  def getAllVendorItemPricing(self, itemId, vendorId):
2317
    """
2318
    Parameters:
2319
     - itemId
2320
     - vendorId
2321
    """
2322
    self.send_getAllVendorItemPricing(itemId, vendorId)
2323
    return self.recv_getAllVendorItemPricing()
2324
 
2325
  def send_getAllVendorItemPricing(self, itemId, vendorId):
2326
    self._oprot.writeMessageBegin('getAllVendorItemPricing', TMessageType.CALL, self._seqid)
2327
    args = getAllVendorItemPricing_args()
2328
    args.itemId = itemId
2329
    args.vendorId = vendorId
2330
    args.write(self._oprot)
2331
    self._oprot.writeMessageEnd()
2332
    self._oprot.trans.flush()
2333
 
2334
  def recv_getAllVendorItemPricing(self, ):
2335
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2336
    if mtype == TMessageType.EXCEPTION:
2337
      x = TApplicationException()
2338
      x.read(self._iprot)
2339
      self._iprot.readMessageEnd()
2340
      raise x
2341
    result = getAllVendorItemPricing_result()
2342
    result.read(self._iprot)
2343
    self._iprot.readMessageEnd()
2344
    if result.success is not None:
2345
      return result.success
2346
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemPricing failed: unknown result");
2347
 
6857 amar.kumar 2348
  def getNonZeroItemStockPurchaseParams(self, ):
2349
    self.send_getNonZeroItemStockPurchaseParams()
2350
    return self.recv_getNonZeroItemStockPurchaseParams()
6832 amar.kumar 2351
 
6857 amar.kumar 2352
  def send_getNonZeroItemStockPurchaseParams(self, ):
2353
    self._oprot.writeMessageBegin('getNonZeroItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2354
    args = getNonZeroItemStockPurchaseParams_args()
2355
    args.write(self._oprot)
2356
    self._oprot.writeMessageEnd()
2357
    self._oprot.trans.flush()
2358
 
2359
  def recv_getNonZeroItemStockPurchaseParams(self, ):
2360
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2361
    if mtype == TMessageType.EXCEPTION:
2362
      x = TApplicationException()
2363
      x.read(self._iprot)
2364
      self._iprot.readMessageEnd()
2365
      raise x
2366
    result = getNonZeroItemStockPurchaseParams_result()
2367
    result.read(self._iprot)
2368
    self._iprot.readMessageEnd()
2369
    if result.success is not None:
2370
      return result.success
2371
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
2372
 
7149 amar.kumar 2373
  def getBillableInventoryAndPendingOrders(self, ):
2374
    """
2375
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
2376
    """
2377
    self.send_getBillableInventoryAndPendingOrders()
2378
    return self.recv_getBillableInventoryAndPendingOrders()
6857 amar.kumar 2379
 
7149 amar.kumar 2380
  def send_getBillableInventoryAndPendingOrders(self, ):
2381
    self._oprot.writeMessageBegin('getBillableInventoryAndPendingOrders', TMessageType.CALL, self._seqid)
2382
    args = getBillableInventoryAndPendingOrders_args()
2383
    args.write(self._oprot)
2384
    self._oprot.writeMessageEnd()
2385
    self._oprot.trans.flush()
2386
 
2387
  def recv_getBillableInventoryAndPendingOrders(self, ):
2388
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2389
    if mtype == TMessageType.EXCEPTION:
2390
      x = TApplicationException()
2391
      x.read(self._iprot)
2392
      self._iprot.readMessageEnd()
2393
      raise x
2394
    result = getBillableInventoryAndPendingOrders_result()
2395
    result.read(self._iprot)
2396
    self._iprot.readMessageEnd()
2397
    if result.success is not None:
2398
      return result.success
2399
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
2400
 
7281 kshitij.so 2401
  def getWarehouseName(self, warehouse_id):
2402
    """
2403
    Parameters:
2404
     - warehouse_id
2405
    """
2406
    self.send_getWarehouseName(warehouse_id)
2407
    return self.recv_getWarehouseName()
7149 amar.kumar 2408
 
7281 kshitij.so 2409
  def send_getWarehouseName(self, warehouse_id):
2410
    self._oprot.writeMessageBegin('getWarehouseName', TMessageType.CALL, self._seqid)
2411
    args = getWarehouseName_args()
2412
    args.warehouse_id = warehouse_id
2413
    args.write(self._oprot)
2414
    self._oprot.writeMessageEnd()
2415
    self._oprot.trans.flush()
2416
 
2417
  def recv_getWarehouseName(self, ):
2418
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2419
    if mtype == TMessageType.EXCEPTION:
2420
      x = TApplicationException()
2421
      x.read(self._iprot)
2422
      self._iprot.readMessageEnd()
2423
      raise x
2424
    result = getWarehouseName_result()
2425
    result.read(self._iprot)
2426
    self._iprot.readMessageEnd()
2427
    if result.success is not None:
2428
      return result.success
2429
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseName failed: unknown result");
2430
 
2431
  def getAmazonInventoryForItem(self, item_id):
2432
    """
2433
    Parameters:
2434
     - item_id
2435
    """
2436
    self.send_getAmazonInventoryForItem(item_id)
2437
    return self.recv_getAmazonInventoryForItem()
2438
 
2439
  def send_getAmazonInventoryForItem(self, item_id):
2440
    self._oprot.writeMessageBegin('getAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2441
    args = getAmazonInventoryForItem_args()
2442
    args.item_id = item_id
2443
    args.write(self._oprot)
2444
    self._oprot.writeMessageEnd()
2445
    self._oprot.trans.flush()
2446
 
2447
  def recv_getAmazonInventoryForItem(self, ):
2448
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2449
    if mtype == TMessageType.EXCEPTION:
2450
      x = TApplicationException()
2451
      x.read(self._iprot)
2452
      self._iprot.readMessageEnd()
2453
      raise x
2454
    result = getAmazonInventoryForItem_result()
2455
    result.read(self._iprot)
2456
    self._iprot.readMessageEnd()
2457
    if result.success is not None:
2458
      return result.success
2459
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonInventoryForItem failed: unknown result");
2460
 
2461
  def getAllAmazonInventory(self, ):
2462
    self.send_getAllAmazonInventory()
2463
    return self.recv_getAllAmazonInventory()
2464
 
2465
  def send_getAllAmazonInventory(self, ):
2466
    self._oprot.writeMessageBegin('getAllAmazonInventory', TMessageType.CALL, self._seqid)
2467
    args = getAllAmazonInventory_args()
2468
    args.write(self._oprot)
2469
    self._oprot.writeMessageEnd()
2470
    self._oprot.trans.flush()
2471
 
2472
  def recv_getAllAmazonInventory(self, ):
2473
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2474
    if mtype == TMessageType.EXCEPTION:
2475
      x = TApplicationException()
2476
      x.read(self._iprot)
2477
      self._iprot.readMessageEnd()
2478
      raise x
2479
    result = getAllAmazonInventory_result()
2480
    result.read(self._iprot)
2481
    self._iprot.readMessageEnd()
2482
    if result.success is not None:
2483
      return result.success
2484
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonInventory failed: unknown result");
2485
 
10450 vikram.rag 2486
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot, time):
7281 kshitij.so 2487
    """
2488
    Parameters:
2489
     - amazonInventorySnapshot
10450 vikram.rag 2490
     - time
7281 kshitij.so 2491
    """
10450 vikram.rag 2492
    self.send_addOrUpdateAmazonInventoryForItem(amazonInventorySnapshot, time)
7281 kshitij.so 2493
    self.recv_addOrUpdateAmazonInventoryForItem()
2494
 
10450 vikram.rag 2495
  def send_addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot, time):
7281 kshitij.so 2496
    self._oprot.writeMessageBegin('addOrUpdateAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2497
    args = addOrUpdateAmazonInventoryForItem_args()
2498
    args.amazonInventorySnapshot = amazonInventorySnapshot
10450 vikram.rag 2499
    args.time = time
7281 kshitij.so 2500
    args.write(self._oprot)
2501
    self._oprot.writeMessageEnd()
2502
    self._oprot.trans.flush()
2503
 
2504
  def recv_addOrUpdateAmazonInventoryForItem(self, ):
2505
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2506
    if mtype == TMessageType.EXCEPTION:
2507
      x = TApplicationException()
2508
      x.read(self._iprot)
2509
      self._iprot.readMessageEnd()
2510
      raise x
2511
    result = addOrUpdateAmazonInventoryForItem_result()
2512
    result.read(self._iprot)
2513
    self._iprot.readMessageEnd()
2514
    return
2515
 
7972 amar.kumar 2516
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
2517
    """
2518
    Parameters:
2519
     - itemId
2520
     - numberOfDays
2521
    """
2522
    self.send_getLastNdaySaleForItem(itemId, numberOfDays)
2523
    return self.recv_getLastNdaySaleForItem()
7281 kshitij.so 2524
 
7972 amar.kumar 2525
  def send_getLastNdaySaleForItem(self, itemId, numberOfDays):
2526
    self._oprot.writeMessageBegin('getLastNdaySaleForItem', TMessageType.CALL, self._seqid)
2527
    args = getLastNdaySaleForItem_args()
2528
    args.itemId = itemId
2529
    args.numberOfDays = numberOfDays
2530
    args.write(self._oprot)
2531
    self._oprot.writeMessageEnd()
2532
    self._oprot.trans.flush()
2533
 
2534
  def recv_getLastNdaySaleForItem(self, ):
2535
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2536
    if mtype == TMessageType.EXCEPTION:
2537
      x = TApplicationException()
2538
      x.read(self._iprot)
2539
      self._iprot.readMessageEnd()
2540
      raise x
2541
    result = getLastNdaySaleForItem_result()
2542
    result.read(self._iprot)
2543
    self._iprot.readMessageEnd()
2544
    if result.success is not None:
2545
      return result.success
2546
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastNdaySaleForItem failed: unknown result");
2547
 
8282 kshitij.so 2548
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2549
    """
2550
    Parameters:
2551
     - amazonfbainventorysnapshot
2552
    """
2553
    self.send_addOrUpdateAmazonFbaInventory(amazonfbainventorysnapshot)
2554
    self.recv_addOrUpdateAmazonFbaInventory()
2555
 
2556
  def send_addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2557
    self._oprot.writeMessageBegin('addOrUpdateAmazonFbaInventory', TMessageType.CALL, self._seqid)
2558
    args = addOrUpdateAmazonFbaInventory_args()
2559
    args.amazonfbainventorysnapshot = amazonfbainventorysnapshot
2560
    args.write(self._oprot)
2561
    self._oprot.writeMessageEnd()
2562
    self._oprot.trans.flush()
2563
 
2564
  def recv_addOrUpdateAmazonFbaInventory(self, ):
2565
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2566
    if mtype == TMessageType.EXCEPTION:
2567
      x = TApplicationException()
2568
      x.read(self._iprot)
2569
      self._iprot.readMessageEnd()
2570
      raise x
2571
    result = addOrUpdateAmazonFbaInventory_result()
2572
    result.read(self._iprot)
2573
    self._iprot.readMessageEnd()
2574
    return
2575
 
8182 amar.kumar 2576
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2577
    """
2578
    Parameters:
2579
     - itemId
2580
     - warehouseId
2581
     - holdQuantity
2582
     - source
2583
    """
2584
    self.send_addUpdateHoldInventory(itemId, warehouseId, holdQuantity, source)
2585
    self.recv_addUpdateHoldInventory()
7972 amar.kumar 2586
 
8182 amar.kumar 2587
  def send_addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2588
    self._oprot.writeMessageBegin('addUpdateHoldInventory', TMessageType.CALL, self._seqid)
2589
    args = addUpdateHoldInventory_args()
2590
    args.itemId = itemId
2591
    args.warehouseId = warehouseId
2592
    args.holdQuantity = holdQuantity
2593
    args.source = source
2594
    args.write(self._oprot)
2595
    self._oprot.writeMessageEnd()
2596
    self._oprot.trans.flush()
2597
 
2598
  def recv_addUpdateHoldInventory(self, ):
2599
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2600
    if mtype == TMessageType.EXCEPTION:
2601
      x = TApplicationException()
2602
      x.read(self._iprot)
2603
      self._iprot.readMessageEnd()
2604
      raise x
2605
    result = addUpdateHoldInventory_result()
2606
    result.read(self._iprot)
2607
    self._iprot.readMessageEnd()
9762 amar.kumar 2608
    if result.cex is not None:
2609
      raise result.cex
8182 amar.kumar 2610
    return
2611
 
8282 kshitij.so 2612
  def getAmazonFbaItemInventory(self, itemId):
2613
    """
2614
    Parameters:
2615
     - itemId
2616
    """
2617
    self.send_getAmazonFbaItemInventory(itemId)
2618
    return self.recv_getAmazonFbaItemInventory()
8182 amar.kumar 2619
 
8282 kshitij.so 2620
  def send_getAmazonFbaItemInventory(self, itemId):
2621
    self._oprot.writeMessageBegin('getAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2622
    args = getAmazonFbaItemInventory_args()
2623
    args.itemId = itemId
2624
    args.write(self._oprot)
2625
    self._oprot.writeMessageEnd()
2626
    self._oprot.trans.flush()
2627
 
2628
  def recv_getAmazonFbaItemInventory(self, ):
2629
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2630
    if mtype == TMessageType.EXCEPTION:
2631
      x = TApplicationException()
2632
      x.read(self._iprot)
2633
      self._iprot.readMessageEnd()
2634
      raise x
2635
    result = getAmazonFbaItemInventory_result()
2636
    result.read(self._iprot)
2637
    self._iprot.readMessageEnd()
2638
    if result.success is not None:
2639
      return result.success
2640
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonFbaItemInventory failed: unknown result");
2641
 
8363 vikram.rag 2642
  def getAllAmazonFbaItemInventory(self, ):
2643
    self.send_getAllAmazonFbaItemInventory()
2644
    return self.recv_getAllAmazonFbaItemInventory()
8282 kshitij.so 2645
 
8363 vikram.rag 2646
  def send_getAllAmazonFbaItemInventory(self, ):
2647
    self._oprot.writeMessageBegin('getAllAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2648
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 2649
    args.write(self._oprot)
2650
    self._oprot.writeMessageEnd()
2651
    self._oprot.trans.flush()
2652
 
8363 vikram.rag 2653
  def recv_getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 2654
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2655
    if mtype == TMessageType.EXCEPTION:
2656
      x = TApplicationException()
2657
      x.read(self._iprot)
2658
      self._iprot.readMessageEnd()
2659
      raise x
8363 vikram.rag 2660
    result = getAllAmazonFbaItemInventory_result()
8282 kshitij.so 2661
    result.read(self._iprot)
2662
    self._iprot.readMessageEnd()
2663
    if result.success is not None:
2664
      return result.success
8363 vikram.rag 2665
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonFbaItemInventory failed: unknown result");
8282 kshitij.so 2666
 
8363 vikram.rag 2667
  def getOursGoodWarehouseIdsForLocation(self, state_id):
2668
    """
2669
    Parameters:
2670
     - state_id
2671
    """
2672
    self.send_getOursGoodWarehouseIdsForLocation(state_id)
2673
    return self.recv_getOursGoodWarehouseIdsForLocation()
8282 kshitij.so 2674
 
8363 vikram.rag 2675
  def send_getOursGoodWarehouseIdsForLocation(self, state_id):
2676
    self._oprot.writeMessageBegin('getOursGoodWarehouseIdsForLocation', TMessageType.CALL, self._seqid)
2677
    args = getOursGoodWarehouseIdsForLocation_args()
2678
    args.state_id = state_id
2679
    args.write(self._oprot)
2680
    self._oprot.writeMessageEnd()
2681
    self._oprot.trans.flush()
2682
 
2683
  def recv_getOursGoodWarehouseIdsForLocation(self, ):
2684
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2685
    if mtype == TMessageType.EXCEPTION:
2686
      x = TApplicationException()
2687
      x.read(self._iprot)
2688
      self._iprot.readMessageEnd()
2689
      raise x
2690
    result = getOursGoodWarehouseIdsForLocation_result()
2691
    result.read(self._iprot)
2692
    self._iprot.readMessageEnd()
2693
    if result.success is not None:
2694
      return result.success
2695
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOursGoodWarehouseIdsForLocation failed: unknown result");
2696
 
8955 vikram.rag 2697
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2698
    """
2699
    Parameters:
2700
     - id
2701
     - warehouse_id
2702
     - source
2703
    """
2704
    self.send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(id, warehouse_id, source)
2705
    return self.recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource()
8363 vikram.rag 2706
 
8955 vikram.rag 2707
  def send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2708
    self._oprot.writeMessageBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource', TMessageType.CALL, self._seqid)
2709
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
2710
    args.id = id
2711
    args.warehouse_id = warehouse_id
2712
    args.source = source
2713
    args.write(self._oprot)
2714
    self._oprot.writeMessageEnd()
2715
    self._oprot.trans.flush()
2716
 
2717
  def recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, ):
2718
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2719
    if mtype == TMessageType.EXCEPTION:
2720
      x = TApplicationException()
2721
      x.read(self._iprot)
2722
      self._iprot.readMessageEnd()
2723
      raise x
2724
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
2725
    result.read(self._iprot)
2726
    self._iprot.readMessageEnd()
2727
    if result.success is not None:
2728
      return result.success
2729
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetailForItemForWarehouseIdExceptSource failed: unknown result");
2730
 
9404 vikram.rag 2731
  def getSnapdealInventoryForItem(self, item_id):
2732
    """
2733
    Parameters:
2734
     - item_id
2735
    """
2736
    self.send_getSnapdealInventoryForItem(item_id)
2737
    return self.recv_getSnapdealInventoryForItem()
8955 vikram.rag 2738
 
9404 vikram.rag 2739
  def send_getSnapdealInventoryForItem(self, item_id):
2740
    self._oprot.writeMessageBegin('getSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2741
    args = getSnapdealInventoryForItem_args()
2742
    args.item_id = item_id
2743
    args.write(self._oprot)
2744
    self._oprot.writeMessageEnd()
2745
    self._oprot.trans.flush()
2746
 
2747
  def recv_getSnapdealInventoryForItem(self, ):
2748
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2749
    if mtype == TMessageType.EXCEPTION:
2750
      x = TApplicationException()
2751
      x.read(self._iprot)
2752
      self._iprot.readMessageEnd()
2753
      raise x
2754
    result = getSnapdealInventoryForItem_result()
2755
    result.read(self._iprot)
2756
    self._iprot.readMessageEnd()
2757
    if result.success is not None:
2758
      return result.success
2759
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventoryForItem failed: unknown result");
2760
 
2761
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2762
    """
2763
    Parameters:
2764
     - snapdealinventoryitem
2765
    """
2766
    self.send_addOrUpdateSnapdealInventoryForItem(snapdealinventoryitem)
2767
    self.recv_addOrUpdateSnapdealInventoryForItem()
2768
 
2769
  def send_addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2770
    self._oprot.writeMessageBegin('addOrUpdateSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2771
    args = addOrUpdateSnapdealInventoryForItem_args()
2772
    args.snapdealinventoryitem = snapdealinventoryitem
2773
    args.write(self._oprot)
2774
    self._oprot.writeMessageEnd()
2775
    self._oprot.trans.flush()
2776
 
2777
  def recv_addOrUpdateSnapdealInventoryForItem(self, ):
2778
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2779
    if mtype == TMessageType.EXCEPTION:
2780
      x = TApplicationException()
2781
      x.read(self._iprot)
2782
      self._iprot.readMessageEnd()
2783
      raise x
2784
    result = addOrUpdateSnapdealInventoryForItem_result()
2785
    result.read(self._iprot)
2786
    self._iprot.readMessageEnd()
2787
    return
2788
 
2789
  def getNlcForWarehouse(self, warehouse_id, item_id):
2790
    """
2791
    Parameters:
2792
     - warehouse_id
2793
     - item_id
2794
    """
2795
    self.send_getNlcForWarehouse(warehouse_id, item_id)
2796
    return self.recv_getNlcForWarehouse()
2797
 
2798
  def send_getNlcForWarehouse(self, warehouse_id, item_id):
2799
    self._oprot.writeMessageBegin('getNlcForWarehouse', TMessageType.CALL, self._seqid)
2800
    args = getNlcForWarehouse_args()
2801
    args.warehouse_id = warehouse_id
2802
    args.item_id = item_id
2803
    args.write(self._oprot)
2804
    self._oprot.writeMessageEnd()
2805
    self._oprot.trans.flush()
2806
 
2807
  def recv_getNlcForWarehouse(self, ):
2808
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2809
    if mtype == TMessageType.EXCEPTION:
2810
      x = TApplicationException()
2811
      x.read(self._iprot)
2812
      self._iprot.readMessageEnd()
2813
      raise x
2814
    result = getNlcForWarehouse_result()
2815
    result.read(self._iprot)
2816
    self._iprot.readMessageEnd()
2817
    if result.success is not None:
2818
      return result.success
2819
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
2820
 
9640 amar.kumar 2821
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
2822
    """
2823
    Parameters:
2824
     - item_id
2825
     - warehouse_id
2826
    """
2827
    self.send_getHeldInventoryMapForItem(item_id, warehouse_id)
2828
    return self.recv_getHeldInventoryMapForItem()
2829
 
2830
  def send_getHeldInventoryMapForItem(self, item_id, warehouse_id):
2831
    self._oprot.writeMessageBegin('getHeldInventoryMapForItem', TMessageType.CALL, self._seqid)
2832
    args = getHeldInventoryMapForItem_args()
2833
    args.item_id = item_id
2834
    args.warehouse_id = warehouse_id
2835
    args.write(self._oprot)
2836
    self._oprot.writeMessageEnd()
2837
    self._oprot.trans.flush()
2838
 
2839
  def recv_getHeldInventoryMapForItem(self, ):
2840
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2841
    if mtype == TMessageType.EXCEPTION:
2842
      x = TApplicationException()
2843
      x.read(self._iprot)
2844
      self._iprot.readMessageEnd()
2845
      raise x
2846
    result = getHeldInventoryMapForItem_result()
2847
    result.read(self._iprot)
2848
    self._iprot.readMessageEnd()
2849
    if result.success is not None:
2850
      return result.success
2851
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHeldInventoryMapForItem failed: unknown result");
2852
 
9495 vikram.rag 2853
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2854
    """
2855
    Parameters:
2856
     - allamazonfbainventorysnapshot
2857
    """
2858
    self.send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot)
2859
    self.recv_addOrUpdateAllAmazonFbaInventory()
9404 vikram.rag 2860
 
9495 vikram.rag 2861
  def send_addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2862
    self._oprot.writeMessageBegin('addOrUpdateAllAmazonFbaInventory', TMessageType.CALL, self._seqid)
2863
    args = addOrUpdateAllAmazonFbaInventory_args()
2864
    args.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 2865
    args.write(self._oprot)
2866
    self._oprot.writeMessageEnd()
2867
    self._oprot.trans.flush()
2868
 
9495 vikram.rag 2869
  def recv_addOrUpdateAllAmazonFbaInventory(self, ):
9456 vikram.rag 2870
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2871
    if mtype == TMessageType.EXCEPTION:
2872
      x = TApplicationException()
2873
      x.read(self._iprot)
2874
      self._iprot.readMessageEnd()
2875
      raise x
9495 vikram.rag 2876
    result = addOrUpdateAllAmazonFbaInventory_result()
9456 vikram.rag 2877
    result.read(self._iprot)
2878
    self._iprot.readMessageEnd()
9495 vikram.rag 2879
    return
9456 vikram.rag 2880
 
9495 vikram.rag 2881
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
9482 vikram.rag 2882
    """
2883
    Parameters:
9495 vikram.rag 2884
     - allsnapdealinventorysnapshot
9482 vikram.rag 2885
    """
9495 vikram.rag 2886
    self.send_addOrUpdateAllSnapdealInventory(allsnapdealinventorysnapshot)
2887
    self.recv_addOrUpdateAllSnapdealInventory()
9456 vikram.rag 2888
 
9495 vikram.rag 2889
  def send_addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
2890
    self._oprot.writeMessageBegin('addOrUpdateAllSnapdealInventory', TMessageType.CALL, self._seqid)
2891
    args = addOrUpdateAllSnapdealInventory_args()
2892
    args.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 2893
    args.write(self._oprot)
2894
    self._oprot.writeMessageEnd()
2895
    self._oprot.trans.flush()
2896
 
9495 vikram.rag 2897
  def recv_addOrUpdateAllSnapdealInventory(self, ):
9482 vikram.rag 2898
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2899
    if mtype == TMessageType.EXCEPTION:
2900
      x = TApplicationException()
2901
      x.read(self._iprot)
2902
      self._iprot.readMessageEnd()
2903
      raise x
9495 vikram.rag 2904
    result = addOrUpdateAllSnapdealInventory_result()
9482 vikram.rag 2905
    result.read(self._iprot)
2906
    self._iprot.readMessageEnd()
2907
    return
2908
 
9495 vikram.rag 2909
  def getSnapdealInventorySnapshot(self, ):
2910
    self.send_getSnapdealInventorySnapshot()
2911
    return self.recv_getSnapdealInventorySnapshot()
9482 vikram.rag 2912
 
9495 vikram.rag 2913
  def send_getSnapdealInventorySnapshot(self, ):
2914
    self._oprot.writeMessageBegin('getSnapdealInventorySnapshot', TMessageType.CALL, self._seqid)
2915
    args = getSnapdealInventorySnapshot_args()
2916
    args.write(self._oprot)
2917
    self._oprot.writeMessageEnd()
2918
    self._oprot.trans.flush()
2919
 
2920
  def recv_getSnapdealInventorySnapshot(self, ):
2921
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2922
    if mtype == TMessageType.EXCEPTION:
2923
      x = TApplicationException()
2924
      x.read(self._iprot)
2925
      self._iprot.readMessageEnd()
2926
      raise x
2927
    result = getSnapdealInventorySnapshot_result()
2928
    result.read(self._iprot)
2929
    self._iprot.readMessageEnd()
2930
    if result.success is not None:
2931
      return result.success
2932
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventorySnapshot failed: unknown result");
2933
 
9761 amar.kumar 2934
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
2935
    """
2936
    Parameters:
2937
     - itemId
2938
     - warehouseId
2939
     - source
2940
    """
2941
    self.send_getHoldInventoryDetails(itemId, warehouseId, source)
2942
    return self.recv_getHoldInventoryDetails()
9495 vikram.rag 2943
 
9761 amar.kumar 2944
  def send_getHoldInventoryDetails(self, itemId, warehouseId, source):
2945
    self._oprot.writeMessageBegin('getHoldInventoryDetails', TMessageType.CALL, self._seqid)
2946
    args = getHoldInventoryDetails_args()
2947
    args.itemId = itemId
2948
    args.warehouseId = warehouseId
2949
    args.source = source
2950
    args.write(self._oprot)
2951
    self._oprot.writeMessageEnd()
2952
    self._oprot.trans.flush()
2953
 
2954
  def recv_getHoldInventoryDetails(self, ):
2955
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2956
    if mtype == TMessageType.EXCEPTION:
2957
      x = TApplicationException()
2958
      x.read(self._iprot)
2959
      self._iprot.readMessageEnd()
2960
      raise x
2961
    result = getHoldInventoryDetails_result()
2962
    result.read(self._iprot)
2963
    self._iprot.readMessageEnd()
2964
    if result.success is not None:
2965
      return result.success
2966
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetails failed: unknown result");
2967
 
10450 vikram.rag 2968
  def addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot, time):
10050 vikram.rag 2969
    """
2970
    Parameters:
2971
     - flipkartInventorySnapshot
10450 vikram.rag 2972
     - time
10050 vikram.rag 2973
    """
10450 vikram.rag 2974
    self.send_addOrUpdateFlipkartInventorySnapshot(flipkartInventorySnapshot, time)
10050 vikram.rag 2975
    self.recv_addOrUpdateFlipkartInventorySnapshot()
9761 amar.kumar 2976
 
10450 vikram.rag 2977
  def send_addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot, time):
10050 vikram.rag 2978
    self._oprot.writeMessageBegin('addOrUpdateFlipkartInventorySnapshot', TMessageType.CALL, self._seqid)
2979
    args = addOrUpdateFlipkartInventorySnapshot_args()
2980
    args.flipkartInventorySnapshot = flipkartInventorySnapshot
10450 vikram.rag 2981
    args.time = time
10050 vikram.rag 2982
    args.write(self._oprot)
2983
    self._oprot.writeMessageEnd()
2984
    self._oprot.trans.flush()
2985
 
2986
  def recv_addOrUpdateFlipkartInventorySnapshot(self, ):
2987
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2988
    if mtype == TMessageType.EXCEPTION:
2989
      x = TApplicationException()
2990
      x.read(self._iprot)
2991
      self._iprot.readMessageEnd()
2992
      raise x
2993
    result = addOrUpdateFlipkartInventorySnapshot_result()
2994
    result.read(self._iprot)
2995
    self._iprot.readMessageEnd()
2996
    return
2997
 
2998
  def getFlipkartInventorySnapshot(self, ):
2999
    self.send_getFlipkartInventorySnapshot()
3000
    return self.recv_getFlipkartInventorySnapshot()
3001
 
3002
  def send_getFlipkartInventorySnapshot(self, ):
3003
    self._oprot.writeMessageBegin('getFlipkartInventorySnapshot', TMessageType.CALL, self._seqid)
3004
    args = getFlipkartInventorySnapshot_args()
3005
    args.write(self._oprot)
3006
    self._oprot.writeMessageEnd()
3007
    self._oprot.trans.flush()
3008
 
3009
  def recv_getFlipkartInventorySnapshot(self, ):
3010
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3011
    if mtype == TMessageType.EXCEPTION:
3012
      x = TApplicationException()
3013
      x.read(self._iprot)
3014
      self._iprot.readMessageEnd()
3015
      raise x
3016
    result = getFlipkartInventorySnapshot_result()
3017
    result.read(self._iprot)
3018
    self._iprot.readMessageEnd()
3019
    if result.success is not None:
3020
      return result.success
3021
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartInventorySnapshot failed: unknown result");
3022
 
10097 kshitij.so 3023
  def getFlipkartlInventoryForItem(self, item_id):
3024
    """
3025
    Parameters:
3026
     - item_id
3027
    """
3028
    self.send_getFlipkartlInventoryForItem(item_id)
3029
    return self.recv_getFlipkartlInventoryForItem()
10050 vikram.rag 3030
 
10097 kshitij.so 3031
  def send_getFlipkartlInventoryForItem(self, item_id):
3032
    self._oprot.writeMessageBegin('getFlipkartlInventoryForItem', TMessageType.CALL, self._seqid)
3033
    args = getFlipkartlInventoryForItem_args()
3034
    args.item_id = item_id
3035
    args.write(self._oprot)
3036
    self._oprot.writeMessageEnd()
3037
    self._oprot.trans.flush()
3038
 
3039
  def recv_getFlipkartlInventoryForItem(self, ):
3040
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3041
    if mtype == TMessageType.EXCEPTION:
3042
      x = TApplicationException()
3043
      x.read(self._iprot)
3044
      self._iprot.readMessageEnd()
3045
      raise x
3046
    result = getFlipkartlInventoryForItem_result()
3047
    result.read(self._iprot)
3048
    self._iprot.readMessageEnd()
3049
    if result.success is not None:
3050
      return result.success
3051
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartlInventoryForItem failed: unknown result");
3052
 
10485 vikram.rag 3053
  def getStateMaster(self, ):
3054
    self.send_getStateMaster()
3055
    return self.recv_getStateMaster()
10097 kshitij.so 3056
 
10485 vikram.rag 3057
  def send_getStateMaster(self, ):
3058
    self._oprot.writeMessageBegin('getStateMaster', TMessageType.CALL, self._seqid)
3059
    args = getStateMaster_args()
3060
    args.write(self._oprot)
3061
    self._oprot.writeMessageEnd()
3062
    self._oprot.trans.flush()
3063
 
3064
  def recv_getStateMaster(self, ):
3065
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3066
    if mtype == TMessageType.EXCEPTION:
3067
      x = TApplicationException()
3068
      x.read(self._iprot)
3069
      self._iprot.readMessageEnd()
3070
      raise x
3071
    result = getStateMaster_result()
3072
    result.read(self._iprot)
3073
    self._iprot.readMessageEnd()
3074
    if result.success is not None:
3075
      return result.success
3076
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStateMaster failed: unknown result");
3077
 
3078
 
5944 mandeep.dh 3079
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3080
  def __init__(self, handler):
3081
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3082
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
3083
    self._processMap["addVendor"] = Processor.process_addVendor
3084
    self._processMap["updateInventoryHistory"] = Processor.process_updateInventoryHistory
3085
    self._processMap["updateInventory"] = Processor.process_updateInventory
3086
    self._processMap["addInventory"] = Processor.process_addInventory
3087
    self._processMap["retireWarehouse"] = Processor.process_retireWarehouse
3088
    self._processMap["getItemInventoryByItemId"] = Processor.process_getItemInventoryByItemId
3089
    self._processMap["getItemAvailibilityAtWarehouse"] = Processor.process_getItemAvailibilityAtWarehouse
3090
    self._processMap["getItemAvailabilityAtLocation"] = Processor.process_getItemAvailabilityAtLocation
3091
    self._processMap["getAllWarehouses"] = Processor.process_getAllWarehouses
3092
    self._processMap["getWarehouse"] = Processor.process_getWarehouse
3093
    self._processMap["getAllItemsForWarehouse"] = Processor.process_getAllItemsForWarehouse
5966 rajveer 3094
    self._processMap["isOrderBillable"] = Processor.process_isOrderBillable
5944 mandeep.dh 3095
    self._processMap["reserveItemInWarehouse"] = Processor.process_reserveItemInWarehouse
7968 amar.kumar 3096
    self._processMap["updateReservationForOrder"] = Processor.process_updateReservationForOrder
5944 mandeep.dh 3097
    self._processMap["reduceReservationCount"] = Processor.process_reduceReservationCount
3098
    self._processMap["getItemPricing"] = Processor.process_getItemPricing
3099
    self._processMap["getAllItemPricing"] = Processor.process_getAllItemPricing
3100
    self._processMap["addVendorItemPricing"] = Processor.process_addVendorItemPricing
3101
    self._processMap["getVendor"] = Processor.process_getVendor
3102
    self._processMap["getAllVendors"] = Processor.process_getAllVendors
3103
    self._processMap["addVendorItemMapping"] = Processor.process_addVendorItemMapping
3104
    self._processMap["getVendorItemMappings"] = Processor.process_getVendorItemMappings
3105
    self._processMap["getPendingOrdersInventory"] = Processor.process_getPendingOrdersInventory
3106
    self._processMap["getWarehouses"] = Processor.process_getWarehouses
3107
    self._processMap["resetAvailability"] = Processor.process_resetAvailability
3108
    self._processMap["resetAvailabilityForWarehouse"] = Processor.process_resetAvailabilityForWarehouse
3109
    self._processMap["getItemKeysToBeProcessed"] = Processor.process_getItemKeysToBeProcessed
3110
    self._processMap["markMissedInventoryUpdatesAsProcessed"] = Processor.process_markMissedInventoryUpdatesAsProcessed
3111
    self._processMap["getIgnoredItemKeys"] = Processor.process_getIgnoredItemKeys
3112
    self._processMap["addBadInventory"] = Processor.process_addBadInventory
3113
    self._processMap["getShippingLocations"] = Processor.process_getShippingLocations
3114
    self._processMap["getAllVendorItemMappings"] = Processor.process_getAllVendorItemMappings
3115
    self._processMap["getInventorySnapshot"] = Processor.process_getInventorySnapshot
3116
    self._processMap["clearItemAvailabilityCache"] = Processor.process_clearItemAvailabilityCache
3117
    self._processMap["updateVendorString"] = Processor.process_updateVendorString
6096 amit.gupta 3118
    self._processMap["clearItemAvailabilityCacheForItem"] = Processor.process_clearItemAvailabilityCacheForItem
6467 amar.kumar 3119
    self._processMap["getOurWarehouseIdForVendor"] = Processor.process_getOurWarehouseIdForVendor
6484 amar.kumar 3120
    self._processMap["getItemAvailabilitiesAtOurWarehouses"] = Processor.process_getItemAvailabilitiesAtOurWarehouses
6531 vikram.rag 3121
    self._processMap["getMonitoredWarehouseForVendors"] = Processor.process_getMonitoredWarehouseForVendors
3122
    self._processMap["getIgnoredWarehouseidsAndItemids"] = Processor.process_getIgnoredWarehouseidsAndItemids
3123
    self._processMap["insertItemtoIgnoreInventoryUpdatelist"] = Processor.process_insertItemtoIgnoreInventoryUpdatelist
3124
    self._processMap["deleteItemFromIgnoredInventoryUpdateList"] = Processor.process_deleteItemFromIgnoredInventoryUpdateList
3125
    self._processMap["getAllIgnoredInventoryupdateItemsCount"] = Processor.process_getAllIgnoredInventoryupdateItemsCount
3126
    self._processMap["getIgnoredInventoryUpdateItemids"] = Processor.process_getIgnoredInventoryUpdateItemids
6821 amar.kumar 3127
    self._processMap["updateItemStockPurchaseParams"] = Processor.process_updateItemStockPurchaseParams
3128
    self._processMap["getItemStockPurchaseParams"] = Processor.process_getItemStockPurchaseParams
3129
    self._processMap["addOosStatusForItem"] = Processor.process_addOosStatusForItem
6832 amar.kumar 3130
    self._processMap["getOosStatusesForXDaysForItem"] = Processor.process_getOosStatusesForXDaysForItem
10126 amar.kumar 3131
    self._processMap["getOosStatusesForXDays"] = Processor.process_getOosStatusesForXDays
3132
    self._processMap["getAllVendorItemPricing"] = Processor.process_getAllVendorItemPricing
6857 amar.kumar 3133
    self._processMap["getNonZeroItemStockPurchaseParams"] = Processor.process_getNonZeroItemStockPurchaseParams
7149 amar.kumar 3134
    self._processMap["getBillableInventoryAndPendingOrders"] = Processor.process_getBillableInventoryAndPendingOrders
7281 kshitij.so 3135
    self._processMap["getWarehouseName"] = Processor.process_getWarehouseName
3136
    self._processMap["getAmazonInventoryForItem"] = Processor.process_getAmazonInventoryForItem
3137
    self._processMap["getAllAmazonInventory"] = Processor.process_getAllAmazonInventory
3138
    self._processMap["addOrUpdateAmazonInventoryForItem"] = Processor.process_addOrUpdateAmazonInventoryForItem
7972 amar.kumar 3139
    self._processMap["getLastNdaySaleForItem"] = Processor.process_getLastNdaySaleForItem
8282 kshitij.so 3140
    self._processMap["addOrUpdateAmazonFbaInventory"] = Processor.process_addOrUpdateAmazonFbaInventory
8182 amar.kumar 3141
    self._processMap["addUpdateHoldInventory"] = Processor.process_addUpdateHoldInventory
8282 kshitij.so 3142
    self._processMap["getAmazonFbaItemInventory"] = Processor.process_getAmazonFbaItemInventory
8363 vikram.rag 3143
    self._processMap["getAllAmazonFbaItemInventory"] = Processor.process_getAllAmazonFbaItemInventory
3144
    self._processMap["getOursGoodWarehouseIdsForLocation"] = Processor.process_getOursGoodWarehouseIdsForLocation
8955 vikram.rag 3145
    self._processMap["getHoldInventoryDetailForItemForWarehouseIdExceptSource"] = Processor.process_getHoldInventoryDetailForItemForWarehouseIdExceptSource
9404 vikram.rag 3146
    self._processMap["getSnapdealInventoryForItem"] = Processor.process_getSnapdealInventoryForItem
3147
    self._processMap["addOrUpdateSnapdealInventoryForItem"] = Processor.process_addOrUpdateSnapdealInventoryForItem
3148
    self._processMap["getNlcForWarehouse"] = Processor.process_getNlcForWarehouse
9640 amar.kumar 3149
    self._processMap["getHeldInventoryMapForItem"] = Processor.process_getHeldInventoryMapForItem
9482 vikram.rag 3150
    self._processMap["addOrUpdateAllAmazonFbaInventory"] = Processor.process_addOrUpdateAllAmazonFbaInventory
9495 vikram.rag 3151
    self._processMap["addOrUpdateAllSnapdealInventory"] = Processor.process_addOrUpdateAllSnapdealInventory
3152
    self._processMap["getSnapdealInventorySnapshot"] = Processor.process_getSnapdealInventorySnapshot
9761 amar.kumar 3153
    self._processMap["getHoldInventoryDetails"] = Processor.process_getHoldInventoryDetails
10050 vikram.rag 3154
    self._processMap["addOrUpdateFlipkartInventorySnapshot"] = Processor.process_addOrUpdateFlipkartInventorySnapshot
3155
    self._processMap["getFlipkartInventorySnapshot"] = Processor.process_getFlipkartInventorySnapshot
10097 kshitij.so 3156
    self._processMap["getFlipkartlInventoryForItem"] = Processor.process_getFlipkartlInventoryForItem
10485 vikram.rag 3157
    self._processMap["getStateMaster"] = Processor.process_getStateMaster
5944 mandeep.dh 3158
 
3159
  def process(self, iprot, oprot):
3160
    (name, type, seqid) = iprot.readMessageBegin()
3161
    if name not in self._processMap:
3162
      iprot.skip(TType.STRUCT)
3163
      iprot.readMessageEnd()
3164
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3165
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3166
      x.write(oprot)
3167
      oprot.writeMessageEnd()
3168
      oprot.trans.flush()
3169
      return
3170
    else:
3171
      self._processMap[name](self, seqid, iprot, oprot)
3172
    return True
3173
 
3174
  def process_addWarehouse(self, seqid, iprot, oprot):
3175
    args = addWarehouse_args()
3176
    args.read(iprot)
3177
    iprot.readMessageEnd()
3178
    result = addWarehouse_result()
3179
    try:
3180
      result.success = self._handler.addWarehouse(args.warehouse)
3181
    except InventoryServiceException, cex:
3182
      result.cex = cex
3183
    oprot.writeMessageBegin("addWarehouse", TMessageType.REPLY, seqid)
3184
    result.write(oprot)
3185
    oprot.writeMessageEnd()
3186
    oprot.trans.flush()
3187
 
3188
  def process_addVendor(self, seqid, iprot, oprot):
3189
    args = addVendor_args()
3190
    args.read(iprot)
3191
    iprot.readMessageEnd()
3192
    result = addVendor_result()
3193
    try:
3194
      result.success = self._handler.addVendor(args.vendor)
3195
    except InventoryServiceException, cex:
3196
      result.cex = cex
3197
    oprot.writeMessageBegin("addVendor", TMessageType.REPLY, seqid)
3198
    result.write(oprot)
3199
    oprot.writeMessageEnd()
3200
    oprot.trans.flush()
3201
 
3202
  def process_updateInventoryHistory(self, seqid, iprot, oprot):
3203
    args = updateInventoryHistory_args()
3204
    args.read(iprot)
3205
    iprot.readMessageEnd()
3206
    result = updateInventoryHistory_result()
3207
    try:
3208
      self._handler.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability)
3209
    except InventoryServiceException, cex:
3210
      result.cex = cex
3211
    oprot.writeMessageBegin("updateInventoryHistory", TMessageType.REPLY, seqid)
3212
    result.write(oprot)
3213
    oprot.writeMessageEnd()
3214
    oprot.trans.flush()
3215
 
3216
  def process_updateInventory(self, seqid, iprot, oprot):
3217
    args = updateInventory_args()
3218
    args.read(iprot)
3219
    iprot.readMessageEnd()
3220
    result = updateInventory_result()
3221
    try:
3222
      self._handler.updateInventory(args.warehouse_id, args.timestamp, args.availability)
3223
    except InventoryServiceException, cex:
3224
      result.cex = cex
3225
    oprot.writeMessageBegin("updateInventory", TMessageType.REPLY, seqid)
3226
    result.write(oprot)
3227
    oprot.writeMessageEnd()
3228
    oprot.trans.flush()
3229
 
3230
  def process_addInventory(self, seqid, iprot, oprot):
3231
    args = addInventory_args()
3232
    args.read(iprot)
3233
    iprot.readMessageEnd()
3234
    result = addInventory_result()
3235
    try:
3236
      self._handler.addInventory(args.itemId, args.warehouseId, args.quantity)
3237
    except InventoryServiceException, cex:
3238
      result.cex = cex
3239
    oprot.writeMessageBegin("addInventory", TMessageType.REPLY, seqid)
3240
    result.write(oprot)
3241
    oprot.writeMessageEnd()
3242
    oprot.trans.flush()
3243
 
3244
  def process_retireWarehouse(self, seqid, iprot, oprot):
3245
    args = retireWarehouse_args()
3246
    args.read(iprot)
3247
    iprot.readMessageEnd()
3248
    result = retireWarehouse_result()
3249
    try:
3250
      self._handler.retireWarehouse(args.warehouse_id)
3251
    except InventoryServiceException, cex:
3252
      result.cex = cex
3253
    oprot.writeMessageBegin("retireWarehouse", TMessageType.REPLY, seqid)
3254
    result.write(oprot)
3255
    oprot.writeMessageEnd()
3256
    oprot.trans.flush()
3257
 
3258
  def process_getItemInventoryByItemId(self, seqid, iprot, oprot):
3259
    args = getItemInventoryByItemId_args()
3260
    args.read(iprot)
3261
    iprot.readMessageEnd()
3262
    result = getItemInventoryByItemId_result()
3263
    try:
3264
      result.success = self._handler.getItemInventoryByItemId(args.item_id)
3265
    except InventoryServiceException, cex:
3266
      result.cex = cex
3267
    oprot.writeMessageBegin("getItemInventoryByItemId", TMessageType.REPLY, seqid)
3268
    result.write(oprot)
3269
    oprot.writeMessageEnd()
3270
    oprot.trans.flush()
3271
 
3272
  def process_getItemAvailibilityAtWarehouse(self, seqid, iprot, oprot):
3273
    args = getItemAvailibilityAtWarehouse_args()
3274
    args.read(iprot)
3275
    iprot.readMessageEnd()
3276
    result = getItemAvailibilityAtWarehouse_result()
3277
    try:
3278
      result.success = self._handler.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id)
3279
    except InventoryServiceException, cex:
3280
      result.cex = cex
3281
    oprot.writeMessageBegin("getItemAvailibilityAtWarehouse", TMessageType.REPLY, seqid)
3282
    result.write(oprot)
3283
    oprot.writeMessageEnd()
3284
    oprot.trans.flush()
3285
 
3286
  def process_getItemAvailabilityAtLocation(self, seqid, iprot, oprot):
3287
    args = getItemAvailabilityAtLocation_args()
3288
    args.read(iprot)
3289
    iprot.readMessageEnd()
3290
    result = getItemAvailabilityAtLocation_result()
3291
    try:
5978 rajveer 3292
      result.success = self._handler.getItemAvailabilityAtLocation(args.itemId, args.sourceId)
5944 mandeep.dh 3293
    except InventoryServiceException, isex:
3294
      result.isex = isex
3295
    oprot.writeMessageBegin("getItemAvailabilityAtLocation", TMessageType.REPLY, seqid)
3296
    result.write(oprot)
3297
    oprot.writeMessageEnd()
3298
    oprot.trans.flush()
3299
 
3300
  def process_getAllWarehouses(self, seqid, iprot, oprot):
3301
    args = getAllWarehouses_args()
3302
    args.read(iprot)
3303
    iprot.readMessageEnd()
3304
    result = getAllWarehouses_result()
3305
    try:
3306
      result.success = self._handler.getAllWarehouses(args.isActive)
3307
    except InventoryServiceException, cex:
3308
      result.cex = cex
3309
    oprot.writeMessageBegin("getAllWarehouses", TMessageType.REPLY, seqid)
3310
    result.write(oprot)
3311
    oprot.writeMessageEnd()
3312
    oprot.trans.flush()
3313
 
3314
  def process_getWarehouse(self, seqid, iprot, oprot):
3315
    args = getWarehouse_args()
3316
    args.read(iprot)
3317
    iprot.readMessageEnd()
3318
    result = getWarehouse_result()
3319
    try:
3320
      result.success = self._handler.getWarehouse(args.warehouse_id)
3321
    except InventoryServiceException, cex:
3322
      result.cex = cex
3323
    oprot.writeMessageBegin("getWarehouse", TMessageType.REPLY, seqid)
3324
    result.write(oprot)
3325
    oprot.writeMessageEnd()
3326
    oprot.trans.flush()
3327
 
3328
  def process_getAllItemsForWarehouse(self, seqid, iprot, oprot):
3329
    args = getAllItemsForWarehouse_args()
3330
    args.read(iprot)
3331
    iprot.readMessageEnd()
3332
    result = getAllItemsForWarehouse_result()
3333
    try:
3334
      result.success = self._handler.getAllItemsForWarehouse(args.warehouse_id)
3335
    except InventoryServiceException, cex:
3336
      result.cex = cex
3337
    oprot.writeMessageBegin("getAllItemsForWarehouse", TMessageType.REPLY, seqid)
3338
    result.write(oprot)
3339
    oprot.writeMessageEnd()
3340
    oprot.trans.flush()
3341
 
5966 rajveer 3342
  def process_isOrderBillable(self, seqid, iprot, oprot):
3343
    args = isOrderBillable_args()
3344
    args.read(iprot)
3345
    iprot.readMessageEnd()
3346
    result = isOrderBillable_result()
3347
    result.success = self._handler.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId)
3348
    oprot.writeMessageBegin("isOrderBillable", TMessageType.REPLY, seqid)
3349
    result.write(oprot)
3350
    oprot.writeMessageEnd()
3351
    oprot.trans.flush()
3352
 
5944 mandeep.dh 3353
  def process_reserveItemInWarehouse(self, seqid, iprot, oprot):
3354
    args = reserveItemInWarehouse_args()
3355
    args.read(iprot)
3356
    iprot.readMessageEnd()
3357
    result = reserveItemInWarehouse_result()
3358
    try:
5966 rajveer 3359
      result.success = self._handler.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
5944 mandeep.dh 3360
    except InventoryServiceException, cex:
3361
      result.cex = cex
3362
    oprot.writeMessageBegin("reserveItemInWarehouse", TMessageType.REPLY, seqid)
3363
    result.write(oprot)
3364
    oprot.writeMessageEnd()
3365
    oprot.trans.flush()
3366
 
7968 amar.kumar 3367
  def process_updateReservationForOrder(self, seqid, iprot, oprot):
3368
    args = updateReservationForOrder_args()
3369
    args.read(iprot)
3370
    iprot.readMessageEnd()
3371
    result = updateReservationForOrder_result()
3372
    try:
3373
      result.success = self._handler.updateReservationForOrder(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
3374
    except InventoryServiceException, cex:
3375
      result.cex = cex
3376
    oprot.writeMessageBegin("updateReservationForOrder", TMessageType.REPLY, seqid)
3377
    result.write(oprot)
3378
    oprot.writeMessageEnd()
3379
    oprot.trans.flush()
3380
 
5944 mandeep.dh 3381
  def process_reduceReservationCount(self, seqid, iprot, oprot):
3382
    args = reduceReservationCount_args()
3383
    args.read(iprot)
3384
    iprot.readMessageEnd()
3385
    result = reduceReservationCount_result()
3386
    try:
5966 rajveer 3387
      result.success = self._handler.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity)
5944 mandeep.dh 3388
    except InventoryServiceException, cex:
3389
      result.cex = cex
3390
    oprot.writeMessageBegin("reduceReservationCount", TMessageType.REPLY, seqid)
3391
    result.write(oprot)
3392
    oprot.writeMessageEnd()
3393
    oprot.trans.flush()
3394
 
3395
  def process_getItemPricing(self, seqid, iprot, oprot):
3396
    args = getItemPricing_args()
3397
    args.read(iprot)
3398
    iprot.readMessageEnd()
3399
    result = getItemPricing_result()
3400
    try:
3401
      result.success = self._handler.getItemPricing(args.itemId, args.vendorId)
3402
    except InventoryServiceException, cex:
3403
      result.cex = cex
3404
    oprot.writeMessageBegin("getItemPricing", TMessageType.REPLY, seqid)
3405
    result.write(oprot)
3406
    oprot.writeMessageEnd()
3407
    oprot.trans.flush()
3408
 
3409
  def process_getAllItemPricing(self, seqid, iprot, oprot):
3410
    args = getAllItemPricing_args()
3411
    args.read(iprot)
3412
    iprot.readMessageEnd()
3413
    result = getAllItemPricing_result()
3414
    try:
3415
      result.success = self._handler.getAllItemPricing(args.itemId)
3416
    except InventoryServiceException, cex:
3417
      result.cex = cex
3418
    oprot.writeMessageBegin("getAllItemPricing", TMessageType.REPLY, seqid)
3419
    result.write(oprot)
3420
    oprot.writeMessageEnd()
3421
    oprot.trans.flush()
3422
 
3423
  def process_addVendorItemPricing(self, seqid, iprot, oprot):
3424
    args = addVendorItemPricing_args()
3425
    args.read(iprot)
3426
    iprot.readMessageEnd()
3427
    result = addVendorItemPricing_result()
3428
    try:
3429
      self._handler.addVendorItemPricing(args.vendorItemPricing)
3430
    except InventoryServiceException, cex:
3431
      result.cex = cex
3432
    oprot.writeMessageBegin("addVendorItemPricing", TMessageType.REPLY, seqid)
3433
    result.write(oprot)
3434
    oprot.writeMessageEnd()
3435
    oprot.trans.flush()
3436
 
3437
  def process_getVendor(self, seqid, iprot, oprot):
3438
    args = getVendor_args()
3439
    args.read(iprot)
3440
    iprot.readMessageEnd()
3441
    result = getVendor_result()
3442
    result.success = self._handler.getVendor(args.vendorId)
3443
    oprot.writeMessageBegin("getVendor", TMessageType.REPLY, seqid)
3444
    result.write(oprot)
3445
    oprot.writeMessageEnd()
3446
    oprot.trans.flush()
3447
 
3448
  def process_getAllVendors(self, seqid, iprot, oprot):
3449
    args = getAllVendors_args()
3450
    args.read(iprot)
3451
    iprot.readMessageEnd()
3452
    result = getAllVendors_result()
3453
    result.success = self._handler.getAllVendors()
3454
    oprot.writeMessageBegin("getAllVendors", TMessageType.REPLY, seqid)
3455
    result.write(oprot)
3456
    oprot.writeMessageEnd()
3457
    oprot.trans.flush()
3458
 
3459
  def process_addVendorItemMapping(self, seqid, iprot, oprot):
3460
    args = addVendorItemMapping_args()
3461
    args.read(iprot)
3462
    iprot.readMessageEnd()
3463
    result = addVendorItemMapping_result()
3464
    try:
3465
      self._handler.addVendorItemMapping(args.key, args.vendorItemMapping)
3466
    except InventoryServiceException, cex:
3467
      result.cex = cex
3468
    oprot.writeMessageBegin("addVendorItemMapping", TMessageType.REPLY, seqid)
3469
    result.write(oprot)
3470
    oprot.writeMessageEnd()
3471
    oprot.trans.flush()
3472
 
3473
  def process_getVendorItemMappings(self, seqid, iprot, oprot):
3474
    args = getVendorItemMappings_args()
3475
    args.read(iprot)
3476
    iprot.readMessageEnd()
3477
    result = getVendorItemMappings_result()
3478
    try:
3479
      result.success = self._handler.getVendorItemMappings(args.itemId)
3480
    except InventoryServiceException, cex:
3481
      result.cex = cex
3482
    oprot.writeMessageBegin("getVendorItemMappings", TMessageType.REPLY, seqid)
3483
    result.write(oprot)
3484
    oprot.writeMessageEnd()
3485
    oprot.trans.flush()
3486
 
3487
  def process_getPendingOrdersInventory(self, seqid, iprot, oprot):
3488
    args = getPendingOrdersInventory_args()
3489
    args.read(iprot)
3490
    iprot.readMessageEnd()
3491
    result = getPendingOrdersInventory_result()
3492
    result.success = self._handler.getPendingOrdersInventory(args.vendorid)
3493
    oprot.writeMessageBegin("getPendingOrdersInventory", TMessageType.REPLY, seqid)
3494
    result.write(oprot)
3495
    oprot.writeMessageEnd()
3496
    oprot.trans.flush()
3497
 
3498
  def process_getWarehouses(self, seqid, iprot, oprot):
3499
    args = getWarehouses_args()
3500
    args.read(iprot)
3501
    iprot.readMessageEnd()
3502
    result = getWarehouses_result()
3503
    result.success = self._handler.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId)
3504
    oprot.writeMessageBegin("getWarehouses", TMessageType.REPLY, seqid)
3505
    result.write(oprot)
3506
    oprot.writeMessageEnd()
3507
    oprot.trans.flush()
3508
 
3509
  def process_resetAvailability(self, seqid, iprot, oprot):
3510
    args = resetAvailability_args()
3511
    args.read(iprot)
3512
    iprot.readMessageEnd()
3513
    result = resetAvailability_result()
3514
    try:
3515
      self._handler.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId)
3516
    except InventoryServiceException, cex:
3517
      result.cex = cex
3518
    oprot.writeMessageBegin("resetAvailability", TMessageType.REPLY, seqid)
3519
    result.write(oprot)
3520
    oprot.writeMessageEnd()
3521
    oprot.trans.flush()
3522
 
3523
  def process_resetAvailabilityForWarehouse(self, seqid, iprot, oprot):
3524
    args = resetAvailabilityForWarehouse_args()
3525
    args.read(iprot)
3526
    iprot.readMessageEnd()
3527
    result = resetAvailabilityForWarehouse_result()
3528
    try:
3529
      self._handler.resetAvailabilityForWarehouse(args.warehouseId)
3530
    except InventoryServiceException, cex:
3531
      result.cex = cex
3532
    oprot.writeMessageBegin("resetAvailabilityForWarehouse", TMessageType.REPLY, seqid)
3533
    result.write(oprot)
3534
    oprot.writeMessageEnd()
3535
    oprot.trans.flush()
3536
 
3537
  def process_getItemKeysToBeProcessed(self, seqid, iprot, oprot):
3538
    args = getItemKeysToBeProcessed_args()
3539
    args.read(iprot)
3540
    iprot.readMessageEnd()
3541
    result = getItemKeysToBeProcessed_result()
3542
    result.success = self._handler.getItemKeysToBeProcessed(args.warehouseId)
3543
    oprot.writeMessageBegin("getItemKeysToBeProcessed", TMessageType.REPLY, seqid)
3544
    result.write(oprot)
3545
    oprot.writeMessageEnd()
3546
    oprot.trans.flush()
3547
 
3548
  def process_markMissedInventoryUpdatesAsProcessed(self, seqid, iprot, oprot):
3549
    args = markMissedInventoryUpdatesAsProcessed_args()
3550
    args.read(iprot)
3551
    iprot.readMessageEnd()
3552
    result = markMissedInventoryUpdatesAsProcessed_result()
3553
    self._handler.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId)
3554
    oprot.writeMessageBegin("markMissedInventoryUpdatesAsProcessed", TMessageType.REPLY, seqid)
3555
    result.write(oprot)
3556
    oprot.writeMessageEnd()
3557
    oprot.trans.flush()
3558
 
3559
  def process_getIgnoredItemKeys(self, seqid, iprot, oprot):
3560
    args = getIgnoredItemKeys_args()
3561
    args.read(iprot)
3562
    iprot.readMessageEnd()
3563
    result = getIgnoredItemKeys_result()
3564
    result.success = self._handler.getIgnoredItemKeys()
3565
    oprot.writeMessageBegin("getIgnoredItemKeys", TMessageType.REPLY, seqid)
3566
    result.write(oprot)
3567
    oprot.writeMessageEnd()
3568
    oprot.trans.flush()
3569
 
3570
  def process_addBadInventory(self, seqid, iprot, oprot):
3571
    args = addBadInventory_args()
3572
    args.read(iprot)
3573
    iprot.readMessageEnd()
3574
    result = addBadInventory_result()
3575
    try:
3576
      self._handler.addBadInventory(args.itemId, args.warehouseId, args.quantity)
3577
    except InventoryServiceException, cex:
3578
      result.cex = cex
3579
    oprot.writeMessageBegin("addBadInventory", TMessageType.REPLY, seqid)
3580
    result.write(oprot)
3581
    oprot.writeMessageEnd()
3582
    oprot.trans.flush()
3583
 
3584
  def process_getShippingLocations(self, seqid, iprot, oprot):
3585
    args = getShippingLocations_args()
3586
    args.read(iprot)
3587
    iprot.readMessageEnd()
3588
    result = getShippingLocations_result()
3589
    result.success = self._handler.getShippingLocations()
3590
    oprot.writeMessageBegin("getShippingLocations", TMessageType.REPLY, seqid)
3591
    result.write(oprot)
3592
    oprot.writeMessageEnd()
3593
    oprot.trans.flush()
3594
 
3595
  def process_getAllVendorItemMappings(self, seqid, iprot, oprot):
3596
    args = getAllVendorItemMappings_args()
3597
    args.read(iprot)
3598
    iprot.readMessageEnd()
3599
    result = getAllVendorItemMappings_result()
3600
    result.success = self._handler.getAllVendorItemMappings()
3601
    oprot.writeMessageBegin("getAllVendorItemMappings", TMessageType.REPLY, seqid)
3602
    result.write(oprot)
3603
    oprot.writeMessageEnd()
3604
    oprot.trans.flush()
3605
 
3606
  def process_getInventorySnapshot(self, seqid, iprot, oprot):
3607
    args = getInventorySnapshot_args()
3608
    args.read(iprot)
3609
    iprot.readMessageEnd()
3610
    result = getInventorySnapshot_result()
3611
    result.success = self._handler.getInventorySnapshot(args.warehouseId)
3612
    oprot.writeMessageBegin("getInventorySnapshot", TMessageType.REPLY, seqid)
3613
    result.write(oprot)
3614
    oprot.writeMessageEnd()
3615
    oprot.trans.flush()
3616
 
3617
  def process_clearItemAvailabilityCache(self, seqid, iprot, oprot):
3618
    args = clearItemAvailabilityCache_args()
3619
    args.read(iprot)
3620
    iprot.readMessageEnd()
3621
    result = clearItemAvailabilityCache_result()
3622
    self._handler.clearItemAvailabilityCache()
3623
    oprot.writeMessageBegin("clearItemAvailabilityCache", TMessageType.REPLY, seqid)
3624
    result.write(oprot)
3625
    oprot.writeMessageEnd()
3626
    oprot.trans.flush()
3627
 
3628
  def process_updateVendorString(self, seqid, iprot, oprot):
3629
    args = updateVendorString_args()
3630
    args.read(iprot)
3631
    iprot.readMessageEnd()
3632
    result = updateVendorString_result()
3633
    self._handler.updateVendorString(args.warehouseId, args.vendorString)
3634
    oprot.writeMessageBegin("updateVendorString", TMessageType.REPLY, seqid)
3635
    result.write(oprot)
3636
    oprot.writeMessageEnd()
3637
    oprot.trans.flush()
3638
 
6096 amit.gupta 3639
  def process_clearItemAvailabilityCacheForItem(self, seqid, iprot, oprot):
3640
    args = clearItemAvailabilityCacheForItem_args()
3641
    args.read(iprot)
3642
    iprot.readMessageEnd()
3643
    result = clearItemAvailabilityCacheForItem_result()
3644
    self._handler.clearItemAvailabilityCacheForItem(args.item_id)
3645
    oprot.writeMessageBegin("clearItemAvailabilityCacheForItem", TMessageType.REPLY, seqid)
3646
    result.write(oprot)
3647
    oprot.writeMessageEnd()
3648
    oprot.trans.flush()
5944 mandeep.dh 3649
 
6467 amar.kumar 3650
  def process_getOurWarehouseIdForVendor(self, seqid, iprot, oprot):
3651
    args = getOurWarehouseIdForVendor_args()
3652
    args.read(iprot)
3653
    iprot.readMessageEnd()
3654
    result = getOurWarehouseIdForVendor_result()
7718 amar.kumar 3655
    result.success = self._handler.getOurWarehouseIdForVendor(args.vendorId, args.billingWarehouseId)
6467 amar.kumar 3656
    oprot.writeMessageBegin("getOurWarehouseIdForVendor", TMessageType.REPLY, seqid)
3657
    result.write(oprot)
3658
    oprot.writeMessageEnd()
3659
    oprot.trans.flush()
6096 amit.gupta 3660
 
6484 amar.kumar 3661
  def process_getItemAvailabilitiesAtOurWarehouses(self, seqid, iprot, oprot):
3662
    args = getItemAvailabilitiesAtOurWarehouses_args()
3663
    args.read(iprot)
3664
    iprot.readMessageEnd()
3665
    result = getItemAvailabilitiesAtOurWarehouses_result()
3666
    result.success = self._handler.getItemAvailabilitiesAtOurWarehouses(args.item_ids)
3667
    oprot.writeMessageBegin("getItemAvailabilitiesAtOurWarehouses", TMessageType.REPLY, seqid)
3668
    result.write(oprot)
3669
    oprot.writeMessageEnd()
3670
    oprot.trans.flush()
6467 amar.kumar 3671
 
6531 vikram.rag 3672
  def process_getMonitoredWarehouseForVendors(self, seqid, iprot, oprot):
3673
    args = getMonitoredWarehouseForVendors_args()
3674
    args.read(iprot)
3675
    iprot.readMessageEnd()
3676
    result = getMonitoredWarehouseForVendors_result()
3677
    result.success = self._handler.getMonitoredWarehouseForVendors(args.vendorIds)
3678
    oprot.writeMessageBegin("getMonitoredWarehouseForVendors", TMessageType.REPLY, seqid)
3679
    result.write(oprot)
3680
    oprot.writeMessageEnd()
3681
    oprot.trans.flush()
6484 amar.kumar 3682
 
6531 vikram.rag 3683
  def process_getIgnoredWarehouseidsAndItemids(self, seqid, iprot, oprot):
3684
    args = getIgnoredWarehouseidsAndItemids_args()
3685
    args.read(iprot)
3686
    iprot.readMessageEnd()
3687
    result = getIgnoredWarehouseidsAndItemids_result()
3688
    result.success = self._handler.getIgnoredWarehouseidsAndItemids()
3689
    oprot.writeMessageBegin("getIgnoredWarehouseidsAndItemids", TMessageType.REPLY, seqid)
3690
    result.write(oprot)
3691
    oprot.writeMessageEnd()
3692
    oprot.trans.flush()
3693
 
3694
  def process_insertItemtoIgnoreInventoryUpdatelist(self, seqid, iprot, oprot):
3695
    args = insertItemtoIgnoreInventoryUpdatelist_args()
3696
    args.read(iprot)
3697
    iprot.readMessageEnd()
3698
    result = insertItemtoIgnoreInventoryUpdatelist_result()
3699
    result.success = self._handler.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id)
3700
    oprot.writeMessageBegin("insertItemtoIgnoreInventoryUpdatelist", TMessageType.REPLY, seqid)
3701
    result.write(oprot)
3702
    oprot.writeMessageEnd()
3703
    oprot.trans.flush()
3704
 
3705
  def process_deleteItemFromIgnoredInventoryUpdateList(self, seqid, iprot, oprot):
3706
    args = deleteItemFromIgnoredInventoryUpdateList_args()
3707
    args.read(iprot)
3708
    iprot.readMessageEnd()
3709
    result = deleteItemFromIgnoredInventoryUpdateList_result()
3710
    result.success = self._handler.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id)
3711
    oprot.writeMessageBegin("deleteItemFromIgnoredInventoryUpdateList", TMessageType.REPLY, seqid)
3712
    result.write(oprot)
3713
    oprot.writeMessageEnd()
3714
    oprot.trans.flush()
3715
 
3716
  def process_getAllIgnoredInventoryupdateItemsCount(self, seqid, iprot, oprot):
3717
    args = getAllIgnoredInventoryupdateItemsCount_args()
3718
    args.read(iprot)
3719
    iprot.readMessageEnd()
3720
    result = getAllIgnoredInventoryupdateItemsCount_result()
3721
    result.success = self._handler.getAllIgnoredInventoryupdateItemsCount()
3722
    oprot.writeMessageBegin("getAllIgnoredInventoryupdateItemsCount", TMessageType.REPLY, seqid)
3723
    result.write(oprot)
3724
    oprot.writeMessageEnd()
3725
    oprot.trans.flush()
3726
 
3727
  def process_getIgnoredInventoryUpdateItemids(self, seqid, iprot, oprot):
3728
    args = getIgnoredInventoryUpdateItemids_args()
3729
    args.read(iprot)
3730
    iprot.readMessageEnd()
3731
    result = getIgnoredInventoryUpdateItemids_result()
3732
    result.success = self._handler.getIgnoredInventoryUpdateItemids(args.offset, args.limit)
3733
    oprot.writeMessageBegin("getIgnoredInventoryUpdateItemids", TMessageType.REPLY, seqid)
3734
    result.write(oprot)
3735
    oprot.writeMessageEnd()
3736
    oprot.trans.flush()
3737
 
6821 amar.kumar 3738
  def process_updateItemStockPurchaseParams(self, seqid, iprot, oprot):
3739
    args = updateItemStockPurchaseParams_args()
3740
    args.read(iprot)
3741
    iprot.readMessageEnd()
3742
    result = updateItemStockPurchaseParams_result()
3743
    self._handler.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel)
3744
    oprot.writeMessageBegin("updateItemStockPurchaseParams", TMessageType.REPLY, seqid)
3745
    result.write(oprot)
3746
    oprot.writeMessageEnd()
3747
    oprot.trans.flush()
6531 vikram.rag 3748
 
6821 amar.kumar 3749
  def process_getItemStockPurchaseParams(self, seqid, iprot, oprot):
3750
    args = getItemStockPurchaseParams_args()
3751
    args.read(iprot)
3752
    iprot.readMessageEnd()
3753
    result = getItemStockPurchaseParams_result()
3754
    result.success = self._handler.getItemStockPurchaseParams(args.itemId)
3755
    oprot.writeMessageBegin("getItemStockPurchaseParams", TMessageType.REPLY, seqid)
3756
    result.write(oprot)
3757
    oprot.writeMessageEnd()
3758
    oprot.trans.flush()
3759
 
3760
  def process_addOosStatusForItem(self, seqid, iprot, oprot):
3761
    args = addOosStatusForItem_args()
3762
    args.read(iprot)
3763
    iprot.readMessageEnd()
3764
    result = addOosStatusForItem_result()
3765
    self._handler.addOosStatusForItem(args.oosStatusMap, args.date)
3766
    oprot.writeMessageBegin("addOosStatusForItem", TMessageType.REPLY, seqid)
3767
    result.write(oprot)
3768
    oprot.writeMessageEnd()
3769
    oprot.trans.flush()
3770
 
6832 amar.kumar 3771
  def process_getOosStatusesForXDaysForItem(self, seqid, iprot, oprot):
3772
    args = getOosStatusesForXDaysForItem_args()
3773
    args.read(iprot)
3774
    iprot.readMessageEnd()
3775
    result = getOosStatusesForXDaysForItem_result()
9762 amar.kumar 3776
    result.success = self._handler.getOosStatusesForXDaysForItem(args.itemId, args.sourceId, args.days)
6832 amar.kumar 3777
    oprot.writeMessageBegin("getOosStatusesForXDaysForItem", TMessageType.REPLY, seqid)
3778
    result.write(oprot)
3779
    oprot.writeMessageEnd()
3780
    oprot.trans.flush()
6821 amar.kumar 3781
 
10126 amar.kumar 3782
  def process_getOosStatusesForXDays(self, seqid, iprot, oprot):
3783
    args = getOosStatusesForXDays_args()
3784
    args.read(iprot)
3785
    iprot.readMessageEnd()
3786
    result = getOosStatusesForXDays_result()
3787
    result.success = self._handler.getOosStatusesForXDays(args.sourceId, args.days)
3788
    oprot.writeMessageBegin("getOosStatusesForXDays", TMessageType.REPLY, seqid)
3789
    result.write(oprot)
3790
    oprot.writeMessageEnd()
3791
    oprot.trans.flush()
3792
 
3793
  def process_getAllVendorItemPricing(self, seqid, iprot, oprot):
3794
    args = getAllVendorItemPricing_args()
3795
    args.read(iprot)
3796
    iprot.readMessageEnd()
3797
    result = getAllVendorItemPricing_result()
3798
    result.success = self._handler.getAllVendorItemPricing(args.itemId, args.vendorId)
3799
    oprot.writeMessageBegin("getAllVendorItemPricing", TMessageType.REPLY, seqid)
3800
    result.write(oprot)
3801
    oprot.writeMessageEnd()
3802
    oprot.trans.flush()
3803
 
6857 amar.kumar 3804
  def process_getNonZeroItemStockPurchaseParams(self, seqid, iprot, oprot):
3805
    args = getNonZeroItemStockPurchaseParams_args()
3806
    args.read(iprot)
3807
    iprot.readMessageEnd()
3808
    result = getNonZeroItemStockPurchaseParams_result()
3809
    result.success = self._handler.getNonZeroItemStockPurchaseParams()
3810
    oprot.writeMessageBegin("getNonZeroItemStockPurchaseParams", TMessageType.REPLY, seqid)
3811
    result.write(oprot)
3812
    oprot.writeMessageEnd()
3813
    oprot.trans.flush()
6832 amar.kumar 3814
 
7149 amar.kumar 3815
  def process_getBillableInventoryAndPendingOrders(self, seqid, iprot, oprot):
3816
    args = getBillableInventoryAndPendingOrders_args()
3817
    args.read(iprot)
3818
    iprot.readMessageEnd()
3819
    result = getBillableInventoryAndPendingOrders_result()
3820
    result.success = self._handler.getBillableInventoryAndPendingOrders()
3821
    oprot.writeMessageBegin("getBillableInventoryAndPendingOrders", TMessageType.REPLY, seqid)
3822
    result.write(oprot)
3823
    oprot.writeMessageEnd()
3824
    oprot.trans.flush()
6857 amar.kumar 3825
 
7281 kshitij.so 3826
  def process_getWarehouseName(self, seqid, iprot, oprot):
3827
    args = getWarehouseName_args()
3828
    args.read(iprot)
3829
    iprot.readMessageEnd()
3830
    result = getWarehouseName_result()
3831
    result.success = self._handler.getWarehouseName(args.warehouse_id)
3832
    oprot.writeMessageBegin("getWarehouseName", TMessageType.REPLY, seqid)
3833
    result.write(oprot)
3834
    oprot.writeMessageEnd()
3835
    oprot.trans.flush()
7149 amar.kumar 3836
 
7281 kshitij.so 3837
  def process_getAmazonInventoryForItem(self, seqid, iprot, oprot):
3838
    args = getAmazonInventoryForItem_args()
3839
    args.read(iprot)
3840
    iprot.readMessageEnd()
3841
    result = getAmazonInventoryForItem_result()
3842
    result.success = self._handler.getAmazonInventoryForItem(args.item_id)
3843
    oprot.writeMessageBegin("getAmazonInventoryForItem", TMessageType.REPLY, seqid)
3844
    result.write(oprot)
3845
    oprot.writeMessageEnd()
3846
    oprot.trans.flush()
3847
 
3848
  def process_getAllAmazonInventory(self, seqid, iprot, oprot):
3849
    args = getAllAmazonInventory_args()
3850
    args.read(iprot)
3851
    iprot.readMessageEnd()
3852
    result = getAllAmazonInventory_result()
3853
    result.success = self._handler.getAllAmazonInventory()
3854
    oprot.writeMessageBegin("getAllAmazonInventory", TMessageType.REPLY, seqid)
3855
    result.write(oprot)
3856
    oprot.writeMessageEnd()
3857
    oprot.trans.flush()
3858
 
3859
  def process_addOrUpdateAmazonInventoryForItem(self, seqid, iprot, oprot):
3860
    args = addOrUpdateAmazonInventoryForItem_args()
3861
    args.read(iprot)
3862
    iprot.readMessageEnd()
3863
    result = addOrUpdateAmazonInventoryForItem_result()
10450 vikram.rag 3864
    self._handler.addOrUpdateAmazonInventoryForItem(args.amazonInventorySnapshot, args.time)
7281 kshitij.so 3865
    oprot.writeMessageBegin("addOrUpdateAmazonInventoryForItem", TMessageType.REPLY, seqid)
3866
    result.write(oprot)
3867
    oprot.writeMessageEnd()
3868
    oprot.trans.flush()
3869
 
7972 amar.kumar 3870
  def process_getLastNdaySaleForItem(self, seqid, iprot, oprot):
3871
    args = getLastNdaySaleForItem_args()
3872
    args.read(iprot)
3873
    iprot.readMessageEnd()
3874
    result = getLastNdaySaleForItem_result()
3875
    result.success = self._handler.getLastNdaySaleForItem(args.itemId, args.numberOfDays)
3876
    oprot.writeMessageBegin("getLastNdaySaleForItem", TMessageType.REPLY, seqid)
3877
    result.write(oprot)
3878
    oprot.writeMessageEnd()
3879
    oprot.trans.flush()
7281 kshitij.so 3880
 
8282 kshitij.so 3881
  def process_addOrUpdateAmazonFbaInventory(self, seqid, iprot, oprot):
3882
    args = addOrUpdateAmazonFbaInventory_args()
3883
    args.read(iprot)
3884
    iprot.readMessageEnd()
3885
    result = addOrUpdateAmazonFbaInventory_result()
3886
    self._handler.addOrUpdateAmazonFbaInventory(args.amazonfbainventorysnapshot)
3887
    oprot.writeMessageBegin("addOrUpdateAmazonFbaInventory", TMessageType.REPLY, seqid)
3888
    result.write(oprot)
3889
    oprot.writeMessageEnd()
3890
    oprot.trans.flush()
3891
 
8182 amar.kumar 3892
  def process_addUpdateHoldInventory(self, seqid, iprot, oprot):
3893
    args = addUpdateHoldInventory_args()
3894
    args.read(iprot)
3895
    iprot.readMessageEnd()
3896
    result = addUpdateHoldInventory_result()
9762 amar.kumar 3897
    try:
3898
      self._handler.addUpdateHoldInventory(args.itemId, args.warehouseId, args.holdQuantity, args.source)
3899
    except InventoryServiceException, cex:
3900
      result.cex = cex
8182 amar.kumar 3901
    oprot.writeMessageBegin("addUpdateHoldInventory", TMessageType.REPLY, seqid)
3902
    result.write(oprot)
3903
    oprot.writeMessageEnd()
3904
    oprot.trans.flush()
7972 amar.kumar 3905
 
8282 kshitij.so 3906
  def process_getAmazonFbaItemInventory(self, seqid, iprot, oprot):
3907
    args = getAmazonFbaItemInventory_args()
3908
    args.read(iprot)
3909
    iprot.readMessageEnd()
3910
    result = getAmazonFbaItemInventory_result()
3911
    result.success = self._handler.getAmazonFbaItemInventory(args.itemId)
3912
    oprot.writeMessageBegin("getAmazonFbaItemInventory", TMessageType.REPLY, seqid)
3913
    result.write(oprot)
3914
    oprot.writeMessageEnd()
3915
    oprot.trans.flush()
8182 amar.kumar 3916
 
8363 vikram.rag 3917
  def process_getAllAmazonFbaItemInventory(self, seqid, iprot, oprot):
3918
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 3919
    args.read(iprot)
3920
    iprot.readMessageEnd()
8363 vikram.rag 3921
    result = getAllAmazonFbaItemInventory_result()
3922
    result.success = self._handler.getAllAmazonFbaItemInventory()
3923
    oprot.writeMessageBegin("getAllAmazonFbaItemInventory", TMessageType.REPLY, seqid)
8282 kshitij.so 3924
    result.write(oprot)
3925
    oprot.writeMessageEnd()
3926
    oprot.trans.flush()
3927
 
8363 vikram.rag 3928
  def process_getOursGoodWarehouseIdsForLocation(self, seqid, iprot, oprot):
3929
    args = getOursGoodWarehouseIdsForLocation_args()
3930
    args.read(iprot)
3931
    iprot.readMessageEnd()
3932
    result = getOursGoodWarehouseIdsForLocation_result()
3933
    result.success = self._handler.getOursGoodWarehouseIdsForLocation(args.state_id)
3934
    oprot.writeMessageBegin("getOursGoodWarehouseIdsForLocation", TMessageType.REPLY, seqid)
3935
    result.write(oprot)
3936
    oprot.writeMessageEnd()
3937
    oprot.trans.flush()
8282 kshitij.so 3938
 
8955 vikram.rag 3939
  def process_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, seqid, iprot, oprot):
3940
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
3941
    args.read(iprot)
3942
    iprot.readMessageEnd()
3943
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
3944
    result.success = self._handler.getHoldInventoryDetailForItemForWarehouseIdExceptSource(args.id, args.warehouse_id, args.source)
3945
    oprot.writeMessageBegin("getHoldInventoryDetailForItemForWarehouseIdExceptSource", TMessageType.REPLY, seqid)
3946
    result.write(oprot)
3947
    oprot.writeMessageEnd()
3948
    oprot.trans.flush()
8363 vikram.rag 3949
 
9404 vikram.rag 3950
  def process_getSnapdealInventoryForItem(self, seqid, iprot, oprot):
3951
    args = getSnapdealInventoryForItem_args()
3952
    args.read(iprot)
3953
    iprot.readMessageEnd()
3954
    result = getSnapdealInventoryForItem_result()
3955
    result.success = self._handler.getSnapdealInventoryForItem(args.item_id)
3956
    oprot.writeMessageBegin("getSnapdealInventoryForItem", TMessageType.REPLY, seqid)
3957
    result.write(oprot)
3958
    oprot.writeMessageEnd()
3959
    oprot.trans.flush()
8955 vikram.rag 3960
 
9404 vikram.rag 3961
  def process_addOrUpdateSnapdealInventoryForItem(self, seqid, iprot, oprot):
3962
    args = addOrUpdateSnapdealInventoryForItem_args()
3963
    args.read(iprot)
3964
    iprot.readMessageEnd()
3965
    result = addOrUpdateSnapdealInventoryForItem_result()
3966
    self._handler.addOrUpdateSnapdealInventoryForItem(args.snapdealinventoryitem)
3967
    oprot.writeMessageBegin("addOrUpdateSnapdealInventoryForItem", TMessageType.REPLY, seqid)
3968
    result.write(oprot)
3969
    oprot.writeMessageEnd()
3970
    oprot.trans.flush()
3971
 
3972
  def process_getNlcForWarehouse(self, seqid, iprot, oprot):
3973
    args = getNlcForWarehouse_args()
3974
    args.read(iprot)
3975
    iprot.readMessageEnd()
3976
    result = getNlcForWarehouse_result()
3977
    result.success = self._handler.getNlcForWarehouse(args.warehouse_id, args.item_id)
3978
    oprot.writeMessageBegin("getNlcForWarehouse", TMessageType.REPLY, seqid)
3979
    result.write(oprot)
3980
    oprot.writeMessageEnd()
3981
    oprot.trans.flush()
3982
 
9640 amar.kumar 3983
  def process_getHeldInventoryMapForItem(self, seqid, iprot, oprot):
3984
    args = getHeldInventoryMapForItem_args()
3985
    args.read(iprot)
3986
    iprot.readMessageEnd()
3987
    result = getHeldInventoryMapForItem_result()
3988
    result.success = self._handler.getHeldInventoryMapForItem(args.item_id, args.warehouse_id)
3989
    oprot.writeMessageBegin("getHeldInventoryMapForItem", TMessageType.REPLY, seqid)
3990
    result.write(oprot)
3991
    oprot.writeMessageEnd()
3992
    oprot.trans.flush()
3993
 
9495 vikram.rag 3994
  def process_addOrUpdateAllAmazonFbaInventory(self, seqid, iprot, oprot):
3995
    args = addOrUpdateAllAmazonFbaInventory_args()
9456 vikram.rag 3996
    args.read(iprot)
3997
    iprot.readMessageEnd()
9495 vikram.rag 3998
    result = addOrUpdateAllAmazonFbaInventory_result()
3999
    self._handler.addOrUpdateAllAmazonFbaInventory(args.allamazonfbainventorysnapshot)
4000
    oprot.writeMessageBegin("addOrUpdateAllAmazonFbaInventory", TMessageType.REPLY, seqid)
9456 vikram.rag 4001
    result.write(oprot)
4002
    oprot.writeMessageEnd()
4003
    oprot.trans.flush()
9404 vikram.rag 4004
 
9495 vikram.rag 4005
  def process_addOrUpdateAllSnapdealInventory(self, seqid, iprot, oprot):
4006
    args = addOrUpdateAllSnapdealInventory_args()
9482 vikram.rag 4007
    args.read(iprot)
4008
    iprot.readMessageEnd()
9495 vikram.rag 4009
    result = addOrUpdateAllSnapdealInventory_result()
4010
    self._handler.addOrUpdateAllSnapdealInventory(args.allsnapdealinventorysnapshot)
4011
    oprot.writeMessageBegin("addOrUpdateAllSnapdealInventory", TMessageType.REPLY, seqid)
9482 vikram.rag 4012
    result.write(oprot)
4013
    oprot.writeMessageEnd()
4014
    oprot.trans.flush()
9456 vikram.rag 4015
 
9495 vikram.rag 4016
  def process_getSnapdealInventorySnapshot(self, seqid, iprot, oprot):
4017
    args = getSnapdealInventorySnapshot_args()
4018
    args.read(iprot)
4019
    iprot.readMessageEnd()
4020
    result = getSnapdealInventorySnapshot_result()
4021
    result.success = self._handler.getSnapdealInventorySnapshot()
4022
    oprot.writeMessageBegin("getSnapdealInventorySnapshot", TMessageType.REPLY, seqid)
4023
    result.write(oprot)
4024
    oprot.writeMessageEnd()
4025
    oprot.trans.flush()
9482 vikram.rag 4026
 
9761 amar.kumar 4027
  def process_getHoldInventoryDetails(self, seqid, iprot, oprot):
4028
    args = getHoldInventoryDetails_args()
4029
    args.read(iprot)
4030
    iprot.readMessageEnd()
4031
    result = getHoldInventoryDetails_result()
4032
    result.success = self._handler.getHoldInventoryDetails(args.itemId, args.warehouseId, args.source)
4033
    oprot.writeMessageBegin("getHoldInventoryDetails", TMessageType.REPLY, seqid)
4034
    result.write(oprot)
4035
    oprot.writeMessageEnd()
4036
    oprot.trans.flush()
9495 vikram.rag 4037
 
10050 vikram.rag 4038
  def process_addOrUpdateFlipkartInventorySnapshot(self, seqid, iprot, oprot):
4039
    args = addOrUpdateFlipkartInventorySnapshot_args()
4040
    args.read(iprot)
4041
    iprot.readMessageEnd()
4042
    result = addOrUpdateFlipkartInventorySnapshot_result()
10450 vikram.rag 4043
    self._handler.addOrUpdateFlipkartInventorySnapshot(args.flipkartInventorySnapshot, args.time)
10050 vikram.rag 4044
    oprot.writeMessageBegin("addOrUpdateFlipkartInventorySnapshot", TMessageType.REPLY, seqid)
4045
    result.write(oprot)
4046
    oprot.writeMessageEnd()
4047
    oprot.trans.flush()
9761 amar.kumar 4048
 
10050 vikram.rag 4049
  def process_getFlipkartInventorySnapshot(self, seqid, iprot, oprot):
4050
    args = getFlipkartInventorySnapshot_args()
4051
    args.read(iprot)
4052
    iprot.readMessageEnd()
4053
    result = getFlipkartInventorySnapshot_result()
4054
    result.success = self._handler.getFlipkartInventorySnapshot()
4055
    oprot.writeMessageBegin("getFlipkartInventorySnapshot", TMessageType.REPLY, seqid)
4056
    result.write(oprot)
4057
    oprot.writeMessageEnd()
4058
    oprot.trans.flush()
4059
 
10097 kshitij.so 4060
  def process_getFlipkartlInventoryForItem(self, seqid, iprot, oprot):
4061
    args = getFlipkartlInventoryForItem_args()
4062
    args.read(iprot)
4063
    iprot.readMessageEnd()
4064
    result = getFlipkartlInventoryForItem_result()
4065
    result.success = self._handler.getFlipkartlInventoryForItem(args.item_id)
4066
    oprot.writeMessageBegin("getFlipkartlInventoryForItem", TMessageType.REPLY, seqid)
4067
    result.write(oprot)
4068
    oprot.writeMessageEnd()
4069
    oprot.trans.flush()
10050 vikram.rag 4070
 
10485 vikram.rag 4071
  def process_getStateMaster(self, seqid, iprot, oprot):
4072
    args = getStateMaster_args()
4073
    args.read(iprot)
4074
    iprot.readMessageEnd()
4075
    result = getStateMaster_result()
4076
    result.success = self._handler.getStateMaster()
4077
    oprot.writeMessageBegin("getStateMaster", TMessageType.REPLY, seqid)
4078
    result.write(oprot)
4079
    oprot.writeMessageEnd()
4080
    oprot.trans.flush()
10097 kshitij.so 4081
 
10485 vikram.rag 4082
 
5944 mandeep.dh 4083
# HELPER FUNCTIONS AND STRUCTURES
4084
 
4085
class addWarehouse_args:
4086
  """
4087
  Attributes:
4088
   - warehouse
4089
  """
4090
 
4091
  thrift_spec = (
4092
    None, # 0
4093
    (1, TType.STRUCT, 'warehouse', (Warehouse, Warehouse.thrift_spec), None, ), # 1
4094
  )
4095
 
4096
  def __init__(self, warehouse=None,):
4097
    self.warehouse = warehouse
4098
 
4099
  def read(self, iprot):
4100
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4101
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4102
      return
4103
    iprot.readStructBegin()
4104
    while True:
4105
      (fname, ftype, fid) = iprot.readFieldBegin()
4106
      if ftype == TType.STOP:
4107
        break
4108
      if fid == 1:
4109
        if ftype == TType.STRUCT:
4110
          self.warehouse = Warehouse()
4111
          self.warehouse.read(iprot)
4112
        else:
4113
          iprot.skip(ftype)
4114
      else:
4115
        iprot.skip(ftype)
4116
      iprot.readFieldEnd()
4117
    iprot.readStructEnd()
4118
 
4119
  def write(self, oprot):
4120
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4121
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4122
      return
4123
    oprot.writeStructBegin('addWarehouse_args')
4124
    if self.warehouse is not None:
4125
      oprot.writeFieldBegin('warehouse', TType.STRUCT, 1)
4126
      self.warehouse.write(oprot)
4127
      oprot.writeFieldEnd()
4128
    oprot.writeFieldStop()
4129
    oprot.writeStructEnd()
4130
 
4131
  def validate(self):
4132
    return
4133
 
4134
 
4135
  def __repr__(self):
4136
    L = ['%s=%r' % (key, value)
4137
      for key, value in self.__dict__.iteritems()]
4138
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4139
 
4140
  def __eq__(self, other):
4141
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4142
 
4143
  def __ne__(self, other):
4144
    return not (self == other)
4145
 
4146
class addWarehouse_result:
4147
  """
4148
  Attributes:
4149
   - success
4150
   - cex
4151
  """
4152
 
4153
  thrift_spec = (
4154
    (0, TType.I64, 'success', None, None, ), # 0
4155
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4156
  )
4157
 
4158
  def __init__(self, success=None, cex=None,):
4159
    self.success = success
4160
    self.cex = cex
4161
 
4162
  def read(self, iprot):
4163
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4164
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4165
      return
4166
    iprot.readStructBegin()
4167
    while True:
4168
      (fname, ftype, fid) = iprot.readFieldBegin()
4169
      if ftype == TType.STOP:
4170
        break
4171
      if fid == 0:
4172
        if ftype == TType.I64:
4173
          self.success = iprot.readI64();
4174
        else:
4175
          iprot.skip(ftype)
4176
      elif fid == 1:
4177
        if ftype == TType.STRUCT:
4178
          self.cex = InventoryServiceException()
4179
          self.cex.read(iprot)
4180
        else:
4181
          iprot.skip(ftype)
4182
      else:
4183
        iprot.skip(ftype)
4184
      iprot.readFieldEnd()
4185
    iprot.readStructEnd()
4186
 
4187
  def write(self, oprot):
4188
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4189
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4190
      return
4191
    oprot.writeStructBegin('addWarehouse_result')
4192
    if self.success is not None:
4193
      oprot.writeFieldBegin('success', TType.I64, 0)
4194
      oprot.writeI64(self.success)
4195
      oprot.writeFieldEnd()
4196
    if self.cex is not None:
4197
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4198
      self.cex.write(oprot)
4199
      oprot.writeFieldEnd()
4200
    oprot.writeFieldStop()
4201
    oprot.writeStructEnd()
4202
 
4203
  def validate(self):
4204
    return
4205
 
4206
 
4207
  def __repr__(self):
4208
    L = ['%s=%r' % (key, value)
4209
      for key, value in self.__dict__.iteritems()]
4210
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4211
 
4212
  def __eq__(self, other):
4213
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4214
 
4215
  def __ne__(self, other):
4216
    return not (self == other)
4217
 
4218
class addVendor_args:
4219
  """
4220
  Attributes:
4221
   - vendor
4222
  """
4223
 
4224
  thrift_spec = (
4225
    None, # 0
4226
    (1, TType.STRUCT, 'vendor', (Vendor, Vendor.thrift_spec), None, ), # 1
4227
  )
4228
 
4229
  def __init__(self, vendor=None,):
4230
    self.vendor = vendor
4231
 
4232
  def read(self, iprot):
4233
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4234
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4235
      return
4236
    iprot.readStructBegin()
4237
    while True:
4238
      (fname, ftype, fid) = iprot.readFieldBegin()
4239
      if ftype == TType.STOP:
4240
        break
4241
      if fid == 1:
4242
        if ftype == TType.STRUCT:
4243
          self.vendor = Vendor()
4244
          self.vendor.read(iprot)
4245
        else:
4246
          iprot.skip(ftype)
4247
      else:
4248
        iprot.skip(ftype)
4249
      iprot.readFieldEnd()
4250
    iprot.readStructEnd()
4251
 
4252
  def write(self, oprot):
4253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4255
      return
4256
    oprot.writeStructBegin('addVendor_args')
4257
    if self.vendor is not None:
4258
      oprot.writeFieldBegin('vendor', TType.STRUCT, 1)
4259
      self.vendor.write(oprot)
4260
      oprot.writeFieldEnd()
4261
    oprot.writeFieldStop()
4262
    oprot.writeStructEnd()
4263
 
4264
  def validate(self):
4265
    return
4266
 
4267
 
4268
  def __repr__(self):
4269
    L = ['%s=%r' % (key, value)
4270
      for key, value in self.__dict__.iteritems()]
4271
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4272
 
4273
  def __eq__(self, other):
4274
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4275
 
4276
  def __ne__(self, other):
4277
    return not (self == other)
4278
 
4279
class addVendor_result:
4280
  """
4281
  Attributes:
4282
   - success
4283
   - cex
4284
  """
4285
 
4286
  thrift_spec = (
4287
    (0, TType.I64, 'success', None, None, ), # 0
4288
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4289
  )
4290
 
4291
  def __init__(self, success=None, cex=None,):
4292
    self.success = success
4293
    self.cex = cex
4294
 
4295
  def read(self, iprot):
4296
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4297
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4298
      return
4299
    iprot.readStructBegin()
4300
    while True:
4301
      (fname, ftype, fid) = iprot.readFieldBegin()
4302
      if ftype == TType.STOP:
4303
        break
4304
      if fid == 0:
4305
        if ftype == TType.I64:
4306
          self.success = iprot.readI64();
4307
        else:
4308
          iprot.skip(ftype)
4309
      elif fid == 1:
4310
        if ftype == TType.STRUCT:
4311
          self.cex = InventoryServiceException()
4312
          self.cex.read(iprot)
4313
        else:
4314
          iprot.skip(ftype)
4315
      else:
4316
        iprot.skip(ftype)
4317
      iprot.readFieldEnd()
4318
    iprot.readStructEnd()
4319
 
4320
  def write(self, oprot):
4321
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4322
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4323
      return
4324
    oprot.writeStructBegin('addVendor_result')
4325
    if self.success is not None:
4326
      oprot.writeFieldBegin('success', TType.I64, 0)
4327
      oprot.writeI64(self.success)
4328
      oprot.writeFieldEnd()
4329
    if self.cex is not None:
4330
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4331
      self.cex.write(oprot)
4332
      oprot.writeFieldEnd()
4333
    oprot.writeFieldStop()
4334
    oprot.writeStructEnd()
4335
 
4336
  def validate(self):
4337
    return
4338
 
4339
 
4340
  def __repr__(self):
4341
    L = ['%s=%r' % (key, value)
4342
      for key, value in self.__dict__.iteritems()]
4343
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4344
 
4345
  def __eq__(self, other):
4346
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4347
 
4348
  def __ne__(self, other):
4349
    return not (self == other)
4350
 
4351
class updateInventoryHistory_args:
4352
  """
4353
  Attributes:
4354
   - warehouse_id
4355
   - timestamp
4356
   - availability
4357
  """
4358
 
4359
  thrift_spec = (
4360
    None, # 0
4361
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4362
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4363
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4364
  )
4365
 
4366
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4367
    self.warehouse_id = warehouse_id
4368
    self.timestamp = timestamp
4369
    self.availability = availability
4370
 
4371
  def read(self, iprot):
4372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4374
      return
4375
    iprot.readStructBegin()
4376
    while True:
4377
      (fname, ftype, fid) = iprot.readFieldBegin()
4378
      if ftype == TType.STOP:
4379
        break
4380
      if fid == 1:
4381
        if ftype == TType.I64:
4382
          self.warehouse_id = iprot.readI64();
4383
        else:
4384
          iprot.skip(ftype)
4385
      elif fid == 2:
4386
        if ftype == TType.STRING:
4387
          self.timestamp = iprot.readString();
4388
        else:
4389
          iprot.skip(ftype)
4390
      elif fid == 3:
4391
        if ftype == TType.MAP:
4392
          self.availability = {}
8182 amar.kumar 4393
          (_ktype28, _vtype29, _size27 ) = iprot.readMapBegin() 
4394
          for _i31 in xrange(_size27):
4395
            _key32 = iprot.readString();
4396
            _val33 = iprot.readI64();
4397
            self.availability[_key32] = _val33
5944 mandeep.dh 4398
          iprot.readMapEnd()
4399
        else:
4400
          iprot.skip(ftype)
4401
      else:
4402
        iprot.skip(ftype)
4403
      iprot.readFieldEnd()
4404
    iprot.readStructEnd()
4405
 
4406
  def write(self, oprot):
4407
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4408
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4409
      return
4410
    oprot.writeStructBegin('updateInventoryHistory_args')
4411
    if self.warehouse_id is not None:
4412
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4413
      oprot.writeI64(self.warehouse_id)
4414
      oprot.writeFieldEnd()
4415
    if self.timestamp is not None:
4416
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4417
      oprot.writeString(self.timestamp)
4418
      oprot.writeFieldEnd()
4419
    if self.availability is not None:
4420
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4421
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4422
      for kiter34,viter35 in self.availability.items():
4423
        oprot.writeString(kiter34)
4424
        oprot.writeI64(viter35)
5944 mandeep.dh 4425
      oprot.writeMapEnd()
4426
      oprot.writeFieldEnd()
4427
    oprot.writeFieldStop()
4428
    oprot.writeStructEnd()
4429
 
4430
  def validate(self):
4431
    return
4432
 
4433
 
4434
  def __repr__(self):
4435
    L = ['%s=%r' % (key, value)
4436
      for key, value in self.__dict__.iteritems()]
4437
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4438
 
4439
  def __eq__(self, other):
4440
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4441
 
4442
  def __ne__(self, other):
4443
    return not (self == other)
4444
 
4445
class updateInventoryHistory_result:
4446
  """
4447
  Attributes:
4448
   - cex
4449
  """
4450
 
4451
  thrift_spec = (
4452
    None, # 0
4453
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4454
  )
4455
 
4456
  def __init__(self, cex=None,):
4457
    self.cex = cex
4458
 
4459
  def read(self, iprot):
4460
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4461
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4462
      return
4463
    iprot.readStructBegin()
4464
    while True:
4465
      (fname, ftype, fid) = iprot.readFieldBegin()
4466
      if ftype == TType.STOP:
4467
        break
4468
      if fid == 1:
4469
        if ftype == TType.STRUCT:
4470
          self.cex = InventoryServiceException()
4471
          self.cex.read(iprot)
4472
        else:
4473
          iprot.skip(ftype)
4474
      else:
4475
        iprot.skip(ftype)
4476
      iprot.readFieldEnd()
4477
    iprot.readStructEnd()
4478
 
4479
  def write(self, oprot):
4480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4482
      return
4483
    oprot.writeStructBegin('updateInventoryHistory_result')
4484
    if self.cex is not None:
4485
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4486
      self.cex.write(oprot)
4487
      oprot.writeFieldEnd()
4488
    oprot.writeFieldStop()
4489
    oprot.writeStructEnd()
4490
 
4491
  def validate(self):
4492
    return
4493
 
4494
 
4495
  def __repr__(self):
4496
    L = ['%s=%r' % (key, value)
4497
      for key, value in self.__dict__.iteritems()]
4498
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4499
 
4500
  def __eq__(self, other):
4501
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4502
 
4503
  def __ne__(self, other):
4504
    return not (self == other)
4505
 
4506
class updateInventory_args:
4507
  """
4508
  Attributes:
4509
   - warehouse_id
4510
   - timestamp
4511
   - availability
4512
  """
4513
 
4514
  thrift_spec = (
4515
    None, # 0
4516
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4517
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4518
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4519
  )
4520
 
4521
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4522
    self.warehouse_id = warehouse_id
4523
    self.timestamp = timestamp
4524
    self.availability = availability
4525
 
4526
  def read(self, iprot):
4527
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4528
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4529
      return
4530
    iprot.readStructBegin()
4531
    while True:
4532
      (fname, ftype, fid) = iprot.readFieldBegin()
4533
      if ftype == TType.STOP:
4534
        break
4535
      if fid == 1:
4536
        if ftype == TType.I64:
4537
          self.warehouse_id = iprot.readI64();
4538
        else:
4539
          iprot.skip(ftype)
4540
      elif fid == 2:
4541
        if ftype == TType.STRING:
4542
          self.timestamp = iprot.readString();
4543
        else:
4544
          iprot.skip(ftype)
4545
      elif fid == 3:
4546
        if ftype == TType.MAP:
4547
          self.availability = {}
8182 amar.kumar 4548
          (_ktype37, _vtype38, _size36 ) = iprot.readMapBegin() 
4549
          for _i40 in xrange(_size36):
4550
            _key41 = iprot.readString();
4551
            _val42 = iprot.readI64();
4552
            self.availability[_key41] = _val42
5944 mandeep.dh 4553
          iprot.readMapEnd()
4554
        else:
4555
          iprot.skip(ftype)
4556
      else:
4557
        iprot.skip(ftype)
4558
      iprot.readFieldEnd()
4559
    iprot.readStructEnd()
4560
 
4561
  def write(self, oprot):
4562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4564
      return
4565
    oprot.writeStructBegin('updateInventory_args')
4566
    if self.warehouse_id is not None:
4567
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4568
      oprot.writeI64(self.warehouse_id)
4569
      oprot.writeFieldEnd()
4570
    if self.timestamp is not None:
4571
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4572
      oprot.writeString(self.timestamp)
4573
      oprot.writeFieldEnd()
4574
    if self.availability is not None:
4575
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4576
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4577
      for kiter43,viter44 in self.availability.items():
4578
        oprot.writeString(kiter43)
4579
        oprot.writeI64(viter44)
5944 mandeep.dh 4580
      oprot.writeMapEnd()
4581
      oprot.writeFieldEnd()
4582
    oprot.writeFieldStop()
4583
    oprot.writeStructEnd()
4584
 
4585
  def validate(self):
4586
    return
4587
 
4588
 
4589
  def __repr__(self):
4590
    L = ['%s=%r' % (key, value)
4591
      for key, value in self.__dict__.iteritems()]
4592
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4593
 
4594
  def __eq__(self, other):
4595
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4596
 
4597
  def __ne__(self, other):
4598
    return not (self == other)
4599
 
4600
class updateInventory_result:
4601
  """
4602
  Attributes:
4603
   - cex
4604
  """
4605
 
4606
  thrift_spec = (
4607
    None, # 0
4608
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4609
  )
4610
 
4611
  def __init__(self, cex=None,):
4612
    self.cex = cex
4613
 
4614
  def read(self, iprot):
4615
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4616
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4617
      return
4618
    iprot.readStructBegin()
4619
    while True:
4620
      (fname, ftype, fid) = iprot.readFieldBegin()
4621
      if ftype == TType.STOP:
4622
        break
4623
      if fid == 1:
4624
        if ftype == TType.STRUCT:
4625
          self.cex = InventoryServiceException()
4626
          self.cex.read(iprot)
4627
        else:
4628
          iprot.skip(ftype)
4629
      else:
4630
        iprot.skip(ftype)
4631
      iprot.readFieldEnd()
4632
    iprot.readStructEnd()
4633
 
4634
  def write(self, oprot):
4635
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4636
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4637
      return
4638
    oprot.writeStructBegin('updateInventory_result')
4639
    if self.cex is not None:
4640
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4641
      self.cex.write(oprot)
4642
      oprot.writeFieldEnd()
4643
    oprot.writeFieldStop()
4644
    oprot.writeStructEnd()
4645
 
4646
  def validate(self):
4647
    return
4648
 
4649
 
4650
  def __repr__(self):
4651
    L = ['%s=%r' % (key, value)
4652
      for key, value in self.__dict__.iteritems()]
4653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4654
 
4655
  def __eq__(self, other):
4656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4657
 
4658
  def __ne__(self, other):
4659
    return not (self == other)
4660
 
4661
class addInventory_args:
4662
  """
4663
  Attributes:
4664
   - itemId
4665
   - warehouseId
4666
   - quantity
4667
  """
4668
 
4669
  thrift_spec = (
4670
    None, # 0
4671
    (1, TType.I64, 'itemId', None, None, ), # 1
4672
    (2, TType.I64, 'warehouseId', None, None, ), # 2
4673
    (3, TType.I64, 'quantity', None, None, ), # 3
4674
  )
4675
 
4676
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
4677
    self.itemId = itemId
4678
    self.warehouseId = warehouseId
4679
    self.quantity = quantity
4680
 
4681
  def read(self, iprot):
4682
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4683
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4684
      return
4685
    iprot.readStructBegin()
4686
    while True:
4687
      (fname, ftype, fid) = iprot.readFieldBegin()
4688
      if ftype == TType.STOP:
4689
        break
4690
      if fid == 1:
4691
        if ftype == TType.I64:
4692
          self.itemId = iprot.readI64();
4693
        else:
4694
          iprot.skip(ftype)
4695
      elif fid == 2:
4696
        if ftype == TType.I64:
4697
          self.warehouseId = iprot.readI64();
4698
        else:
4699
          iprot.skip(ftype)
4700
      elif fid == 3:
4701
        if ftype == TType.I64:
4702
          self.quantity = iprot.readI64();
4703
        else:
4704
          iprot.skip(ftype)
4705
      else:
4706
        iprot.skip(ftype)
4707
      iprot.readFieldEnd()
4708
    iprot.readStructEnd()
4709
 
4710
  def write(self, oprot):
4711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4713
      return
4714
    oprot.writeStructBegin('addInventory_args')
4715
    if self.itemId is not None:
4716
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4717
      oprot.writeI64(self.itemId)
4718
      oprot.writeFieldEnd()
4719
    if self.warehouseId is not None:
4720
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
4721
      oprot.writeI64(self.warehouseId)
4722
      oprot.writeFieldEnd()
4723
    if self.quantity is not None:
4724
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4725
      oprot.writeI64(self.quantity)
4726
      oprot.writeFieldEnd()
4727
    oprot.writeFieldStop()
4728
    oprot.writeStructEnd()
4729
 
4730
  def validate(self):
4731
    return
4732
 
4733
 
4734
  def __repr__(self):
4735
    L = ['%s=%r' % (key, value)
4736
      for key, value in self.__dict__.iteritems()]
4737
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4738
 
4739
  def __eq__(self, other):
4740
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4741
 
4742
  def __ne__(self, other):
4743
    return not (self == other)
4744
 
4745
class addInventory_result:
4746
  """
4747
  Attributes:
4748
   - cex
4749
  """
4750
 
4751
  thrift_spec = (
4752
    None, # 0
4753
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4754
  )
4755
 
4756
  def __init__(self, cex=None,):
4757
    self.cex = cex
4758
 
4759
  def read(self, iprot):
4760
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4761
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4762
      return
4763
    iprot.readStructBegin()
4764
    while True:
4765
      (fname, ftype, fid) = iprot.readFieldBegin()
4766
      if ftype == TType.STOP:
4767
        break
4768
      if fid == 1:
4769
        if ftype == TType.STRUCT:
4770
          self.cex = InventoryServiceException()
4771
          self.cex.read(iprot)
4772
        else:
4773
          iprot.skip(ftype)
4774
      else:
4775
        iprot.skip(ftype)
4776
      iprot.readFieldEnd()
4777
    iprot.readStructEnd()
4778
 
4779
  def write(self, oprot):
4780
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4781
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4782
      return
4783
    oprot.writeStructBegin('addInventory_result')
4784
    if self.cex is not None:
4785
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4786
      self.cex.write(oprot)
4787
      oprot.writeFieldEnd()
4788
    oprot.writeFieldStop()
4789
    oprot.writeStructEnd()
4790
 
4791
  def validate(self):
4792
    return
4793
 
4794
 
4795
  def __repr__(self):
4796
    L = ['%s=%r' % (key, value)
4797
      for key, value in self.__dict__.iteritems()]
4798
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4799
 
4800
  def __eq__(self, other):
4801
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4802
 
4803
  def __ne__(self, other):
4804
    return not (self == other)
4805
 
4806
class retireWarehouse_args:
4807
  """
4808
  Attributes:
4809
   - warehouse_id
4810
  """
4811
 
4812
  thrift_spec = (
4813
    None, # 0
4814
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4815
  )
4816
 
4817
  def __init__(self, warehouse_id=None,):
4818
    self.warehouse_id = warehouse_id
4819
 
4820
  def read(self, iprot):
4821
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4822
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4823
      return
4824
    iprot.readStructBegin()
4825
    while True:
4826
      (fname, ftype, fid) = iprot.readFieldBegin()
4827
      if ftype == TType.STOP:
4828
        break
4829
      if fid == 1:
4830
        if ftype == TType.I64:
4831
          self.warehouse_id = iprot.readI64();
4832
        else:
4833
          iprot.skip(ftype)
4834
      else:
4835
        iprot.skip(ftype)
4836
      iprot.readFieldEnd()
4837
    iprot.readStructEnd()
4838
 
4839
  def write(self, oprot):
4840
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4841
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4842
      return
4843
    oprot.writeStructBegin('retireWarehouse_args')
4844
    if self.warehouse_id is not None:
4845
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4846
      oprot.writeI64(self.warehouse_id)
4847
      oprot.writeFieldEnd()
4848
    oprot.writeFieldStop()
4849
    oprot.writeStructEnd()
4850
 
4851
  def validate(self):
4852
    return
4853
 
4854
 
4855
  def __repr__(self):
4856
    L = ['%s=%r' % (key, value)
4857
      for key, value in self.__dict__.iteritems()]
4858
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4859
 
4860
  def __eq__(self, other):
4861
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4862
 
4863
  def __ne__(self, other):
4864
    return not (self == other)
4865
 
4866
class retireWarehouse_result:
4867
  """
4868
  Attributes:
4869
   - cex
4870
  """
4871
 
4872
  thrift_spec = (
4873
    None, # 0
4874
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4875
  )
4876
 
4877
  def __init__(self, cex=None,):
4878
    self.cex = cex
4879
 
4880
  def read(self, iprot):
4881
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4882
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4883
      return
4884
    iprot.readStructBegin()
4885
    while True:
4886
      (fname, ftype, fid) = iprot.readFieldBegin()
4887
      if ftype == TType.STOP:
4888
        break
4889
      if fid == 1:
4890
        if ftype == TType.STRUCT:
4891
          self.cex = InventoryServiceException()
4892
          self.cex.read(iprot)
4893
        else:
4894
          iprot.skip(ftype)
4895
      else:
4896
        iprot.skip(ftype)
4897
      iprot.readFieldEnd()
4898
    iprot.readStructEnd()
4899
 
4900
  def write(self, oprot):
4901
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4902
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4903
      return
4904
    oprot.writeStructBegin('retireWarehouse_result')
4905
    if self.cex is not None:
4906
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4907
      self.cex.write(oprot)
4908
      oprot.writeFieldEnd()
4909
    oprot.writeFieldStop()
4910
    oprot.writeStructEnd()
4911
 
4912
  def validate(self):
4913
    return
4914
 
4915
 
4916
  def __repr__(self):
4917
    L = ['%s=%r' % (key, value)
4918
      for key, value in self.__dict__.iteritems()]
4919
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4920
 
4921
  def __eq__(self, other):
4922
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4923
 
4924
  def __ne__(self, other):
4925
    return not (self == other)
4926
 
4927
class getItemInventoryByItemId_args:
4928
  """
4929
  Attributes:
4930
   - item_id
4931
  """
4932
 
4933
  thrift_spec = (
4934
    None, # 0
4935
    (1, TType.I64, 'item_id', None, None, ), # 1
4936
  )
4937
 
4938
  def __init__(self, item_id=None,):
4939
    self.item_id = item_id
4940
 
4941
  def read(self, iprot):
4942
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4943
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4944
      return
4945
    iprot.readStructBegin()
4946
    while True:
4947
      (fname, ftype, fid) = iprot.readFieldBegin()
4948
      if ftype == TType.STOP:
4949
        break
4950
      if fid == 1:
4951
        if ftype == TType.I64:
4952
          self.item_id = iprot.readI64();
4953
        else:
4954
          iprot.skip(ftype)
4955
      else:
4956
        iprot.skip(ftype)
4957
      iprot.readFieldEnd()
4958
    iprot.readStructEnd()
4959
 
4960
  def write(self, oprot):
4961
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4962
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4963
      return
4964
    oprot.writeStructBegin('getItemInventoryByItemId_args')
4965
    if self.item_id is not None:
4966
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4967
      oprot.writeI64(self.item_id)
4968
      oprot.writeFieldEnd()
4969
    oprot.writeFieldStop()
4970
    oprot.writeStructEnd()
4971
 
4972
  def validate(self):
4973
    return
4974
 
4975
 
4976
  def __repr__(self):
4977
    L = ['%s=%r' % (key, value)
4978
      for key, value in self.__dict__.iteritems()]
4979
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4980
 
4981
  def __eq__(self, other):
4982
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4983
 
4984
  def __ne__(self, other):
4985
    return not (self == other)
4986
 
4987
class getItemInventoryByItemId_result:
4988
  """
4989
  Attributes:
4990
   - success
4991
   - cex
4992
  """
4993
 
4994
  thrift_spec = (
4995
    (0, TType.STRUCT, 'success', (ItemInventory, ItemInventory.thrift_spec), None, ), # 0
4996
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4997
  )
4998
 
4999
  def __init__(self, success=None, cex=None,):
5000
    self.success = success
5001
    self.cex = cex
5002
 
5003
  def read(self, iprot):
5004
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5005
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5006
      return
5007
    iprot.readStructBegin()
5008
    while True:
5009
      (fname, ftype, fid) = iprot.readFieldBegin()
5010
      if ftype == TType.STOP:
5011
        break
5012
      if fid == 0:
5013
        if ftype == TType.STRUCT:
5014
          self.success = ItemInventory()
5015
          self.success.read(iprot)
5016
        else:
5017
          iprot.skip(ftype)
5018
      elif fid == 1:
5019
        if ftype == TType.STRUCT:
5020
          self.cex = InventoryServiceException()
5021
          self.cex.read(iprot)
5022
        else:
5023
          iprot.skip(ftype)
5024
      else:
5025
        iprot.skip(ftype)
5026
      iprot.readFieldEnd()
5027
    iprot.readStructEnd()
5028
 
5029
  def write(self, oprot):
5030
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5031
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5032
      return
5033
    oprot.writeStructBegin('getItemInventoryByItemId_result')
5034
    if self.success is not None:
5035
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5036
      self.success.write(oprot)
5037
      oprot.writeFieldEnd()
5038
    if self.cex is not None:
5039
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5040
      self.cex.write(oprot)
5041
      oprot.writeFieldEnd()
5042
    oprot.writeFieldStop()
5043
    oprot.writeStructEnd()
5044
 
5045
  def validate(self):
5046
    return
5047
 
5048
 
5049
  def __repr__(self):
5050
    L = ['%s=%r' % (key, value)
5051
      for key, value in self.__dict__.iteritems()]
5052
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5053
 
5054
  def __eq__(self, other):
5055
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5056
 
5057
  def __ne__(self, other):
5058
    return not (self == other)
5059
 
5060
class getItemAvailibilityAtWarehouse_args:
5061
  """
5062
  Attributes:
5063
   - warehouse_id
5064
   - item_id
5065
  """
5066
 
5067
  thrift_spec = (
5068
    None, # 0
5069
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5070
    (2, TType.I64, 'item_id', None, None, ), # 2
5071
  )
5072
 
5073
  def __init__(self, warehouse_id=None, item_id=None,):
5074
    self.warehouse_id = warehouse_id
5075
    self.item_id = item_id
5076
 
5077
  def read(self, iprot):
5078
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5079
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5080
      return
5081
    iprot.readStructBegin()
5082
    while True:
5083
      (fname, ftype, fid) = iprot.readFieldBegin()
5084
      if ftype == TType.STOP:
5085
        break
5086
      if fid == 1:
5087
        if ftype == TType.I64:
5088
          self.warehouse_id = iprot.readI64();
5089
        else:
5090
          iprot.skip(ftype)
5091
      elif fid == 2:
5092
        if ftype == TType.I64:
5093
          self.item_id = iprot.readI64();
5094
        else:
5095
          iprot.skip(ftype)
5096
      else:
5097
        iprot.skip(ftype)
5098
      iprot.readFieldEnd()
5099
    iprot.readStructEnd()
5100
 
5101
  def write(self, oprot):
5102
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5103
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5104
      return
5105
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_args')
5106
    if self.warehouse_id is not None:
5107
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5108
      oprot.writeI64(self.warehouse_id)
5109
      oprot.writeFieldEnd()
5110
    if self.item_id is not None:
5111
      oprot.writeFieldBegin('item_id', TType.I64, 2)
5112
      oprot.writeI64(self.item_id)
5113
      oprot.writeFieldEnd()
5114
    oprot.writeFieldStop()
5115
    oprot.writeStructEnd()
5116
 
5117
  def validate(self):
5118
    return
5119
 
5120
 
5121
  def __repr__(self):
5122
    L = ['%s=%r' % (key, value)
5123
      for key, value in self.__dict__.iteritems()]
5124
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5125
 
5126
  def __eq__(self, other):
5127
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5128
 
5129
  def __ne__(self, other):
5130
    return not (self == other)
5131
 
5132
class getItemAvailibilityAtWarehouse_result:
5133
  """
5134
  Attributes:
5135
   - success
5136
   - cex
5137
  """
5138
 
5139
  thrift_spec = (
5140
    (0, TType.I64, 'success', None, None, ), # 0
5141
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5142
  )
5143
 
5144
  def __init__(self, success=None, cex=None,):
5145
    self.success = success
5146
    self.cex = cex
5147
 
5148
  def read(self, iprot):
5149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5151
      return
5152
    iprot.readStructBegin()
5153
    while True:
5154
      (fname, ftype, fid) = iprot.readFieldBegin()
5155
      if ftype == TType.STOP:
5156
        break
5157
      if fid == 0:
5158
        if ftype == TType.I64:
5159
          self.success = iprot.readI64();
5160
        else:
5161
          iprot.skip(ftype)
5162
      elif fid == 1:
5163
        if ftype == TType.STRUCT:
5164
          self.cex = InventoryServiceException()
5165
          self.cex.read(iprot)
5166
        else:
5167
          iprot.skip(ftype)
5168
      else:
5169
        iprot.skip(ftype)
5170
      iprot.readFieldEnd()
5171
    iprot.readStructEnd()
5172
 
5173
  def write(self, oprot):
5174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5176
      return
5177
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_result')
5178
    if self.success is not None:
5179
      oprot.writeFieldBegin('success', TType.I64, 0)
5180
      oprot.writeI64(self.success)
5181
      oprot.writeFieldEnd()
5182
    if self.cex is not None:
5183
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5184
      self.cex.write(oprot)
5185
      oprot.writeFieldEnd()
5186
    oprot.writeFieldStop()
5187
    oprot.writeStructEnd()
5188
 
5189
  def validate(self):
5190
    return
5191
 
5192
 
5193
  def __repr__(self):
5194
    L = ['%s=%r' % (key, value)
5195
      for key, value in self.__dict__.iteritems()]
5196
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5197
 
5198
  def __eq__(self, other):
5199
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5200
 
5201
  def __ne__(self, other):
5202
    return not (self == other)
5203
 
5204
class getItemAvailabilityAtLocation_args:
5205
  """
5206
  Attributes:
5207
   - itemId
5978 rajveer 5208
   - sourceId
5944 mandeep.dh 5209
  """
5210
 
5211
  thrift_spec = (
5212
    None, # 0
5213
    (1, TType.I64, 'itemId', None, None, ), # 1
5978 rajveer 5214
    (2, TType.I64, 'sourceId', None, None, ), # 2
5944 mandeep.dh 5215
  )
5216
 
5978 rajveer 5217
  def __init__(self, itemId=None, sourceId=None,):
5944 mandeep.dh 5218
    self.itemId = itemId
5978 rajveer 5219
    self.sourceId = sourceId
5944 mandeep.dh 5220
 
5221
  def read(self, iprot):
5222
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5223
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5224
      return
5225
    iprot.readStructBegin()
5226
    while True:
5227
      (fname, ftype, fid) = iprot.readFieldBegin()
5228
      if ftype == TType.STOP:
5229
        break
5230
      if fid == 1:
5231
        if ftype == TType.I64:
5232
          self.itemId = iprot.readI64();
5233
        else:
5234
          iprot.skip(ftype)
5978 rajveer 5235
      elif fid == 2:
5236
        if ftype == TType.I64:
5237
          self.sourceId = iprot.readI64();
5238
        else:
5239
          iprot.skip(ftype)
5944 mandeep.dh 5240
      else:
5241
        iprot.skip(ftype)
5242
      iprot.readFieldEnd()
5243
    iprot.readStructEnd()
5244
 
5245
  def write(self, oprot):
5246
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5247
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5248
      return
5249
    oprot.writeStructBegin('getItemAvailabilityAtLocation_args')
5250
    if self.itemId is not None:
5251
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5252
      oprot.writeI64(self.itemId)
5253
      oprot.writeFieldEnd()
5978 rajveer 5254
    if self.sourceId is not None:
5255
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
5256
      oprot.writeI64(self.sourceId)
5257
      oprot.writeFieldEnd()
5944 mandeep.dh 5258
    oprot.writeFieldStop()
5259
    oprot.writeStructEnd()
5260
 
5261
  def validate(self):
5262
    return
5263
 
5264
 
5265
  def __repr__(self):
5266
    L = ['%s=%r' % (key, value)
5267
      for key, value in self.__dict__.iteritems()]
5268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5269
 
5270
  def __eq__(self, other):
5271
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5272
 
5273
  def __ne__(self, other):
5274
    return not (self == other)
5275
 
5276
class getItemAvailabilityAtLocation_result:
5277
  """
5278
  Attributes:
5279
   - success
5280
   - isex
5281
  """
5282
 
5283
  thrift_spec = (
5284
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5285
    (1, TType.STRUCT, 'isex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5286
  )
5287
 
5288
  def __init__(self, success=None, isex=None,):
5289
    self.success = success
5290
    self.isex = isex
5291
 
5292
  def read(self, iprot):
5293
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5294
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5295
      return
5296
    iprot.readStructBegin()
5297
    while True:
5298
      (fname, ftype, fid) = iprot.readFieldBegin()
5299
      if ftype == TType.STOP:
5300
        break
5301
      if fid == 0:
5302
        if ftype == TType.LIST:
5303
          self.success = []
8182 amar.kumar 5304
          (_etype48, _size45) = iprot.readListBegin()
5305
          for _i49 in xrange(_size45):
5306
            _elem50 = iprot.readI64();
5307
            self.success.append(_elem50)
5944 mandeep.dh 5308
          iprot.readListEnd()
5309
        else:
5310
          iprot.skip(ftype)
5311
      elif fid == 1:
5312
        if ftype == TType.STRUCT:
5313
          self.isex = InventoryServiceException()
5314
          self.isex.read(iprot)
5315
        else:
5316
          iprot.skip(ftype)
5317
      else:
5318
        iprot.skip(ftype)
5319
      iprot.readFieldEnd()
5320
    iprot.readStructEnd()
5321
 
5322
  def write(self, oprot):
5323
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5324
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5325
      return
5326
    oprot.writeStructBegin('getItemAvailabilityAtLocation_result')
5327
    if self.success is not None:
5328
      oprot.writeFieldBegin('success', TType.LIST, 0)
5329
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5330
      for iter51 in self.success:
5331
        oprot.writeI64(iter51)
5944 mandeep.dh 5332
      oprot.writeListEnd()
5333
      oprot.writeFieldEnd()
5334
    if self.isex is not None:
5335
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
5336
      self.isex.write(oprot)
5337
      oprot.writeFieldEnd()
5338
    oprot.writeFieldStop()
5339
    oprot.writeStructEnd()
5340
 
5341
  def validate(self):
5342
    return
5343
 
5344
 
5345
  def __repr__(self):
5346
    L = ['%s=%r' % (key, value)
5347
      for key, value in self.__dict__.iteritems()]
5348
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5349
 
5350
  def __eq__(self, other):
5351
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5352
 
5353
  def __ne__(self, other):
5354
    return not (self == other)
5355
 
5356
class getAllWarehouses_args:
5357
  """
5358
  Attributes:
5359
   - isActive
5360
  """
5361
 
5362
  thrift_spec = (
5363
    None, # 0
5364
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5365
  )
5366
 
5367
  def __init__(self, isActive=None,):
5368
    self.isActive = isActive
5369
 
5370
  def read(self, iprot):
5371
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5372
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5373
      return
5374
    iprot.readStructBegin()
5375
    while True:
5376
      (fname, ftype, fid) = iprot.readFieldBegin()
5377
      if ftype == TType.STOP:
5378
        break
5379
      if fid == 1:
5380
        if ftype == TType.BOOL:
5381
          self.isActive = iprot.readBool();
5382
        else:
5383
          iprot.skip(ftype)
5384
      else:
5385
        iprot.skip(ftype)
5386
      iprot.readFieldEnd()
5387
    iprot.readStructEnd()
5388
 
5389
  def write(self, oprot):
5390
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5391
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5392
      return
5393
    oprot.writeStructBegin('getAllWarehouses_args')
5394
    if self.isActive is not None:
5395
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5396
      oprot.writeBool(self.isActive)
5397
      oprot.writeFieldEnd()
5398
    oprot.writeFieldStop()
5399
    oprot.writeStructEnd()
5400
 
5401
  def validate(self):
5402
    return
5403
 
5404
 
5405
  def __repr__(self):
5406
    L = ['%s=%r' % (key, value)
5407
      for key, value in self.__dict__.iteritems()]
5408
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5409
 
5410
  def __eq__(self, other):
5411
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5412
 
5413
  def __ne__(self, other):
5414
    return not (self == other)
5415
 
5416
class getAllWarehouses_result:
5417
  """
5418
  Attributes:
5419
   - success
5420
   - cex
5421
  """
5422
 
5423
  thrift_spec = (
5424
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
5425
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5426
  )
5427
 
5428
  def __init__(self, success=None, cex=None,):
5429
    self.success = success
5430
    self.cex = cex
5431
 
5432
  def read(self, iprot):
5433
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5434
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5435
      return
5436
    iprot.readStructBegin()
5437
    while True:
5438
      (fname, ftype, fid) = iprot.readFieldBegin()
5439
      if ftype == TType.STOP:
5440
        break
5441
      if fid == 0:
5442
        if ftype == TType.LIST:
5443
          self.success = []
8182 amar.kumar 5444
          (_etype55, _size52) = iprot.readListBegin()
5445
          for _i56 in xrange(_size52):
5446
            _elem57 = Warehouse()
5447
            _elem57.read(iprot)
5448
            self.success.append(_elem57)
5944 mandeep.dh 5449
          iprot.readListEnd()
5450
        else:
5451
          iprot.skip(ftype)
5452
      elif fid == 1:
5453
        if ftype == TType.STRUCT:
5454
          self.cex = InventoryServiceException()
5455
          self.cex.read(iprot)
5456
        else:
5457
          iprot.skip(ftype)
5458
      else:
5459
        iprot.skip(ftype)
5460
      iprot.readFieldEnd()
5461
    iprot.readStructEnd()
5462
 
5463
  def write(self, oprot):
5464
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5465
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5466
      return
5467
    oprot.writeStructBegin('getAllWarehouses_result')
5468
    if self.success is not None:
5469
      oprot.writeFieldBegin('success', TType.LIST, 0)
5470
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 5471
      for iter58 in self.success:
5472
        iter58.write(oprot)
5944 mandeep.dh 5473
      oprot.writeListEnd()
5474
      oprot.writeFieldEnd()
5475
    if self.cex is not None:
5476
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5477
      self.cex.write(oprot)
5478
      oprot.writeFieldEnd()
5479
    oprot.writeFieldStop()
5480
    oprot.writeStructEnd()
5481
 
5482
  def validate(self):
5483
    return
5484
 
5485
 
5486
  def __repr__(self):
5487
    L = ['%s=%r' % (key, value)
5488
      for key, value in self.__dict__.iteritems()]
5489
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5490
 
5491
  def __eq__(self, other):
5492
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5493
 
5494
  def __ne__(self, other):
5495
    return not (self == other)
5496
 
5497
class getWarehouse_args:
5498
  """
5499
  Attributes:
5500
   - warehouse_id
5501
  """
5502
 
5503
  thrift_spec = (
5504
    None, # 0
5505
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5506
  )
5507
 
5508
  def __init__(self, warehouse_id=None,):
5509
    self.warehouse_id = warehouse_id
5510
 
5511
  def read(self, iprot):
5512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5514
      return
5515
    iprot.readStructBegin()
5516
    while True:
5517
      (fname, ftype, fid) = iprot.readFieldBegin()
5518
      if ftype == TType.STOP:
5519
        break
5520
      if fid == 1:
5521
        if ftype == TType.I64:
5522
          self.warehouse_id = iprot.readI64();
5523
        else:
5524
          iprot.skip(ftype)
5525
      else:
5526
        iprot.skip(ftype)
5527
      iprot.readFieldEnd()
5528
    iprot.readStructEnd()
5529
 
5530
  def write(self, oprot):
5531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5533
      return
5534
    oprot.writeStructBegin('getWarehouse_args')
5535
    if self.warehouse_id is not None:
5536
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5537
      oprot.writeI64(self.warehouse_id)
5538
      oprot.writeFieldEnd()
5539
    oprot.writeFieldStop()
5540
    oprot.writeStructEnd()
5541
 
5542
  def validate(self):
5543
    return
5544
 
5545
 
5546
  def __repr__(self):
5547
    L = ['%s=%r' % (key, value)
5548
      for key, value in self.__dict__.iteritems()]
5549
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5550
 
5551
  def __eq__(self, other):
5552
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5553
 
5554
  def __ne__(self, other):
5555
    return not (self == other)
5556
 
5557
class getWarehouse_result:
5558
  """
5559
  Attributes:
5560
   - success
5561
   - cex
5562
  """
5563
 
5564
  thrift_spec = (
5565
    (0, TType.STRUCT, 'success', (Warehouse, Warehouse.thrift_spec), None, ), # 0
5566
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5567
  )
5568
 
5569
  def __init__(self, success=None, cex=None,):
5570
    self.success = success
5571
    self.cex = cex
5572
 
5573
  def read(self, iprot):
5574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5576
      return
5577
    iprot.readStructBegin()
5578
    while True:
5579
      (fname, ftype, fid) = iprot.readFieldBegin()
5580
      if ftype == TType.STOP:
5581
        break
5582
      if fid == 0:
5583
        if ftype == TType.STRUCT:
5584
          self.success = Warehouse()
5585
          self.success.read(iprot)
5586
        else:
5587
          iprot.skip(ftype)
5588
      elif fid == 1:
5589
        if ftype == TType.STRUCT:
5590
          self.cex = InventoryServiceException()
5591
          self.cex.read(iprot)
5592
        else:
5593
          iprot.skip(ftype)
5594
      else:
5595
        iprot.skip(ftype)
5596
      iprot.readFieldEnd()
5597
    iprot.readStructEnd()
5598
 
5599
  def write(self, oprot):
5600
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5601
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5602
      return
5603
    oprot.writeStructBegin('getWarehouse_result')
5604
    if self.success is not None:
5605
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5606
      self.success.write(oprot)
5607
      oprot.writeFieldEnd()
5608
    if self.cex is not None:
5609
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5610
      self.cex.write(oprot)
5611
      oprot.writeFieldEnd()
5612
    oprot.writeFieldStop()
5613
    oprot.writeStructEnd()
5614
 
5615
  def validate(self):
5616
    return
5617
 
5618
 
5619
  def __repr__(self):
5620
    L = ['%s=%r' % (key, value)
5621
      for key, value in self.__dict__.iteritems()]
5622
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5623
 
5624
  def __eq__(self, other):
5625
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5626
 
5627
  def __ne__(self, other):
5628
    return not (self == other)
5629
 
5630
class getAllItemsForWarehouse_args:
5631
  """
5632
  Attributes:
5633
   - warehouse_id
5634
  """
5635
 
5636
  thrift_spec = (
5637
    None, # 0
5638
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5639
  )
5640
 
5641
  def __init__(self, warehouse_id=None,):
5642
    self.warehouse_id = warehouse_id
5643
 
5644
  def read(self, iprot):
5645
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5646
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5647
      return
5648
    iprot.readStructBegin()
5649
    while True:
5650
      (fname, ftype, fid) = iprot.readFieldBegin()
5651
      if ftype == TType.STOP:
5652
        break
5653
      if fid == 1:
5654
        if ftype == TType.I64:
5655
          self.warehouse_id = iprot.readI64();
5656
        else:
5657
          iprot.skip(ftype)
5658
      else:
5659
        iprot.skip(ftype)
5660
      iprot.readFieldEnd()
5661
    iprot.readStructEnd()
5662
 
5663
  def write(self, oprot):
5664
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5665
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5666
      return
5667
    oprot.writeStructBegin('getAllItemsForWarehouse_args')
5668
    if self.warehouse_id is not None:
5669
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5670
      oprot.writeI64(self.warehouse_id)
5671
      oprot.writeFieldEnd()
5672
    oprot.writeFieldStop()
5673
    oprot.writeStructEnd()
5674
 
5675
  def validate(self):
5676
    return
5677
 
5678
 
5679
  def __repr__(self):
5680
    L = ['%s=%r' % (key, value)
5681
      for key, value in self.__dict__.iteritems()]
5682
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5683
 
5684
  def __eq__(self, other):
5685
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5686
 
5687
  def __ne__(self, other):
5688
    return not (self == other)
5689
 
5690
class getAllItemsForWarehouse_result:
5691
  """
5692
  Attributes:
5693
   - success
5694
   - cex
5695
  """
5696
 
5697
  thrift_spec = (
5698
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5699
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5700
  )
5701
 
5702
  def __init__(self, success=None, cex=None,):
5703
    self.success = success
5704
    self.cex = cex
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 == 0:
5716
        if ftype == TType.LIST:
5717
          self.success = []
8182 amar.kumar 5718
          (_etype62, _size59) = iprot.readListBegin()
5719
          for _i63 in xrange(_size59):
5720
            _elem64 = iprot.readI64();
5721
            self.success.append(_elem64)
5944 mandeep.dh 5722
          iprot.readListEnd()
5723
        else:
5724
          iprot.skip(ftype)
5725
      elif fid == 1:
5726
        if ftype == TType.STRUCT:
5727
          self.cex = InventoryServiceException()
5728
          self.cex.read(iprot)
5729
        else:
5730
          iprot.skip(ftype)
5731
      else:
5732
        iprot.skip(ftype)
5733
      iprot.readFieldEnd()
5734
    iprot.readStructEnd()
5735
 
5736
  def write(self, oprot):
5737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5739
      return
5740
    oprot.writeStructBegin('getAllItemsForWarehouse_result')
5741
    if self.success is not None:
5742
      oprot.writeFieldBegin('success', TType.LIST, 0)
5743
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5744
      for iter65 in self.success:
5745
        oprot.writeI64(iter65)
5944 mandeep.dh 5746
      oprot.writeListEnd()
5747
      oprot.writeFieldEnd()
5748
    if self.cex is not None:
5749
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5750
      self.cex.write(oprot)
5751
      oprot.writeFieldEnd()
5752
    oprot.writeFieldStop()
5753
    oprot.writeStructEnd()
5754
 
5755
  def validate(self):
5756
    return
5757
 
5758
 
5759
  def __repr__(self):
5760
    L = ['%s=%r' % (key, value)
5761
      for key, value in self.__dict__.iteritems()]
5762
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5763
 
5764
  def __eq__(self, other):
5765
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5766
 
5767
  def __ne__(self, other):
5768
    return not (self == other)
5769
 
5966 rajveer 5770
class isOrderBillable_args:
5771
  """
5772
  Attributes:
5773
   - itemId
5774
   - warehouseId
5775
   - sourceId
5776
   - orderId
5777
  """
5778
 
5779
  thrift_spec = (
5780
    None, # 0
5781
    (1, TType.I64, 'itemId', None, None, ), # 1
5782
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5783
    (3, TType.I64, 'sourceId', None, None, ), # 3
5784
    (4, TType.I64, 'orderId', None, None, ), # 4
5785
  )
5786
 
5787
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None,):
5788
    self.itemId = itemId
5789
    self.warehouseId = warehouseId
5790
    self.sourceId = sourceId
5791
    self.orderId = orderId
5792
 
5793
  def read(self, iprot):
5794
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5795
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5796
      return
5797
    iprot.readStructBegin()
5798
    while True:
5799
      (fname, ftype, fid) = iprot.readFieldBegin()
5800
      if ftype == TType.STOP:
5801
        break
5802
      if fid == 1:
5803
        if ftype == TType.I64:
5804
          self.itemId = iprot.readI64();
5805
        else:
5806
          iprot.skip(ftype)
5807
      elif fid == 2:
5808
        if ftype == TType.I64:
5809
          self.warehouseId = iprot.readI64();
5810
        else:
5811
          iprot.skip(ftype)
5812
      elif fid == 3:
5813
        if ftype == TType.I64:
5814
          self.sourceId = iprot.readI64();
5815
        else:
5816
          iprot.skip(ftype)
5817
      elif fid == 4:
5818
        if ftype == TType.I64:
5819
          self.orderId = iprot.readI64();
5820
        else:
5821
          iprot.skip(ftype)
5822
      else:
5823
        iprot.skip(ftype)
5824
      iprot.readFieldEnd()
5825
    iprot.readStructEnd()
5826
 
5827
  def write(self, oprot):
5828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5830
      return
5831
    oprot.writeStructBegin('isOrderBillable_args')
5832
    if self.itemId is not None:
5833
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5834
      oprot.writeI64(self.itemId)
5835
      oprot.writeFieldEnd()
5836
    if self.warehouseId is not None:
5837
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5838
      oprot.writeI64(self.warehouseId)
5839
      oprot.writeFieldEnd()
5840
    if self.sourceId is not None:
5841
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
5842
      oprot.writeI64(self.sourceId)
5843
      oprot.writeFieldEnd()
5844
    if self.orderId is not None:
5845
      oprot.writeFieldBegin('orderId', TType.I64, 4)
5846
      oprot.writeI64(self.orderId)
5847
      oprot.writeFieldEnd()
5848
    oprot.writeFieldStop()
5849
    oprot.writeStructEnd()
5850
 
5851
  def validate(self):
5852
    return
5853
 
5854
 
5855
  def __repr__(self):
5856
    L = ['%s=%r' % (key, value)
5857
      for key, value in self.__dict__.iteritems()]
5858
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5859
 
5860
  def __eq__(self, other):
5861
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5862
 
5863
  def __ne__(self, other):
5864
    return not (self == other)
5865
 
5866
class isOrderBillable_result:
5867
  """
5868
  Attributes:
5869
   - success
5870
  """
5871
 
5872
  thrift_spec = (
5873
    (0, TType.BOOL, 'success', None, None, ), # 0
5874
  )
5875
 
5876
  def __init__(self, success=None,):
5877
    self.success = success
5878
 
5879
  def read(self, iprot):
5880
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5881
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5882
      return
5883
    iprot.readStructBegin()
5884
    while True:
5885
      (fname, ftype, fid) = iprot.readFieldBegin()
5886
      if ftype == TType.STOP:
5887
        break
5888
      if fid == 0:
5889
        if ftype == TType.BOOL:
5890
          self.success = iprot.readBool();
5891
        else:
5892
          iprot.skip(ftype)
5893
      else:
5894
        iprot.skip(ftype)
5895
      iprot.readFieldEnd()
5896
    iprot.readStructEnd()
5897
 
5898
  def write(self, oprot):
5899
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5900
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5901
      return
5902
    oprot.writeStructBegin('isOrderBillable_result')
5903
    if self.success is not None:
5904
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5905
      oprot.writeBool(self.success)
5906
      oprot.writeFieldEnd()
5907
    oprot.writeFieldStop()
5908
    oprot.writeStructEnd()
5909
 
5910
  def validate(self):
5911
    return
5912
 
5913
 
5914
  def __repr__(self):
5915
    L = ['%s=%r' % (key, value)
5916
      for key, value in self.__dict__.iteritems()]
5917
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5918
 
5919
  def __eq__(self, other):
5920
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5921
 
5922
  def __ne__(self, other):
5923
    return not (self == other)
5924
 
5944 mandeep.dh 5925
class reserveItemInWarehouse_args:
5926
  """
5927
  Attributes:
5928
   - itemId
5929
   - warehouseId
5966 rajveer 5930
   - sourceId
5931
   - orderId
5932
   - createdTimestamp
5933
   - promisedShippingTimestamp
5944 mandeep.dh 5934
   - quantity
5935
  """
5936
 
5937
  thrift_spec = (
5938
    None, # 0
5939
    (1, TType.I64, 'itemId', None, None, ), # 1
5940
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 5941
    (3, TType.I64, 'sourceId', None, None, ), # 3
5942
    (4, TType.I64, 'orderId', None, None, ), # 4
5943
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
5944
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
5945
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
5944 mandeep.dh 5946
  )
5947
 
5966 rajveer 5948
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
5944 mandeep.dh 5949
    self.itemId = itemId
5950
    self.warehouseId = warehouseId
5966 rajveer 5951
    self.sourceId = sourceId
5952
    self.orderId = orderId
5953
    self.createdTimestamp = createdTimestamp
5954
    self.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 5955
    self.quantity = quantity
5956
 
5957
  def read(self, iprot):
5958
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5959
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5960
      return
5961
    iprot.readStructBegin()
5962
    while True:
5963
      (fname, ftype, fid) = iprot.readFieldBegin()
5964
      if ftype == TType.STOP:
5965
        break
5966
      if fid == 1:
5967
        if ftype == TType.I64:
5968
          self.itemId = iprot.readI64();
5969
        else:
5970
          iprot.skip(ftype)
5971
      elif fid == 2:
5972
        if ftype == TType.I64:
5973
          self.warehouseId = iprot.readI64();
5974
        else:
5975
          iprot.skip(ftype)
5976
      elif fid == 3:
5966 rajveer 5977
        if ftype == TType.I64:
5978
          self.sourceId = iprot.readI64();
5979
        else:
5980
          iprot.skip(ftype)
5981
      elif fid == 4:
5982
        if ftype == TType.I64:
5983
          self.orderId = iprot.readI64();
5984
        else:
5985
          iprot.skip(ftype)
5986
      elif fid == 5:
5987
        if ftype == TType.I64:
5988
          self.createdTimestamp = iprot.readI64();
5989
        else:
5990
          iprot.skip(ftype)
5991
      elif fid == 6:
5992
        if ftype == TType.I64:
5993
          self.promisedShippingTimestamp = iprot.readI64();
5994
        else:
5995
          iprot.skip(ftype)
5996
      elif fid == 7:
5944 mandeep.dh 5997
        if ftype == TType.DOUBLE:
5998
          self.quantity = iprot.readDouble();
5999
        else:
6000
          iprot.skip(ftype)
6001
      else:
6002
        iprot.skip(ftype)
6003
      iprot.readFieldEnd()
6004
    iprot.readStructEnd()
6005
 
6006
  def write(self, oprot):
6007
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6008
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6009
      return
6010
    oprot.writeStructBegin('reserveItemInWarehouse_args')
6011
    if self.itemId is not None:
6012
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6013
      oprot.writeI64(self.itemId)
6014
      oprot.writeFieldEnd()
6015
    if self.warehouseId is not None:
6016
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6017
      oprot.writeI64(self.warehouseId)
6018
      oprot.writeFieldEnd()
5966 rajveer 6019
    if self.sourceId is not None:
6020
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6021
      oprot.writeI64(self.sourceId)
6022
      oprot.writeFieldEnd()
6023
    if self.orderId is not None:
6024
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6025
      oprot.writeI64(self.orderId)
6026
      oprot.writeFieldEnd()
6027
    if self.createdTimestamp is not None:
6028
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
6029
      oprot.writeI64(self.createdTimestamp)
6030
      oprot.writeFieldEnd()
6031
    if self.promisedShippingTimestamp is not None:
6032
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
6033
      oprot.writeI64(self.promisedShippingTimestamp)
6034
      oprot.writeFieldEnd()
5944 mandeep.dh 6035
    if self.quantity is not None:
5966 rajveer 6036
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
5944 mandeep.dh 6037
      oprot.writeDouble(self.quantity)
6038
      oprot.writeFieldEnd()
6039
    oprot.writeFieldStop()
6040
    oprot.writeStructEnd()
6041
 
6042
  def validate(self):
6043
    return
6044
 
6045
 
6046
  def __repr__(self):
6047
    L = ['%s=%r' % (key, value)
6048
      for key, value in self.__dict__.iteritems()]
6049
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6050
 
6051
  def __eq__(self, other):
6052
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6053
 
6054
  def __ne__(self, other):
6055
    return not (self == other)
6056
 
6057
class reserveItemInWarehouse_result:
6058
  """
6059
  Attributes:
6060
   - success
6061
   - cex
6062
  """
6063
 
6064
  thrift_spec = (
6065
    (0, TType.BOOL, 'success', None, None, ), # 0
6066
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6067
  )
6068
 
6069
  def __init__(self, success=None, cex=None,):
6070
    self.success = success
6071
    self.cex = cex
6072
 
6073
  def read(self, iprot):
6074
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6075
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6076
      return
6077
    iprot.readStructBegin()
6078
    while True:
6079
      (fname, ftype, fid) = iprot.readFieldBegin()
6080
      if ftype == TType.STOP:
6081
        break
6082
      if fid == 0:
6083
        if ftype == TType.BOOL:
6084
          self.success = iprot.readBool();
6085
        else:
6086
          iprot.skip(ftype)
6087
      elif fid == 1:
6088
        if ftype == TType.STRUCT:
6089
          self.cex = InventoryServiceException()
6090
          self.cex.read(iprot)
6091
        else:
6092
          iprot.skip(ftype)
6093
      else:
6094
        iprot.skip(ftype)
6095
      iprot.readFieldEnd()
6096
    iprot.readStructEnd()
6097
 
6098
  def write(self, oprot):
6099
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6100
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6101
      return
6102
    oprot.writeStructBegin('reserveItemInWarehouse_result')
6103
    if self.success is not None:
6104
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6105
      oprot.writeBool(self.success)
6106
      oprot.writeFieldEnd()
6107
    if self.cex is not None:
6108
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6109
      self.cex.write(oprot)
6110
      oprot.writeFieldEnd()
6111
    oprot.writeFieldStop()
6112
    oprot.writeStructEnd()
6113
 
6114
  def validate(self):
6115
    return
6116
 
6117
 
6118
  def __repr__(self):
6119
    L = ['%s=%r' % (key, value)
6120
      for key, value in self.__dict__.iteritems()]
6121
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6122
 
6123
  def __eq__(self, other):
6124
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6125
 
6126
  def __ne__(self, other):
6127
    return not (self == other)
6128
 
7968 amar.kumar 6129
class updateReservationForOrder_args:
6130
  """
6131
  Attributes:
6132
   - itemId
6133
   - warehouseId
6134
   - sourceId
6135
   - orderId
6136
   - createdTimestamp
6137
   - promisedShippingTimestamp
6138
   - quantity
6139
  """
6140
 
6141
  thrift_spec = (
6142
    None, # 0
6143
    (1, TType.I64, 'itemId', None, None, ), # 1
6144
    (2, TType.I64, 'warehouseId', None, None, ), # 2
6145
    (3, TType.I64, 'sourceId', None, None, ), # 3
6146
    (4, TType.I64, 'orderId', None, None, ), # 4
6147
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
6148
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
6149
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
6150
  )
6151
 
6152
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
6153
    self.itemId = itemId
6154
    self.warehouseId = warehouseId
6155
    self.sourceId = sourceId
6156
    self.orderId = orderId
6157
    self.createdTimestamp = createdTimestamp
6158
    self.promisedShippingTimestamp = promisedShippingTimestamp
6159
    self.quantity = quantity
6160
 
6161
  def read(self, iprot):
6162
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6163
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6164
      return
6165
    iprot.readStructBegin()
6166
    while True:
6167
      (fname, ftype, fid) = iprot.readFieldBegin()
6168
      if ftype == TType.STOP:
6169
        break
6170
      if fid == 1:
6171
        if ftype == TType.I64:
6172
          self.itemId = iprot.readI64();
6173
        else:
6174
          iprot.skip(ftype)
6175
      elif fid == 2:
6176
        if ftype == TType.I64:
6177
          self.warehouseId = iprot.readI64();
6178
        else:
6179
          iprot.skip(ftype)
6180
      elif fid == 3:
6181
        if ftype == TType.I64:
6182
          self.sourceId = iprot.readI64();
6183
        else:
6184
          iprot.skip(ftype)
6185
      elif fid == 4:
6186
        if ftype == TType.I64:
6187
          self.orderId = iprot.readI64();
6188
        else:
6189
          iprot.skip(ftype)
6190
      elif fid == 5:
6191
        if ftype == TType.I64:
6192
          self.createdTimestamp = iprot.readI64();
6193
        else:
6194
          iprot.skip(ftype)
6195
      elif fid == 6:
6196
        if ftype == TType.I64:
6197
          self.promisedShippingTimestamp = iprot.readI64();
6198
        else:
6199
          iprot.skip(ftype)
6200
      elif fid == 7:
6201
        if ftype == TType.DOUBLE:
6202
          self.quantity = iprot.readDouble();
6203
        else:
6204
          iprot.skip(ftype)
6205
      else:
6206
        iprot.skip(ftype)
6207
      iprot.readFieldEnd()
6208
    iprot.readStructEnd()
6209
 
6210
  def write(self, oprot):
6211
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6212
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6213
      return
6214
    oprot.writeStructBegin('updateReservationForOrder_args')
6215
    if self.itemId is not None:
6216
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6217
      oprot.writeI64(self.itemId)
6218
      oprot.writeFieldEnd()
6219
    if self.warehouseId is not None:
6220
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6221
      oprot.writeI64(self.warehouseId)
6222
      oprot.writeFieldEnd()
6223
    if self.sourceId is not None:
6224
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6225
      oprot.writeI64(self.sourceId)
6226
      oprot.writeFieldEnd()
6227
    if self.orderId is not None:
6228
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6229
      oprot.writeI64(self.orderId)
6230
      oprot.writeFieldEnd()
6231
    if self.createdTimestamp is not None:
6232
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
6233
      oprot.writeI64(self.createdTimestamp)
6234
      oprot.writeFieldEnd()
6235
    if self.promisedShippingTimestamp is not None:
6236
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
6237
      oprot.writeI64(self.promisedShippingTimestamp)
6238
      oprot.writeFieldEnd()
6239
    if self.quantity is not None:
6240
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
6241
      oprot.writeDouble(self.quantity)
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
 
6261
class updateReservationForOrder_result:
6262
  """
6263
  Attributes:
6264
   - success
6265
   - cex
6266
  """
6267
 
6268
  thrift_spec = (
6269
    (0, TType.BOOL, 'success', None, None, ), # 0
6270
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6271
  )
6272
 
6273
  def __init__(self, success=None, cex=None,):
6274
    self.success = success
6275
    self.cex = cex
6276
 
6277
  def read(self, iprot):
6278
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6279
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6280
      return
6281
    iprot.readStructBegin()
6282
    while True:
6283
      (fname, ftype, fid) = iprot.readFieldBegin()
6284
      if ftype == TType.STOP:
6285
        break
6286
      if fid == 0:
6287
        if ftype == TType.BOOL:
6288
          self.success = iprot.readBool();
6289
        else:
6290
          iprot.skip(ftype)
6291
      elif fid == 1:
6292
        if ftype == TType.STRUCT:
6293
          self.cex = InventoryServiceException()
6294
          self.cex.read(iprot)
6295
        else:
6296
          iprot.skip(ftype)
6297
      else:
6298
        iprot.skip(ftype)
6299
      iprot.readFieldEnd()
6300
    iprot.readStructEnd()
6301
 
6302
  def write(self, oprot):
6303
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6304
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6305
      return
6306
    oprot.writeStructBegin('updateReservationForOrder_result')
6307
    if self.success is not None:
6308
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6309
      oprot.writeBool(self.success)
6310
      oprot.writeFieldEnd()
6311
    if self.cex is not None:
6312
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6313
      self.cex.write(oprot)
6314
      oprot.writeFieldEnd()
6315
    oprot.writeFieldStop()
6316
    oprot.writeStructEnd()
6317
 
6318
  def validate(self):
6319
    return
6320
 
6321
 
6322
  def __repr__(self):
6323
    L = ['%s=%r' % (key, value)
6324
      for key, value in self.__dict__.iteritems()]
6325
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6326
 
6327
  def __eq__(self, other):
6328
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6329
 
6330
  def __ne__(self, other):
6331
    return not (self == other)
6332
 
5944 mandeep.dh 6333
class reduceReservationCount_args:
6334
  """
6335
  Attributes:
6336
   - itemId
6337
   - warehouseId
5966 rajveer 6338
   - sourceId
6339
   - orderId
5944 mandeep.dh 6340
   - quantity
6341
  """
6342
 
6343
  thrift_spec = (
6344
    None, # 0
6345
    (1, TType.I64, 'itemId', None, None, ), # 1
6346
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 6347
    (3, TType.I64, 'sourceId', None, None, ), # 3
6348
    (4, TType.I64, 'orderId', None, None, ), # 4
6349
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
5944 mandeep.dh 6350
  )
6351
 
5966 rajveer 6352
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, quantity=None,):
5944 mandeep.dh 6353
    self.itemId = itemId
6354
    self.warehouseId = warehouseId
5966 rajveer 6355
    self.sourceId = sourceId
6356
    self.orderId = orderId
5944 mandeep.dh 6357
    self.quantity = quantity
6358
 
6359
  def read(self, iprot):
6360
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6361
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6362
      return
6363
    iprot.readStructBegin()
6364
    while True:
6365
      (fname, ftype, fid) = iprot.readFieldBegin()
6366
      if ftype == TType.STOP:
6367
        break
6368
      if fid == 1:
6369
        if ftype == TType.I64:
6370
          self.itemId = iprot.readI64();
6371
        else:
6372
          iprot.skip(ftype)
6373
      elif fid == 2:
6374
        if ftype == TType.I64:
6375
          self.warehouseId = iprot.readI64();
6376
        else:
6377
          iprot.skip(ftype)
6378
      elif fid == 3:
5966 rajveer 6379
        if ftype == TType.I64:
6380
          self.sourceId = iprot.readI64();
6381
        else:
6382
          iprot.skip(ftype)
6383
      elif fid == 4:
6384
        if ftype == TType.I64:
6385
          self.orderId = iprot.readI64();
6386
        else:
6387
          iprot.skip(ftype)
6388
      elif fid == 5:
5944 mandeep.dh 6389
        if ftype == TType.DOUBLE:
6390
          self.quantity = iprot.readDouble();
6391
        else:
6392
          iprot.skip(ftype)
6393
      else:
6394
        iprot.skip(ftype)
6395
      iprot.readFieldEnd()
6396
    iprot.readStructEnd()
6397
 
6398
  def write(self, oprot):
6399
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6400
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6401
      return
6402
    oprot.writeStructBegin('reduceReservationCount_args')
6403
    if self.itemId is not None:
6404
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6405
      oprot.writeI64(self.itemId)
6406
      oprot.writeFieldEnd()
6407
    if self.warehouseId is not None:
6408
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6409
      oprot.writeI64(self.warehouseId)
6410
      oprot.writeFieldEnd()
5966 rajveer 6411
    if self.sourceId is not None:
6412
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6413
      oprot.writeI64(self.sourceId)
6414
      oprot.writeFieldEnd()
6415
    if self.orderId is not None:
6416
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6417
      oprot.writeI64(self.orderId)
6418
      oprot.writeFieldEnd()
5944 mandeep.dh 6419
    if self.quantity is not None:
5966 rajveer 6420
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
5944 mandeep.dh 6421
      oprot.writeDouble(self.quantity)
6422
      oprot.writeFieldEnd()
6423
    oprot.writeFieldStop()
6424
    oprot.writeStructEnd()
6425
 
6426
  def validate(self):
6427
    return
6428
 
6429
 
6430
  def __repr__(self):
6431
    L = ['%s=%r' % (key, value)
6432
      for key, value in self.__dict__.iteritems()]
6433
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6434
 
6435
  def __eq__(self, other):
6436
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6437
 
6438
  def __ne__(self, other):
6439
    return not (self == other)
6440
 
6441
class reduceReservationCount_result:
6442
  """
6443
  Attributes:
6444
   - success
6445
   - cex
6446
  """
6447
 
6448
  thrift_spec = (
6449
    (0, TType.BOOL, 'success', None, None, ), # 0
6450
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6451
  )
6452
 
6453
  def __init__(self, success=None, cex=None,):
6454
    self.success = success
6455
    self.cex = cex
6456
 
6457
  def read(self, iprot):
6458
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6459
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6460
      return
6461
    iprot.readStructBegin()
6462
    while True:
6463
      (fname, ftype, fid) = iprot.readFieldBegin()
6464
      if ftype == TType.STOP:
6465
        break
6466
      if fid == 0:
6467
        if ftype == TType.BOOL:
6468
          self.success = iprot.readBool();
6469
        else:
6470
          iprot.skip(ftype)
6471
      elif fid == 1:
6472
        if ftype == TType.STRUCT:
6473
          self.cex = InventoryServiceException()
6474
          self.cex.read(iprot)
6475
        else:
6476
          iprot.skip(ftype)
6477
      else:
6478
        iprot.skip(ftype)
6479
      iprot.readFieldEnd()
6480
    iprot.readStructEnd()
6481
 
6482
  def write(self, oprot):
6483
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6484
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6485
      return
6486
    oprot.writeStructBegin('reduceReservationCount_result')
6487
    if self.success is not None:
6488
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6489
      oprot.writeBool(self.success)
6490
      oprot.writeFieldEnd()
6491
    if self.cex is not None:
6492
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6493
      self.cex.write(oprot)
6494
      oprot.writeFieldEnd()
6495
    oprot.writeFieldStop()
6496
    oprot.writeStructEnd()
6497
 
6498
  def validate(self):
6499
    return
6500
 
6501
 
6502
  def __repr__(self):
6503
    L = ['%s=%r' % (key, value)
6504
      for key, value in self.__dict__.iteritems()]
6505
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6506
 
6507
  def __eq__(self, other):
6508
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6509
 
6510
  def __ne__(self, other):
6511
    return not (self == other)
6512
 
6513
class getItemPricing_args:
6514
  """
6515
  Attributes:
6516
   - itemId
6517
   - vendorId
6518
  """
6519
 
6520
  thrift_spec = (
6521
    None, # 0
6522
    (1, TType.I64, 'itemId', None, None, ), # 1
6523
    (2, TType.I64, 'vendorId', None, None, ), # 2
6524
  )
6525
 
6526
  def __init__(self, itemId=None, vendorId=None,):
6527
    self.itemId = itemId
6528
    self.vendorId = vendorId
6529
 
6530
  def read(self, iprot):
6531
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6532
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6533
      return
6534
    iprot.readStructBegin()
6535
    while True:
6536
      (fname, ftype, fid) = iprot.readFieldBegin()
6537
      if ftype == TType.STOP:
6538
        break
6539
      if fid == 1:
6540
        if ftype == TType.I64:
6541
          self.itemId = iprot.readI64();
6542
        else:
6543
          iprot.skip(ftype)
6544
      elif fid == 2:
6545
        if ftype == TType.I64:
6546
          self.vendorId = iprot.readI64();
6547
        else:
6548
          iprot.skip(ftype)
6549
      else:
6550
        iprot.skip(ftype)
6551
      iprot.readFieldEnd()
6552
    iprot.readStructEnd()
6553
 
6554
  def write(self, oprot):
6555
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6556
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6557
      return
6558
    oprot.writeStructBegin('getItemPricing_args')
6559
    if self.itemId is not None:
6560
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6561
      oprot.writeI64(self.itemId)
6562
      oprot.writeFieldEnd()
6563
    if self.vendorId is not None:
6564
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6565
      oprot.writeI64(self.vendorId)
6566
      oprot.writeFieldEnd()
6567
    oprot.writeFieldStop()
6568
    oprot.writeStructEnd()
6569
 
6570
  def validate(self):
6571
    return
6572
 
6573
 
6574
  def __repr__(self):
6575
    L = ['%s=%r' % (key, value)
6576
      for key, value in self.__dict__.iteritems()]
6577
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6578
 
6579
  def __eq__(self, other):
6580
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6581
 
6582
  def __ne__(self, other):
6583
    return not (self == other)
6584
 
6585
class getItemPricing_result:
6586
  """
6587
  Attributes:
6588
   - success
6589
   - cex
6590
  """
6591
 
6592
  thrift_spec = (
6593
    (0, TType.STRUCT, 'success', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 0
6594
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6595
  )
6596
 
6597
  def __init__(self, success=None, cex=None,):
6598
    self.success = success
6599
    self.cex = cex
6600
 
6601
  def read(self, iprot):
6602
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6603
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6604
      return
6605
    iprot.readStructBegin()
6606
    while True:
6607
      (fname, ftype, fid) = iprot.readFieldBegin()
6608
      if ftype == TType.STOP:
6609
        break
6610
      if fid == 0:
6611
        if ftype == TType.STRUCT:
6612
          self.success = VendorItemPricing()
6613
          self.success.read(iprot)
6614
        else:
6615
          iprot.skip(ftype)
6616
      elif fid == 1:
6617
        if ftype == TType.STRUCT:
6618
          self.cex = InventoryServiceException()
6619
          self.cex.read(iprot)
6620
        else:
6621
          iprot.skip(ftype)
6622
      else:
6623
        iprot.skip(ftype)
6624
      iprot.readFieldEnd()
6625
    iprot.readStructEnd()
6626
 
6627
  def write(self, oprot):
6628
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6629
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6630
      return
6631
    oprot.writeStructBegin('getItemPricing_result')
6632
    if self.success is not None:
6633
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6634
      self.success.write(oprot)
6635
      oprot.writeFieldEnd()
6636
    if self.cex is not None:
6637
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6638
      self.cex.write(oprot)
6639
      oprot.writeFieldEnd()
6640
    oprot.writeFieldStop()
6641
    oprot.writeStructEnd()
6642
 
6643
  def validate(self):
6644
    return
6645
 
6646
 
6647
  def __repr__(self):
6648
    L = ['%s=%r' % (key, value)
6649
      for key, value in self.__dict__.iteritems()]
6650
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6651
 
6652
  def __eq__(self, other):
6653
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6654
 
6655
  def __ne__(self, other):
6656
    return not (self == other)
6657
 
6658
class getAllItemPricing_args:
6659
  """
6660
  Attributes:
6661
   - itemId
6662
  """
6663
 
6664
  thrift_spec = (
6665
    None, # 0
6666
    (1, TType.I64, 'itemId', None, None, ), # 1
6667
  )
6668
 
6669
  def __init__(self, itemId=None,):
6670
    self.itemId = itemId
6671
 
6672
  def read(self, iprot):
6673
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6674
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6675
      return
6676
    iprot.readStructBegin()
6677
    while True:
6678
      (fname, ftype, fid) = iprot.readFieldBegin()
6679
      if ftype == TType.STOP:
6680
        break
6681
      if fid == 1:
6682
        if ftype == TType.I64:
6683
          self.itemId = iprot.readI64();
6684
        else:
6685
          iprot.skip(ftype)
6686
      else:
6687
        iprot.skip(ftype)
6688
      iprot.readFieldEnd()
6689
    iprot.readStructEnd()
6690
 
6691
  def write(self, oprot):
6692
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6693
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6694
      return
6695
    oprot.writeStructBegin('getAllItemPricing_args')
6696
    if self.itemId is not None:
6697
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6698
      oprot.writeI64(self.itemId)
6699
      oprot.writeFieldEnd()
6700
    oprot.writeFieldStop()
6701
    oprot.writeStructEnd()
6702
 
6703
  def validate(self):
6704
    return
6705
 
6706
 
6707
  def __repr__(self):
6708
    L = ['%s=%r' % (key, value)
6709
      for key, value in self.__dict__.iteritems()]
6710
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6711
 
6712
  def __eq__(self, other):
6713
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6714
 
6715
  def __ne__(self, other):
6716
    return not (self == other)
6717
 
6718
class getAllItemPricing_result:
6719
  """
6720
  Attributes:
6721
   - success
6722
   - cex
6723
  """
6724
 
6725
  thrift_spec = (
6726
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
6727
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6728
  )
6729
 
6730
  def __init__(self, success=None, cex=None,):
6731
    self.success = success
6732
    self.cex = cex
6733
 
6734
  def read(self, iprot):
6735
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6736
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6737
      return
6738
    iprot.readStructBegin()
6739
    while True:
6740
      (fname, ftype, fid) = iprot.readFieldBegin()
6741
      if ftype == TType.STOP:
6742
        break
6743
      if fid == 0:
6744
        if ftype == TType.LIST:
6745
          self.success = []
8182 amar.kumar 6746
          (_etype69, _size66) = iprot.readListBegin()
6747
          for _i70 in xrange(_size66):
6748
            _elem71 = VendorItemPricing()
6749
            _elem71.read(iprot)
6750
            self.success.append(_elem71)
5944 mandeep.dh 6751
          iprot.readListEnd()
6752
        else:
6753
          iprot.skip(ftype)
6754
      elif fid == 1:
6755
        if ftype == TType.STRUCT:
6756
          self.cex = InventoryServiceException()
6757
          self.cex.read(iprot)
6758
        else:
6759
          iprot.skip(ftype)
6760
      else:
6761
        iprot.skip(ftype)
6762
      iprot.readFieldEnd()
6763
    iprot.readStructEnd()
6764
 
6765
  def write(self, oprot):
6766
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6767
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6768
      return
6769
    oprot.writeStructBegin('getAllItemPricing_result')
6770
    if self.success is not None:
6771
      oprot.writeFieldBegin('success', TType.LIST, 0)
6772
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 6773
      for iter72 in self.success:
6774
        iter72.write(oprot)
5944 mandeep.dh 6775
      oprot.writeListEnd()
6776
      oprot.writeFieldEnd()
6777
    if self.cex is not None:
6778
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6779
      self.cex.write(oprot)
6780
      oprot.writeFieldEnd()
6781
    oprot.writeFieldStop()
6782
    oprot.writeStructEnd()
6783
 
6784
  def validate(self):
6785
    return
6786
 
6787
 
6788
  def __repr__(self):
6789
    L = ['%s=%r' % (key, value)
6790
      for key, value in self.__dict__.iteritems()]
6791
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6792
 
6793
  def __eq__(self, other):
6794
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6795
 
6796
  def __ne__(self, other):
6797
    return not (self == other)
6798
 
6799
class addVendorItemPricing_args:
6800
  """
6801
  Attributes:
6802
   - vendorItemPricing
6803
  """
6804
 
6805
  thrift_spec = (
6806
    None, # 0
6807
    (1, TType.STRUCT, 'vendorItemPricing', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 1
6808
  )
6809
 
6810
  def __init__(self, vendorItemPricing=None,):
6811
    self.vendorItemPricing = vendorItemPricing
6812
 
6813
  def read(self, iprot):
6814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6816
      return
6817
    iprot.readStructBegin()
6818
    while True:
6819
      (fname, ftype, fid) = iprot.readFieldBegin()
6820
      if ftype == TType.STOP:
6821
        break
6822
      if fid == 1:
6823
        if ftype == TType.STRUCT:
6824
          self.vendorItemPricing = VendorItemPricing()
6825
          self.vendorItemPricing.read(iprot)
6826
        else:
6827
          iprot.skip(ftype)
6828
      else:
6829
        iprot.skip(ftype)
6830
      iprot.readFieldEnd()
6831
    iprot.readStructEnd()
6832
 
6833
  def write(self, oprot):
6834
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6835
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6836
      return
6837
    oprot.writeStructBegin('addVendorItemPricing_args')
6838
    if self.vendorItemPricing is not None:
6839
      oprot.writeFieldBegin('vendorItemPricing', TType.STRUCT, 1)
6840
      self.vendorItemPricing.write(oprot)
6841
      oprot.writeFieldEnd()
6842
    oprot.writeFieldStop()
6843
    oprot.writeStructEnd()
6844
 
6845
  def validate(self):
6846
    return
6847
 
6848
 
6849
  def __repr__(self):
6850
    L = ['%s=%r' % (key, value)
6851
      for key, value in self.__dict__.iteritems()]
6852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6853
 
6854
  def __eq__(self, other):
6855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6856
 
6857
  def __ne__(self, other):
6858
    return not (self == other)
6859
 
6860
class addVendorItemPricing_result:
6861
  """
6862
  Attributes:
6863
   - cex
6864
  """
6865
 
6866
  thrift_spec = (
6867
    None, # 0
6868
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6869
  )
6870
 
6871
  def __init__(self, cex=None,):
6872
    self.cex = cex
6873
 
6874
  def read(self, iprot):
6875
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6876
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6877
      return
6878
    iprot.readStructBegin()
6879
    while True:
6880
      (fname, ftype, fid) = iprot.readFieldBegin()
6881
      if ftype == TType.STOP:
6882
        break
6883
      if fid == 1:
6884
        if ftype == TType.STRUCT:
6885
          self.cex = InventoryServiceException()
6886
          self.cex.read(iprot)
6887
        else:
6888
          iprot.skip(ftype)
6889
      else:
6890
        iprot.skip(ftype)
6891
      iprot.readFieldEnd()
6892
    iprot.readStructEnd()
6893
 
6894
  def write(self, oprot):
6895
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6896
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6897
      return
6898
    oprot.writeStructBegin('addVendorItemPricing_result')
6899
    if self.cex is not None:
6900
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6901
      self.cex.write(oprot)
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 getVendor_args:
6922
  """
6923
  Attributes:
6924
   - vendorId
6925
  """
6926
 
6927
  thrift_spec = (
6928
    None, # 0
6929
    (1, TType.I64, 'vendorId', None, None, ), # 1
6930
  )
6931
 
6932
  def __init__(self, vendorId=None,):
6933
    self.vendorId = vendorId
6934
 
6935
  def read(self, iprot):
6936
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6937
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6938
      return
6939
    iprot.readStructBegin()
6940
    while True:
6941
      (fname, ftype, fid) = iprot.readFieldBegin()
6942
      if ftype == TType.STOP:
6943
        break
6944
      if fid == 1:
6945
        if ftype == TType.I64:
6946
          self.vendorId = iprot.readI64();
6947
        else:
6948
          iprot.skip(ftype)
6949
      else:
6950
        iprot.skip(ftype)
6951
      iprot.readFieldEnd()
6952
    iprot.readStructEnd()
6953
 
6954
  def write(self, oprot):
6955
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6956
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6957
      return
6958
    oprot.writeStructBegin('getVendor_args')
6959
    if self.vendorId is not None:
6960
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
6961
      oprot.writeI64(self.vendorId)
6962
      oprot.writeFieldEnd()
6963
    oprot.writeFieldStop()
6964
    oprot.writeStructEnd()
6965
 
6966
  def validate(self):
6967
    return
6968
 
6969
 
6970
  def __repr__(self):
6971
    L = ['%s=%r' % (key, value)
6972
      for key, value in self.__dict__.iteritems()]
6973
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6974
 
6975
  def __eq__(self, other):
6976
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6977
 
6978
  def __ne__(self, other):
6979
    return not (self == other)
6980
 
6981
class getVendor_result:
6982
  """
6983
  Attributes:
6984
   - success
6985
  """
6986
 
6987
  thrift_spec = (
6988
    (0, TType.STRUCT, 'success', (Vendor, Vendor.thrift_spec), None, ), # 0
6989
  )
6990
 
6991
  def __init__(self, success=None,):
6992
    self.success = success
6993
 
6994
  def read(self, iprot):
6995
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6996
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6997
      return
6998
    iprot.readStructBegin()
6999
    while True:
7000
      (fname, ftype, fid) = iprot.readFieldBegin()
7001
      if ftype == TType.STOP:
7002
        break
7003
      if fid == 0:
7004
        if ftype == TType.STRUCT:
7005
          self.success = Vendor()
7006
          self.success.read(iprot)
7007
        else:
7008
          iprot.skip(ftype)
7009
      else:
7010
        iprot.skip(ftype)
7011
      iprot.readFieldEnd()
7012
    iprot.readStructEnd()
7013
 
7014
  def write(self, oprot):
7015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7017
      return
7018
    oprot.writeStructBegin('getVendor_result')
7019
    if self.success is not None:
7020
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7021
      self.success.write(oprot)
7022
      oprot.writeFieldEnd()
7023
    oprot.writeFieldStop()
7024
    oprot.writeStructEnd()
7025
 
7026
  def validate(self):
7027
    return
7028
 
7029
 
7030
  def __repr__(self):
7031
    L = ['%s=%r' % (key, value)
7032
      for key, value in self.__dict__.iteritems()]
7033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7034
 
7035
  def __eq__(self, other):
7036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7037
 
7038
  def __ne__(self, other):
7039
    return not (self == other)
7040
 
7041
class getAllVendors_args:
7042
 
7043
  thrift_spec = (
7044
  )
7045
 
7046
  def read(self, iprot):
7047
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7048
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7049
      return
7050
    iprot.readStructBegin()
7051
    while True:
7052
      (fname, ftype, fid) = iprot.readFieldBegin()
7053
      if ftype == TType.STOP:
7054
        break
7055
      else:
7056
        iprot.skip(ftype)
7057
      iprot.readFieldEnd()
7058
    iprot.readStructEnd()
7059
 
7060
  def write(self, oprot):
7061
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7062
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7063
      return
7064
    oprot.writeStructBegin('getAllVendors_args')
7065
    oprot.writeFieldStop()
7066
    oprot.writeStructEnd()
7067
 
7068
  def validate(self):
7069
    return
7070
 
7071
 
7072
  def __repr__(self):
7073
    L = ['%s=%r' % (key, value)
7074
      for key, value in self.__dict__.iteritems()]
7075
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7076
 
7077
  def __eq__(self, other):
7078
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7079
 
7080
  def __ne__(self, other):
7081
    return not (self == other)
7082
 
7083
class getAllVendors_result:
7084
  """
7085
  Attributes:
7086
   - success
7087
  """
7088
 
7089
  thrift_spec = (
7090
    (0, TType.LIST, 'success', (TType.STRUCT,(Vendor, Vendor.thrift_spec)), None, ), # 0
7091
  )
7092
 
7093
  def __init__(self, success=None,):
7094
    self.success = success
7095
 
7096
  def read(self, iprot):
7097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7099
      return
7100
    iprot.readStructBegin()
7101
    while True:
7102
      (fname, ftype, fid) = iprot.readFieldBegin()
7103
      if ftype == TType.STOP:
7104
        break
7105
      if fid == 0:
7106
        if ftype == TType.LIST:
7107
          self.success = []
8182 amar.kumar 7108
          (_etype76, _size73) = iprot.readListBegin()
7109
          for _i77 in xrange(_size73):
7110
            _elem78 = Vendor()
7111
            _elem78.read(iprot)
7112
            self.success.append(_elem78)
5944 mandeep.dh 7113
          iprot.readListEnd()
7114
        else:
7115
          iprot.skip(ftype)
7116
      else:
7117
        iprot.skip(ftype)
7118
      iprot.readFieldEnd()
7119
    iprot.readStructEnd()
7120
 
7121
  def write(self, oprot):
7122
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7123
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7124
      return
7125
    oprot.writeStructBegin('getAllVendors_result')
7126
    if self.success is not None:
7127
      oprot.writeFieldBegin('success', TType.LIST, 0)
7128
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7129
      for iter79 in self.success:
7130
        iter79.write(oprot)
5944 mandeep.dh 7131
      oprot.writeListEnd()
7132
      oprot.writeFieldEnd()
7133
    oprot.writeFieldStop()
7134
    oprot.writeStructEnd()
7135
 
7136
  def validate(self):
7137
    return
7138
 
7139
 
7140
  def __repr__(self):
7141
    L = ['%s=%r' % (key, value)
7142
      for key, value in self.__dict__.iteritems()]
7143
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7144
 
7145
  def __eq__(self, other):
7146
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7147
 
7148
  def __ne__(self, other):
7149
    return not (self == other)
7150
 
7151
class addVendorItemMapping_args:
7152
  """
7153
  Attributes:
7154
   - key
7155
   - vendorItemMapping
7156
  """
7157
 
7158
  thrift_spec = (
7159
    None, # 0
7160
    (1, TType.STRING, 'key', None, None, ), # 1
7161
    (2, TType.STRUCT, 'vendorItemMapping', (VendorItemMapping, VendorItemMapping.thrift_spec), None, ), # 2
7162
  )
7163
 
7164
  def __init__(self, key=None, vendorItemMapping=None,):
7165
    self.key = key
7166
    self.vendorItemMapping = vendorItemMapping
7167
 
7168
  def read(self, iprot):
7169
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7170
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7171
      return
7172
    iprot.readStructBegin()
7173
    while True:
7174
      (fname, ftype, fid) = iprot.readFieldBegin()
7175
      if ftype == TType.STOP:
7176
        break
7177
      if fid == 1:
7178
        if ftype == TType.STRING:
7179
          self.key = iprot.readString();
7180
        else:
7181
          iprot.skip(ftype)
7182
      elif fid == 2:
7183
        if ftype == TType.STRUCT:
7184
          self.vendorItemMapping = VendorItemMapping()
7185
          self.vendorItemMapping.read(iprot)
7186
        else:
7187
          iprot.skip(ftype)
7188
      else:
7189
        iprot.skip(ftype)
7190
      iprot.readFieldEnd()
7191
    iprot.readStructEnd()
7192
 
7193
  def write(self, oprot):
7194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7196
      return
7197
    oprot.writeStructBegin('addVendorItemMapping_args')
7198
    if self.key is not None:
7199
      oprot.writeFieldBegin('key', TType.STRING, 1)
7200
      oprot.writeString(self.key)
7201
      oprot.writeFieldEnd()
7202
    if self.vendorItemMapping is not None:
7203
      oprot.writeFieldBegin('vendorItemMapping', TType.STRUCT, 2)
7204
      self.vendorItemMapping.write(oprot)
7205
      oprot.writeFieldEnd()
7206
    oprot.writeFieldStop()
7207
    oprot.writeStructEnd()
7208
 
7209
  def validate(self):
7210
    return
7211
 
7212
 
7213
  def __repr__(self):
7214
    L = ['%s=%r' % (key, value)
7215
      for key, value in self.__dict__.iteritems()]
7216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7217
 
7218
  def __eq__(self, other):
7219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7220
 
7221
  def __ne__(self, other):
7222
    return not (self == other)
7223
 
7224
class addVendorItemMapping_result:
7225
  """
7226
  Attributes:
7227
   - cex
7228
  """
7229
 
7230
  thrift_spec = (
7231
    None, # 0
7232
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7233
  )
7234
 
7235
  def __init__(self, cex=None,):
7236
    self.cex = cex
7237
 
7238
  def read(self, iprot):
7239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7241
      return
7242
    iprot.readStructBegin()
7243
    while True:
7244
      (fname, ftype, fid) = iprot.readFieldBegin()
7245
      if ftype == TType.STOP:
7246
        break
7247
      if fid == 1:
7248
        if ftype == TType.STRUCT:
7249
          self.cex = InventoryServiceException()
7250
          self.cex.read(iprot)
7251
        else:
7252
          iprot.skip(ftype)
7253
      else:
7254
        iprot.skip(ftype)
7255
      iprot.readFieldEnd()
7256
    iprot.readStructEnd()
7257
 
7258
  def write(self, oprot):
7259
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7260
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7261
      return
7262
    oprot.writeStructBegin('addVendorItemMapping_result')
7263
    if self.cex is not None:
7264
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7265
      self.cex.write(oprot)
7266
      oprot.writeFieldEnd()
7267
    oprot.writeFieldStop()
7268
    oprot.writeStructEnd()
7269
 
7270
  def validate(self):
7271
    return
7272
 
7273
 
7274
  def __repr__(self):
7275
    L = ['%s=%r' % (key, value)
7276
      for key, value in self.__dict__.iteritems()]
7277
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7278
 
7279
  def __eq__(self, other):
7280
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7281
 
7282
  def __ne__(self, other):
7283
    return not (self == other)
7284
 
7285
class getVendorItemMappings_args:
7286
  """
7287
  Attributes:
7288
   - itemId
7289
  """
7290
 
7291
  thrift_spec = (
7292
    None, # 0
7293
    (1, TType.I64, 'itemId', None, None, ), # 1
7294
  )
7295
 
7296
  def __init__(self, itemId=None,):
7297
    self.itemId = itemId
7298
 
7299
  def read(self, iprot):
7300
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7301
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7302
      return
7303
    iprot.readStructBegin()
7304
    while True:
7305
      (fname, ftype, fid) = iprot.readFieldBegin()
7306
      if ftype == TType.STOP:
7307
        break
7308
      if fid == 1:
7309
        if ftype == TType.I64:
7310
          self.itemId = iprot.readI64();
7311
        else:
7312
          iprot.skip(ftype)
7313
      else:
7314
        iprot.skip(ftype)
7315
      iprot.readFieldEnd()
7316
    iprot.readStructEnd()
7317
 
7318
  def write(self, oprot):
7319
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7320
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7321
      return
7322
    oprot.writeStructBegin('getVendorItemMappings_args')
7323
    if self.itemId is not None:
7324
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7325
      oprot.writeI64(self.itemId)
7326
      oprot.writeFieldEnd()
7327
    oprot.writeFieldStop()
7328
    oprot.writeStructEnd()
7329
 
7330
  def validate(self):
7331
    return
7332
 
7333
 
7334
  def __repr__(self):
7335
    L = ['%s=%r' % (key, value)
7336
      for key, value in self.__dict__.iteritems()]
7337
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7338
 
7339
  def __eq__(self, other):
7340
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7341
 
7342
  def __ne__(self, other):
7343
    return not (self == other)
7344
 
7345
class getVendorItemMappings_result:
7346
  """
7347
  Attributes:
7348
   - success
7349
   - cex
7350
  """
7351
 
7352
  thrift_spec = (
7353
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
7354
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7355
  )
7356
 
7357
  def __init__(self, success=None, cex=None,):
7358
    self.success = success
7359
    self.cex = cex
7360
 
7361
  def read(self, iprot):
7362
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7363
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7364
      return
7365
    iprot.readStructBegin()
7366
    while True:
7367
      (fname, ftype, fid) = iprot.readFieldBegin()
7368
      if ftype == TType.STOP:
7369
        break
7370
      if fid == 0:
7371
        if ftype == TType.LIST:
7372
          self.success = []
8182 amar.kumar 7373
          (_etype83, _size80) = iprot.readListBegin()
7374
          for _i84 in xrange(_size80):
7375
            _elem85 = VendorItemMapping()
7376
            _elem85.read(iprot)
7377
            self.success.append(_elem85)
5944 mandeep.dh 7378
          iprot.readListEnd()
7379
        else:
7380
          iprot.skip(ftype)
7381
      elif fid == 1:
7382
        if ftype == TType.STRUCT:
7383
          self.cex = InventoryServiceException()
7384
          self.cex.read(iprot)
7385
        else:
7386
          iprot.skip(ftype)
7387
      else:
7388
        iprot.skip(ftype)
7389
      iprot.readFieldEnd()
7390
    iprot.readStructEnd()
7391
 
7392
  def write(self, oprot):
7393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7395
      return
7396
    oprot.writeStructBegin('getVendorItemMappings_result')
7397
    if self.success is not None:
7398
      oprot.writeFieldBegin('success', TType.LIST, 0)
7399
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7400
      for iter86 in self.success:
7401
        iter86.write(oprot)
5944 mandeep.dh 7402
      oprot.writeListEnd()
7403
      oprot.writeFieldEnd()
7404
    if self.cex is not None:
7405
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7406
      self.cex.write(oprot)
7407
      oprot.writeFieldEnd()
7408
    oprot.writeFieldStop()
7409
    oprot.writeStructEnd()
7410
 
7411
  def validate(self):
7412
    return
7413
 
7414
 
7415
  def __repr__(self):
7416
    L = ['%s=%r' % (key, value)
7417
      for key, value in self.__dict__.iteritems()]
7418
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7419
 
7420
  def __eq__(self, other):
7421
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7422
 
7423
  def __ne__(self, other):
7424
    return not (self == other)
7425
 
7426
class getPendingOrdersInventory_args:
7427
  """
7428
  Attributes:
7429
   - vendorid
7430
  """
7431
 
7432
  thrift_spec = (
7433
    None, # 0
7434
    (1, TType.I64, 'vendorid', None, None, ), # 1
7435
  )
7436
 
7437
  def __init__(self, vendorid=None,):
7438
    self.vendorid = vendorid
7439
 
7440
  def read(self, iprot):
7441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7443
      return
7444
    iprot.readStructBegin()
7445
    while True:
7446
      (fname, ftype, fid) = iprot.readFieldBegin()
7447
      if ftype == TType.STOP:
7448
        break
7449
      if fid == 1:
7450
        if ftype == TType.I64:
7451
          self.vendorid = iprot.readI64();
7452
        else:
7453
          iprot.skip(ftype)
7454
      else:
7455
        iprot.skip(ftype)
7456
      iprot.readFieldEnd()
7457
    iprot.readStructEnd()
7458
 
7459
  def write(self, oprot):
7460
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7461
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7462
      return
7463
    oprot.writeStructBegin('getPendingOrdersInventory_args')
7464
    if self.vendorid is not None:
7465
      oprot.writeFieldBegin('vendorid', TType.I64, 1)
7466
      oprot.writeI64(self.vendorid)
7467
      oprot.writeFieldEnd()
7468
    oprot.writeFieldStop()
7469
    oprot.writeStructEnd()
7470
 
7471
  def validate(self):
7472
    return
7473
 
7474
 
7475
  def __repr__(self):
7476
    L = ['%s=%r' % (key, value)
7477
      for key, value in self.__dict__.iteritems()]
7478
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7479
 
7480
  def __eq__(self, other):
7481
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7482
 
7483
  def __ne__(self, other):
7484
    return not (self == other)
7485
 
7486
class getPendingOrdersInventory_result:
7487
  """
7488
  Attributes:
7489
   - success
7490
  """
7491
 
7492
  thrift_spec = (
7493
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
7494
  )
7495
 
7496
  def __init__(self, success=None,):
7497
    self.success = success
7498
 
7499
  def read(self, iprot):
7500
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7501
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7502
      return
7503
    iprot.readStructBegin()
7504
    while True:
7505
      (fname, ftype, fid) = iprot.readFieldBegin()
7506
      if ftype == TType.STOP:
7507
        break
7508
      if fid == 0:
7509
        if ftype == TType.LIST:
7510
          self.success = []
8182 amar.kumar 7511
          (_etype90, _size87) = iprot.readListBegin()
7512
          for _i91 in xrange(_size87):
7513
            _elem92 = AvailableAndReservedStock()
7514
            _elem92.read(iprot)
7515
            self.success.append(_elem92)
5944 mandeep.dh 7516
          iprot.readListEnd()
7517
        else:
7518
          iprot.skip(ftype)
7519
      else:
7520
        iprot.skip(ftype)
7521
      iprot.readFieldEnd()
7522
    iprot.readStructEnd()
7523
 
7524
  def write(self, oprot):
7525
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7526
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7527
      return
7528
    oprot.writeStructBegin('getPendingOrdersInventory_result')
7529
    if self.success is not None:
7530
      oprot.writeFieldBegin('success', TType.LIST, 0)
7531
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7532
      for iter93 in self.success:
7533
        iter93.write(oprot)
5944 mandeep.dh 7534
      oprot.writeListEnd()
7535
      oprot.writeFieldEnd()
7536
    oprot.writeFieldStop()
7537
    oprot.writeStructEnd()
7538
 
7539
  def validate(self):
7540
    return
7541
 
7542
 
7543
  def __repr__(self):
7544
    L = ['%s=%r' % (key, value)
7545
      for key, value in self.__dict__.iteritems()]
7546
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7547
 
7548
  def __eq__(self, other):
7549
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7550
 
7551
  def __ne__(self, other):
7552
    return not (self == other)
7553
 
7554
class getWarehouses_args:
7555
  """
7556
  Attributes:
7557
   - warehouseType
7558
   - inventoryType
7559
   - vendorId
7560
   - billingWarehouseId
7561
   - shippingWarehouseId
7562
  """
7563
 
7564
  thrift_spec = (
7565
    None, # 0
7566
    (1, TType.I32, 'warehouseType', None, None, ), # 1
7567
    (2, TType.I32, 'inventoryType', None, None, ), # 2
7568
    (3, TType.I64, 'vendorId', None, None, ), # 3
7569
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
7570
    (5, TType.I64, 'shippingWarehouseId', None, None, ), # 5
7571
  )
7572
 
7573
  def __init__(self, warehouseType=None, inventoryType=None, vendorId=None, billingWarehouseId=None, shippingWarehouseId=None,):
7574
    self.warehouseType = warehouseType
7575
    self.inventoryType = inventoryType
7576
    self.vendorId = vendorId
7577
    self.billingWarehouseId = billingWarehouseId
7578
    self.shippingWarehouseId = shippingWarehouseId
7579
 
7580
  def read(self, iprot):
7581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7583
      return
7584
    iprot.readStructBegin()
7585
    while True:
7586
      (fname, ftype, fid) = iprot.readFieldBegin()
7587
      if ftype == TType.STOP:
7588
        break
7589
      if fid == 1:
7590
        if ftype == TType.I32:
7591
          self.warehouseType = iprot.readI32();
7592
        else:
7593
          iprot.skip(ftype)
7594
      elif fid == 2:
7595
        if ftype == TType.I32:
7596
          self.inventoryType = iprot.readI32();
7597
        else:
7598
          iprot.skip(ftype)
7599
      elif fid == 3:
7600
        if ftype == TType.I64:
7601
          self.vendorId = iprot.readI64();
7602
        else:
7603
          iprot.skip(ftype)
7604
      elif fid == 4:
7605
        if ftype == TType.I64:
7606
          self.billingWarehouseId = iprot.readI64();
7607
        else:
7608
          iprot.skip(ftype)
7609
      elif fid == 5:
7610
        if ftype == TType.I64:
7611
          self.shippingWarehouseId = iprot.readI64();
7612
        else:
7613
          iprot.skip(ftype)
7614
      else:
7615
        iprot.skip(ftype)
7616
      iprot.readFieldEnd()
7617
    iprot.readStructEnd()
7618
 
7619
  def write(self, oprot):
7620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7622
      return
7623
    oprot.writeStructBegin('getWarehouses_args')
7624
    if self.warehouseType is not None:
7625
      oprot.writeFieldBegin('warehouseType', TType.I32, 1)
7626
      oprot.writeI32(self.warehouseType)
7627
      oprot.writeFieldEnd()
7628
    if self.inventoryType is not None:
7629
      oprot.writeFieldBegin('inventoryType', TType.I32, 2)
7630
      oprot.writeI32(self.inventoryType)
7631
      oprot.writeFieldEnd()
7632
    if self.vendorId is not None:
7633
      oprot.writeFieldBegin('vendorId', TType.I64, 3)
7634
      oprot.writeI64(self.vendorId)
7635
      oprot.writeFieldEnd()
7636
    if self.billingWarehouseId is not None:
7637
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
7638
      oprot.writeI64(self.billingWarehouseId)
7639
      oprot.writeFieldEnd()
7640
    if self.shippingWarehouseId is not None:
7641
      oprot.writeFieldBegin('shippingWarehouseId', TType.I64, 5)
7642
      oprot.writeI64(self.shippingWarehouseId)
7643
      oprot.writeFieldEnd()
7644
    oprot.writeFieldStop()
7645
    oprot.writeStructEnd()
7646
 
7647
  def validate(self):
7648
    return
7649
 
7650
 
7651
  def __repr__(self):
7652
    L = ['%s=%r' % (key, value)
7653
      for key, value in self.__dict__.iteritems()]
7654
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7655
 
7656
  def __eq__(self, other):
7657
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7658
 
7659
  def __ne__(self, other):
7660
    return not (self == other)
7661
 
7662
class getWarehouses_result:
7663
  """
7664
  Attributes:
7665
   - success
7666
  """
7667
 
7668
  thrift_spec = (
7669
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
7670
  )
7671
 
7672
  def __init__(self, success=None,):
7673
    self.success = success
7674
 
7675
  def read(self, iprot):
7676
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7677
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7678
      return
7679
    iprot.readStructBegin()
7680
    while True:
7681
      (fname, ftype, fid) = iprot.readFieldBegin()
7682
      if ftype == TType.STOP:
7683
        break
7684
      if fid == 0:
7685
        if ftype == TType.LIST:
7686
          self.success = []
8182 amar.kumar 7687
          (_etype97, _size94) = iprot.readListBegin()
7688
          for _i98 in xrange(_size94):
7689
            _elem99 = Warehouse()
7690
            _elem99.read(iprot)
7691
            self.success.append(_elem99)
5944 mandeep.dh 7692
          iprot.readListEnd()
7693
        else:
7694
          iprot.skip(ftype)
7695
      else:
7696
        iprot.skip(ftype)
7697
      iprot.readFieldEnd()
7698
    iprot.readStructEnd()
7699
 
7700
  def write(self, oprot):
7701
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7702
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7703
      return
7704
    oprot.writeStructBegin('getWarehouses_result')
7705
    if self.success is not None:
7706
      oprot.writeFieldBegin('success', TType.LIST, 0)
7707
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7708
      for iter100 in self.success:
7709
        iter100.write(oprot)
5944 mandeep.dh 7710
      oprot.writeListEnd()
7711
      oprot.writeFieldEnd()
7712
    oprot.writeFieldStop()
7713
    oprot.writeStructEnd()
7714
 
7715
  def validate(self):
7716
    return
7717
 
7718
 
7719
  def __repr__(self):
7720
    L = ['%s=%r' % (key, value)
7721
      for key, value in self.__dict__.iteritems()]
7722
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7723
 
7724
  def __eq__(self, other):
7725
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7726
 
7727
  def __ne__(self, other):
7728
    return not (self == other)
7729
 
7730
class resetAvailability_args:
7731
  """
7732
  Attributes:
7733
   - itemKey
7734
   - vendorId
7735
   - quantity
7736
   - warehouseId
7737
  """
7738
 
7739
  thrift_spec = (
7740
    None, # 0
7741
    (1, TType.STRING, 'itemKey', None, None, ), # 1
7742
    (2, TType.I64, 'vendorId', None, None, ), # 2
7743
    (3, TType.I64, 'quantity', None, None, ), # 3
7744
    (4, TType.I64, 'warehouseId', None, None, ), # 4
7745
  )
7746
 
7747
  def __init__(self, itemKey=None, vendorId=None, quantity=None, warehouseId=None,):
7748
    self.itemKey = itemKey
7749
    self.vendorId = vendorId
7750
    self.quantity = quantity
7751
    self.warehouseId = warehouseId
7752
 
7753
  def read(self, iprot):
7754
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7755
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7756
      return
7757
    iprot.readStructBegin()
7758
    while True:
7759
      (fname, ftype, fid) = iprot.readFieldBegin()
7760
      if ftype == TType.STOP:
7761
        break
7762
      if fid == 1:
7763
        if ftype == TType.STRING:
7764
          self.itemKey = iprot.readString();
7765
        else:
7766
          iprot.skip(ftype)
7767
      elif fid == 2:
7768
        if ftype == TType.I64:
7769
          self.vendorId = iprot.readI64();
7770
        else:
7771
          iprot.skip(ftype)
7772
      elif fid == 3:
7773
        if ftype == TType.I64:
7774
          self.quantity = iprot.readI64();
7775
        else:
7776
          iprot.skip(ftype)
7777
      elif fid == 4:
7778
        if ftype == TType.I64:
7779
          self.warehouseId = iprot.readI64();
7780
        else:
7781
          iprot.skip(ftype)
7782
      else:
7783
        iprot.skip(ftype)
7784
      iprot.readFieldEnd()
7785
    iprot.readStructEnd()
7786
 
7787
  def write(self, oprot):
7788
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7789
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7790
      return
7791
    oprot.writeStructBegin('resetAvailability_args')
7792
    if self.itemKey is not None:
7793
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
7794
      oprot.writeString(self.itemKey)
7795
      oprot.writeFieldEnd()
7796
    if self.vendorId is not None:
7797
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
7798
      oprot.writeI64(self.vendorId)
7799
      oprot.writeFieldEnd()
7800
    if self.quantity is not None:
7801
      oprot.writeFieldBegin('quantity', TType.I64, 3)
7802
      oprot.writeI64(self.quantity)
7803
      oprot.writeFieldEnd()
7804
    if self.warehouseId is not None:
7805
      oprot.writeFieldBegin('warehouseId', TType.I64, 4)
7806
      oprot.writeI64(self.warehouseId)
7807
      oprot.writeFieldEnd()
7808
    oprot.writeFieldStop()
7809
    oprot.writeStructEnd()
7810
 
7811
  def validate(self):
7812
    return
7813
 
7814
 
7815
  def __repr__(self):
7816
    L = ['%s=%r' % (key, value)
7817
      for key, value in self.__dict__.iteritems()]
7818
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7819
 
7820
  def __eq__(self, other):
7821
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7822
 
7823
  def __ne__(self, other):
7824
    return not (self == other)
7825
 
7826
class resetAvailability_result:
7827
  """
7828
  Attributes:
7829
   - cex
7830
  """
7831
 
7832
  thrift_spec = (
7833
    None, # 0
7834
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7835
  )
7836
 
7837
  def __init__(self, cex=None,):
7838
    self.cex = cex
7839
 
7840
  def read(self, iprot):
7841
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7842
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7843
      return
7844
    iprot.readStructBegin()
7845
    while True:
7846
      (fname, ftype, fid) = iprot.readFieldBegin()
7847
      if ftype == TType.STOP:
7848
        break
7849
      if fid == 1:
7850
        if ftype == TType.STRUCT:
7851
          self.cex = InventoryServiceException()
7852
          self.cex.read(iprot)
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('resetAvailability_result')
7865
    if self.cex is not None:
7866
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7867
      self.cex.write(oprot)
7868
      oprot.writeFieldEnd()
7869
    oprot.writeFieldStop()
7870
    oprot.writeStructEnd()
7871
 
7872
  def validate(self):
7873
    return
7874
 
7875
 
7876
  def __repr__(self):
7877
    L = ['%s=%r' % (key, value)
7878
      for key, value in self.__dict__.iteritems()]
7879
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7880
 
7881
  def __eq__(self, other):
7882
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7883
 
7884
  def __ne__(self, other):
7885
    return not (self == other)
7886
 
7887
class resetAvailabilityForWarehouse_args:
7888
  """
7889
  Attributes:
7890
   - warehouseId
7891
  """
7892
 
7893
  thrift_spec = (
7894
    None, # 0
7895
    (1, TType.I64, 'warehouseId', None, None, ), # 1
7896
  )
7897
 
7898
  def __init__(self, warehouseId=None,):
7899
    self.warehouseId = warehouseId
7900
 
7901
  def read(self, iprot):
7902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7904
      return
7905
    iprot.readStructBegin()
7906
    while True:
7907
      (fname, ftype, fid) = iprot.readFieldBegin()
7908
      if ftype == TType.STOP:
7909
        break
7910
      if fid == 1:
7911
        if ftype == TType.I64:
7912
          self.warehouseId = iprot.readI64();
7913
        else:
7914
          iprot.skip(ftype)
7915
      else:
7916
        iprot.skip(ftype)
7917
      iprot.readFieldEnd()
7918
    iprot.readStructEnd()
7919
 
7920
  def write(self, oprot):
7921
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7922
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7923
      return
7924
    oprot.writeStructBegin('resetAvailabilityForWarehouse_args')
7925
    if self.warehouseId is not None:
7926
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
7927
      oprot.writeI64(self.warehouseId)
7928
      oprot.writeFieldEnd()
7929
    oprot.writeFieldStop()
7930
    oprot.writeStructEnd()
7931
 
7932
  def validate(self):
7933
    return
7934
 
7935
 
7936
  def __repr__(self):
7937
    L = ['%s=%r' % (key, value)
7938
      for key, value in self.__dict__.iteritems()]
7939
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7940
 
7941
  def __eq__(self, other):
7942
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7943
 
7944
  def __ne__(self, other):
7945
    return not (self == other)
7946
 
7947
class resetAvailabilityForWarehouse_result:
7948
  """
7949
  Attributes:
7950
   - cex
7951
  """
7952
 
7953
  thrift_spec = (
7954
    None, # 0
7955
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7956
  )
7957
 
7958
  def __init__(self, cex=None,):
7959
    self.cex = cex
7960
 
7961
  def read(self, iprot):
7962
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7963
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7964
      return
7965
    iprot.readStructBegin()
7966
    while True:
7967
      (fname, ftype, fid) = iprot.readFieldBegin()
7968
      if ftype == TType.STOP:
7969
        break
7970
      if fid == 1:
7971
        if ftype == TType.STRUCT:
7972
          self.cex = InventoryServiceException()
7973
          self.cex.read(iprot)
7974
        else:
7975
          iprot.skip(ftype)
7976
      else:
7977
        iprot.skip(ftype)
7978
      iprot.readFieldEnd()
7979
    iprot.readStructEnd()
7980
 
7981
  def write(self, oprot):
7982
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7983
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7984
      return
7985
    oprot.writeStructBegin('resetAvailabilityForWarehouse_result')
7986
    if self.cex is not None:
7987
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7988
      self.cex.write(oprot)
7989
      oprot.writeFieldEnd()
7990
    oprot.writeFieldStop()
7991
    oprot.writeStructEnd()
7992
 
7993
  def validate(self):
7994
    return
7995
 
7996
 
7997
  def __repr__(self):
7998
    L = ['%s=%r' % (key, value)
7999
      for key, value in self.__dict__.iteritems()]
8000
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8001
 
8002
  def __eq__(self, other):
8003
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8004
 
8005
  def __ne__(self, other):
8006
    return not (self == other)
8007
 
8008
class getItemKeysToBeProcessed_args:
8009
  """
8010
  Attributes:
8011
   - warehouseId
8012
  """
8013
 
8014
  thrift_spec = (
8015
    None, # 0
8016
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8017
  )
8018
 
8019
  def __init__(self, warehouseId=None,):
8020
    self.warehouseId = warehouseId
8021
 
8022
  def read(self, iprot):
8023
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8024
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8025
      return
8026
    iprot.readStructBegin()
8027
    while True:
8028
      (fname, ftype, fid) = iprot.readFieldBegin()
8029
      if ftype == TType.STOP:
8030
        break
8031
      if fid == 1:
8032
        if ftype == TType.I64:
8033
          self.warehouseId = iprot.readI64();
8034
        else:
8035
          iprot.skip(ftype)
8036
      else:
8037
        iprot.skip(ftype)
8038
      iprot.readFieldEnd()
8039
    iprot.readStructEnd()
8040
 
8041
  def write(self, oprot):
8042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8044
      return
8045
    oprot.writeStructBegin('getItemKeysToBeProcessed_args')
8046
    if self.warehouseId is not None:
8047
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8048
      oprot.writeI64(self.warehouseId)
8049
      oprot.writeFieldEnd()
8050
    oprot.writeFieldStop()
8051
    oprot.writeStructEnd()
8052
 
8053
  def validate(self):
8054
    return
8055
 
8056
 
8057
  def __repr__(self):
8058
    L = ['%s=%r' % (key, value)
8059
      for key, value in self.__dict__.iteritems()]
8060
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8061
 
8062
  def __eq__(self, other):
8063
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8064
 
8065
  def __ne__(self, other):
8066
    return not (self == other)
8067
 
8068
class getItemKeysToBeProcessed_result:
8069
  """
8070
  Attributes:
8071
   - success
8072
  """
8073
 
8074
  thrift_spec = (
8075
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
8076
  )
8077
 
8078
  def __init__(self, success=None,):
8079
    self.success = success
8080
 
8081
  def read(self, iprot):
8082
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8083
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8084
      return
8085
    iprot.readStructBegin()
8086
    while True:
8087
      (fname, ftype, fid) = iprot.readFieldBegin()
8088
      if ftype == TType.STOP:
8089
        break
8090
      if fid == 0:
8091
        if ftype == TType.LIST:
8092
          self.success = []
8182 amar.kumar 8093
          (_etype104, _size101) = iprot.readListBegin()
8094
          for _i105 in xrange(_size101):
8095
            _elem106 = iprot.readString();
8096
            self.success.append(_elem106)
5944 mandeep.dh 8097
          iprot.readListEnd()
8098
        else:
8099
          iprot.skip(ftype)
8100
      else:
8101
        iprot.skip(ftype)
8102
      iprot.readFieldEnd()
8103
    iprot.readStructEnd()
8104
 
8105
  def write(self, oprot):
8106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8108
      return
8109
    oprot.writeStructBegin('getItemKeysToBeProcessed_result')
8110
    if self.success is not None:
8111
      oprot.writeFieldBegin('success', TType.LIST, 0)
8112
      oprot.writeListBegin(TType.STRING, len(self.success))
8182 amar.kumar 8113
      for iter107 in self.success:
8114
        oprot.writeString(iter107)
5944 mandeep.dh 8115
      oprot.writeListEnd()
8116
      oprot.writeFieldEnd()
8117
    oprot.writeFieldStop()
8118
    oprot.writeStructEnd()
8119
 
8120
  def validate(self):
8121
    return
8122
 
8123
 
8124
  def __repr__(self):
8125
    L = ['%s=%r' % (key, value)
8126
      for key, value in self.__dict__.iteritems()]
8127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8128
 
8129
  def __eq__(self, other):
8130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8131
 
8132
  def __ne__(self, other):
8133
    return not (self == other)
8134
 
8135
class markMissedInventoryUpdatesAsProcessed_args:
8136
  """
8137
  Attributes:
8138
   - itemKey
8139
   - warehouseId
8140
  """
8141
 
8142
  thrift_spec = (
8143
    None, # 0
8144
    (1, TType.STRING, 'itemKey', None, None, ), # 1
8145
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8146
  )
8147
 
8148
  def __init__(self, itemKey=None, warehouseId=None,):
8149
    self.itemKey = itemKey
8150
    self.warehouseId = warehouseId
8151
 
8152
  def read(self, iprot):
8153
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8154
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8155
      return
8156
    iprot.readStructBegin()
8157
    while True:
8158
      (fname, ftype, fid) = iprot.readFieldBegin()
8159
      if ftype == TType.STOP:
8160
        break
8161
      if fid == 1:
8162
        if ftype == TType.STRING:
8163
          self.itemKey = iprot.readString();
8164
        else:
8165
          iprot.skip(ftype)
8166
      elif fid == 2:
8167
        if ftype == TType.I64:
8168
          self.warehouseId = iprot.readI64();
8169
        else:
8170
          iprot.skip(ftype)
8171
      else:
8172
        iprot.skip(ftype)
8173
      iprot.readFieldEnd()
8174
    iprot.readStructEnd()
8175
 
8176
  def write(self, oprot):
8177
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8178
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8179
      return
8180
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_args')
8181
    if self.itemKey is not None:
8182
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
8183
      oprot.writeString(self.itemKey)
8184
      oprot.writeFieldEnd()
8185
    if self.warehouseId is not None:
8186
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8187
      oprot.writeI64(self.warehouseId)
8188
      oprot.writeFieldEnd()
8189
    oprot.writeFieldStop()
8190
    oprot.writeStructEnd()
8191
 
8192
  def validate(self):
8193
    return
8194
 
8195
 
8196
  def __repr__(self):
8197
    L = ['%s=%r' % (key, value)
8198
      for key, value in self.__dict__.iteritems()]
8199
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8200
 
8201
  def __eq__(self, other):
8202
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8203
 
8204
  def __ne__(self, other):
8205
    return not (self == other)
8206
 
8207
class markMissedInventoryUpdatesAsProcessed_result:
8208
 
8209
  thrift_spec = (
8210
  )
8211
 
8212
  def read(self, iprot):
8213
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8214
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8215
      return
8216
    iprot.readStructBegin()
8217
    while True:
8218
      (fname, ftype, fid) = iprot.readFieldBegin()
8219
      if ftype == TType.STOP:
8220
        break
8221
      else:
8222
        iprot.skip(ftype)
8223
      iprot.readFieldEnd()
8224
    iprot.readStructEnd()
8225
 
8226
  def write(self, oprot):
8227
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8228
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8229
      return
8230
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_result')
8231
    oprot.writeFieldStop()
8232
    oprot.writeStructEnd()
8233
 
8234
  def validate(self):
8235
    return
8236
 
8237
 
8238
  def __repr__(self):
8239
    L = ['%s=%r' % (key, value)
8240
      for key, value in self.__dict__.iteritems()]
8241
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8242
 
8243
  def __eq__(self, other):
8244
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8245
 
8246
  def __ne__(self, other):
8247
    return not (self == other)
8248
 
8249
class getIgnoredItemKeys_args:
8250
 
8251
  thrift_spec = (
8252
  )
8253
 
8254
  def read(self, iprot):
8255
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8256
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8257
      return
8258
    iprot.readStructBegin()
8259
    while True:
8260
      (fname, ftype, fid) = iprot.readFieldBegin()
8261
      if ftype == TType.STOP:
8262
        break
8263
      else:
8264
        iprot.skip(ftype)
8265
      iprot.readFieldEnd()
8266
    iprot.readStructEnd()
8267
 
8268
  def write(self, oprot):
8269
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8270
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8271
      return
8272
    oprot.writeStructBegin('getIgnoredItemKeys_args')
8273
    oprot.writeFieldStop()
8274
    oprot.writeStructEnd()
8275
 
8276
  def validate(self):
8277
    return
8278
 
8279
 
8280
  def __repr__(self):
8281
    L = ['%s=%r' % (key, value)
8282
      for key, value in self.__dict__.iteritems()]
8283
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8284
 
8285
  def __eq__(self, other):
8286
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8287
 
8288
  def __ne__(self, other):
8289
    return not (self == other)
8290
 
8291
class getIgnoredItemKeys_result:
8292
  """
8293
  Attributes:
8294
   - success
8295
  """
8296
 
8297
  thrift_spec = (
8298
    (0, TType.MAP, 'success', (TType.STRING,None,TType.MAP,(TType.I64,None,TType.I64,None)), None, ), # 0
8299
  )
8300
 
8301
  def __init__(self, success=None,):
8302
    self.success = success
8303
 
8304
  def read(self, iprot):
8305
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8306
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8307
      return
8308
    iprot.readStructBegin()
8309
    while True:
8310
      (fname, ftype, fid) = iprot.readFieldBegin()
8311
      if ftype == TType.STOP:
8312
        break
8313
      if fid == 0:
8314
        if ftype == TType.MAP:
8315
          self.success = {}
8182 amar.kumar 8316
          (_ktype109, _vtype110, _size108 ) = iprot.readMapBegin() 
8317
          for _i112 in xrange(_size108):
8318
            _key113 = iprot.readString();
8319
            _val114 = {}
8320
            (_ktype116, _vtype117, _size115 ) = iprot.readMapBegin() 
8321
            for _i119 in xrange(_size115):
8322
              _key120 = iprot.readI64();
8323
              _val121 = iprot.readI64();
8324
              _val114[_key120] = _val121
5944 mandeep.dh 8325
            iprot.readMapEnd()
8182 amar.kumar 8326
            self.success[_key113] = _val114
5944 mandeep.dh 8327
          iprot.readMapEnd()
8328
        else:
8329
          iprot.skip(ftype)
8330
      else:
8331
        iprot.skip(ftype)
8332
      iprot.readFieldEnd()
8333
    iprot.readStructEnd()
8334
 
8335
  def write(self, oprot):
8336
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8337
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8338
      return
8339
    oprot.writeStructBegin('getIgnoredItemKeys_result')
8340
    if self.success is not None:
8341
      oprot.writeFieldBegin('success', TType.MAP, 0)
8342
      oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.success))
8182 amar.kumar 8343
      for kiter122,viter123 in self.success.items():
8344
        oprot.writeString(kiter122)
8345
        oprot.writeMapBegin(TType.I64, TType.I64, len(viter123))
8346
        for kiter124,viter125 in viter123.items():
8347
          oprot.writeI64(kiter124)
8348
          oprot.writeI64(viter125)
5944 mandeep.dh 8349
        oprot.writeMapEnd()
8350
      oprot.writeMapEnd()
8351
      oprot.writeFieldEnd()
8352
    oprot.writeFieldStop()
8353
    oprot.writeStructEnd()
8354
 
8355
  def validate(self):
8356
    return
8357
 
8358
 
8359
  def __repr__(self):
8360
    L = ['%s=%r' % (key, value)
8361
      for key, value in self.__dict__.iteritems()]
8362
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8363
 
8364
  def __eq__(self, other):
8365
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8366
 
8367
  def __ne__(self, other):
8368
    return not (self == other)
8369
 
8370
class addBadInventory_args:
8371
  """
8372
  Attributes:
8373
   - itemId
8374
   - warehouseId
8375
   - quantity
8376
  """
8377
 
8378
  thrift_spec = (
8379
    None, # 0
8380
    (1, TType.I64, 'itemId', None, None, ), # 1
8381
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8382
    (3, TType.I64, 'quantity', None, None, ), # 3
8383
  )
8384
 
8385
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
8386
    self.itemId = itemId
8387
    self.warehouseId = warehouseId
8388
    self.quantity = quantity
8389
 
8390
  def read(self, iprot):
8391
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8392
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8393
      return
8394
    iprot.readStructBegin()
8395
    while True:
8396
      (fname, ftype, fid) = iprot.readFieldBegin()
8397
      if ftype == TType.STOP:
8398
        break
8399
      if fid == 1:
8400
        if ftype == TType.I64:
8401
          self.itemId = iprot.readI64();
8402
        else:
8403
          iprot.skip(ftype)
8404
      elif fid == 2:
8405
        if ftype == TType.I64:
8406
          self.warehouseId = iprot.readI64();
8407
        else:
8408
          iprot.skip(ftype)
8409
      elif fid == 3:
8410
        if ftype == TType.I64:
8411
          self.quantity = iprot.readI64();
8412
        else:
8413
          iprot.skip(ftype)
8414
      else:
8415
        iprot.skip(ftype)
8416
      iprot.readFieldEnd()
8417
    iprot.readStructEnd()
8418
 
8419
  def write(self, oprot):
8420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8422
      return
8423
    oprot.writeStructBegin('addBadInventory_args')
8424
    if self.itemId is not None:
8425
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8426
      oprot.writeI64(self.itemId)
8427
      oprot.writeFieldEnd()
8428
    if self.warehouseId is not None:
8429
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8430
      oprot.writeI64(self.warehouseId)
8431
      oprot.writeFieldEnd()
8432
    if self.quantity is not None:
8433
      oprot.writeFieldBegin('quantity', TType.I64, 3)
8434
      oprot.writeI64(self.quantity)
8435
      oprot.writeFieldEnd()
8436
    oprot.writeFieldStop()
8437
    oprot.writeStructEnd()
8438
 
8439
  def validate(self):
8440
    return
8441
 
8442
 
8443
  def __repr__(self):
8444
    L = ['%s=%r' % (key, value)
8445
      for key, value in self.__dict__.iteritems()]
8446
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8447
 
8448
  def __eq__(self, other):
8449
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8450
 
8451
  def __ne__(self, other):
8452
    return not (self == other)
8453
 
8454
class addBadInventory_result:
8455
  """
8456
  Attributes:
8457
   - cex
8458
  """
8459
 
8460
  thrift_spec = (
8461
    None, # 0
8462
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8463
  )
8464
 
8465
  def __init__(self, cex=None,):
8466
    self.cex = cex
8467
 
8468
  def read(self, iprot):
8469
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8470
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8471
      return
8472
    iprot.readStructBegin()
8473
    while True:
8474
      (fname, ftype, fid) = iprot.readFieldBegin()
8475
      if ftype == TType.STOP:
8476
        break
8477
      if fid == 1:
8478
        if ftype == TType.STRUCT:
8479
          self.cex = InventoryServiceException()
8480
          self.cex.read(iprot)
8481
        else:
8482
          iprot.skip(ftype)
8483
      else:
8484
        iprot.skip(ftype)
8485
      iprot.readFieldEnd()
8486
    iprot.readStructEnd()
8487
 
8488
  def write(self, oprot):
8489
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8490
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8491
      return
8492
    oprot.writeStructBegin('addBadInventory_result')
8493
    if self.cex is not None:
8494
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8495
      self.cex.write(oprot)
8496
      oprot.writeFieldEnd()
8497
    oprot.writeFieldStop()
8498
    oprot.writeStructEnd()
8499
 
8500
  def validate(self):
8501
    return
8502
 
8503
 
8504
  def __repr__(self):
8505
    L = ['%s=%r' % (key, value)
8506
      for key, value in self.__dict__.iteritems()]
8507
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8508
 
8509
  def __eq__(self, other):
8510
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8511
 
8512
  def __ne__(self, other):
8513
    return not (self == other)
8514
 
8515
class getShippingLocations_args:
8516
 
8517
  thrift_spec = (
8518
  )
8519
 
8520
  def read(self, iprot):
8521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8523
      return
8524
    iprot.readStructBegin()
8525
    while True:
8526
      (fname, ftype, fid) = iprot.readFieldBegin()
8527
      if ftype == TType.STOP:
8528
        break
8529
      else:
8530
        iprot.skip(ftype)
8531
      iprot.readFieldEnd()
8532
    iprot.readStructEnd()
8533
 
8534
  def write(self, oprot):
8535
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8536
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8537
      return
8538
    oprot.writeStructBegin('getShippingLocations_args')
8539
    oprot.writeFieldStop()
8540
    oprot.writeStructEnd()
8541
 
8542
  def validate(self):
8543
    return
8544
 
8545
 
8546
  def __repr__(self):
8547
    L = ['%s=%r' % (key, value)
8548
      for key, value in self.__dict__.iteritems()]
8549
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8550
 
8551
  def __eq__(self, other):
8552
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8553
 
8554
  def __ne__(self, other):
8555
    return not (self == other)
8556
 
8557
class getShippingLocations_result:
8558
  """
8559
  Attributes:
8560
   - success
8561
  """
8562
 
8563
  thrift_spec = (
8564
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
8565
  )
8566
 
8567
  def __init__(self, success=None,):
8568
    self.success = success
8569
 
8570
  def read(self, iprot):
8571
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8572
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8573
      return
8574
    iprot.readStructBegin()
8575
    while True:
8576
      (fname, ftype, fid) = iprot.readFieldBegin()
8577
      if ftype == TType.STOP:
8578
        break
8579
      if fid == 0:
8580
        if ftype == TType.LIST:
8581
          self.success = []
8182 amar.kumar 8582
          (_etype129, _size126) = iprot.readListBegin()
8583
          for _i130 in xrange(_size126):
8584
            _elem131 = Warehouse()
8585
            _elem131.read(iprot)
8586
            self.success.append(_elem131)
5944 mandeep.dh 8587
          iprot.readListEnd()
8588
        else:
8589
          iprot.skip(ftype)
8590
      else:
8591
        iprot.skip(ftype)
8592
      iprot.readFieldEnd()
8593
    iprot.readStructEnd()
8594
 
8595
  def write(self, oprot):
8596
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8597
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8598
      return
8599
    oprot.writeStructBegin('getShippingLocations_result')
8600
    if self.success is not None:
8601
      oprot.writeFieldBegin('success', TType.LIST, 0)
8602
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8603
      for iter132 in self.success:
8604
        iter132.write(oprot)
5944 mandeep.dh 8605
      oprot.writeListEnd()
8606
      oprot.writeFieldEnd()
8607
    oprot.writeFieldStop()
8608
    oprot.writeStructEnd()
8609
 
8610
  def validate(self):
8611
    return
8612
 
8613
 
8614
  def __repr__(self):
8615
    L = ['%s=%r' % (key, value)
8616
      for key, value in self.__dict__.iteritems()]
8617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8618
 
8619
  def __eq__(self, other):
8620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8621
 
8622
  def __ne__(self, other):
8623
    return not (self == other)
8624
 
8625
class getAllVendorItemMappings_args:
8626
 
8627
  thrift_spec = (
8628
  )
8629
 
8630
  def read(self, iprot):
8631
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8632
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8633
      return
8634
    iprot.readStructBegin()
8635
    while True:
8636
      (fname, ftype, fid) = iprot.readFieldBegin()
8637
      if ftype == TType.STOP:
8638
        break
8639
      else:
8640
        iprot.skip(ftype)
8641
      iprot.readFieldEnd()
8642
    iprot.readStructEnd()
8643
 
8644
  def write(self, oprot):
8645
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8646
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8647
      return
8648
    oprot.writeStructBegin('getAllVendorItemMappings_args')
8649
    oprot.writeFieldStop()
8650
    oprot.writeStructEnd()
8651
 
8652
  def validate(self):
8653
    return
8654
 
8655
 
8656
  def __repr__(self):
8657
    L = ['%s=%r' % (key, value)
8658
      for key, value in self.__dict__.iteritems()]
8659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8660
 
8661
  def __eq__(self, other):
8662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8663
 
8664
  def __ne__(self, other):
8665
    return not (self == other)
8666
 
8667
class getAllVendorItemMappings_result:
8668
  """
8669
  Attributes:
8670
   - success
8671
  """
8672
 
8673
  thrift_spec = (
8674
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
8675
  )
8676
 
8677
  def __init__(self, success=None,):
8678
    self.success = success
8679
 
8680
  def read(self, iprot):
8681
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8682
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8683
      return
8684
    iprot.readStructBegin()
8685
    while True:
8686
      (fname, ftype, fid) = iprot.readFieldBegin()
8687
      if ftype == TType.STOP:
8688
        break
8689
      if fid == 0:
8690
        if ftype == TType.LIST:
8691
          self.success = []
8182 amar.kumar 8692
          (_etype136, _size133) = iprot.readListBegin()
8693
          for _i137 in xrange(_size133):
8694
            _elem138 = VendorItemMapping()
8695
            _elem138.read(iprot)
8696
            self.success.append(_elem138)
5944 mandeep.dh 8697
          iprot.readListEnd()
8698
        else:
8699
          iprot.skip(ftype)
8700
      else:
8701
        iprot.skip(ftype)
8702
      iprot.readFieldEnd()
8703
    iprot.readStructEnd()
8704
 
8705
  def write(self, oprot):
8706
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8707
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8708
      return
8709
    oprot.writeStructBegin('getAllVendorItemMappings_result')
8710
    if self.success is not None:
8711
      oprot.writeFieldBegin('success', TType.LIST, 0)
8712
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8713
      for iter139 in self.success:
8714
        iter139.write(oprot)
5944 mandeep.dh 8715
      oprot.writeListEnd()
8716
      oprot.writeFieldEnd()
8717
    oprot.writeFieldStop()
8718
    oprot.writeStructEnd()
8719
 
8720
  def validate(self):
8721
    return
8722
 
8723
 
8724
  def __repr__(self):
8725
    L = ['%s=%r' % (key, value)
8726
      for key, value in self.__dict__.iteritems()]
8727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8728
 
8729
  def __eq__(self, other):
8730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8731
 
8732
  def __ne__(self, other):
8733
    return not (self == other)
8734
 
8735
class getInventorySnapshot_args:
8736
  """
8737
  Attributes:
8738
   - warehouseId
8739
  """
8740
 
8741
  thrift_spec = (
8742
    None, # 0
8743
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8744
  )
8745
 
8746
  def __init__(self, warehouseId=None,):
8747
    self.warehouseId = warehouseId
8748
 
8749
  def read(self, iprot):
8750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8752
      return
8753
    iprot.readStructBegin()
8754
    while True:
8755
      (fname, ftype, fid) = iprot.readFieldBegin()
8756
      if ftype == TType.STOP:
8757
        break
8758
      if fid == 1:
8759
        if ftype == TType.I64:
8760
          self.warehouseId = iprot.readI64();
8761
        else:
8762
          iprot.skip(ftype)
8763
      else:
8764
        iprot.skip(ftype)
8765
      iprot.readFieldEnd()
8766
    iprot.readStructEnd()
8767
 
8768
  def write(self, oprot):
8769
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8770
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8771
      return
8772
    oprot.writeStructBegin('getInventorySnapshot_args')
8773
    if self.warehouseId is not None:
8774
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8775
      oprot.writeI64(self.warehouseId)
8776
      oprot.writeFieldEnd()
8777
    oprot.writeFieldStop()
8778
    oprot.writeStructEnd()
8779
 
8780
  def validate(self):
8781
    return
8782
 
8783
 
8784
  def __repr__(self):
8785
    L = ['%s=%r' % (key, value)
8786
      for key, value in self.__dict__.iteritems()]
8787
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8788
 
8789
  def __eq__(self, other):
8790
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8791
 
8792
  def __ne__(self, other):
8793
    return not (self == other)
8794
 
8795
class getInventorySnapshot_result:
8796
  """
8797
  Attributes:
8798
   - success
8799
  """
8800
 
8801
  thrift_spec = (
8802
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ItemInventory, ItemInventory.thrift_spec)), None, ), # 0
8803
  )
8804
 
8805
  def __init__(self, success=None,):
8806
    self.success = success
8807
 
8808
  def read(self, iprot):
8809
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8810
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8811
      return
8812
    iprot.readStructBegin()
8813
    while True:
8814
      (fname, ftype, fid) = iprot.readFieldBegin()
8815
      if ftype == TType.STOP:
8816
        break
8817
      if fid == 0:
8818
        if ftype == TType.MAP:
8819
          self.success = {}
8182 amar.kumar 8820
          (_ktype141, _vtype142, _size140 ) = iprot.readMapBegin() 
8821
          for _i144 in xrange(_size140):
8822
            _key145 = iprot.readI64();
8823
            _val146 = ItemInventory()
8824
            _val146.read(iprot)
8825
            self.success[_key145] = _val146
5944 mandeep.dh 8826
          iprot.readMapEnd()
8827
        else:
8828
          iprot.skip(ftype)
8829
      else:
8830
        iprot.skip(ftype)
8831
      iprot.readFieldEnd()
8832
    iprot.readStructEnd()
8833
 
8834
  def write(self, oprot):
8835
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8836
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8837
      return
8838
    oprot.writeStructBegin('getInventorySnapshot_result')
8839
    if self.success is not None:
8840
      oprot.writeFieldBegin('success', TType.MAP, 0)
8841
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
8182 amar.kumar 8842
      for kiter147,viter148 in self.success.items():
8843
        oprot.writeI64(kiter147)
8844
        viter148.write(oprot)
5944 mandeep.dh 8845
      oprot.writeMapEnd()
8846
      oprot.writeFieldEnd()
8847
    oprot.writeFieldStop()
8848
    oprot.writeStructEnd()
8849
 
8850
  def validate(self):
8851
    return
8852
 
8853
 
8854
  def __repr__(self):
8855
    L = ['%s=%r' % (key, value)
8856
      for key, value in self.__dict__.iteritems()]
8857
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8858
 
8859
  def __eq__(self, other):
8860
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8861
 
8862
  def __ne__(self, other):
8863
    return not (self == other)
8864
 
8865
class clearItemAvailabilityCache_args:
8866
 
8867
  thrift_spec = (
8868
  )
8869
 
8870
  def read(self, iprot):
8871
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8872
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8873
      return
8874
    iprot.readStructBegin()
8875
    while True:
8876
      (fname, ftype, fid) = iprot.readFieldBegin()
8877
      if ftype == TType.STOP:
8878
        break
8879
      else:
8880
        iprot.skip(ftype)
8881
      iprot.readFieldEnd()
8882
    iprot.readStructEnd()
8883
 
8884
  def write(self, oprot):
8885
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8886
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8887
      return
8888
    oprot.writeStructBegin('clearItemAvailabilityCache_args')
8889
    oprot.writeFieldStop()
8890
    oprot.writeStructEnd()
8891
 
8892
  def validate(self):
8893
    return
8894
 
8895
 
8896
  def __repr__(self):
8897
    L = ['%s=%r' % (key, value)
8898
      for key, value in self.__dict__.iteritems()]
8899
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8900
 
8901
  def __eq__(self, other):
8902
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8903
 
8904
  def __ne__(self, other):
8905
    return not (self == other)
8906
 
8907
class clearItemAvailabilityCache_result:
8908
 
8909
  thrift_spec = (
8910
  )
8911
 
8912
  def read(self, iprot):
8913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8915
      return
8916
    iprot.readStructBegin()
8917
    while True:
8918
      (fname, ftype, fid) = iprot.readFieldBegin()
8919
      if ftype == TType.STOP:
8920
        break
8921
      else:
8922
        iprot.skip(ftype)
8923
      iprot.readFieldEnd()
8924
    iprot.readStructEnd()
8925
 
8926
  def write(self, oprot):
8927
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8928
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8929
      return
8930
    oprot.writeStructBegin('clearItemAvailabilityCache_result')
8931
    oprot.writeFieldStop()
8932
    oprot.writeStructEnd()
8933
 
8934
  def validate(self):
8935
    return
8936
 
8937
 
8938
  def __repr__(self):
8939
    L = ['%s=%r' % (key, value)
8940
      for key, value in self.__dict__.iteritems()]
8941
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8942
 
8943
  def __eq__(self, other):
8944
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8945
 
8946
  def __ne__(self, other):
8947
    return not (self == other)
8948
 
8949
class updateVendorString_args:
8950
  """
8951
  Attributes:
8952
   - warehouseId
8953
   - vendorString
8954
  """
8955
 
8956
  thrift_spec = (
8957
    None, # 0
8958
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8959
    (2, TType.STRING, 'vendorString', None, None, ), # 2
8960
  )
8961
 
8962
  def __init__(self, warehouseId=None, vendorString=None,):
8963
    self.warehouseId = warehouseId
8964
    self.vendorString = vendorString
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
      if fid == 1:
8976
        if ftype == TType.I64:
8977
          self.warehouseId = iprot.readI64();
8978
        else:
8979
          iprot.skip(ftype)
8980
      elif fid == 2:
8981
        if ftype == TType.STRING:
8982
          self.vendorString = iprot.readString();
8983
        else:
8984
          iprot.skip(ftype)
8985
      else:
8986
        iprot.skip(ftype)
8987
      iprot.readFieldEnd()
8988
    iprot.readStructEnd()
8989
 
8990
  def write(self, oprot):
8991
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8992
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8993
      return
8994
    oprot.writeStructBegin('updateVendorString_args')
8995
    if self.warehouseId is not None:
8996
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8997
      oprot.writeI64(self.warehouseId)
8998
      oprot.writeFieldEnd()
8999
    if self.vendorString is not None:
9000
      oprot.writeFieldBegin('vendorString', TType.STRING, 2)
9001
      oprot.writeString(self.vendorString)
9002
      oprot.writeFieldEnd()
9003
    oprot.writeFieldStop()
9004
    oprot.writeStructEnd()
9005
 
9006
  def validate(self):
9007
    return
9008
 
9009
 
9010
  def __repr__(self):
9011
    L = ['%s=%r' % (key, value)
9012
      for key, value in self.__dict__.iteritems()]
9013
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9014
 
9015
  def __eq__(self, other):
9016
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9017
 
9018
  def __ne__(self, other):
9019
    return not (self == other)
9020
 
9021
class updateVendorString_result:
9022
 
9023
  thrift_spec = (
9024
  )
9025
 
9026
  def read(self, iprot):
9027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9029
      return
9030
    iprot.readStructBegin()
9031
    while True:
9032
      (fname, ftype, fid) = iprot.readFieldBegin()
9033
      if ftype == TType.STOP:
9034
        break
9035
      else:
9036
        iprot.skip(ftype)
9037
      iprot.readFieldEnd()
9038
    iprot.readStructEnd()
9039
 
9040
  def write(self, oprot):
9041
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9042
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9043
      return
9044
    oprot.writeStructBegin('updateVendorString_result')
9045
    oprot.writeFieldStop()
9046
    oprot.writeStructEnd()
9047
 
9048
  def validate(self):
9049
    return
9050
 
9051
 
9052
  def __repr__(self):
9053
    L = ['%s=%r' % (key, value)
9054
      for key, value in self.__dict__.iteritems()]
9055
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9056
 
9057
  def __eq__(self, other):
9058
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9059
 
9060
  def __ne__(self, other):
9061
    return not (self == other)
6096 amit.gupta 9062
 
9063
class clearItemAvailabilityCacheForItem_args:
9064
  """
9065
  Attributes:
9066
   - item_id
9067
  """
9068
 
9069
  thrift_spec = (
9070
    None, # 0
9071
    (1, TType.I64, 'item_id', None, None, ), # 1
9072
  )
9073
 
9074
  def __init__(self, item_id=None,):
9075
    self.item_id = item_id
9076
 
9077
  def read(self, iprot):
9078
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9079
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9080
      return
9081
    iprot.readStructBegin()
9082
    while True:
9083
      (fname, ftype, fid) = iprot.readFieldBegin()
9084
      if ftype == TType.STOP:
9085
        break
9086
      if fid == 1:
9087
        if ftype == TType.I64:
9088
          self.item_id = iprot.readI64();
9089
        else:
9090
          iprot.skip(ftype)
9091
      else:
9092
        iprot.skip(ftype)
9093
      iprot.readFieldEnd()
9094
    iprot.readStructEnd()
9095
 
9096
  def write(self, oprot):
9097
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9098
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9099
      return
9100
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_args')
9101
    if self.item_id is not None:
9102
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9103
      oprot.writeI64(self.item_id)
9104
      oprot.writeFieldEnd()
9105
    oprot.writeFieldStop()
9106
    oprot.writeStructEnd()
9107
 
9108
  def validate(self):
9109
    return
9110
 
9111
 
9112
  def __repr__(self):
9113
    L = ['%s=%r' % (key, value)
9114
      for key, value in self.__dict__.iteritems()]
9115
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9116
 
9117
  def __eq__(self, other):
9118
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9119
 
9120
  def __ne__(self, other):
9121
    return not (self == other)
9122
 
9123
class clearItemAvailabilityCacheForItem_result:
9124
 
9125
  thrift_spec = (
9126
  )
9127
 
9128
  def read(self, iprot):
9129
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9130
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9131
      return
9132
    iprot.readStructBegin()
9133
    while True:
9134
      (fname, ftype, fid) = iprot.readFieldBegin()
9135
      if ftype == TType.STOP:
9136
        break
9137
      else:
9138
        iprot.skip(ftype)
9139
      iprot.readFieldEnd()
9140
    iprot.readStructEnd()
9141
 
9142
  def write(self, oprot):
9143
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9144
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9145
      return
9146
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_result')
9147
    oprot.writeFieldStop()
9148
    oprot.writeStructEnd()
9149
 
9150
  def validate(self):
9151
    return
9152
 
9153
 
9154
  def __repr__(self):
9155
    L = ['%s=%r' % (key, value)
9156
      for key, value in self.__dict__.iteritems()]
9157
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9158
 
9159
  def __eq__(self, other):
9160
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9161
 
9162
  def __ne__(self, other):
9163
    return not (self == other)
6467 amar.kumar 9164
 
9165
class getOurWarehouseIdForVendor_args:
9166
  """
9167
  Attributes:
9168
   - vendorId
7718 amar.kumar 9169
   - billingWarehouseId
6467 amar.kumar 9170
  """
9171
 
9172
  thrift_spec = (
9173
    None, # 0
9174
    (1, TType.I64, 'vendorId', None, None, ), # 1
7718 amar.kumar 9175
    (2, TType.I64, 'billingWarehouseId', None, None, ), # 2
6467 amar.kumar 9176
  )
9177
 
7718 amar.kumar 9178
  def __init__(self, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 9179
    self.vendorId = vendorId
7718 amar.kumar 9180
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 9181
 
9182
  def read(self, iprot):
9183
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9184
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9185
      return
9186
    iprot.readStructBegin()
9187
    while True:
9188
      (fname, ftype, fid) = iprot.readFieldBegin()
9189
      if ftype == TType.STOP:
9190
        break
9191
      if fid == 1:
9192
        if ftype == TType.I64:
9193
          self.vendorId = iprot.readI64();
9194
        else:
9195
          iprot.skip(ftype)
7718 amar.kumar 9196
      elif fid == 2:
9197
        if ftype == TType.I64:
9198
          self.billingWarehouseId = iprot.readI64();
9199
        else:
9200
          iprot.skip(ftype)
6467 amar.kumar 9201
      else:
9202
        iprot.skip(ftype)
9203
      iprot.readFieldEnd()
9204
    iprot.readStructEnd()
9205
 
9206
  def write(self, oprot):
9207
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9208
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9209
      return
9210
    oprot.writeStructBegin('getOurWarehouseIdForVendor_args')
9211
    if self.vendorId is not None:
9212
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
9213
      oprot.writeI64(self.vendorId)
9214
      oprot.writeFieldEnd()
7718 amar.kumar 9215
    if self.billingWarehouseId is not None:
9216
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 2)
9217
      oprot.writeI64(self.billingWarehouseId)
9218
      oprot.writeFieldEnd()
6467 amar.kumar 9219
    oprot.writeFieldStop()
9220
    oprot.writeStructEnd()
9221
 
9222
  def validate(self):
9223
    return
9224
 
9225
 
9226
  def __repr__(self):
9227
    L = ['%s=%r' % (key, value)
9228
      for key, value in self.__dict__.iteritems()]
9229
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9230
 
9231
  def __eq__(self, other):
9232
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9233
 
9234
  def __ne__(self, other):
9235
    return not (self == other)
9236
 
9237
class getOurWarehouseIdForVendor_result:
9238
  """
9239
  Attributes:
9240
   - success
9241
  """
9242
 
9243
  thrift_spec = (
9244
    (0, TType.I64, 'success', None, None, ), # 0
9245
  )
9246
 
9247
  def __init__(self, success=None,):
9248
    self.success = success
9249
 
9250
  def read(self, iprot):
9251
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9252
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9253
      return
9254
    iprot.readStructBegin()
9255
    while True:
9256
      (fname, ftype, fid) = iprot.readFieldBegin()
9257
      if ftype == TType.STOP:
9258
        break
9259
      if fid == 0:
9260
        if ftype == TType.I64:
9261
          self.success = iprot.readI64();
9262
        else:
9263
          iprot.skip(ftype)
9264
      else:
9265
        iprot.skip(ftype)
9266
      iprot.readFieldEnd()
9267
    iprot.readStructEnd()
9268
 
9269
  def write(self, oprot):
9270
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9271
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9272
      return
9273
    oprot.writeStructBegin('getOurWarehouseIdForVendor_result')
9274
    if self.success is not None:
9275
      oprot.writeFieldBegin('success', TType.I64, 0)
9276
      oprot.writeI64(self.success)
9277
      oprot.writeFieldEnd()
9278
    oprot.writeFieldStop()
9279
    oprot.writeStructEnd()
9280
 
9281
  def validate(self):
9282
    return
9283
 
9284
 
9285
  def __repr__(self):
9286
    L = ['%s=%r' % (key, value)
9287
      for key, value in self.__dict__.iteritems()]
9288
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9289
 
9290
  def __eq__(self, other):
9291
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9292
 
9293
  def __ne__(self, other):
9294
    return not (self == other)
6484 amar.kumar 9295
 
9296
class getItemAvailabilitiesAtOurWarehouses_args:
9297
  """
9298
  Attributes:
9299
   - item_ids
9300
  """
9301
 
9302
  thrift_spec = (
9303
    None, # 0
9304
    (1, TType.LIST, 'item_ids', (TType.I64,None), None, ), # 1
9305
  )
9306
 
9307
  def __init__(self, item_ids=None,):
9308
    self.item_ids = item_ids
9309
 
9310
  def read(self, iprot):
9311
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9312
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9313
      return
9314
    iprot.readStructBegin()
9315
    while True:
9316
      (fname, ftype, fid) = iprot.readFieldBegin()
9317
      if ftype == TType.STOP:
9318
        break
9319
      if fid == 1:
9320
        if ftype == TType.LIST:
9321
          self.item_ids = []
8182 amar.kumar 9322
          (_etype152, _size149) = iprot.readListBegin()
9323
          for _i153 in xrange(_size149):
9324
            _elem154 = iprot.readI64();
9325
            self.item_ids.append(_elem154)
6484 amar.kumar 9326
          iprot.readListEnd()
9327
        else:
9328
          iprot.skip(ftype)
9329
      else:
9330
        iprot.skip(ftype)
9331
      iprot.readFieldEnd()
9332
    iprot.readStructEnd()
9333
 
9334
  def write(self, oprot):
9335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9337
      return
9338
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_args')
9339
    if self.item_ids is not None:
9340
      oprot.writeFieldBegin('item_ids', TType.LIST, 1)
9341
      oprot.writeListBegin(TType.I64, len(self.item_ids))
8182 amar.kumar 9342
      for iter155 in self.item_ids:
9343
        oprot.writeI64(iter155)
6484 amar.kumar 9344
      oprot.writeListEnd()
9345
      oprot.writeFieldEnd()
9346
    oprot.writeFieldStop()
9347
    oprot.writeStructEnd()
9348
 
9349
  def validate(self):
9350
    return
9351
 
9352
 
9353
  def __repr__(self):
9354
    L = ['%s=%r' % (key, value)
9355
      for key, value in self.__dict__.iteritems()]
9356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9357
 
9358
  def __eq__(self, other):
9359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9360
 
9361
  def __ne__(self, other):
9362
    return not (self == other)
9363
 
9364
class getItemAvailabilitiesAtOurWarehouses_result:
9365
  """
9366
  Attributes:
9367
   - success
9368
  """
9369
 
9370
  thrift_spec = (
9371
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
9372
  )
9373
 
9374
  def __init__(self, success=None,):
9375
    self.success = success
9376
 
9377
  def read(self, iprot):
9378
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9379
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9380
      return
9381
    iprot.readStructBegin()
9382
    while True:
9383
      (fname, ftype, fid) = iprot.readFieldBegin()
9384
      if ftype == TType.STOP:
9385
        break
9386
      if fid == 0:
9387
        if ftype == TType.MAP:
9388
          self.success = {}
8182 amar.kumar 9389
          (_ktype157, _vtype158, _size156 ) = iprot.readMapBegin() 
9390
          for _i160 in xrange(_size156):
9391
            _key161 = iprot.readI64();
9392
            _val162 = iprot.readI64();
9393
            self.success[_key161] = _val162
6484 amar.kumar 9394
          iprot.readMapEnd()
9395
        else:
9396
          iprot.skip(ftype)
9397
      else:
9398
        iprot.skip(ftype)
9399
      iprot.readFieldEnd()
9400
    iprot.readStructEnd()
9401
 
9402
  def write(self, oprot):
9403
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9404
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9405
      return
9406
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_result')
9407
    if self.success is not None:
9408
      oprot.writeFieldBegin('success', TType.MAP, 0)
9409
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
8182 amar.kumar 9410
      for kiter163,viter164 in self.success.items():
9411
        oprot.writeI64(kiter163)
9412
        oprot.writeI64(viter164)
6484 amar.kumar 9413
      oprot.writeMapEnd()
9414
      oprot.writeFieldEnd()
9415
    oprot.writeFieldStop()
9416
    oprot.writeStructEnd()
9417
 
9418
  def validate(self):
9419
    return
9420
 
9421
 
9422
  def __repr__(self):
9423
    L = ['%s=%r' % (key, value)
9424
      for key, value in self.__dict__.iteritems()]
9425
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9426
 
9427
  def __eq__(self, other):
9428
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9429
 
9430
  def __ne__(self, other):
9431
    return not (self == other)
6531 vikram.rag 9432
 
9433
class getMonitoredWarehouseForVendors_args:
9434
  """
9435
  Attributes:
9436
   - vendorIds
9437
  """
9438
 
9439
  thrift_spec = (
9440
    None, # 0
9441
    (1, TType.LIST, 'vendorIds', (TType.I64,None), None, ), # 1
9442
  )
9443
 
9444
  def __init__(self, vendorIds=None,):
9445
    self.vendorIds = vendorIds
9446
 
9447
  def read(self, iprot):
9448
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9449
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9450
      return
9451
    iprot.readStructBegin()
9452
    while True:
9453
      (fname, ftype, fid) = iprot.readFieldBegin()
9454
      if ftype == TType.STOP:
9455
        break
9456
      if fid == 1:
9457
        if ftype == TType.LIST:
9458
          self.vendorIds = []
8182 amar.kumar 9459
          (_etype168, _size165) = iprot.readListBegin()
9460
          for _i169 in xrange(_size165):
9461
            _elem170 = iprot.readI64();
9462
            self.vendorIds.append(_elem170)
6531 vikram.rag 9463
          iprot.readListEnd()
9464
        else:
9465
          iprot.skip(ftype)
9466
      else:
9467
        iprot.skip(ftype)
9468
      iprot.readFieldEnd()
9469
    iprot.readStructEnd()
9470
 
9471
  def write(self, oprot):
9472
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9473
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9474
      return
9475
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_args')
9476
    if self.vendorIds is not None:
9477
      oprot.writeFieldBegin('vendorIds', TType.LIST, 1)
9478
      oprot.writeListBegin(TType.I64, len(self.vendorIds))
8182 amar.kumar 9479
      for iter171 in self.vendorIds:
9480
        oprot.writeI64(iter171)
6531 vikram.rag 9481
      oprot.writeListEnd()
9482
      oprot.writeFieldEnd()
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)
9500
 
9501
class getMonitoredWarehouseForVendors_result:
9502
  """
9503
  Attributes:
9504
   - success
9505
  """
9506
 
9507
  thrift_spec = (
9508
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9509
  )
9510
 
9511
  def __init__(self, success=None,):
9512
    self.success = success
9513
 
9514
  def read(self, iprot):
9515
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9516
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9517
      return
9518
    iprot.readStructBegin()
9519
    while True:
9520
      (fname, ftype, fid) = iprot.readFieldBegin()
9521
      if ftype == TType.STOP:
9522
        break
9523
      if fid == 0:
9524
        if ftype == TType.LIST:
9525
          self.success = []
8182 amar.kumar 9526
          (_etype175, _size172) = iprot.readListBegin()
9527
          for _i176 in xrange(_size172):
9528
            _elem177 = iprot.readI64();
9529
            self.success.append(_elem177)
6531 vikram.rag 9530
          iprot.readListEnd()
9531
        else:
9532
          iprot.skip(ftype)
9533
      else:
9534
        iprot.skip(ftype)
9535
      iprot.readFieldEnd()
9536
    iprot.readStructEnd()
9537
 
9538
  def write(self, oprot):
9539
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9540
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9541
      return
9542
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_result')
9543
    if self.success is not None:
9544
      oprot.writeFieldBegin('success', TType.LIST, 0)
9545
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 9546
      for iter178 in self.success:
9547
        oprot.writeI64(iter178)
6531 vikram.rag 9548
      oprot.writeListEnd()
9549
      oprot.writeFieldEnd()
9550
    oprot.writeFieldStop()
9551
    oprot.writeStructEnd()
9552
 
9553
  def validate(self):
9554
    return
9555
 
9556
 
9557
  def __repr__(self):
9558
    L = ['%s=%r' % (key, value)
9559
      for key, value in self.__dict__.iteritems()]
9560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9561
 
9562
  def __eq__(self, other):
9563
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9564
 
9565
  def __ne__(self, other):
9566
    return not (self == other)
9567
 
9568
class getIgnoredWarehouseidsAndItemids_args:
9569
 
9570
  thrift_spec = (
9571
  )
9572
 
9573
  def read(self, iprot):
9574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9576
      return
9577
    iprot.readStructBegin()
9578
    while True:
9579
      (fname, ftype, fid) = iprot.readFieldBegin()
9580
      if ftype == TType.STOP:
9581
        break
9582
      else:
9583
        iprot.skip(ftype)
9584
      iprot.readFieldEnd()
9585
    iprot.readStructEnd()
9586
 
9587
  def write(self, oprot):
9588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9590
      return
9591
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_args')
9592
    oprot.writeFieldStop()
9593
    oprot.writeStructEnd()
9594
 
9595
  def validate(self):
9596
    return
9597
 
9598
 
9599
  def __repr__(self):
9600
    L = ['%s=%r' % (key, value)
9601
      for key, value in self.__dict__.iteritems()]
9602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9603
 
9604
  def __eq__(self, other):
9605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9606
 
9607
  def __ne__(self, other):
9608
    return not (self == other)
9609
 
9610
class getIgnoredWarehouseidsAndItemids_result:
9611
  """
9612
  Attributes:
9613
   - success
9614
  """
9615
 
9616
  thrift_spec = (
9617
    (0, TType.LIST, 'success', (TType.STRUCT,(IgnoredInventoryUpdateItems, IgnoredInventoryUpdateItems.thrift_spec)), None, ), # 0
9618
  )
9619
 
9620
  def __init__(self, success=None,):
9621
    self.success = success
9622
 
9623
  def read(self, iprot):
9624
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9625
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9626
      return
9627
    iprot.readStructBegin()
9628
    while True:
9629
      (fname, ftype, fid) = iprot.readFieldBegin()
9630
      if ftype == TType.STOP:
9631
        break
9632
      if fid == 0:
9633
        if ftype == TType.LIST:
9634
          self.success = []
8182 amar.kumar 9635
          (_etype182, _size179) = iprot.readListBegin()
9636
          for _i183 in xrange(_size179):
9637
            _elem184 = IgnoredInventoryUpdateItems()
9638
            _elem184.read(iprot)
9639
            self.success.append(_elem184)
6531 vikram.rag 9640
          iprot.readListEnd()
9641
        else:
9642
          iprot.skip(ftype)
9643
      else:
9644
        iprot.skip(ftype)
9645
      iprot.readFieldEnd()
9646
    iprot.readStructEnd()
9647
 
9648
  def write(self, oprot):
9649
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9650
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9651
      return
9652
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_result')
9653
    if self.success is not None:
9654
      oprot.writeFieldBegin('success', TType.LIST, 0)
9655
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 9656
      for iter185 in self.success:
9657
        iter185.write(oprot)
6531 vikram.rag 9658
      oprot.writeListEnd()
9659
      oprot.writeFieldEnd()
9660
    oprot.writeFieldStop()
9661
    oprot.writeStructEnd()
9662
 
9663
  def validate(self):
9664
    return
9665
 
9666
 
9667
  def __repr__(self):
9668
    L = ['%s=%r' % (key, value)
9669
      for key, value in self.__dict__.iteritems()]
9670
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9671
 
9672
  def __eq__(self, other):
9673
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9674
 
9675
  def __ne__(self, other):
9676
    return not (self == other)
9677
 
9678
class insertItemtoIgnoreInventoryUpdatelist_args:
9679
  """
9680
  Attributes:
9681
   - item_id
9682
   - warehouse_id
9683
  """
9684
 
9685
  thrift_spec = (
9686
    None, # 0
9687
    (1, TType.I64, 'item_id', None, None, ), # 1
9688
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
9689
  )
9690
 
9691
  def __init__(self, item_id=None, warehouse_id=None,):
9692
    self.item_id = item_id
9693
    self.warehouse_id = warehouse_id
9694
 
9695
  def read(self, iprot):
9696
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9697
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9698
      return
9699
    iprot.readStructBegin()
9700
    while True:
9701
      (fname, ftype, fid) = iprot.readFieldBegin()
9702
      if ftype == TType.STOP:
9703
        break
9704
      if fid == 1:
9705
        if ftype == TType.I64:
9706
          self.item_id = iprot.readI64();
9707
        else:
9708
          iprot.skip(ftype)
9709
      elif fid == 2:
9710
        if ftype == TType.I64:
9711
          self.warehouse_id = iprot.readI64();
9712
        else:
9713
          iprot.skip(ftype)
9714
      else:
9715
        iprot.skip(ftype)
9716
      iprot.readFieldEnd()
9717
    iprot.readStructEnd()
9718
 
9719
  def write(self, oprot):
9720
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9721
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9722
      return
9723
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_args')
9724
    if self.item_id is not None:
9725
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9726
      oprot.writeI64(self.item_id)
9727
      oprot.writeFieldEnd()
9728
    if self.warehouse_id is not None:
9729
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
9730
      oprot.writeI64(self.warehouse_id)
9731
      oprot.writeFieldEnd()
9732
    oprot.writeFieldStop()
9733
    oprot.writeStructEnd()
9734
 
9735
  def validate(self):
9736
    return
9737
 
9738
 
9739
  def __repr__(self):
9740
    L = ['%s=%r' % (key, value)
9741
      for key, value in self.__dict__.iteritems()]
9742
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9743
 
9744
  def __eq__(self, other):
9745
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9746
 
9747
  def __ne__(self, other):
9748
    return not (self == other)
9749
 
9750
class insertItemtoIgnoreInventoryUpdatelist_result:
9751
  """
9752
  Attributes:
9753
   - success
9754
  """
9755
 
9756
  thrift_spec = (
9757
    (0, TType.BOOL, 'success', None, None, ), # 0
9758
  )
9759
 
9760
  def __init__(self, success=None,):
9761
    self.success = success
9762
 
9763
  def read(self, iprot):
9764
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9765
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9766
      return
9767
    iprot.readStructBegin()
9768
    while True:
9769
      (fname, ftype, fid) = iprot.readFieldBegin()
9770
      if ftype == TType.STOP:
9771
        break
9772
      if fid == 0:
9773
        if ftype == TType.BOOL:
9774
          self.success = iprot.readBool();
9775
        else:
9776
          iprot.skip(ftype)
9777
      else:
9778
        iprot.skip(ftype)
9779
      iprot.readFieldEnd()
9780
    iprot.readStructEnd()
9781
 
9782
  def write(self, oprot):
9783
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9784
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9785
      return
9786
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_result')
9787
    if self.success is not None:
9788
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9789
      oprot.writeBool(self.success)
9790
      oprot.writeFieldEnd()
9791
    oprot.writeFieldStop()
9792
    oprot.writeStructEnd()
9793
 
9794
  def validate(self):
9795
    return
9796
 
9797
 
9798
  def __repr__(self):
9799
    L = ['%s=%r' % (key, value)
9800
      for key, value in self.__dict__.iteritems()]
9801
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9802
 
9803
  def __eq__(self, other):
9804
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9805
 
9806
  def __ne__(self, other):
9807
    return not (self == other)
9808
 
9809
class deleteItemFromIgnoredInventoryUpdateList_args:
9810
  """
9811
  Attributes:
9812
   - item_id
9813
   - warehouse_id
9814
  """
9815
 
9816
  thrift_spec = (
9817
    None, # 0
9818
    (1, TType.I64, 'item_id', None, None, ), # 1
9819
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
9820
  )
9821
 
9822
  def __init__(self, item_id=None, warehouse_id=None,):
9823
    self.item_id = item_id
9824
    self.warehouse_id = warehouse_id
9825
 
9826
  def read(self, iprot):
9827
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9828
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9829
      return
9830
    iprot.readStructBegin()
9831
    while True:
9832
      (fname, ftype, fid) = iprot.readFieldBegin()
9833
      if ftype == TType.STOP:
9834
        break
9835
      if fid == 1:
9836
        if ftype == TType.I64:
9837
          self.item_id = iprot.readI64();
9838
        else:
9839
          iprot.skip(ftype)
9840
      elif fid == 2:
9841
        if ftype == TType.I64:
9842
          self.warehouse_id = iprot.readI64();
9843
        else:
9844
          iprot.skip(ftype)
9845
      else:
9846
        iprot.skip(ftype)
9847
      iprot.readFieldEnd()
9848
    iprot.readStructEnd()
9849
 
9850
  def write(self, oprot):
9851
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9852
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9853
      return
9854
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_args')
9855
    if self.item_id is not None:
9856
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9857
      oprot.writeI64(self.item_id)
9858
      oprot.writeFieldEnd()
9859
    if self.warehouse_id is not None:
9860
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
9861
      oprot.writeI64(self.warehouse_id)
9862
      oprot.writeFieldEnd()
9863
    oprot.writeFieldStop()
9864
    oprot.writeStructEnd()
9865
 
9866
  def validate(self):
9867
    return
9868
 
9869
 
9870
  def __repr__(self):
9871
    L = ['%s=%r' % (key, value)
9872
      for key, value in self.__dict__.iteritems()]
9873
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9874
 
9875
  def __eq__(self, other):
9876
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9877
 
9878
  def __ne__(self, other):
9879
    return not (self == other)
9880
 
9881
class deleteItemFromIgnoredInventoryUpdateList_result:
9882
  """
9883
  Attributes:
9884
   - success
9885
  """
9886
 
9887
  thrift_spec = (
9888
    (0, TType.BOOL, 'success', None, None, ), # 0
9889
  )
9890
 
9891
  def __init__(self, success=None,):
9892
    self.success = success
9893
 
9894
  def read(self, iprot):
9895
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9896
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9897
      return
9898
    iprot.readStructBegin()
9899
    while True:
9900
      (fname, ftype, fid) = iprot.readFieldBegin()
9901
      if ftype == TType.STOP:
9902
        break
9903
      if fid == 0:
9904
        if ftype == TType.BOOL:
9905
          self.success = iprot.readBool();
9906
        else:
9907
          iprot.skip(ftype)
9908
      else:
9909
        iprot.skip(ftype)
9910
      iprot.readFieldEnd()
9911
    iprot.readStructEnd()
9912
 
9913
  def write(self, oprot):
9914
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9915
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9916
      return
9917
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_result')
9918
    if self.success is not None:
9919
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9920
      oprot.writeBool(self.success)
9921
      oprot.writeFieldEnd()
9922
    oprot.writeFieldStop()
9923
    oprot.writeStructEnd()
9924
 
9925
  def validate(self):
9926
    return
9927
 
9928
 
9929
  def __repr__(self):
9930
    L = ['%s=%r' % (key, value)
9931
      for key, value in self.__dict__.iteritems()]
9932
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9933
 
9934
  def __eq__(self, other):
9935
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9936
 
9937
  def __ne__(self, other):
9938
    return not (self == other)
9939
 
9940
class getAllIgnoredInventoryupdateItemsCount_args:
9941
 
9942
  thrift_spec = (
9943
  )
9944
 
9945
  def read(self, iprot):
9946
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9947
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9948
      return
9949
    iprot.readStructBegin()
9950
    while True:
9951
      (fname, ftype, fid) = iprot.readFieldBegin()
9952
      if ftype == TType.STOP:
9953
        break
9954
      else:
9955
        iprot.skip(ftype)
9956
      iprot.readFieldEnd()
9957
    iprot.readStructEnd()
9958
 
9959
  def write(self, oprot):
9960
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9961
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9962
      return
9963
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_args')
9964
    oprot.writeFieldStop()
9965
    oprot.writeStructEnd()
9966
 
9967
  def validate(self):
9968
    return
9969
 
9970
 
9971
  def __repr__(self):
9972
    L = ['%s=%r' % (key, value)
9973
      for key, value in self.__dict__.iteritems()]
9974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9975
 
9976
  def __eq__(self, other):
9977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9978
 
9979
  def __ne__(self, other):
9980
    return not (self == other)
9981
 
9982
class getAllIgnoredInventoryupdateItemsCount_result:
9983
  """
9984
  Attributes:
9985
   - success
9986
  """
9987
 
9988
  thrift_spec = (
9989
    (0, TType.I32, 'success', None, None, ), # 0
9990
  )
9991
 
9992
  def __init__(self, success=None,):
9993
    self.success = success
9994
 
9995
  def read(self, iprot):
9996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9998
      return
9999
    iprot.readStructBegin()
10000
    while True:
10001
      (fname, ftype, fid) = iprot.readFieldBegin()
10002
      if ftype == TType.STOP:
10003
        break
10004
      if fid == 0:
10005
        if ftype == TType.I32:
10006
          self.success = iprot.readI32();
10007
        else:
10008
          iprot.skip(ftype)
10009
      else:
10010
        iprot.skip(ftype)
10011
      iprot.readFieldEnd()
10012
    iprot.readStructEnd()
10013
 
10014
  def write(self, oprot):
10015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10017
      return
10018
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_result')
10019
    if self.success is not None:
10020
      oprot.writeFieldBegin('success', TType.I32, 0)
10021
      oprot.writeI32(self.success)
10022
      oprot.writeFieldEnd()
10023
    oprot.writeFieldStop()
10024
    oprot.writeStructEnd()
10025
 
10026
  def validate(self):
10027
    return
10028
 
10029
 
10030
  def __repr__(self):
10031
    L = ['%s=%r' % (key, value)
10032
      for key, value in self.__dict__.iteritems()]
10033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10034
 
10035
  def __eq__(self, other):
10036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10037
 
10038
  def __ne__(self, other):
10039
    return not (self == other)
10040
 
10041
class getIgnoredInventoryUpdateItemids_args:
10042
  """
10043
  Attributes:
10044
   - offset
10045
   - limit
10046
  """
10047
 
10048
  thrift_spec = (
10049
    None, # 0
10050
    (1, TType.I32, 'offset', None, None, ), # 1
10051
    (2, TType.I32, 'limit', None, None, ), # 2
10052
  )
10053
 
10054
  def __init__(self, offset=None, limit=None,):
10055
    self.offset = offset
10056
    self.limit = limit
10057
 
10058
  def read(self, iprot):
10059
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10060
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10061
      return
10062
    iprot.readStructBegin()
10063
    while True:
10064
      (fname, ftype, fid) = iprot.readFieldBegin()
10065
      if ftype == TType.STOP:
10066
        break
10067
      if fid == 1:
10068
        if ftype == TType.I32:
10069
          self.offset = iprot.readI32();
10070
        else:
10071
          iprot.skip(ftype)
10072
      elif fid == 2:
10073
        if ftype == TType.I32:
10074
          self.limit = iprot.readI32();
10075
        else:
10076
          iprot.skip(ftype)
10077
      else:
10078
        iprot.skip(ftype)
10079
      iprot.readFieldEnd()
10080
    iprot.readStructEnd()
10081
 
10082
  def write(self, oprot):
10083
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10084
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10085
      return
10086
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_args')
10087
    if self.offset is not None:
10088
      oprot.writeFieldBegin('offset', TType.I32, 1)
10089
      oprot.writeI32(self.offset)
10090
      oprot.writeFieldEnd()
10091
    if self.limit is not None:
10092
      oprot.writeFieldBegin('limit', TType.I32, 2)
10093
      oprot.writeI32(self.limit)
10094
      oprot.writeFieldEnd()
10095
    oprot.writeFieldStop()
10096
    oprot.writeStructEnd()
10097
 
10098
  def validate(self):
10099
    return
10100
 
10101
 
10102
  def __repr__(self):
10103
    L = ['%s=%r' % (key, value)
10104
      for key, value in self.__dict__.iteritems()]
10105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10106
 
10107
  def __eq__(self, other):
10108
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10109
 
10110
  def __ne__(self, other):
10111
    return not (self == other)
10112
 
10113
class getIgnoredInventoryUpdateItemids_result:
10114
  """
10115
  Attributes:
10116
   - success
10117
  """
10118
 
10119
  thrift_spec = (
10120
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10121
  )
10122
 
10123
  def __init__(self, success=None,):
10124
    self.success = success
10125
 
10126
  def read(self, iprot):
10127
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10128
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10129
      return
10130
    iprot.readStructBegin()
10131
    while True:
10132
      (fname, ftype, fid) = iprot.readFieldBegin()
10133
      if ftype == TType.STOP:
10134
        break
10135
      if fid == 0:
10136
        if ftype == TType.LIST:
10137
          self.success = []
8182 amar.kumar 10138
          (_etype189, _size186) = iprot.readListBegin()
10139
          for _i190 in xrange(_size186):
10140
            _elem191 = iprot.readI64();
10141
            self.success.append(_elem191)
6531 vikram.rag 10142
          iprot.readListEnd()
10143
        else:
10144
          iprot.skip(ftype)
10145
      else:
10146
        iprot.skip(ftype)
10147
      iprot.readFieldEnd()
10148
    iprot.readStructEnd()
10149
 
10150
  def write(self, oprot):
10151
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10152
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10153
      return
10154
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_result')
10155
    if self.success is not None:
10156
      oprot.writeFieldBegin('success', TType.LIST, 0)
10157
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 10158
      for iter192 in self.success:
10159
        oprot.writeI64(iter192)
6531 vikram.rag 10160
      oprot.writeListEnd()
10161
      oprot.writeFieldEnd()
10162
    oprot.writeFieldStop()
10163
    oprot.writeStructEnd()
10164
 
10165
  def validate(self):
10166
    return
10167
 
10168
 
10169
  def __repr__(self):
10170
    L = ['%s=%r' % (key, value)
10171
      for key, value in self.__dict__.iteritems()]
10172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10173
 
10174
  def __eq__(self, other):
10175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10176
 
10177
  def __ne__(self, other):
10178
    return not (self == other)
6821 amar.kumar 10179
 
10180
class updateItemStockPurchaseParams_args:
10181
  """
10182
  Attributes:
10183
   - item_id
10184
   - numOfDaysStock
10185
   - minStockLevel
10186
  """
10187
 
10188
  thrift_spec = (
10189
    None, # 0
10190
    (1, TType.I64, 'item_id', None, None, ), # 1
10191
    (2, TType.I32, 'numOfDaysStock', None, None, ), # 2
10192
    (3, TType.I64, 'minStockLevel', None, None, ), # 3
10193
  )
10194
 
10195
  def __init__(self, item_id=None, numOfDaysStock=None, minStockLevel=None,):
10196
    self.item_id = item_id
10197
    self.numOfDaysStock = numOfDaysStock
10198
    self.minStockLevel = minStockLevel
10199
 
10200
  def read(self, iprot):
10201
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10202
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10203
      return
10204
    iprot.readStructBegin()
10205
    while True:
10206
      (fname, ftype, fid) = iprot.readFieldBegin()
10207
      if ftype == TType.STOP:
10208
        break
10209
      if fid == 1:
10210
        if ftype == TType.I64:
10211
          self.item_id = iprot.readI64();
10212
        else:
10213
          iprot.skip(ftype)
10214
      elif fid == 2:
10215
        if ftype == TType.I32:
10216
          self.numOfDaysStock = iprot.readI32();
10217
        else:
10218
          iprot.skip(ftype)
10219
      elif fid == 3:
10220
        if ftype == TType.I64:
10221
          self.minStockLevel = iprot.readI64();
10222
        else:
10223
          iprot.skip(ftype)
10224
      else:
10225
        iprot.skip(ftype)
10226
      iprot.readFieldEnd()
10227
    iprot.readStructEnd()
10228
 
10229
  def write(self, oprot):
10230
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10231
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10232
      return
10233
    oprot.writeStructBegin('updateItemStockPurchaseParams_args')
10234
    if self.item_id is not None:
10235
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10236
      oprot.writeI64(self.item_id)
10237
      oprot.writeFieldEnd()
10238
    if self.numOfDaysStock is not None:
10239
      oprot.writeFieldBegin('numOfDaysStock', TType.I32, 2)
10240
      oprot.writeI32(self.numOfDaysStock)
10241
      oprot.writeFieldEnd()
10242
    if self.minStockLevel is not None:
10243
      oprot.writeFieldBegin('minStockLevel', TType.I64, 3)
10244
      oprot.writeI64(self.minStockLevel)
10245
      oprot.writeFieldEnd()
10246
    oprot.writeFieldStop()
10247
    oprot.writeStructEnd()
10248
 
10249
  def validate(self):
10250
    return
10251
 
10252
 
10253
  def __repr__(self):
10254
    L = ['%s=%r' % (key, value)
10255
      for key, value in self.__dict__.iteritems()]
10256
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10257
 
10258
  def __eq__(self, other):
10259
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10260
 
10261
  def __ne__(self, other):
10262
    return not (self == other)
10263
 
10264
class updateItemStockPurchaseParams_result:
10265
 
10266
  thrift_spec = (
10267
  )
10268
 
10269
  def read(self, iprot):
10270
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10271
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10272
      return
10273
    iprot.readStructBegin()
10274
    while True:
10275
      (fname, ftype, fid) = iprot.readFieldBegin()
10276
      if ftype == TType.STOP:
10277
        break
10278
      else:
10279
        iprot.skip(ftype)
10280
      iprot.readFieldEnd()
10281
    iprot.readStructEnd()
10282
 
10283
  def write(self, oprot):
10284
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10285
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10286
      return
10287
    oprot.writeStructBegin('updateItemStockPurchaseParams_result')
10288
    oprot.writeFieldStop()
10289
    oprot.writeStructEnd()
10290
 
10291
  def validate(self):
10292
    return
10293
 
10294
 
10295
  def __repr__(self):
10296
    L = ['%s=%r' % (key, value)
10297
      for key, value in self.__dict__.iteritems()]
10298
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10299
 
10300
  def __eq__(self, other):
10301
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10302
 
10303
  def __ne__(self, other):
10304
    return not (self == other)
10305
 
10306
class getItemStockPurchaseParams_args:
10307
  """
10308
  Attributes:
10309
   - itemId
10310
  """
10311
 
10312
  thrift_spec = (
10313
    None, # 0
10314
    (1, TType.I64, 'itemId', None, None, ), # 1
10315
  )
10316
 
10317
  def __init__(self, itemId=None,):
10318
    self.itemId = itemId
10319
 
10320
  def read(self, iprot):
10321
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10322
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10323
      return
10324
    iprot.readStructBegin()
10325
    while True:
10326
      (fname, ftype, fid) = iprot.readFieldBegin()
10327
      if ftype == TType.STOP:
10328
        break
10329
      if fid == 1:
10330
        if ftype == TType.I64:
10331
          self.itemId = iprot.readI64();
10332
        else:
10333
          iprot.skip(ftype)
10334
      else:
10335
        iprot.skip(ftype)
10336
      iprot.readFieldEnd()
10337
    iprot.readStructEnd()
10338
 
10339
  def write(self, oprot):
10340
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10341
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10342
      return
10343
    oprot.writeStructBegin('getItemStockPurchaseParams_args')
10344
    if self.itemId is not None:
10345
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10346
      oprot.writeI64(self.itemId)
10347
      oprot.writeFieldEnd()
10348
    oprot.writeFieldStop()
10349
    oprot.writeStructEnd()
10350
 
10351
  def validate(self):
10352
    return
10353
 
10354
 
10355
  def __repr__(self):
10356
    L = ['%s=%r' % (key, value)
10357
      for key, value in self.__dict__.iteritems()]
10358
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10359
 
10360
  def __eq__(self, other):
10361
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10362
 
10363
  def __ne__(self, other):
10364
    return not (self == other)
10365
 
10366
class getItemStockPurchaseParams_result:
10367
  """
10368
  Attributes:
10369
   - success
10370
  """
10371
 
10372
  thrift_spec = (
10373
    (0, TType.STRUCT, 'success', (ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec), None, ), # 0
10374
  )
10375
 
10376
  def __init__(self, success=None,):
10377
    self.success = success
10378
 
10379
  def read(self, iprot):
10380
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10381
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10382
      return
10383
    iprot.readStructBegin()
10384
    while True:
10385
      (fname, ftype, fid) = iprot.readFieldBegin()
10386
      if ftype == TType.STOP:
10387
        break
10388
      if fid == 0:
10389
        if ftype == TType.STRUCT:
10390
          self.success = ItemStockPurchaseParams()
10391
          self.success.read(iprot)
10392
        else:
10393
          iprot.skip(ftype)
10394
      else:
10395
        iprot.skip(ftype)
10396
      iprot.readFieldEnd()
10397
    iprot.readStructEnd()
10398
 
10399
  def write(self, oprot):
10400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10402
      return
10403
    oprot.writeStructBegin('getItemStockPurchaseParams_result')
10404
    if self.success is not None:
10405
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10406
      self.success.write(oprot)
10407
      oprot.writeFieldEnd()
10408
    oprot.writeFieldStop()
10409
    oprot.writeStructEnd()
10410
 
10411
  def validate(self):
10412
    return
10413
 
10414
 
10415
  def __repr__(self):
10416
    L = ['%s=%r' % (key, value)
10417
      for key, value in self.__dict__.iteritems()]
10418
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10419
 
10420
  def __eq__(self, other):
10421
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10422
 
10423
  def __ne__(self, other):
10424
    return not (self == other)
10425
 
10426
class addOosStatusForItem_args:
10427
  """
10428
  Attributes:
10429
   - oosStatusMap
10430
   - date
10431
  """
10432
 
10433
  thrift_spec = (
10434
    None, # 0
10435
    (1, TType.MAP, 'oosStatusMap', (TType.I64,None,TType.BOOL,None), None, ), # 1
10436
    (2, TType.I64, 'date', None, None, ), # 2
10437
  )
10438
 
10439
  def __init__(self, oosStatusMap=None, date=None,):
10440
    self.oosStatusMap = oosStatusMap
10441
    self.date = date
10442
 
10443
  def read(self, iprot):
10444
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10445
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10446
      return
10447
    iprot.readStructBegin()
10448
    while True:
10449
      (fname, ftype, fid) = iprot.readFieldBegin()
10450
      if ftype == TType.STOP:
10451
        break
10452
      if fid == 1:
10453
        if ftype == TType.MAP:
10454
          self.oosStatusMap = {}
8182 amar.kumar 10455
          (_ktype194, _vtype195, _size193 ) = iprot.readMapBegin() 
10456
          for _i197 in xrange(_size193):
10457
            _key198 = iprot.readI64();
10458
            _val199 = iprot.readBool();
10459
            self.oosStatusMap[_key198] = _val199
6821 amar.kumar 10460
          iprot.readMapEnd()
10461
        else:
10462
          iprot.skip(ftype)
10463
      elif fid == 2:
10464
        if ftype == TType.I64:
10465
          self.date = iprot.readI64();
10466
        else:
10467
          iprot.skip(ftype)
10468
      else:
10469
        iprot.skip(ftype)
10470
      iprot.readFieldEnd()
10471
    iprot.readStructEnd()
10472
 
10473
  def write(self, oprot):
10474
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10475
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10476
      return
10477
    oprot.writeStructBegin('addOosStatusForItem_args')
10478
    if self.oosStatusMap is not None:
10479
      oprot.writeFieldBegin('oosStatusMap', TType.MAP, 1)
10480
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.oosStatusMap))
8182 amar.kumar 10481
      for kiter200,viter201 in self.oosStatusMap.items():
10482
        oprot.writeI64(kiter200)
10483
        oprot.writeBool(viter201)
6821 amar.kumar 10484
      oprot.writeMapEnd()
10485
      oprot.writeFieldEnd()
10486
    if self.date is not None:
10487
      oprot.writeFieldBegin('date', TType.I64, 2)
10488
      oprot.writeI64(self.date)
10489
      oprot.writeFieldEnd()
10490
    oprot.writeFieldStop()
10491
    oprot.writeStructEnd()
10492
 
10493
  def validate(self):
10494
    return
10495
 
10496
 
10497
  def __repr__(self):
10498
    L = ['%s=%r' % (key, value)
10499
      for key, value in self.__dict__.iteritems()]
10500
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10501
 
10502
  def __eq__(self, other):
10503
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10504
 
10505
  def __ne__(self, other):
10506
    return not (self == other)
10507
 
10508
class addOosStatusForItem_result:
10509
 
10510
  thrift_spec = (
10511
  )
10512
 
10513
  def read(self, iprot):
10514
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10515
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10516
      return
10517
    iprot.readStructBegin()
10518
    while True:
10519
      (fname, ftype, fid) = iprot.readFieldBegin()
10520
      if ftype == TType.STOP:
10521
        break
10522
      else:
10523
        iprot.skip(ftype)
10524
      iprot.readFieldEnd()
10525
    iprot.readStructEnd()
10526
 
10527
  def write(self, oprot):
10528
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10529
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10530
      return
10531
    oprot.writeStructBegin('addOosStatusForItem_result')
10532
    oprot.writeFieldStop()
10533
    oprot.writeStructEnd()
10534
 
10535
  def validate(self):
10536
    return
10537
 
10538
 
10539
  def __repr__(self):
10540
    L = ['%s=%r' % (key, value)
10541
      for key, value in self.__dict__.iteritems()]
10542
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10543
 
10544
  def __eq__(self, other):
10545
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10546
 
10547
  def __ne__(self, other):
10548
    return not (self == other)
6832 amar.kumar 10549
 
10550
class getOosStatusesForXDaysForItem_args:
10551
  """
10552
  Attributes:
10553
   - itemId
9762 amar.kumar 10554
   - sourceId
6832 amar.kumar 10555
   - days
10556
  """
10557
 
10558
  thrift_spec = (
10559
    None, # 0
10560
    (1, TType.I64, 'itemId', None, None, ), # 1
9762 amar.kumar 10561
    (2, TType.I32, 'sourceId', None, None, ), # 2
10562
    (3, TType.I32, 'days', None, None, ), # 3
6832 amar.kumar 10563
  )
10564
 
9762 amar.kumar 10565
  def __init__(self, itemId=None, sourceId=None, days=None,):
6832 amar.kumar 10566
    self.itemId = itemId
9762 amar.kumar 10567
    self.sourceId = sourceId
6832 amar.kumar 10568
    self.days = days
10569
 
10570
  def read(self, iprot):
10571
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10572
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10573
      return
10574
    iprot.readStructBegin()
10575
    while True:
10576
      (fname, ftype, fid) = iprot.readFieldBegin()
10577
      if ftype == TType.STOP:
10578
        break
10579
      if fid == 1:
10580
        if ftype == TType.I64:
10581
          self.itemId = iprot.readI64();
10582
        else:
10583
          iprot.skip(ftype)
10584
      elif fid == 2:
10585
        if ftype == TType.I32:
9762 amar.kumar 10586
          self.sourceId = iprot.readI32();
10587
        else:
10588
          iprot.skip(ftype)
10589
      elif fid == 3:
10590
        if ftype == TType.I32:
6832 amar.kumar 10591
          self.days = iprot.readI32();
10592
        else:
10593
          iprot.skip(ftype)
10594
      else:
10595
        iprot.skip(ftype)
10596
      iprot.readFieldEnd()
10597
    iprot.readStructEnd()
10598
 
10599
  def write(self, oprot):
10600
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10601
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10602
      return
10603
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_args')
10604
    if self.itemId is not None:
10605
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10606
      oprot.writeI64(self.itemId)
10607
      oprot.writeFieldEnd()
9762 amar.kumar 10608
    if self.sourceId is not None:
10609
      oprot.writeFieldBegin('sourceId', TType.I32, 2)
10610
      oprot.writeI32(self.sourceId)
10611
      oprot.writeFieldEnd()
6832 amar.kumar 10612
    if self.days is not None:
9762 amar.kumar 10613
      oprot.writeFieldBegin('days', TType.I32, 3)
6832 amar.kumar 10614
      oprot.writeI32(self.days)
10615
      oprot.writeFieldEnd()
10616
    oprot.writeFieldStop()
10617
    oprot.writeStructEnd()
10618
 
10619
  def validate(self):
10620
    return
10621
 
10622
 
10623
  def __repr__(self):
10624
    L = ['%s=%r' % (key, value)
10625
      for key, value in self.__dict__.iteritems()]
10626
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10627
 
10628
  def __eq__(self, other):
10629
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10630
 
10631
  def __ne__(self, other):
10632
    return not (self == other)
10633
 
10634
class getOosStatusesForXDaysForItem_result:
10635
  """
10636
  Attributes:
10637
   - success
10638
  """
10639
 
10640
  thrift_spec = (
10641
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.thrift_spec)), None, ), # 0
10642
  )
10643
 
10644
  def __init__(self, success=None,):
10645
    self.success = success
10646
 
10647
  def read(self, iprot):
10648
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10649
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10650
      return
10651
    iprot.readStructBegin()
10652
    while True:
10653
      (fname, ftype, fid) = iprot.readFieldBegin()
10654
      if ftype == TType.STOP:
10655
        break
10656
      if fid == 0:
10657
        if ftype == TType.LIST:
10658
          self.success = []
8182 amar.kumar 10659
          (_etype205, _size202) = iprot.readListBegin()
10660
          for _i206 in xrange(_size202):
10661
            _elem207 = OOSStatus()
10662
            _elem207.read(iprot)
10663
            self.success.append(_elem207)
6832 amar.kumar 10664
          iprot.readListEnd()
10665
        else:
10666
          iprot.skip(ftype)
10667
      else:
10668
        iprot.skip(ftype)
10669
      iprot.readFieldEnd()
10670
    iprot.readStructEnd()
10671
 
10672
  def write(self, oprot):
10673
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10674
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10675
      return
10676
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_result')
10677
    if self.success is not None:
10678
      oprot.writeFieldBegin('success', TType.LIST, 0)
10679
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10680
      for iter208 in self.success:
10681
        iter208.write(oprot)
6832 amar.kumar 10682
      oprot.writeListEnd()
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)
6857 amar.kumar 10701
 
10126 amar.kumar 10702
class getOosStatusesForXDays_args:
10703
  """
10704
  Attributes:
10705
   - sourceId
10706
   - days
10707
  """
6857 amar.kumar 10708
 
10709
  thrift_spec = (
10126 amar.kumar 10710
    None, # 0
10711
    (1, TType.I32, 'sourceId', None, None, ), # 1
10712
    (2, TType.I32, 'days', None, None, ), # 2
6857 amar.kumar 10713
  )
10714
 
10126 amar.kumar 10715
  def __init__(self, sourceId=None, days=None,):
10716
    self.sourceId = sourceId
10717
    self.days = days
10718
 
6857 amar.kumar 10719
  def read(self, iprot):
10720
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10721
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10722
      return
10723
    iprot.readStructBegin()
10724
    while True:
10725
      (fname, ftype, fid) = iprot.readFieldBegin()
10726
      if ftype == TType.STOP:
10727
        break
10126 amar.kumar 10728
      if fid == 1:
10729
        if ftype == TType.I32:
10730
          self.sourceId = iprot.readI32();
10731
        else:
10732
          iprot.skip(ftype)
10733
      elif fid == 2:
10734
        if ftype == TType.I32:
10735
          self.days = iprot.readI32();
10736
        else:
10737
          iprot.skip(ftype)
6857 amar.kumar 10738
      else:
10739
        iprot.skip(ftype)
10740
      iprot.readFieldEnd()
10741
    iprot.readStructEnd()
10742
 
10743
  def write(self, oprot):
10744
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10745
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10746
      return
10126 amar.kumar 10747
    oprot.writeStructBegin('getOosStatusesForXDays_args')
10748
    if self.sourceId is not None:
10749
      oprot.writeFieldBegin('sourceId', TType.I32, 1)
10750
      oprot.writeI32(self.sourceId)
10751
      oprot.writeFieldEnd()
10752
    if self.days is not None:
10753
      oprot.writeFieldBegin('days', TType.I32, 2)
10754
      oprot.writeI32(self.days)
10755
      oprot.writeFieldEnd()
6857 amar.kumar 10756
    oprot.writeFieldStop()
10757
    oprot.writeStructEnd()
10758
 
10759
  def validate(self):
10760
    return
10761
 
10762
 
10763
  def __repr__(self):
10764
    L = ['%s=%r' % (key, value)
10765
      for key, value in self.__dict__.iteritems()]
10766
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10767
 
10768
  def __eq__(self, other):
10769
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10770
 
10771
  def __ne__(self, other):
10772
    return not (self == other)
10773
 
10126 amar.kumar 10774
class getOosStatusesForXDays_result:
6857 amar.kumar 10775
  """
10776
  Attributes:
10777
   - success
10778
  """
10779
 
10780
  thrift_spec = (
10126 amar.kumar 10781
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.thrift_spec)), None, ), # 0
6857 amar.kumar 10782
  )
10783
 
10784
  def __init__(self, success=None,):
10785
    self.success = success
10786
 
10787
  def read(self, iprot):
10788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10790
      return
10791
    iprot.readStructBegin()
10792
    while True:
10793
      (fname, ftype, fid) = iprot.readFieldBegin()
10794
      if ftype == TType.STOP:
10795
        break
10796
      if fid == 0:
10797
        if ftype == TType.LIST:
10798
          self.success = []
8182 amar.kumar 10799
          (_etype212, _size209) = iprot.readListBegin()
10800
          for _i213 in xrange(_size209):
10126 amar.kumar 10801
            _elem214 = OOSStatus()
8182 amar.kumar 10802
            _elem214.read(iprot)
10803
            self.success.append(_elem214)
6857 amar.kumar 10804
          iprot.readListEnd()
10805
        else:
10806
          iprot.skip(ftype)
10807
      else:
10808
        iprot.skip(ftype)
10809
      iprot.readFieldEnd()
10810
    iprot.readStructEnd()
10811
 
10812
  def write(self, oprot):
10813
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10814
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10815
      return
10126 amar.kumar 10816
    oprot.writeStructBegin('getOosStatusesForXDays_result')
6857 amar.kumar 10817
    if self.success is not None:
10818
      oprot.writeFieldBegin('success', TType.LIST, 0)
10819
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10820
      for iter215 in self.success:
10821
        iter215.write(oprot)
6857 amar.kumar 10822
      oprot.writeListEnd()
10823
      oprot.writeFieldEnd()
10824
    oprot.writeFieldStop()
10825
    oprot.writeStructEnd()
10826
 
10827
  def validate(self):
10828
    return
10829
 
10830
 
10831
  def __repr__(self):
10832
    L = ['%s=%r' % (key, value)
10833
      for key, value in self.__dict__.iteritems()]
10834
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10835
 
10836
  def __eq__(self, other):
10837
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10838
 
10839
  def __ne__(self, other):
10840
    return not (self == other)
7149 amar.kumar 10841
 
10126 amar.kumar 10842
class getAllVendorItemPricing_args:
10843
  """
10844
  Attributes:
10845
   - itemId
10846
   - vendorId
10847
  """
7149 amar.kumar 10848
 
10849
  thrift_spec = (
10126 amar.kumar 10850
    None, # 0
10851
    (1, TType.I64, 'itemId', None, None, ), # 1
10852
    (2, TType.I64, 'vendorId', None, None, ), # 2
7149 amar.kumar 10853
  )
10854
 
10126 amar.kumar 10855
  def __init__(self, itemId=None, vendorId=None,):
10856
    self.itemId = itemId
10857
    self.vendorId = vendorId
10858
 
7149 amar.kumar 10859
  def read(self, iprot):
10860
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10861
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10862
      return
10863
    iprot.readStructBegin()
10864
    while True:
10865
      (fname, ftype, fid) = iprot.readFieldBegin()
10866
      if ftype == TType.STOP:
10867
        break
10126 amar.kumar 10868
      if fid == 1:
10869
        if ftype == TType.I64:
10870
          self.itemId = iprot.readI64();
10871
        else:
10872
          iprot.skip(ftype)
10873
      elif fid == 2:
10874
        if ftype == TType.I64:
10875
          self.vendorId = iprot.readI64();
10876
        else:
10877
          iprot.skip(ftype)
7149 amar.kumar 10878
      else:
10879
        iprot.skip(ftype)
10880
      iprot.readFieldEnd()
10881
    iprot.readStructEnd()
10882
 
10883
  def write(self, oprot):
10884
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10885
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10886
      return
10126 amar.kumar 10887
    oprot.writeStructBegin('getAllVendorItemPricing_args')
10888
    if self.itemId is not None:
10889
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10890
      oprot.writeI64(self.itemId)
10891
      oprot.writeFieldEnd()
10892
    if self.vendorId is not None:
10893
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
10894
      oprot.writeI64(self.vendorId)
10895
      oprot.writeFieldEnd()
7149 amar.kumar 10896
    oprot.writeFieldStop()
10897
    oprot.writeStructEnd()
10898
 
10899
  def validate(self):
10900
    return
10901
 
10902
 
10903
  def __repr__(self):
10904
    L = ['%s=%r' % (key, value)
10905
      for key, value in self.__dict__.iteritems()]
10906
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10907
 
10908
  def __eq__(self, other):
10909
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10910
 
10911
  def __ne__(self, other):
10912
    return not (self == other)
10913
 
10126 amar.kumar 10914
class getAllVendorItemPricing_result:
7149 amar.kumar 10915
  """
10916
  Attributes:
10917
   - success
10918
  """
10919
 
10920
  thrift_spec = (
10126 amar.kumar 10921
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
7149 amar.kumar 10922
  )
10923
 
10924
  def __init__(self, success=None,):
10925
    self.success = success
10926
 
10927
  def read(self, iprot):
10928
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10929
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10930
      return
10931
    iprot.readStructBegin()
10932
    while True:
10933
      (fname, ftype, fid) = iprot.readFieldBegin()
10934
      if ftype == TType.STOP:
10935
        break
10936
      if fid == 0:
10937
        if ftype == TType.LIST:
10938
          self.success = []
8182 amar.kumar 10939
          (_etype219, _size216) = iprot.readListBegin()
10940
          for _i220 in xrange(_size216):
10126 amar.kumar 10941
            _elem221 = VendorItemPricing()
8182 amar.kumar 10942
            _elem221.read(iprot)
10943
            self.success.append(_elem221)
7149 amar.kumar 10944
          iprot.readListEnd()
10945
        else:
10946
          iprot.skip(ftype)
10947
      else:
10948
        iprot.skip(ftype)
10949
      iprot.readFieldEnd()
10950
    iprot.readStructEnd()
10951
 
10952
  def write(self, oprot):
10953
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10954
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10955
      return
10126 amar.kumar 10956
    oprot.writeStructBegin('getAllVendorItemPricing_result')
7149 amar.kumar 10957
    if self.success is not None:
10958
      oprot.writeFieldBegin('success', TType.LIST, 0)
10959
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10960
      for iter222 in self.success:
10961
        iter222.write(oprot)
7149 amar.kumar 10962
      oprot.writeListEnd()
10963
      oprot.writeFieldEnd()
10964
    oprot.writeFieldStop()
10965
    oprot.writeStructEnd()
10966
 
10967
  def validate(self):
10968
    return
10969
 
10970
 
10971
  def __repr__(self):
10972
    L = ['%s=%r' % (key, value)
10973
      for key, value in self.__dict__.iteritems()]
10974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10975
 
10976
  def __eq__(self, other):
10977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10978
 
10979
  def __ne__(self, other):
10980
    return not (self == other)
7281 kshitij.so 10981
 
10126 amar.kumar 10982
class getNonZeroItemStockPurchaseParams_args:
10983
 
10984
  thrift_spec = (
10985
  )
10986
 
10987
  def read(self, iprot):
10988
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10989
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10990
      return
10991
    iprot.readStructBegin()
10992
    while True:
10993
      (fname, ftype, fid) = iprot.readFieldBegin()
10994
      if ftype == TType.STOP:
10995
        break
10996
      else:
10997
        iprot.skip(ftype)
10998
      iprot.readFieldEnd()
10999
    iprot.readStructEnd()
11000
 
11001
  def write(self, oprot):
11002
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11003
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11004
      return
11005
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_args')
11006
    oprot.writeFieldStop()
11007
    oprot.writeStructEnd()
11008
 
11009
  def validate(self):
11010
    return
11011
 
11012
 
11013
  def __repr__(self):
11014
    L = ['%s=%r' % (key, value)
11015
      for key, value in self.__dict__.iteritems()]
11016
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11017
 
11018
  def __eq__(self, other):
11019
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11020
 
11021
  def __ne__(self, other):
11022
    return not (self == other)
11023
 
11024
class getNonZeroItemStockPurchaseParams_result:
11025
  """
11026
  Attributes:
11027
   - success
11028
  """
11029
 
11030
  thrift_spec = (
11031
    (0, TType.LIST, 'success', (TType.STRUCT,(ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec)), None, ), # 0
11032
  )
11033
 
11034
  def __init__(self, success=None,):
11035
    self.success = success
11036
 
11037
  def read(self, iprot):
11038
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11039
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11040
      return
11041
    iprot.readStructBegin()
11042
    while True:
11043
      (fname, ftype, fid) = iprot.readFieldBegin()
11044
      if ftype == TType.STOP:
11045
        break
11046
      if fid == 0:
11047
        if ftype == TType.LIST:
11048
          self.success = []
11049
          (_etype226, _size223) = iprot.readListBegin()
11050
          for _i227 in xrange(_size223):
11051
            _elem228 = ItemStockPurchaseParams()
11052
            _elem228.read(iprot)
11053
            self.success.append(_elem228)
11054
          iprot.readListEnd()
11055
        else:
11056
          iprot.skip(ftype)
11057
      else:
11058
        iprot.skip(ftype)
11059
      iprot.readFieldEnd()
11060
    iprot.readStructEnd()
11061
 
11062
  def write(self, oprot):
11063
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11064
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11065
      return
11066
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_result')
11067
    if self.success is not None:
11068
      oprot.writeFieldBegin('success', TType.LIST, 0)
11069
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11070
      for iter229 in self.success:
11071
        iter229.write(oprot)
11072
      oprot.writeListEnd()
11073
      oprot.writeFieldEnd()
11074
    oprot.writeFieldStop()
11075
    oprot.writeStructEnd()
11076
 
11077
  def validate(self):
11078
    return
11079
 
11080
 
11081
  def __repr__(self):
11082
    L = ['%s=%r' % (key, value)
11083
      for key, value in self.__dict__.iteritems()]
11084
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11085
 
11086
  def __eq__(self, other):
11087
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11088
 
11089
  def __ne__(self, other):
11090
    return not (self == other)
11091
 
11092
class getBillableInventoryAndPendingOrders_args:
11093
 
11094
  thrift_spec = (
11095
  )
11096
 
11097
  def read(self, iprot):
11098
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11099
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11100
      return
11101
    iprot.readStructBegin()
11102
    while True:
11103
      (fname, ftype, fid) = iprot.readFieldBegin()
11104
      if ftype == TType.STOP:
11105
        break
11106
      else:
11107
        iprot.skip(ftype)
11108
      iprot.readFieldEnd()
11109
    iprot.readStructEnd()
11110
 
11111
  def write(self, oprot):
11112
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11113
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11114
      return
11115
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_args')
11116
    oprot.writeFieldStop()
11117
    oprot.writeStructEnd()
11118
 
11119
  def validate(self):
11120
    return
11121
 
11122
 
11123
  def __repr__(self):
11124
    L = ['%s=%r' % (key, value)
11125
      for key, value in self.__dict__.iteritems()]
11126
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11127
 
11128
  def __eq__(self, other):
11129
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11130
 
11131
  def __ne__(self, other):
11132
    return not (self == other)
11133
 
11134
class getBillableInventoryAndPendingOrders_result:
11135
  """
11136
  Attributes:
11137
   - success
11138
  """
11139
 
11140
  thrift_spec = (
11141
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
11142
  )
11143
 
11144
  def __init__(self, success=None,):
11145
    self.success = success
11146
 
11147
  def read(self, iprot):
11148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11150
      return
11151
    iprot.readStructBegin()
11152
    while True:
11153
      (fname, ftype, fid) = iprot.readFieldBegin()
11154
      if ftype == TType.STOP:
11155
        break
11156
      if fid == 0:
11157
        if ftype == TType.LIST:
11158
          self.success = []
11159
          (_etype233, _size230) = iprot.readListBegin()
11160
          for _i234 in xrange(_size230):
11161
            _elem235 = AvailableAndReservedStock()
11162
            _elem235.read(iprot)
11163
            self.success.append(_elem235)
11164
          iprot.readListEnd()
11165
        else:
11166
          iprot.skip(ftype)
11167
      else:
11168
        iprot.skip(ftype)
11169
      iprot.readFieldEnd()
11170
    iprot.readStructEnd()
11171
 
11172
  def write(self, oprot):
11173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11175
      return
11176
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_result')
11177
    if self.success is not None:
11178
      oprot.writeFieldBegin('success', TType.LIST, 0)
11179
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11180
      for iter236 in self.success:
11181
        iter236.write(oprot)
11182
      oprot.writeListEnd()
11183
      oprot.writeFieldEnd()
11184
    oprot.writeFieldStop()
11185
    oprot.writeStructEnd()
11186
 
11187
  def validate(self):
11188
    return
11189
 
11190
 
11191
  def __repr__(self):
11192
    L = ['%s=%r' % (key, value)
11193
      for key, value in self.__dict__.iteritems()]
11194
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11195
 
11196
  def __eq__(self, other):
11197
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11198
 
11199
  def __ne__(self, other):
11200
    return not (self == other)
11201
 
7281 kshitij.so 11202
class getWarehouseName_args:
11203
  """
11204
  Attributes:
11205
   - warehouse_id
11206
  """
11207
 
11208
  thrift_spec = (
11209
    None, # 0
11210
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
11211
  )
11212
 
11213
  def __init__(self, warehouse_id=None,):
11214
    self.warehouse_id = warehouse_id
11215
 
11216
  def read(self, iprot):
11217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11219
      return
11220
    iprot.readStructBegin()
11221
    while True:
11222
      (fname, ftype, fid) = iprot.readFieldBegin()
11223
      if ftype == TType.STOP:
11224
        break
11225
      if fid == 1:
11226
        if ftype == TType.I64:
11227
          self.warehouse_id = iprot.readI64();
11228
        else:
11229
          iprot.skip(ftype)
11230
      else:
11231
        iprot.skip(ftype)
11232
      iprot.readFieldEnd()
11233
    iprot.readStructEnd()
11234
 
11235
  def write(self, oprot):
11236
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11237
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11238
      return
11239
    oprot.writeStructBegin('getWarehouseName_args')
11240
    if self.warehouse_id is not None:
11241
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
11242
      oprot.writeI64(self.warehouse_id)
11243
      oprot.writeFieldEnd()
11244
    oprot.writeFieldStop()
11245
    oprot.writeStructEnd()
11246
 
11247
  def validate(self):
11248
    return
11249
 
11250
 
11251
  def __repr__(self):
11252
    L = ['%s=%r' % (key, value)
11253
      for key, value in self.__dict__.iteritems()]
11254
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11255
 
11256
  def __eq__(self, other):
11257
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11258
 
11259
  def __ne__(self, other):
11260
    return not (self == other)
11261
 
11262
class getWarehouseName_result:
11263
  """
11264
  Attributes:
11265
   - success
11266
  """
11267
 
11268
  thrift_spec = (
11269
    (0, TType.STRING, 'success', None, None, ), # 0
11270
  )
11271
 
11272
  def __init__(self, success=None,):
11273
    self.success = success
11274
 
11275
  def read(self, iprot):
11276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11278
      return
11279
    iprot.readStructBegin()
11280
    while True:
11281
      (fname, ftype, fid) = iprot.readFieldBegin()
11282
      if ftype == TType.STOP:
11283
        break
11284
      if fid == 0:
11285
        if ftype == TType.STRING:
11286
          self.success = iprot.readString();
11287
        else:
11288
          iprot.skip(ftype)
11289
      else:
11290
        iprot.skip(ftype)
11291
      iprot.readFieldEnd()
11292
    iprot.readStructEnd()
11293
 
11294
  def write(self, oprot):
11295
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11296
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11297
      return
11298
    oprot.writeStructBegin('getWarehouseName_result')
11299
    if self.success is not None:
11300
      oprot.writeFieldBegin('success', TType.STRING, 0)
11301
      oprot.writeString(self.success)
11302
      oprot.writeFieldEnd()
11303
    oprot.writeFieldStop()
11304
    oprot.writeStructEnd()
11305
 
11306
  def validate(self):
11307
    return
11308
 
11309
 
11310
  def __repr__(self):
11311
    L = ['%s=%r' % (key, value)
11312
      for key, value in self.__dict__.iteritems()]
11313
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11314
 
11315
  def __eq__(self, other):
11316
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11317
 
11318
  def __ne__(self, other):
11319
    return not (self == other)
11320
 
11321
class getAmazonInventoryForItem_args:
11322
  """
11323
  Attributes:
11324
   - item_id
11325
  """
11326
 
11327
  thrift_spec = (
11328
    None, # 0
11329
    (1, TType.I64, 'item_id', None, None, ), # 1
11330
  )
11331
 
11332
  def __init__(self, item_id=None,):
11333
    self.item_id = item_id
11334
 
11335
  def read(self, iprot):
11336
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11337
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11338
      return
11339
    iprot.readStructBegin()
11340
    while True:
11341
      (fname, ftype, fid) = iprot.readFieldBegin()
11342
      if ftype == TType.STOP:
11343
        break
11344
      if fid == 1:
11345
        if ftype == TType.I64:
11346
          self.item_id = iprot.readI64();
11347
        else:
11348
          iprot.skip(ftype)
11349
      else:
11350
        iprot.skip(ftype)
11351
      iprot.readFieldEnd()
11352
    iprot.readStructEnd()
11353
 
11354
  def write(self, oprot):
11355
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11356
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11357
      return
11358
    oprot.writeStructBegin('getAmazonInventoryForItem_args')
11359
    if self.item_id is not None:
11360
      oprot.writeFieldBegin('item_id', TType.I64, 1)
11361
      oprot.writeI64(self.item_id)
11362
      oprot.writeFieldEnd()
11363
    oprot.writeFieldStop()
11364
    oprot.writeStructEnd()
11365
 
11366
  def validate(self):
11367
    return
11368
 
11369
 
11370
  def __repr__(self):
11371
    L = ['%s=%r' % (key, value)
11372
      for key, value in self.__dict__.iteritems()]
11373
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11374
 
11375
  def __eq__(self, other):
11376
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11377
 
11378
  def __ne__(self, other):
11379
    return not (self == other)
11380
 
11381
class getAmazonInventoryForItem_result:
11382
  """
11383
  Attributes:
11384
   - success
11385
  """
11386
 
11387
  thrift_spec = (
11388
    (0, TType.STRUCT, 'success', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 0
11389
  )
11390
 
11391
  def __init__(self, success=None,):
11392
    self.success = success
11393
 
11394
  def read(self, iprot):
11395
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11396
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11397
      return
11398
    iprot.readStructBegin()
11399
    while True:
11400
      (fname, ftype, fid) = iprot.readFieldBegin()
11401
      if ftype == TType.STOP:
11402
        break
11403
      if fid == 0:
11404
        if ftype == TType.STRUCT:
11405
          self.success = AmazonInventorySnapshot()
11406
          self.success.read(iprot)
11407
        else:
11408
          iprot.skip(ftype)
11409
      else:
11410
        iprot.skip(ftype)
11411
      iprot.readFieldEnd()
11412
    iprot.readStructEnd()
11413
 
11414
  def write(self, oprot):
11415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11417
      return
11418
    oprot.writeStructBegin('getAmazonInventoryForItem_result')
11419
    if self.success is not None:
11420
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11421
      self.success.write(oprot)
11422
      oprot.writeFieldEnd()
11423
    oprot.writeFieldStop()
11424
    oprot.writeStructEnd()
11425
 
11426
  def validate(self):
11427
    return
11428
 
11429
 
11430
  def __repr__(self):
11431
    L = ['%s=%r' % (key, value)
11432
      for key, value in self.__dict__.iteritems()]
11433
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11434
 
11435
  def __eq__(self, other):
11436
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11437
 
11438
  def __ne__(self, other):
11439
    return not (self == other)
11440
 
11441
class getAllAmazonInventory_args:
11442
 
11443
  thrift_spec = (
11444
  )
11445
 
11446
  def read(self, iprot):
11447
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11448
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11449
      return
11450
    iprot.readStructBegin()
11451
    while True:
11452
      (fname, ftype, fid) = iprot.readFieldBegin()
11453
      if ftype == TType.STOP:
11454
        break
11455
      else:
11456
        iprot.skip(ftype)
11457
      iprot.readFieldEnd()
11458
    iprot.readStructEnd()
11459
 
11460
  def write(self, oprot):
11461
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11462
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11463
      return
11464
    oprot.writeStructBegin('getAllAmazonInventory_args')
11465
    oprot.writeFieldStop()
11466
    oprot.writeStructEnd()
11467
 
11468
  def validate(self):
11469
    return
11470
 
11471
 
11472
  def __repr__(self):
11473
    L = ['%s=%r' % (key, value)
11474
      for key, value in self.__dict__.iteritems()]
11475
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11476
 
11477
  def __eq__(self, other):
11478
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11479
 
11480
  def __ne__(self, other):
11481
    return not (self == other)
11482
 
11483
class getAllAmazonInventory_result:
11484
  """
11485
  Attributes:
11486
   - success
11487
  """
11488
 
11489
  thrift_spec = (
11490
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec)), None, ), # 0
11491
  )
11492
 
11493
  def __init__(self, success=None,):
11494
    self.success = success
11495
 
11496
  def read(self, iprot):
11497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11499
      return
11500
    iprot.readStructBegin()
11501
    while True:
11502
      (fname, ftype, fid) = iprot.readFieldBegin()
11503
      if ftype == TType.STOP:
11504
        break
11505
      if fid == 0:
11506
        if ftype == TType.LIST:
11507
          self.success = []
10126 amar.kumar 11508
          (_etype240, _size237) = iprot.readListBegin()
11509
          for _i241 in xrange(_size237):
11510
            _elem242 = AmazonInventorySnapshot()
11511
            _elem242.read(iprot)
11512
            self.success.append(_elem242)
7281 kshitij.so 11513
          iprot.readListEnd()
11514
        else:
11515
          iprot.skip(ftype)
11516
      else:
11517
        iprot.skip(ftype)
11518
      iprot.readFieldEnd()
11519
    iprot.readStructEnd()
11520
 
11521
  def write(self, oprot):
11522
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11523
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11524
      return
11525
    oprot.writeStructBegin('getAllAmazonInventory_result')
11526
    if self.success is not None:
11527
      oprot.writeFieldBegin('success', TType.LIST, 0)
11528
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10126 amar.kumar 11529
      for iter243 in self.success:
11530
        iter243.write(oprot)
7281 kshitij.so 11531
      oprot.writeListEnd()
11532
      oprot.writeFieldEnd()
11533
    oprot.writeFieldStop()
11534
    oprot.writeStructEnd()
11535
 
11536
  def validate(self):
11537
    return
11538
 
11539
 
11540
  def __repr__(self):
11541
    L = ['%s=%r' % (key, value)
11542
      for key, value in self.__dict__.iteritems()]
11543
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11544
 
11545
  def __eq__(self, other):
11546
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11547
 
11548
  def __ne__(self, other):
11549
    return not (self == other)
11550
 
11551
class addOrUpdateAmazonInventoryForItem_args:
11552
  """
11553
  Attributes:
11554
   - amazonInventorySnapshot
10450 vikram.rag 11555
   - time
7281 kshitij.so 11556
  """
11557
 
11558
  thrift_spec = (
11559
    None, # 0
11560
    (1, TType.STRUCT, 'amazonInventorySnapshot', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 1
10450 vikram.rag 11561
    (2, TType.I64, 'time', None, None, ), # 2
7281 kshitij.so 11562
  )
11563
 
10450 vikram.rag 11564
  def __init__(self, amazonInventorySnapshot=None, time=None,):
7281 kshitij.so 11565
    self.amazonInventorySnapshot = amazonInventorySnapshot
10450 vikram.rag 11566
    self.time = time
7281 kshitij.so 11567
 
11568
  def read(self, iprot):
11569
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11570
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11571
      return
11572
    iprot.readStructBegin()
11573
    while True:
11574
      (fname, ftype, fid) = iprot.readFieldBegin()
11575
      if ftype == TType.STOP:
11576
        break
11577
      if fid == 1:
11578
        if ftype == TType.STRUCT:
11579
          self.amazonInventorySnapshot = AmazonInventorySnapshot()
11580
          self.amazonInventorySnapshot.read(iprot)
11581
        else:
11582
          iprot.skip(ftype)
10450 vikram.rag 11583
      elif fid == 2:
11584
        if ftype == TType.I64:
11585
          self.time = iprot.readI64();
11586
        else:
11587
          iprot.skip(ftype)
7281 kshitij.so 11588
      else:
11589
        iprot.skip(ftype)
11590
      iprot.readFieldEnd()
11591
    iprot.readStructEnd()
11592
 
11593
  def write(self, oprot):
11594
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11595
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11596
      return
11597
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_args')
11598
    if self.amazonInventorySnapshot is not None:
11599
      oprot.writeFieldBegin('amazonInventorySnapshot', TType.STRUCT, 1)
11600
      self.amazonInventorySnapshot.write(oprot)
11601
      oprot.writeFieldEnd()
10450 vikram.rag 11602
    if self.time is not None:
11603
      oprot.writeFieldBegin('time', TType.I64, 2)
11604
      oprot.writeI64(self.time)
11605
      oprot.writeFieldEnd()
7281 kshitij.so 11606
    oprot.writeFieldStop()
11607
    oprot.writeStructEnd()
11608
 
11609
  def validate(self):
11610
    return
11611
 
11612
 
11613
  def __repr__(self):
11614
    L = ['%s=%r' % (key, value)
11615
      for key, value in self.__dict__.iteritems()]
11616
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11617
 
11618
  def __eq__(self, other):
11619
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11620
 
11621
  def __ne__(self, other):
11622
    return not (self == other)
11623
 
11624
class addOrUpdateAmazonInventoryForItem_result:
11625
 
11626
  thrift_spec = (
11627
  )
11628
 
11629
  def read(self, iprot):
11630
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11631
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11632
      return
11633
    iprot.readStructBegin()
11634
    while True:
11635
      (fname, ftype, fid) = iprot.readFieldBegin()
11636
      if ftype == TType.STOP:
11637
        break
11638
      else:
11639
        iprot.skip(ftype)
11640
      iprot.readFieldEnd()
11641
    iprot.readStructEnd()
11642
 
11643
  def write(self, oprot):
11644
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11645
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11646
      return
11647
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_result')
11648
    oprot.writeFieldStop()
11649
    oprot.writeStructEnd()
11650
 
11651
  def validate(self):
11652
    return
11653
 
11654
 
11655
  def __repr__(self):
11656
    L = ['%s=%r' % (key, value)
11657
      for key, value in self.__dict__.iteritems()]
11658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11659
 
11660
  def __eq__(self, other):
11661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11662
 
11663
  def __ne__(self, other):
11664
    return not (self == other)
7972 amar.kumar 11665
 
11666
class getLastNdaySaleForItem_args:
11667
  """
11668
  Attributes:
11669
   - itemId
11670
   - numberOfDays
11671
  """
11672
 
11673
  thrift_spec = (
11674
    None, # 0
11675
    (1, TType.I64, 'itemId', None, None, ), # 1
11676
    (2, TType.I64, 'numberOfDays', None, None, ), # 2
11677
  )
11678
 
11679
  def __init__(self, itemId=None, numberOfDays=None,):
11680
    self.itemId = itemId
11681
    self.numberOfDays = numberOfDays
11682
 
11683
  def read(self, iprot):
11684
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11685
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11686
      return
11687
    iprot.readStructBegin()
11688
    while True:
11689
      (fname, ftype, fid) = iprot.readFieldBegin()
11690
      if ftype == TType.STOP:
11691
        break
11692
      if fid == 1:
11693
        if ftype == TType.I64:
11694
          self.itemId = iprot.readI64();
11695
        else:
11696
          iprot.skip(ftype)
11697
      elif fid == 2:
11698
        if ftype == TType.I64:
11699
          self.numberOfDays = iprot.readI64();
11700
        else:
11701
          iprot.skip(ftype)
11702
      else:
11703
        iprot.skip(ftype)
11704
      iprot.readFieldEnd()
11705
    iprot.readStructEnd()
11706
 
11707
  def write(self, oprot):
11708
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11709
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11710
      return
11711
    oprot.writeStructBegin('getLastNdaySaleForItem_args')
11712
    if self.itemId is not None:
11713
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11714
      oprot.writeI64(self.itemId)
11715
      oprot.writeFieldEnd()
11716
    if self.numberOfDays is not None:
11717
      oprot.writeFieldBegin('numberOfDays', TType.I64, 2)
11718
      oprot.writeI64(self.numberOfDays)
11719
      oprot.writeFieldEnd()
11720
    oprot.writeFieldStop()
11721
    oprot.writeStructEnd()
11722
 
11723
  def validate(self):
11724
    return
11725
 
11726
 
11727
  def __repr__(self):
11728
    L = ['%s=%r' % (key, value)
11729
      for key, value in self.__dict__.iteritems()]
11730
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11731
 
11732
  def __eq__(self, other):
11733
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11734
 
11735
  def __ne__(self, other):
11736
    return not (self == other)
11737
 
11738
class getLastNdaySaleForItem_result:
11739
  """
11740
  Attributes:
11741
   - success
11742
  """
11743
 
11744
  thrift_spec = (
11745
    (0, TType.STRING, 'success', None, None, ), # 0
11746
  )
11747
 
11748
  def __init__(self, success=None,):
11749
    self.success = success
11750
 
11751
  def read(self, iprot):
11752
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11753
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11754
      return
11755
    iprot.readStructBegin()
11756
    while True:
11757
      (fname, ftype, fid) = iprot.readFieldBegin()
11758
      if ftype == TType.STOP:
11759
        break
11760
      if fid == 0:
11761
        if ftype == TType.STRING:
11762
          self.success = iprot.readString();
11763
        else:
11764
          iprot.skip(ftype)
11765
      else:
11766
        iprot.skip(ftype)
11767
      iprot.readFieldEnd()
11768
    iprot.readStructEnd()
11769
 
11770
  def write(self, oprot):
11771
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11772
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11773
      return
11774
    oprot.writeStructBegin('getLastNdaySaleForItem_result')
11775
    if self.success is not None:
11776
      oprot.writeFieldBegin('success', TType.STRING, 0)
11777
      oprot.writeString(self.success)
11778
      oprot.writeFieldEnd()
11779
    oprot.writeFieldStop()
11780
    oprot.writeStructEnd()
11781
 
11782
  def validate(self):
11783
    return
11784
 
11785
 
11786
  def __repr__(self):
11787
    L = ['%s=%r' % (key, value)
11788
      for key, value in self.__dict__.iteritems()]
11789
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11790
 
11791
  def __eq__(self, other):
11792
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11793
 
11794
  def __ne__(self, other):
11795
    return not (self == other)
8182 amar.kumar 11796
 
8282 kshitij.so 11797
class addOrUpdateAmazonFbaInventory_args:
11798
  """
11799
  Attributes:
11800
   - amazonfbainventorysnapshot
11801
  """
11802
 
11803
  thrift_spec = (
11804
    None, # 0
11805
    (1, TType.STRUCT, 'amazonfbainventorysnapshot', (AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec), None, ), # 1
11806
  )
11807
 
11808
  def __init__(self, amazonfbainventorysnapshot=None,):
11809
    self.amazonfbainventorysnapshot = amazonfbainventorysnapshot
11810
 
11811
  def read(self, iprot):
11812
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11813
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11814
      return
11815
    iprot.readStructBegin()
11816
    while True:
11817
      (fname, ftype, fid) = iprot.readFieldBegin()
11818
      if ftype == TType.STOP:
11819
        break
11820
      if fid == 1:
11821
        if ftype == TType.STRUCT:
11822
          self.amazonfbainventorysnapshot = AmazonFbaInventorySnapshot()
11823
          self.amazonfbainventorysnapshot.read(iprot)
11824
        else:
11825
          iprot.skip(ftype)
11826
      else:
11827
        iprot.skip(ftype)
11828
      iprot.readFieldEnd()
11829
    iprot.readStructEnd()
11830
 
11831
  def write(self, oprot):
11832
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11833
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11834
      return
11835
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_args')
11836
    if self.amazonfbainventorysnapshot is not None:
11837
      oprot.writeFieldBegin('amazonfbainventorysnapshot', TType.STRUCT, 1)
11838
      self.amazonfbainventorysnapshot.write(oprot)
11839
      oprot.writeFieldEnd()
11840
    oprot.writeFieldStop()
11841
    oprot.writeStructEnd()
11842
 
11843
  def validate(self):
11844
    return
11845
 
11846
 
11847
  def __repr__(self):
11848
    L = ['%s=%r' % (key, value)
11849
      for key, value in self.__dict__.iteritems()]
11850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11851
 
11852
  def __eq__(self, other):
11853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11854
 
11855
  def __ne__(self, other):
11856
    return not (self == other)
11857
 
11858
class addOrUpdateAmazonFbaInventory_result:
11859
 
11860
  thrift_spec = (
11861
  )
11862
 
11863
  def read(self, iprot):
11864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11866
      return
11867
    iprot.readStructBegin()
11868
    while True:
11869
      (fname, ftype, fid) = iprot.readFieldBegin()
11870
      if ftype == TType.STOP:
11871
        break
11872
      else:
11873
        iprot.skip(ftype)
11874
      iprot.readFieldEnd()
11875
    iprot.readStructEnd()
11876
 
11877
  def write(self, oprot):
11878
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11879
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11880
      return
11881
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_result')
11882
    oprot.writeFieldStop()
11883
    oprot.writeStructEnd()
11884
 
11885
  def validate(self):
11886
    return
11887
 
11888
 
11889
  def __repr__(self):
11890
    L = ['%s=%r' % (key, value)
11891
      for key, value in self.__dict__.iteritems()]
11892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11893
 
11894
  def __eq__(self, other):
11895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11896
 
11897
  def __ne__(self, other):
11898
    return not (self == other)
11899
 
8182 amar.kumar 11900
class addUpdateHoldInventory_args:
11901
  """
11902
  Attributes:
11903
   - itemId
11904
   - warehouseId
11905
   - holdQuantity
11906
   - source
11907
  """
11908
 
11909
  thrift_spec = (
11910
    None, # 0
11911
    (1, TType.I64, 'itemId', None, None, ), # 1
11912
    (2, TType.I64, 'warehouseId', None, None, ), # 2
11913
    (3, TType.I64, 'holdQuantity', None, None, ), # 3
11914
    (4, TType.I64, 'source', None, None, ), # 4
11915
  )
11916
 
11917
  def __init__(self, itemId=None, warehouseId=None, holdQuantity=None, source=None,):
11918
    self.itemId = itemId
11919
    self.warehouseId = warehouseId
11920
    self.holdQuantity = holdQuantity
11921
    self.source = source
11922
 
11923
  def read(self, iprot):
11924
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11925
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11926
      return
11927
    iprot.readStructBegin()
11928
    while True:
11929
      (fname, ftype, fid) = iprot.readFieldBegin()
11930
      if ftype == TType.STOP:
11931
        break
11932
      if fid == 1:
11933
        if ftype == TType.I64:
11934
          self.itemId = iprot.readI64();
11935
        else:
11936
          iprot.skip(ftype)
11937
      elif fid == 2:
11938
        if ftype == TType.I64:
11939
          self.warehouseId = iprot.readI64();
11940
        else:
11941
          iprot.skip(ftype)
11942
      elif fid == 3:
11943
        if ftype == TType.I64:
11944
          self.holdQuantity = iprot.readI64();
11945
        else:
11946
          iprot.skip(ftype)
11947
      elif fid == 4:
11948
        if ftype == TType.I64:
11949
          self.source = iprot.readI64();
11950
        else:
11951
          iprot.skip(ftype)
11952
      else:
11953
        iprot.skip(ftype)
11954
      iprot.readFieldEnd()
11955
    iprot.readStructEnd()
11956
 
11957
  def write(self, oprot):
11958
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11959
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11960
      return
11961
    oprot.writeStructBegin('addUpdateHoldInventory_args')
11962
    if self.itemId is not None:
11963
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11964
      oprot.writeI64(self.itemId)
11965
      oprot.writeFieldEnd()
11966
    if self.warehouseId is not None:
11967
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
11968
      oprot.writeI64(self.warehouseId)
11969
      oprot.writeFieldEnd()
11970
    if self.holdQuantity is not None:
11971
      oprot.writeFieldBegin('holdQuantity', TType.I64, 3)
11972
      oprot.writeI64(self.holdQuantity)
11973
      oprot.writeFieldEnd()
11974
    if self.source is not None:
11975
      oprot.writeFieldBegin('source', TType.I64, 4)
11976
      oprot.writeI64(self.source)
11977
      oprot.writeFieldEnd()
11978
    oprot.writeFieldStop()
11979
    oprot.writeStructEnd()
11980
 
11981
  def validate(self):
11982
    return
11983
 
11984
 
11985
  def __repr__(self):
11986
    L = ['%s=%r' % (key, value)
11987
      for key, value in self.__dict__.iteritems()]
11988
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11989
 
11990
  def __eq__(self, other):
11991
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11992
 
11993
  def __ne__(self, other):
11994
    return not (self == other)
11995
 
11996
class addUpdateHoldInventory_result:
9762 amar.kumar 11997
  """
11998
  Attributes:
11999
   - cex
12000
  """
8182 amar.kumar 12001
 
12002
  thrift_spec = (
9762 amar.kumar 12003
    None, # 0
12004
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8182 amar.kumar 12005
  )
12006
 
9762 amar.kumar 12007
  def __init__(self, cex=None,):
12008
    self.cex = cex
12009
 
8182 amar.kumar 12010
  def read(self, iprot):
12011
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12012
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12013
      return
12014
    iprot.readStructBegin()
12015
    while True:
12016
      (fname, ftype, fid) = iprot.readFieldBegin()
12017
      if ftype == TType.STOP:
12018
        break
9762 amar.kumar 12019
      if fid == 1:
12020
        if ftype == TType.STRUCT:
12021
          self.cex = InventoryServiceException()
12022
          self.cex.read(iprot)
12023
        else:
12024
          iprot.skip(ftype)
8182 amar.kumar 12025
      else:
12026
        iprot.skip(ftype)
12027
      iprot.readFieldEnd()
12028
    iprot.readStructEnd()
12029
 
12030
  def write(self, oprot):
12031
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12032
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12033
      return
12034
    oprot.writeStructBegin('addUpdateHoldInventory_result')
9762 amar.kumar 12035
    if self.cex is not None:
12036
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12037
      self.cex.write(oprot)
12038
      oprot.writeFieldEnd()
8182 amar.kumar 12039
    oprot.writeFieldStop()
12040
    oprot.writeStructEnd()
12041
 
12042
  def validate(self):
12043
    return
12044
 
12045
 
12046
  def __repr__(self):
12047
    L = ['%s=%r' % (key, value)
12048
      for key, value in self.__dict__.iteritems()]
12049
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12050
 
12051
  def __eq__(self, other):
12052
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12053
 
12054
  def __ne__(self, other):
12055
    return not (self == other)
8282 kshitij.so 12056
 
12057
class getAmazonFbaItemInventory_args:
12058
  """
12059
  Attributes:
12060
   - itemId
12061
  """
12062
 
12063
  thrift_spec = (
12064
    None, # 0
12065
    (1, TType.I64, 'itemId', None, None, ), # 1
12066
  )
12067
 
12068
  def __init__(self, itemId=None,):
12069
    self.itemId = itemId
12070
 
12071
  def read(self, iprot):
12072
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12073
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12074
      return
12075
    iprot.readStructBegin()
12076
    while True:
12077
      (fname, ftype, fid) = iprot.readFieldBegin()
12078
      if ftype == TType.STOP:
12079
        break
12080
      if fid == 1:
12081
        if ftype == TType.I64:
12082
          self.itemId = iprot.readI64();
12083
        else:
12084
          iprot.skip(ftype)
12085
      else:
12086
        iprot.skip(ftype)
12087
      iprot.readFieldEnd()
12088
    iprot.readStructEnd()
12089
 
12090
  def write(self, oprot):
12091
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12092
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12093
      return
12094
    oprot.writeStructBegin('getAmazonFbaItemInventory_args')
12095
    if self.itemId is not None:
12096
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12097
      oprot.writeI64(self.itemId)
12098
      oprot.writeFieldEnd()
12099
    oprot.writeFieldStop()
12100
    oprot.writeStructEnd()
12101
 
12102
  def validate(self):
12103
    return
12104
 
12105
 
12106
  def __repr__(self):
12107
    L = ['%s=%r' % (key, value)
12108
      for key, value in self.__dict__.iteritems()]
12109
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12110
 
12111
  def __eq__(self, other):
12112
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12113
 
12114
  def __ne__(self, other):
12115
    return not (self == other)
12116
 
12117
class getAmazonFbaItemInventory_result:
12118
  """
12119
  Attributes:
12120
   - success
12121
  """
12122
 
12123
  thrift_spec = (
12124
    (0, TType.I64, 'success', None, None, ), # 0
12125
  )
12126
 
12127
  def __init__(self, success=None,):
12128
    self.success = success
12129
 
12130
  def read(self, iprot):
12131
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12132
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12133
      return
12134
    iprot.readStructBegin()
12135
    while True:
12136
      (fname, ftype, fid) = iprot.readFieldBegin()
12137
      if ftype == TType.STOP:
12138
        break
12139
      if fid == 0:
12140
        if ftype == TType.I64:
12141
          self.success = iprot.readI64();
12142
        else:
12143
          iprot.skip(ftype)
12144
      else:
12145
        iprot.skip(ftype)
12146
      iprot.readFieldEnd()
12147
    iprot.readStructEnd()
12148
 
12149
  def write(self, oprot):
12150
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12151
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12152
      return
12153
    oprot.writeStructBegin('getAmazonFbaItemInventory_result')
12154
    if self.success is not None:
12155
      oprot.writeFieldBegin('success', TType.I64, 0)
12156
      oprot.writeI64(self.success)
12157
      oprot.writeFieldEnd()
12158
    oprot.writeFieldStop()
12159
    oprot.writeStructEnd()
12160
 
12161
  def validate(self):
12162
    return
12163
 
12164
 
12165
  def __repr__(self):
12166
    L = ['%s=%r' % (key, value)
12167
      for key, value in self.__dict__.iteritems()]
12168
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12169
 
12170
  def __eq__(self, other):
12171
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12172
 
12173
  def __ne__(self, other):
12174
    return not (self == other)
12175
 
8363 vikram.rag 12176
class getAllAmazonFbaItemInventory_args:
8282 kshitij.so 12177
 
12178
  thrift_spec = (
12179
  )
12180
 
12181
  def read(self, iprot):
12182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12184
      return
12185
    iprot.readStructBegin()
12186
    while True:
12187
      (fname, ftype, fid) = iprot.readFieldBegin()
12188
      if ftype == TType.STOP:
12189
        break
12190
      else:
12191
        iprot.skip(ftype)
12192
      iprot.readFieldEnd()
12193
    iprot.readStructEnd()
12194
 
12195
  def write(self, oprot):
12196
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12197
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12198
      return
8363 vikram.rag 12199
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_args')
8282 kshitij.so 12200
    oprot.writeFieldStop()
12201
    oprot.writeStructEnd()
12202
 
12203
  def validate(self):
12204
    return
12205
 
12206
 
12207
  def __repr__(self):
12208
    L = ['%s=%r' % (key, value)
12209
      for key, value in self.__dict__.iteritems()]
12210
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12211
 
12212
  def __eq__(self, other):
12213
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12214
 
12215
  def __ne__(self, other):
12216
    return not (self == other)
12217
 
8363 vikram.rag 12218
class getAllAmazonFbaItemInventory_result:
8282 kshitij.so 12219
  """
12220
  Attributes:
12221
   - success
12222
  """
12223
 
12224
  thrift_spec = (
12225
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
12226
  )
12227
 
12228
  def __init__(self, success=None,):
12229
    self.success = success
12230
 
12231
  def read(self, iprot):
12232
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12233
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12234
      return
12235
    iprot.readStructBegin()
12236
    while True:
12237
      (fname, ftype, fid) = iprot.readFieldBegin()
12238
      if ftype == TType.STOP:
12239
        break
12240
      if fid == 0:
12241
        if ftype == TType.LIST:
12242
          self.success = []
10126 amar.kumar 12243
          (_etype247, _size244) = iprot.readListBegin()
12244
          for _i248 in xrange(_size244):
12245
            _elem249 = AmazonFbaInventorySnapshot()
12246
            _elem249.read(iprot)
12247
            self.success.append(_elem249)
8282 kshitij.so 12248
          iprot.readListEnd()
12249
        else:
12250
          iprot.skip(ftype)
12251
      else:
12252
        iprot.skip(ftype)
12253
      iprot.readFieldEnd()
12254
    iprot.readStructEnd()
12255
 
12256
  def write(self, oprot):
12257
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12258
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12259
      return
8363 vikram.rag 12260
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_result')
8282 kshitij.so 12261
    if self.success is not None:
12262
      oprot.writeFieldBegin('success', TType.LIST, 0)
12263
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10126 amar.kumar 12264
      for iter250 in self.success:
12265
        iter250.write(oprot)
8282 kshitij.so 12266
      oprot.writeListEnd()
12267
      oprot.writeFieldEnd()
12268
    oprot.writeFieldStop()
12269
    oprot.writeStructEnd()
12270
 
12271
  def validate(self):
12272
    return
12273
 
12274
 
12275
  def __repr__(self):
12276
    L = ['%s=%r' % (key, value)
12277
      for key, value in self.__dict__.iteritems()]
12278
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12279
 
12280
  def __eq__(self, other):
12281
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12282
 
12283
  def __ne__(self, other):
12284
    return not (self == other)
8363 vikram.rag 12285
 
12286
class getOursGoodWarehouseIdsForLocation_args:
12287
  """
12288
  Attributes:
12289
   - state_id
12290
  """
12291
 
12292
  thrift_spec = (
12293
    None, # 0
12294
    (1, TType.I64, 'state_id', None, None, ), # 1
12295
  )
12296
 
12297
  def __init__(self, state_id=None,):
12298
    self.state_id = state_id
12299
 
12300
  def read(self, iprot):
12301
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12302
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12303
      return
12304
    iprot.readStructBegin()
12305
    while True:
12306
      (fname, ftype, fid) = iprot.readFieldBegin()
12307
      if ftype == TType.STOP:
12308
        break
12309
      if fid == 1:
12310
        if ftype == TType.I64:
12311
          self.state_id = iprot.readI64();
12312
        else:
12313
          iprot.skip(ftype)
12314
      else:
12315
        iprot.skip(ftype)
12316
      iprot.readFieldEnd()
12317
    iprot.readStructEnd()
12318
 
12319
  def write(self, oprot):
12320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12322
      return
12323
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_args')
12324
    if self.state_id is not None:
12325
      oprot.writeFieldBegin('state_id', TType.I64, 1)
12326
      oprot.writeI64(self.state_id)
12327
      oprot.writeFieldEnd()
12328
    oprot.writeFieldStop()
12329
    oprot.writeStructEnd()
12330
 
12331
  def validate(self):
12332
    return
12333
 
12334
 
12335
  def __repr__(self):
12336
    L = ['%s=%r' % (key, value)
12337
      for key, value in self.__dict__.iteritems()]
12338
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12339
 
12340
  def __eq__(self, other):
12341
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12342
 
12343
  def __ne__(self, other):
12344
    return not (self == other)
12345
 
12346
class getOursGoodWarehouseIdsForLocation_result:
12347
  """
12348
  Attributes:
12349
   - success
12350
  """
12351
 
12352
  thrift_spec = (
12353
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12354
  )
12355
 
12356
  def __init__(self, success=None,):
12357
    self.success = success
12358
 
12359
  def read(self, iprot):
12360
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12361
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12362
      return
12363
    iprot.readStructBegin()
12364
    while True:
12365
      (fname, ftype, fid) = iprot.readFieldBegin()
12366
      if ftype == TType.STOP:
12367
        break
12368
      if fid == 0:
12369
        if ftype == TType.LIST:
12370
          self.success = []
10126 amar.kumar 12371
          (_etype254, _size251) = iprot.readListBegin()
12372
          for _i255 in xrange(_size251):
12373
            _elem256 = iprot.readI64();
12374
            self.success.append(_elem256)
8363 vikram.rag 12375
          iprot.readListEnd()
12376
        else:
12377
          iprot.skip(ftype)
12378
      else:
12379
        iprot.skip(ftype)
12380
      iprot.readFieldEnd()
12381
    iprot.readStructEnd()
12382
 
12383
  def write(self, oprot):
12384
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12385
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12386
      return
12387
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_result')
12388
    if self.success is not None:
12389
      oprot.writeFieldBegin('success', TType.LIST, 0)
12390
      oprot.writeListBegin(TType.I64, len(self.success))
10126 amar.kumar 12391
      for iter257 in self.success:
12392
        oprot.writeI64(iter257)
8363 vikram.rag 12393
      oprot.writeListEnd()
12394
      oprot.writeFieldEnd()
12395
    oprot.writeFieldStop()
12396
    oprot.writeStructEnd()
12397
 
12398
  def validate(self):
12399
    return
12400
 
12401
 
12402
  def __repr__(self):
12403
    L = ['%s=%r' % (key, value)
12404
      for key, value in self.__dict__.iteritems()]
12405
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12406
 
12407
  def __eq__(self, other):
12408
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12409
 
12410
  def __ne__(self, other):
12411
    return not (self == other)
8955 vikram.rag 12412
 
12413
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_args:
12414
  """
12415
  Attributes:
12416
   - id
12417
   - warehouse_id
12418
   - source
12419
  """
12420
 
12421
  thrift_spec = (
12422
    None, # 0
12423
    (1, TType.I64, 'id', None, None, ), # 1
12424
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
12425
    (3, TType.I64, 'source', None, None, ), # 3
12426
  )
12427
 
12428
  def __init__(self, id=None, warehouse_id=None, source=None,):
12429
    self.id = id
12430
    self.warehouse_id = warehouse_id
12431
    self.source = source
12432
 
12433
  def read(self, iprot):
12434
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12435
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12436
      return
12437
    iprot.readStructBegin()
12438
    while True:
12439
      (fname, ftype, fid) = iprot.readFieldBegin()
12440
      if ftype == TType.STOP:
12441
        break
12442
      if fid == 1:
12443
        if ftype == TType.I64:
12444
          self.id = iprot.readI64();
12445
        else:
12446
          iprot.skip(ftype)
12447
      elif fid == 2:
12448
        if ftype == TType.I64:
12449
          self.warehouse_id = iprot.readI64();
12450
        else:
12451
          iprot.skip(ftype)
12452
      elif fid == 3:
12453
        if ftype == TType.I64:
12454
          self.source = iprot.readI64();
12455
        else:
12456
          iprot.skip(ftype)
12457
      else:
12458
        iprot.skip(ftype)
12459
      iprot.readFieldEnd()
12460
    iprot.readStructEnd()
12461
 
12462
  def write(self, oprot):
12463
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12464
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12465
      return
12466
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_args')
12467
    if self.id is not None:
12468
      oprot.writeFieldBegin('id', TType.I64, 1)
12469
      oprot.writeI64(self.id)
12470
      oprot.writeFieldEnd()
12471
    if self.warehouse_id is not None:
12472
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
12473
      oprot.writeI64(self.warehouse_id)
12474
      oprot.writeFieldEnd()
12475
    if self.source is not None:
12476
      oprot.writeFieldBegin('source', TType.I64, 3)
12477
      oprot.writeI64(self.source)
12478
      oprot.writeFieldEnd()
12479
    oprot.writeFieldStop()
12480
    oprot.writeStructEnd()
12481
 
12482
  def validate(self):
12483
    return
12484
 
12485
 
12486
  def __repr__(self):
12487
    L = ['%s=%r' % (key, value)
12488
      for key, value in self.__dict__.iteritems()]
12489
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12490
 
12491
  def __eq__(self, other):
12492
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12493
 
12494
  def __ne__(self, other):
12495
    return not (self == other)
12496
 
12497
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_result:
12498
  """
12499
  Attributes:
12500
   - success
12501
  """
12502
 
12503
  thrift_spec = (
12504
    (0, TType.I64, 'success', None, None, ), # 0
12505
  )
12506
 
12507
  def __init__(self, success=None,):
12508
    self.success = success
12509
 
12510
  def read(self, iprot):
12511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12513
      return
12514
    iprot.readStructBegin()
12515
    while True:
12516
      (fname, ftype, fid) = iprot.readFieldBegin()
12517
      if ftype == TType.STOP:
12518
        break
12519
      if fid == 0:
12520
        if ftype == TType.I64:
12521
          self.success = iprot.readI64();
12522
        else:
12523
          iprot.skip(ftype)
12524
      else:
12525
        iprot.skip(ftype)
12526
      iprot.readFieldEnd()
12527
    iprot.readStructEnd()
12528
 
12529
  def write(self, oprot):
12530
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12531
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12532
      return
12533
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_result')
12534
    if self.success is not None:
12535
      oprot.writeFieldBegin('success', TType.I64, 0)
12536
      oprot.writeI64(self.success)
12537
      oprot.writeFieldEnd()
12538
    oprot.writeFieldStop()
12539
    oprot.writeStructEnd()
12540
 
12541
  def validate(self):
12542
    return
12543
 
12544
 
12545
  def __repr__(self):
12546
    L = ['%s=%r' % (key, value)
12547
      for key, value in self.__dict__.iteritems()]
12548
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12549
 
12550
  def __eq__(self, other):
12551
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12552
 
12553
  def __ne__(self, other):
12554
    return not (self == other)
9404 vikram.rag 12555
 
12556
class getSnapdealInventoryForItem_args:
12557
  """
12558
  Attributes:
12559
   - item_id
12560
  """
12561
 
12562
  thrift_spec = (
12563
    None, # 0
12564
    (1, TType.I64, 'item_id', None, None, ), # 1
12565
  )
12566
 
12567
  def __init__(self, item_id=None,):
12568
    self.item_id = item_id
12569
 
12570
  def read(self, iprot):
12571
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12572
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12573
      return
12574
    iprot.readStructBegin()
12575
    while True:
12576
      (fname, ftype, fid) = iprot.readFieldBegin()
12577
      if ftype == TType.STOP:
12578
        break
12579
      if fid == 1:
12580
        if ftype == TType.I64:
12581
          self.item_id = iprot.readI64();
12582
        else:
12583
          iprot.skip(ftype)
12584
      else:
12585
        iprot.skip(ftype)
12586
      iprot.readFieldEnd()
12587
    iprot.readStructEnd()
12588
 
12589
  def write(self, oprot):
12590
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12591
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12592
      return
12593
    oprot.writeStructBegin('getSnapdealInventoryForItem_args')
12594
    if self.item_id is not None:
12595
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12596
      oprot.writeI64(self.item_id)
12597
      oprot.writeFieldEnd()
12598
    oprot.writeFieldStop()
12599
    oprot.writeStructEnd()
12600
 
12601
  def validate(self):
12602
    return
12603
 
12604
 
12605
  def __repr__(self):
12606
    L = ['%s=%r' % (key, value)
12607
      for key, value in self.__dict__.iteritems()]
12608
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12609
 
12610
  def __eq__(self, other):
12611
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12612
 
12613
  def __ne__(self, other):
12614
    return not (self == other)
12615
 
12616
class getSnapdealInventoryForItem_result:
12617
  """
12618
  Attributes:
12619
   - success
12620
  """
12621
 
12622
  thrift_spec = (
12623
    (0, TType.STRUCT, 'success', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 0
12624
  )
12625
 
12626
  def __init__(self, success=None,):
12627
    self.success = success
12628
 
12629
  def read(self, iprot):
12630
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12631
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12632
      return
12633
    iprot.readStructBegin()
12634
    while True:
12635
      (fname, ftype, fid) = iprot.readFieldBegin()
12636
      if ftype == TType.STOP:
12637
        break
12638
      if fid == 0:
12639
        if ftype == TType.STRUCT:
12640
          self.success = SnapdealInventoryItem()
12641
          self.success.read(iprot)
12642
        else:
12643
          iprot.skip(ftype)
12644
      else:
12645
        iprot.skip(ftype)
12646
      iprot.readFieldEnd()
12647
    iprot.readStructEnd()
12648
 
12649
  def write(self, oprot):
12650
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12651
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12652
      return
12653
    oprot.writeStructBegin('getSnapdealInventoryForItem_result')
12654
    if self.success is not None:
12655
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12656
      self.success.write(oprot)
12657
      oprot.writeFieldEnd()
12658
    oprot.writeFieldStop()
12659
    oprot.writeStructEnd()
12660
 
12661
  def validate(self):
12662
    return
12663
 
12664
 
12665
  def __repr__(self):
12666
    L = ['%s=%r' % (key, value)
12667
      for key, value in self.__dict__.iteritems()]
12668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12669
 
12670
  def __eq__(self, other):
12671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12672
 
12673
  def __ne__(self, other):
12674
    return not (self == other)
12675
 
12676
class addOrUpdateSnapdealInventoryForItem_args:
12677
  """
12678
  Attributes:
12679
   - snapdealinventoryitem
12680
  """
12681
 
12682
  thrift_spec = (
12683
    None, # 0
12684
    (1, TType.STRUCT, 'snapdealinventoryitem', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 1
12685
  )
12686
 
12687
  def __init__(self, snapdealinventoryitem=None,):
12688
    self.snapdealinventoryitem = snapdealinventoryitem
12689
 
12690
  def read(self, iprot):
12691
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12692
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12693
      return
12694
    iprot.readStructBegin()
12695
    while True:
12696
      (fname, ftype, fid) = iprot.readFieldBegin()
12697
      if ftype == TType.STOP:
12698
        break
12699
      if fid == 1:
12700
        if ftype == TType.STRUCT:
12701
          self.snapdealinventoryitem = SnapdealInventoryItem()
12702
          self.snapdealinventoryitem.read(iprot)
12703
        else:
12704
          iprot.skip(ftype)
12705
      else:
12706
        iprot.skip(ftype)
12707
      iprot.readFieldEnd()
12708
    iprot.readStructEnd()
12709
 
12710
  def write(self, oprot):
12711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12713
      return
12714
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_args')
12715
    if self.snapdealinventoryitem is not None:
12716
      oprot.writeFieldBegin('snapdealinventoryitem', TType.STRUCT, 1)
12717
      self.snapdealinventoryitem.write(oprot)
12718
      oprot.writeFieldEnd()
12719
    oprot.writeFieldStop()
12720
    oprot.writeStructEnd()
12721
 
12722
  def validate(self):
12723
    return
12724
 
12725
 
12726
  def __repr__(self):
12727
    L = ['%s=%r' % (key, value)
12728
      for key, value in self.__dict__.iteritems()]
12729
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12730
 
12731
  def __eq__(self, other):
12732
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12733
 
12734
  def __ne__(self, other):
12735
    return not (self == other)
12736
 
12737
class addOrUpdateSnapdealInventoryForItem_result:
12738
 
12739
  thrift_spec = (
12740
  )
12741
 
12742
  def read(self, iprot):
12743
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12744
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12745
      return
12746
    iprot.readStructBegin()
12747
    while True:
12748
      (fname, ftype, fid) = iprot.readFieldBegin()
12749
      if ftype == TType.STOP:
12750
        break
12751
      else:
12752
        iprot.skip(ftype)
12753
      iprot.readFieldEnd()
12754
    iprot.readStructEnd()
12755
 
12756
  def write(self, oprot):
12757
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12758
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12759
      return
12760
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_result')
12761
    oprot.writeFieldStop()
12762
    oprot.writeStructEnd()
12763
 
12764
  def validate(self):
12765
    return
12766
 
12767
 
12768
  def __repr__(self):
12769
    L = ['%s=%r' % (key, value)
12770
      for key, value in self.__dict__.iteritems()]
12771
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12772
 
12773
  def __eq__(self, other):
12774
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12775
 
12776
  def __ne__(self, other):
12777
    return not (self == other)
12778
 
12779
class getNlcForWarehouse_args:
12780
  """
12781
  Attributes:
12782
   - warehouse_id
12783
   - item_id
12784
  """
12785
 
12786
  thrift_spec = (
12787
    None, # 0
12788
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
12789
    (2, TType.I64, 'item_id', None, None, ), # 2
12790
  )
12791
 
12792
  def __init__(self, warehouse_id=None, item_id=None,):
12793
    self.warehouse_id = warehouse_id
12794
    self.item_id = item_id
12795
 
12796
  def read(self, iprot):
12797
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12798
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12799
      return
12800
    iprot.readStructBegin()
12801
    while True:
12802
      (fname, ftype, fid) = iprot.readFieldBegin()
12803
      if ftype == TType.STOP:
12804
        break
12805
      if fid == 1:
12806
        if ftype == TType.I64:
12807
          self.warehouse_id = iprot.readI64();
12808
        else:
12809
          iprot.skip(ftype)
12810
      elif fid == 2:
12811
        if ftype == TType.I64:
12812
          self.item_id = iprot.readI64();
12813
        else:
12814
          iprot.skip(ftype)
12815
      else:
12816
        iprot.skip(ftype)
12817
      iprot.readFieldEnd()
12818
    iprot.readStructEnd()
12819
 
12820
  def write(self, oprot):
12821
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12822
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12823
      return
12824
    oprot.writeStructBegin('getNlcForWarehouse_args')
12825
    if self.warehouse_id is not None:
12826
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
12827
      oprot.writeI64(self.warehouse_id)
12828
      oprot.writeFieldEnd()
12829
    if self.item_id is not None:
12830
      oprot.writeFieldBegin('item_id', TType.I64, 2)
12831
      oprot.writeI64(self.item_id)
12832
      oprot.writeFieldEnd()
12833
    oprot.writeFieldStop()
12834
    oprot.writeStructEnd()
12835
 
12836
  def validate(self):
12837
    return
12838
 
12839
 
12840
  def __repr__(self):
12841
    L = ['%s=%r' % (key, value)
12842
      for key, value in self.__dict__.iteritems()]
12843
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12844
 
12845
  def __eq__(self, other):
12846
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12847
 
12848
  def __ne__(self, other):
12849
    return not (self == other)
12850
 
12851
class getNlcForWarehouse_result:
12852
  """
12853
  Attributes:
12854
   - success
12855
  """
12856
 
12857
  thrift_spec = (
12858
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12859
  )
12860
 
12861
  def __init__(self, success=None,):
12862
    self.success = success
12863
 
12864
  def read(self, iprot):
12865
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12866
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12867
      return
12868
    iprot.readStructBegin()
12869
    while True:
12870
      (fname, ftype, fid) = iprot.readFieldBegin()
12871
      if ftype == TType.STOP:
12872
        break
12873
      if fid == 0:
12874
        if ftype == TType.DOUBLE:
12875
          self.success = iprot.readDouble();
12876
        else:
12877
          iprot.skip(ftype)
12878
      else:
12879
        iprot.skip(ftype)
12880
      iprot.readFieldEnd()
12881
    iprot.readStructEnd()
12882
 
12883
  def write(self, oprot):
12884
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12885
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12886
      return
12887
    oprot.writeStructBegin('getNlcForWarehouse_result')
12888
    if self.success is not None:
12889
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12890
      oprot.writeDouble(self.success)
12891
      oprot.writeFieldEnd()
12892
    oprot.writeFieldStop()
12893
    oprot.writeStructEnd()
12894
 
12895
  def validate(self):
12896
    return
12897
 
12898
 
12899
  def __repr__(self):
12900
    L = ['%s=%r' % (key, value)
12901
      for key, value in self.__dict__.iteritems()]
12902
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12903
 
12904
  def __eq__(self, other):
12905
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12906
 
12907
  def __ne__(self, other):
12908
    return not (self == other)
9456 vikram.rag 12909
 
9640 amar.kumar 12910
class getHeldInventoryMapForItem_args:
12911
  """
12912
  Attributes:
12913
   - item_id
12914
   - warehouse_id
12915
  """
12916
 
12917
  thrift_spec = (
12918
    None, # 0
12919
    (1, TType.I64, 'item_id', None, None, ), # 1
12920
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
12921
  )
12922
 
12923
  def __init__(self, item_id=None, warehouse_id=None,):
12924
    self.item_id = item_id
12925
    self.warehouse_id = warehouse_id
12926
 
12927
  def read(self, iprot):
12928
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12929
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12930
      return
12931
    iprot.readStructBegin()
12932
    while True:
12933
      (fname, ftype, fid) = iprot.readFieldBegin()
12934
      if ftype == TType.STOP:
12935
        break
12936
      if fid == 1:
12937
        if ftype == TType.I64:
12938
          self.item_id = iprot.readI64();
12939
        else:
12940
          iprot.skip(ftype)
12941
      elif fid == 2:
12942
        if ftype == TType.I64:
12943
          self.warehouse_id = iprot.readI64();
12944
        else:
12945
          iprot.skip(ftype)
12946
      else:
12947
        iprot.skip(ftype)
12948
      iprot.readFieldEnd()
12949
    iprot.readStructEnd()
12950
 
12951
  def write(self, oprot):
12952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12954
      return
12955
    oprot.writeStructBegin('getHeldInventoryMapForItem_args')
12956
    if self.item_id is not None:
12957
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12958
      oprot.writeI64(self.item_id)
12959
      oprot.writeFieldEnd()
12960
    if self.warehouse_id is not None:
12961
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
12962
      oprot.writeI64(self.warehouse_id)
12963
      oprot.writeFieldEnd()
12964
    oprot.writeFieldStop()
12965
    oprot.writeStructEnd()
12966
 
12967
  def validate(self):
12968
    return
12969
 
12970
 
12971
  def __repr__(self):
12972
    L = ['%s=%r' % (key, value)
12973
      for key, value in self.__dict__.iteritems()]
12974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12975
 
12976
  def __eq__(self, other):
12977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12978
 
12979
  def __ne__(self, other):
12980
    return not (self == other)
12981
 
12982
class getHeldInventoryMapForItem_result:
12983
  """
12984
  Attributes:
12985
   - success
12986
  """
12987
 
12988
  thrift_spec = (
12989
    (0, TType.MAP, 'success', (TType.I32,None,TType.I64,None), None, ), # 0
12990
  )
12991
 
12992
  def __init__(self, success=None,):
12993
    self.success = success
12994
 
12995
  def read(self, iprot):
12996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12998
      return
12999
    iprot.readStructBegin()
13000
    while True:
13001
      (fname, ftype, fid) = iprot.readFieldBegin()
13002
      if ftype == TType.STOP:
13003
        break
13004
      if fid == 0:
13005
        if ftype == TType.MAP:
13006
          self.success = {}
10126 amar.kumar 13007
          (_ktype259, _vtype260, _size258 ) = iprot.readMapBegin() 
13008
          for _i262 in xrange(_size258):
13009
            _key263 = iprot.readI32();
13010
            _val264 = iprot.readI64();
13011
            self.success[_key263] = _val264
9640 amar.kumar 13012
          iprot.readMapEnd()
13013
        else:
13014
          iprot.skip(ftype)
13015
      else:
13016
        iprot.skip(ftype)
13017
      iprot.readFieldEnd()
13018
    iprot.readStructEnd()
13019
 
13020
  def write(self, oprot):
13021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13023
      return
13024
    oprot.writeStructBegin('getHeldInventoryMapForItem_result')
13025
    if self.success is not None:
13026
      oprot.writeFieldBegin('success', TType.MAP, 0)
13027
      oprot.writeMapBegin(TType.I32, TType.I64, len(self.success))
10126 amar.kumar 13028
      for kiter265,viter266 in self.success.items():
13029
        oprot.writeI32(kiter265)
13030
        oprot.writeI64(viter266)
9640 amar.kumar 13031
      oprot.writeMapEnd()
13032
      oprot.writeFieldEnd()
13033
    oprot.writeFieldStop()
13034
    oprot.writeStructEnd()
13035
 
13036
  def validate(self):
13037
    return
13038
 
13039
 
13040
  def __repr__(self):
13041
    L = ['%s=%r' % (key, value)
13042
      for key, value in self.__dict__.iteritems()]
13043
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13044
 
13045
  def __eq__(self, other):
13046
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13047
 
13048
  def __ne__(self, other):
13049
    return not (self == other)
13050
 
9495 vikram.rag 13051
class addOrUpdateAllAmazonFbaInventory_args:
13052
  """
13053
  Attributes:
13054
   - allamazonfbainventorysnapshot
13055
  """
9456 vikram.rag 13056
 
9495 vikram.rag 13057
  thrift_spec = None
13058
  def __init__(self, allamazonfbainventorysnapshot=None,):
13059
    self.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 13060
 
13061
  def read(self, iprot):
13062
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13063
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13064
      return
13065
    iprot.readStructBegin()
13066
    while True:
13067
      (fname, ftype, fid) = iprot.readFieldBegin()
13068
      if ftype == TType.STOP:
13069
        break
9495 vikram.rag 13070
      if fid == -1:
13071
        if ftype == TType.LIST:
13072
          self.allamazonfbainventorysnapshot = []
10126 amar.kumar 13073
          (_etype270, _size267) = iprot.readListBegin()
13074
          for _i271 in xrange(_size267):
13075
            _elem272 = AmazonFbaInventorySnapshot()
13076
            _elem272.read(iprot)
13077
            self.allamazonfbainventorysnapshot.append(_elem272)
9495 vikram.rag 13078
          iprot.readListEnd()
13079
        else:
13080
          iprot.skip(ftype)
9456 vikram.rag 13081
      else:
13082
        iprot.skip(ftype)
13083
      iprot.readFieldEnd()
13084
    iprot.readStructEnd()
13085
 
13086
  def write(self, oprot):
13087
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13088
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13089
      return
9495 vikram.rag 13090
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_args')
13091
    if self.allamazonfbainventorysnapshot is not None:
13092
      oprot.writeFieldBegin('allamazonfbainventorysnapshot', TType.LIST, -1)
13093
      oprot.writeListBegin(TType.STRUCT, len(self.allamazonfbainventorysnapshot))
10126 amar.kumar 13094
      for iter273 in self.allamazonfbainventorysnapshot:
13095
        iter273.write(oprot)
9495 vikram.rag 13096
      oprot.writeListEnd()
13097
      oprot.writeFieldEnd()
9456 vikram.rag 13098
    oprot.writeFieldStop()
13099
    oprot.writeStructEnd()
13100
 
13101
  def validate(self):
13102
    return
13103
 
13104
 
13105
  def __repr__(self):
13106
    L = ['%s=%r' % (key, value)
13107
      for key, value in self.__dict__.iteritems()]
13108
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13109
 
13110
  def __eq__(self, other):
13111
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13112
 
13113
  def __ne__(self, other):
13114
    return not (self == other)
13115
 
9495 vikram.rag 13116
class addOrUpdateAllAmazonFbaInventory_result:
9456 vikram.rag 13117
 
13118
  thrift_spec = (
13119
  )
13120
 
13121
  def read(self, iprot):
13122
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13123
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13124
      return
13125
    iprot.readStructBegin()
13126
    while True:
13127
      (fname, ftype, fid) = iprot.readFieldBegin()
13128
      if ftype == TType.STOP:
13129
        break
13130
      else:
13131
        iprot.skip(ftype)
13132
      iprot.readFieldEnd()
13133
    iprot.readStructEnd()
13134
 
13135
  def write(self, oprot):
13136
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13137
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13138
      return
9495 vikram.rag 13139
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_result')
9456 vikram.rag 13140
    oprot.writeFieldStop()
13141
    oprot.writeStructEnd()
13142
 
13143
  def validate(self):
13144
    return
13145
 
13146
 
13147
  def __repr__(self):
13148
    L = ['%s=%r' % (key, value)
13149
      for key, value in self.__dict__.iteritems()]
13150
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13151
 
13152
  def __eq__(self, other):
13153
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13154
 
13155
  def __ne__(self, other):
13156
    return not (self == other)
9482 vikram.rag 13157
 
9495 vikram.rag 13158
class addOrUpdateAllSnapdealInventory_args:
9482 vikram.rag 13159
  """
13160
  Attributes:
9495 vikram.rag 13161
   - allsnapdealinventorysnapshot
9482 vikram.rag 13162
  """
13163
 
13164
  thrift_spec = None
9495 vikram.rag 13165
  def __init__(self, allsnapdealinventorysnapshot=None,):
13166
    self.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 13167
 
13168
  def read(self, iprot):
13169
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13170
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13171
      return
13172
    iprot.readStructBegin()
13173
    while True:
13174
      (fname, ftype, fid) = iprot.readFieldBegin()
13175
      if ftype == TType.STOP:
13176
        break
13177
      if fid == -1:
13178
        if ftype == TType.LIST:
9495 vikram.rag 13179
          self.allsnapdealinventorysnapshot = []
10126 amar.kumar 13180
          (_etype277, _size274) = iprot.readListBegin()
13181
          for _i278 in xrange(_size274):
13182
            _elem279 = SnapdealInventoryItem()
13183
            _elem279.read(iprot)
13184
            self.allsnapdealinventorysnapshot.append(_elem279)
9482 vikram.rag 13185
          iprot.readListEnd()
13186
        else:
13187
          iprot.skip(ftype)
13188
      else:
13189
        iprot.skip(ftype)
13190
      iprot.readFieldEnd()
13191
    iprot.readStructEnd()
13192
 
13193
  def write(self, oprot):
13194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13196
      return
9495 vikram.rag 13197
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_args')
13198
    if self.allsnapdealinventorysnapshot is not None:
13199
      oprot.writeFieldBegin('allsnapdealinventorysnapshot', TType.LIST, -1)
13200
      oprot.writeListBegin(TType.STRUCT, len(self.allsnapdealinventorysnapshot))
10126 amar.kumar 13201
      for iter280 in self.allsnapdealinventorysnapshot:
13202
        iter280.write(oprot)
9482 vikram.rag 13203
      oprot.writeListEnd()
13204
      oprot.writeFieldEnd()
13205
    oprot.writeFieldStop()
13206
    oprot.writeStructEnd()
13207
 
13208
  def validate(self):
13209
    return
13210
 
13211
 
13212
  def __repr__(self):
13213
    L = ['%s=%r' % (key, value)
13214
      for key, value in self.__dict__.iteritems()]
13215
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13216
 
13217
  def __eq__(self, other):
13218
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13219
 
13220
  def __ne__(self, other):
13221
    return not (self == other)
13222
 
9495 vikram.rag 13223
class addOrUpdateAllSnapdealInventory_result:
9482 vikram.rag 13224
 
13225
  thrift_spec = (
13226
  )
13227
 
13228
  def read(self, iprot):
13229
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13230
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13231
      return
13232
    iprot.readStructBegin()
13233
    while True:
13234
      (fname, ftype, fid) = iprot.readFieldBegin()
13235
      if ftype == TType.STOP:
13236
        break
13237
      else:
13238
        iprot.skip(ftype)
13239
      iprot.readFieldEnd()
13240
    iprot.readStructEnd()
13241
 
13242
  def write(self, oprot):
13243
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13244
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13245
      return
9495 vikram.rag 13246
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_result')
9482 vikram.rag 13247
    oprot.writeFieldStop()
13248
    oprot.writeStructEnd()
13249
 
13250
  def validate(self):
13251
    return
13252
 
13253
 
13254
  def __repr__(self):
13255
    L = ['%s=%r' % (key, value)
13256
      for key, value in self.__dict__.iteritems()]
13257
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13258
 
13259
  def __eq__(self, other):
13260
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13261
 
13262
  def __ne__(self, other):
13263
    return not (self == other)
9495 vikram.rag 13264
 
13265
class getSnapdealInventorySnapshot_args:
13266
 
13267
  thrift_spec = (
13268
  )
13269
 
13270
  def read(self, iprot):
13271
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13272
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13273
      return
13274
    iprot.readStructBegin()
13275
    while True:
13276
      (fname, ftype, fid) = iprot.readFieldBegin()
13277
      if ftype == TType.STOP:
13278
        break
13279
      else:
13280
        iprot.skip(ftype)
13281
      iprot.readFieldEnd()
13282
    iprot.readStructEnd()
13283
 
13284
  def write(self, oprot):
13285
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13286
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13287
      return
13288
    oprot.writeStructBegin('getSnapdealInventorySnapshot_args')
13289
    oprot.writeFieldStop()
13290
    oprot.writeStructEnd()
13291
 
13292
  def validate(self):
13293
    return
13294
 
13295
 
13296
  def __repr__(self):
13297
    L = ['%s=%r' % (key, value)
13298
      for key, value in self.__dict__.iteritems()]
13299
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13300
 
13301
  def __eq__(self, other):
13302
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13303
 
13304
  def __ne__(self, other):
13305
    return not (self == other)
13306
 
13307
class getSnapdealInventorySnapshot_result:
13308
  """
13309
  Attributes:
13310
   - success
13311
  """
13312
 
13313
  thrift_spec = (
13314
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec)), None, ), # 0
13315
  )
13316
 
13317
  def __init__(self, success=None,):
13318
    self.success = success
13319
 
13320
  def read(self, iprot):
13321
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13322
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13323
      return
13324
    iprot.readStructBegin()
13325
    while True:
13326
      (fname, ftype, fid) = iprot.readFieldBegin()
13327
      if ftype == TType.STOP:
13328
        break
13329
      if fid == 0:
13330
        if ftype == TType.LIST:
13331
          self.success = []
10126 amar.kumar 13332
          (_etype284, _size281) = iprot.readListBegin()
13333
          for _i285 in xrange(_size281):
13334
            _elem286 = SnapdealInventoryItem()
13335
            _elem286.read(iprot)
13336
            self.success.append(_elem286)
9495 vikram.rag 13337
          iprot.readListEnd()
13338
        else:
13339
          iprot.skip(ftype)
13340
      else:
13341
        iprot.skip(ftype)
13342
      iprot.readFieldEnd()
13343
    iprot.readStructEnd()
13344
 
13345
  def write(self, oprot):
13346
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13347
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13348
      return
13349
    oprot.writeStructBegin('getSnapdealInventorySnapshot_result')
13350
    if self.success is not None:
13351
      oprot.writeFieldBegin('success', TType.LIST, 0)
13352
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10126 amar.kumar 13353
      for iter287 in self.success:
13354
        iter287.write(oprot)
9495 vikram.rag 13355
      oprot.writeListEnd()
13356
      oprot.writeFieldEnd()
13357
    oprot.writeFieldStop()
13358
    oprot.writeStructEnd()
13359
 
13360
  def validate(self):
13361
    return
13362
 
13363
 
13364
  def __repr__(self):
13365
    L = ['%s=%r' % (key, value)
13366
      for key, value in self.__dict__.iteritems()]
13367
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13368
 
13369
  def __eq__(self, other):
13370
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13371
 
13372
  def __ne__(self, other):
13373
    return not (self == other)
9761 amar.kumar 13374
 
13375
class getHoldInventoryDetails_args:
13376
  """
13377
  Attributes:
13378
   - itemId
13379
   - warehouseId
13380
   - source
13381
  """
13382
 
13383
  thrift_spec = (
13384
    None, # 0
13385
    (1, TType.I64, 'itemId', None, None, ), # 1
13386
    (2, TType.I64, 'warehouseId', None, None, ), # 2
13387
    (3, TType.I64, 'source', None, None, ), # 3
13388
  )
13389
 
13390
  def __init__(self, itemId=None, warehouseId=None, source=None,):
13391
    self.itemId = itemId
13392
    self.warehouseId = warehouseId
13393
    self.source = source
13394
 
13395
  def read(self, iprot):
13396
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13397
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13398
      return
13399
    iprot.readStructBegin()
13400
    while True:
13401
      (fname, ftype, fid) = iprot.readFieldBegin()
13402
      if ftype == TType.STOP:
13403
        break
13404
      if fid == 1:
13405
        if ftype == TType.I64:
13406
          self.itemId = iprot.readI64();
13407
        else:
13408
          iprot.skip(ftype)
13409
      elif fid == 2:
13410
        if ftype == TType.I64:
13411
          self.warehouseId = iprot.readI64();
13412
        else:
13413
          iprot.skip(ftype)
13414
      elif fid == 3:
13415
        if ftype == TType.I64:
13416
          self.source = iprot.readI64();
13417
        else:
13418
          iprot.skip(ftype)
13419
      else:
13420
        iprot.skip(ftype)
13421
      iprot.readFieldEnd()
13422
    iprot.readStructEnd()
13423
 
13424
  def write(self, oprot):
13425
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13426
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13427
      return
13428
    oprot.writeStructBegin('getHoldInventoryDetails_args')
13429
    if self.itemId is not None:
13430
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13431
      oprot.writeI64(self.itemId)
13432
      oprot.writeFieldEnd()
13433
    if self.warehouseId is not None:
13434
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
13435
      oprot.writeI64(self.warehouseId)
13436
      oprot.writeFieldEnd()
13437
    if self.source is not None:
13438
      oprot.writeFieldBegin('source', TType.I64, 3)
13439
      oprot.writeI64(self.source)
13440
      oprot.writeFieldEnd()
13441
    oprot.writeFieldStop()
13442
    oprot.writeStructEnd()
13443
 
13444
  def validate(self):
13445
    return
13446
 
13447
 
13448
  def __repr__(self):
13449
    L = ['%s=%r' % (key, value)
13450
      for key, value in self.__dict__.iteritems()]
13451
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13452
 
13453
  def __eq__(self, other):
13454
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13455
 
13456
  def __ne__(self, other):
13457
    return not (self == other)
13458
 
13459
class getHoldInventoryDetails_result:
13460
  """
13461
  Attributes:
13462
   - success
13463
  """
13464
 
13465
  thrift_spec = (
13466
    (0, TType.LIST, 'success', (TType.STRUCT,(HoldInventoryDetail, HoldInventoryDetail.thrift_spec)), None, ), # 0
13467
  )
13468
 
13469
  def __init__(self, success=None,):
13470
    self.success = success
13471
 
13472
  def read(self, iprot):
13473
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13474
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13475
      return
13476
    iprot.readStructBegin()
13477
    while True:
13478
      (fname, ftype, fid) = iprot.readFieldBegin()
13479
      if ftype == TType.STOP:
13480
        break
13481
      if fid == 0:
13482
        if ftype == TType.LIST:
13483
          self.success = []
10126 amar.kumar 13484
          (_etype291, _size288) = iprot.readListBegin()
13485
          for _i292 in xrange(_size288):
13486
            _elem293 = HoldInventoryDetail()
13487
            _elem293.read(iprot)
13488
            self.success.append(_elem293)
9761 amar.kumar 13489
          iprot.readListEnd()
13490
        else:
13491
          iprot.skip(ftype)
13492
      else:
13493
        iprot.skip(ftype)
13494
      iprot.readFieldEnd()
13495
    iprot.readStructEnd()
13496
 
13497
  def write(self, oprot):
13498
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13499
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13500
      return
13501
    oprot.writeStructBegin('getHoldInventoryDetails_result')
13502
    if self.success is not None:
13503
      oprot.writeFieldBegin('success', TType.LIST, 0)
13504
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10126 amar.kumar 13505
      for iter294 in self.success:
13506
        iter294.write(oprot)
9761 amar.kumar 13507
      oprot.writeListEnd()
13508
      oprot.writeFieldEnd()
13509
    oprot.writeFieldStop()
13510
    oprot.writeStructEnd()
13511
 
13512
  def validate(self):
13513
    return
13514
 
13515
 
13516
  def __repr__(self):
13517
    L = ['%s=%r' % (key, value)
13518
      for key, value in self.__dict__.iteritems()]
13519
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13520
 
13521
  def __eq__(self, other):
13522
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13523
 
13524
  def __ne__(self, other):
13525
    return not (self == other)
10050 vikram.rag 13526
 
13527
class addOrUpdateFlipkartInventorySnapshot_args:
13528
  """
13529
  Attributes:
13530
   - flipkartInventorySnapshot
10450 vikram.rag 13531
   - time
10050 vikram.rag 13532
  """
13533
 
10450 vikram.rag 13534
  thrift_spec = (
13535
    None, # 0
13536
    (1, TType.LIST, 'flipkartInventorySnapshot', (TType.STRUCT,(FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec)), None, ), # 1
13537
    (2, TType.I64, 'time', None, None, ), # 2
13538
  )
13539
 
13540
  def __init__(self, flipkartInventorySnapshot=None, time=None,):
10050 vikram.rag 13541
    self.flipkartInventorySnapshot = flipkartInventorySnapshot
10450 vikram.rag 13542
    self.time = time
10050 vikram.rag 13543
 
13544
  def read(self, iprot):
13545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13547
      return
13548
    iprot.readStructBegin()
13549
    while True:
13550
      (fname, ftype, fid) = iprot.readFieldBegin()
13551
      if ftype == TType.STOP:
13552
        break
10450 vikram.rag 13553
      if fid == 1:
10050 vikram.rag 13554
        if ftype == TType.LIST:
13555
          self.flipkartInventorySnapshot = []
10126 amar.kumar 13556
          (_etype298, _size295) = iprot.readListBegin()
13557
          for _i299 in xrange(_size295):
13558
            _elem300 = FlipkartInventorySnapshot()
13559
            _elem300.read(iprot)
13560
            self.flipkartInventorySnapshot.append(_elem300)
10050 vikram.rag 13561
          iprot.readListEnd()
13562
        else:
13563
          iprot.skip(ftype)
10450 vikram.rag 13564
      elif fid == 2:
13565
        if ftype == TType.I64:
13566
          self.time = iprot.readI64();
13567
        else:
13568
          iprot.skip(ftype)
10050 vikram.rag 13569
      else:
13570
        iprot.skip(ftype)
13571
      iprot.readFieldEnd()
13572
    iprot.readStructEnd()
13573
 
13574
  def write(self, oprot):
13575
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13576
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13577
      return
13578
    oprot.writeStructBegin('addOrUpdateFlipkartInventorySnapshot_args')
13579
    if self.flipkartInventorySnapshot is not None:
10450 vikram.rag 13580
      oprot.writeFieldBegin('flipkartInventorySnapshot', TType.LIST, 1)
10050 vikram.rag 13581
      oprot.writeListBegin(TType.STRUCT, len(self.flipkartInventorySnapshot))
10126 amar.kumar 13582
      for iter301 in self.flipkartInventorySnapshot:
13583
        iter301.write(oprot)
10050 vikram.rag 13584
      oprot.writeListEnd()
13585
      oprot.writeFieldEnd()
10450 vikram.rag 13586
    if self.time is not None:
13587
      oprot.writeFieldBegin('time', TType.I64, 2)
13588
      oprot.writeI64(self.time)
13589
      oprot.writeFieldEnd()
10050 vikram.rag 13590
    oprot.writeFieldStop()
13591
    oprot.writeStructEnd()
13592
 
13593
  def validate(self):
13594
    return
13595
 
13596
 
13597
  def __repr__(self):
13598
    L = ['%s=%r' % (key, value)
13599
      for key, value in self.__dict__.iteritems()]
13600
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13601
 
13602
  def __eq__(self, other):
13603
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13604
 
13605
  def __ne__(self, other):
13606
    return not (self == other)
13607
 
13608
class addOrUpdateFlipkartInventorySnapshot_result:
13609
 
13610
  thrift_spec = (
13611
  )
13612
 
13613
  def read(self, iprot):
13614
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13615
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13616
      return
13617
    iprot.readStructBegin()
13618
    while True:
13619
      (fname, ftype, fid) = iprot.readFieldBegin()
13620
      if ftype == TType.STOP:
13621
        break
13622
      else:
13623
        iprot.skip(ftype)
13624
      iprot.readFieldEnd()
13625
    iprot.readStructEnd()
13626
 
13627
  def write(self, oprot):
13628
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13629
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13630
      return
13631
    oprot.writeStructBegin('addOrUpdateFlipkartInventorySnapshot_result')
13632
    oprot.writeFieldStop()
13633
    oprot.writeStructEnd()
13634
 
13635
  def validate(self):
13636
    return
13637
 
13638
 
13639
  def __repr__(self):
13640
    L = ['%s=%r' % (key, value)
13641
      for key, value in self.__dict__.iteritems()]
13642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13643
 
13644
  def __eq__(self, other):
13645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13646
 
13647
  def __ne__(self, other):
13648
    return not (self == other)
13649
 
13650
class getFlipkartInventorySnapshot_args:
13651
 
13652
  thrift_spec = (
13653
  )
13654
 
13655
  def read(self, iprot):
13656
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13657
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13658
      return
13659
    iprot.readStructBegin()
13660
    while True:
13661
      (fname, ftype, fid) = iprot.readFieldBegin()
13662
      if ftype == TType.STOP:
13663
        break
13664
      else:
13665
        iprot.skip(ftype)
13666
      iprot.readFieldEnd()
13667
    iprot.readStructEnd()
13668
 
13669
  def write(self, oprot):
13670
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13671
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13672
      return
13673
    oprot.writeStructBegin('getFlipkartInventorySnapshot_args')
13674
    oprot.writeFieldStop()
13675
    oprot.writeStructEnd()
13676
 
13677
  def validate(self):
13678
    return
13679
 
13680
 
13681
  def __repr__(self):
13682
    L = ['%s=%r' % (key, value)
13683
      for key, value in self.__dict__.iteritems()]
13684
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13685
 
13686
  def __eq__(self, other):
13687
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13688
 
13689
  def __ne__(self, other):
13690
    return not (self == other)
13691
 
13692
class getFlipkartInventorySnapshot_result:
13693
  """
13694
  Attributes:
13695
   - success
13696
  """
13697
 
13698
  thrift_spec = (
13699
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec)), None, ), # 0
13700
  )
13701
 
13702
  def __init__(self, success=None,):
13703
    self.success = success
13704
 
13705
  def read(self, iprot):
13706
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13707
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13708
      return
13709
    iprot.readStructBegin()
13710
    while True:
13711
      (fname, ftype, fid) = iprot.readFieldBegin()
13712
      if ftype == TType.STOP:
13713
        break
13714
      if fid == 0:
13715
        if ftype == TType.LIST:
13716
          self.success = []
10126 amar.kumar 13717
          (_etype305, _size302) = iprot.readListBegin()
13718
          for _i306 in xrange(_size302):
13719
            _elem307 = FlipkartInventorySnapshot()
13720
            _elem307.read(iprot)
13721
            self.success.append(_elem307)
10050 vikram.rag 13722
          iprot.readListEnd()
13723
        else:
13724
          iprot.skip(ftype)
13725
      else:
13726
        iprot.skip(ftype)
13727
      iprot.readFieldEnd()
13728
    iprot.readStructEnd()
13729
 
13730
  def write(self, oprot):
13731
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13732
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13733
      return
13734
    oprot.writeStructBegin('getFlipkartInventorySnapshot_result')
13735
    if self.success is not None:
13736
      oprot.writeFieldBegin('success', TType.LIST, 0)
13737
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10126 amar.kumar 13738
      for iter308 in self.success:
13739
        iter308.write(oprot)
10050 vikram.rag 13740
      oprot.writeListEnd()
13741
      oprot.writeFieldEnd()
13742
    oprot.writeFieldStop()
13743
    oprot.writeStructEnd()
13744
 
13745
  def validate(self):
13746
    return
13747
 
13748
 
13749
  def __repr__(self):
13750
    L = ['%s=%r' % (key, value)
13751
      for key, value in self.__dict__.iteritems()]
13752
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13753
 
13754
  def __eq__(self, other):
13755
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13756
 
13757
  def __ne__(self, other):
13758
    return not (self == other)
10097 kshitij.so 13759
 
13760
class getFlipkartlInventoryForItem_args:
13761
  """
13762
  Attributes:
13763
   - item_id
13764
  """
13765
 
13766
  thrift_spec = (
13767
    None, # 0
13768
    (1, TType.I64, 'item_id', None, None, ), # 1
13769
  )
13770
 
13771
  def __init__(self, item_id=None,):
13772
    self.item_id = item_id
13773
 
13774
  def read(self, iprot):
13775
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13776
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13777
      return
13778
    iprot.readStructBegin()
13779
    while True:
13780
      (fname, ftype, fid) = iprot.readFieldBegin()
13781
      if ftype == TType.STOP:
13782
        break
13783
      if fid == 1:
13784
        if ftype == TType.I64:
13785
          self.item_id = iprot.readI64();
13786
        else:
13787
          iprot.skip(ftype)
13788
      else:
13789
        iprot.skip(ftype)
13790
      iprot.readFieldEnd()
13791
    iprot.readStructEnd()
13792
 
13793
  def write(self, oprot):
13794
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13795
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13796
      return
13797
    oprot.writeStructBegin('getFlipkartlInventoryForItem_args')
13798
    if self.item_id is not None:
13799
      oprot.writeFieldBegin('item_id', TType.I64, 1)
13800
      oprot.writeI64(self.item_id)
13801
      oprot.writeFieldEnd()
13802
    oprot.writeFieldStop()
13803
    oprot.writeStructEnd()
13804
 
13805
  def validate(self):
13806
    return
13807
 
13808
 
13809
  def __repr__(self):
13810
    L = ['%s=%r' % (key, value)
13811
      for key, value in self.__dict__.iteritems()]
13812
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13813
 
13814
  def __eq__(self, other):
13815
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13816
 
13817
  def __ne__(self, other):
13818
    return not (self == other)
13819
 
13820
class getFlipkartlInventoryForItem_result:
13821
  """
13822
  Attributes:
13823
   - success
13824
  """
13825
 
13826
  thrift_spec = (
13827
    (0, TType.STRUCT, 'success', (FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec), None, ), # 0
13828
  )
13829
 
13830
  def __init__(self, success=None,):
13831
    self.success = success
13832
 
13833
  def read(self, iprot):
13834
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13835
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13836
      return
13837
    iprot.readStructBegin()
13838
    while True:
13839
      (fname, ftype, fid) = iprot.readFieldBegin()
13840
      if ftype == TType.STOP:
13841
        break
13842
      if fid == 0:
13843
        if ftype == TType.STRUCT:
13844
          self.success = FlipkartInventorySnapshot()
13845
          self.success.read(iprot)
13846
        else:
13847
          iprot.skip(ftype)
13848
      else:
13849
        iprot.skip(ftype)
13850
      iprot.readFieldEnd()
13851
    iprot.readStructEnd()
13852
 
13853
  def write(self, oprot):
13854
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13855
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13856
      return
13857
    oprot.writeStructBegin('getFlipkartlInventoryForItem_result')
13858
    if self.success is not None:
13859
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13860
      self.success.write(oprot)
13861
      oprot.writeFieldEnd()
13862
    oprot.writeFieldStop()
13863
    oprot.writeStructEnd()
13864
 
13865
  def validate(self):
13866
    return
13867
 
13868
 
13869
  def __repr__(self):
13870
    L = ['%s=%r' % (key, value)
13871
      for key, value in self.__dict__.iteritems()]
13872
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13873
 
13874
  def __eq__(self, other):
13875
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13876
 
13877
  def __ne__(self, other):
13878
    return not (self == other)
10485 vikram.rag 13879
 
13880
class getStateMaster_args:
13881
 
13882
  thrift_spec = (
13883
  )
13884
 
13885
  def read(self, iprot):
13886
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13887
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13888
      return
13889
    iprot.readStructBegin()
13890
    while True:
13891
      (fname, ftype, fid) = iprot.readFieldBegin()
13892
      if ftype == TType.STOP:
13893
        break
13894
      else:
13895
        iprot.skip(ftype)
13896
      iprot.readFieldEnd()
13897
    iprot.readStructEnd()
13898
 
13899
  def write(self, oprot):
13900
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13901
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13902
      return
13903
    oprot.writeStructBegin('getStateMaster_args')
13904
    oprot.writeFieldStop()
13905
    oprot.writeStructEnd()
13906
 
13907
  def validate(self):
13908
    return
13909
 
13910
 
13911
  def __repr__(self):
13912
    L = ['%s=%r' % (key, value)
13913
      for key, value in self.__dict__.iteritems()]
13914
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13915
 
13916
  def __eq__(self, other):
13917
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13918
 
13919
  def __ne__(self, other):
13920
    return not (self == other)
13921
 
13922
class getStateMaster_result:
13923
  """
13924
  Attributes:
13925
   - success
13926
  """
13927
 
13928
  thrift_spec = (
13929
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRING,None), None, ), # 0
13930
  )
13931
 
13932
  def __init__(self, success=None,):
13933
    self.success = success
13934
 
13935
  def read(self, iprot):
13936
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13937
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13938
      return
13939
    iprot.readStructBegin()
13940
    while True:
13941
      (fname, ftype, fid) = iprot.readFieldBegin()
13942
      if ftype == TType.STOP:
13943
        break
13944
      if fid == 0:
13945
        if ftype == TType.MAP:
13946
          self.success = {}
13947
          (_ktype310, _vtype311, _size309 ) = iprot.readMapBegin() 
13948
          for _i313 in xrange(_size309):
13949
            _key314 = iprot.readI64();
13950
            _val315 = iprot.readString();
13951
            self.success[_key314] = _val315
13952
          iprot.readMapEnd()
13953
        else:
13954
          iprot.skip(ftype)
13955
      else:
13956
        iprot.skip(ftype)
13957
      iprot.readFieldEnd()
13958
    iprot.readStructEnd()
13959
 
13960
  def write(self, oprot):
13961
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13962
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13963
      return
13964
    oprot.writeStructBegin('getStateMaster_result')
13965
    if self.success is not None:
13966
      oprot.writeFieldBegin('success', TType.MAP, 0)
13967
      oprot.writeMapBegin(TType.I64, TType.STRING, len(self.success))
13968
      for kiter316,viter317 in self.success.items():
13969
        oprot.writeI64(kiter316)
13970
        oprot.writeString(viter317)
13971
      oprot.writeMapEnd()
13972
      oprot.writeFieldEnd()
13973
    oprot.writeFieldStop()
13974
    oprot.writeStructEnd()
13975
 
13976
  def validate(self):
13977
    return
13978
 
13979
 
13980
  def __repr__(self):
13981
    L = ['%s=%r' % (key, value)
13982
      for key, value in self.__dict__.iteritems()]
13983
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13984
 
13985
  def __eq__(self, other):
13986
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13987
 
13988
  def __ne__(self, other):
13989
    return not (self == other)