Subversion Repositories SmartDukaan

Rev

Rev 9482 | Rev 9640 | 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
 
6832 amar.kumar 459
  def getOosStatusesForXDaysForItem(self, itemId, days):
460
    """
461
    Parameters:
462
     - itemId
463
     - days
464
    """
465
    pass
6821 amar.kumar 466
 
6857 amar.kumar 467
  def getNonZeroItemStockPurchaseParams(self, ):
468
    pass
6832 amar.kumar 469
 
7149 amar.kumar 470
  def getBillableInventoryAndPendingOrders(self, ):
471
    """
472
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
473
    """
474
    pass
6857 amar.kumar 475
 
7281 kshitij.so 476
  def getWarehouseName(self, warehouse_id):
477
    """
478
    Parameters:
479
     - warehouse_id
480
    """
481
    pass
7149 amar.kumar 482
 
7281 kshitij.so 483
  def getAmazonInventoryForItem(self, item_id):
484
    """
485
    Parameters:
486
     - item_id
487
    """
488
    pass
489
 
490
  def getAllAmazonInventory(self, ):
491
    pass
492
 
493
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot):
494
    """
495
    Parameters:
496
     - amazonInventorySnapshot
497
    """
498
    pass
499
 
7972 amar.kumar 500
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
501
    """
502
    Parameters:
503
     - itemId
504
     - numberOfDays
505
    """
506
    pass
7281 kshitij.so 507
 
8282 kshitij.so 508
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
509
    """
510
    Parameters:
511
     - amazonfbainventorysnapshot
512
    """
513
    pass
514
 
8182 amar.kumar 515
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
516
    """
517
    Parameters:
518
     - itemId
519
     - warehouseId
520
     - holdQuantity
521
     - source
522
    """
523
    pass
7972 amar.kumar 524
 
8282 kshitij.so 525
  def getAmazonFbaItemInventory(self, itemId):
526
    """
527
    Parameters:
528
     - itemId
529
    """
530
    pass
8182 amar.kumar 531
 
8363 vikram.rag 532
  def getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 533
    pass
534
 
8363 vikram.rag 535
  def getOursGoodWarehouseIdsForLocation(self, state_id):
536
    """
537
    Parameters:
538
     - state_id
539
    """
540
    pass
8282 kshitij.so 541
 
8955 vikram.rag 542
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
543
    """
544
    Parameters:
545
     - id
546
     - warehouse_id
547
     - source
548
    """
549
    pass
8363 vikram.rag 550
 
9404 vikram.rag 551
  def getSnapdealInventoryForItem(self, item_id):
552
    """
553
    Parameters:
554
     - item_id
555
    """
556
    pass
8955 vikram.rag 557
 
9404 vikram.rag 558
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
559
    """
560
    Parameters:
561
     - snapdealinventoryitem
562
    """
563
    pass
564
 
565
  def getNlcForWarehouse(self, warehouse_id, item_id):
566
    """
567
    Parameters:
568
     - warehouse_id
569
     - item_id
570
    """
571
    pass
572
 
9482 vikram.rag 573
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
574
    """
575
    Parameters:
576
     - allamazonfbainventorysnapshot
577
    """
578
    pass
9456 vikram.rag 579
 
9495 vikram.rag 580
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
581
    """
582
    Parameters:
583
     - allsnapdealinventorysnapshot
584
    """
585
    pass
9482 vikram.rag 586
 
9495 vikram.rag 587
  def getSnapdealInventorySnapshot(self, ):
588
    pass
589
 
590
 
5944 mandeep.dh 591
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
592
  def __init__(self, iprot, oprot=None):
593
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
594
 
595
  def addWarehouse(self, warehouse):
596
    """
597
    Parameters:
598
     - warehouse
599
    """
600
    self.send_addWarehouse(warehouse)
601
    return self.recv_addWarehouse()
602
 
603
  def send_addWarehouse(self, warehouse):
604
    self._oprot.writeMessageBegin('addWarehouse', TMessageType.CALL, self._seqid)
605
    args = addWarehouse_args()
606
    args.warehouse = warehouse
607
    args.write(self._oprot)
608
    self._oprot.writeMessageEnd()
609
    self._oprot.trans.flush()
610
 
611
  def recv_addWarehouse(self, ):
612
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
613
    if mtype == TMessageType.EXCEPTION:
614
      x = TApplicationException()
615
      x.read(self._iprot)
616
      self._iprot.readMessageEnd()
617
      raise x
618
    result = addWarehouse_result()
619
    result.read(self._iprot)
620
    self._iprot.readMessageEnd()
621
    if result.success is not None:
622
      return result.success
623
    if result.cex is not None:
624
      raise result.cex
625
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
626
 
627
  def addVendor(self, vendor):
628
    """
629
    add a new vendor
630
 
631
    Parameters:
632
     - vendor
633
    """
634
    self.send_addVendor(vendor)
635
    return self.recv_addVendor()
636
 
637
  def send_addVendor(self, vendor):
638
    self._oprot.writeMessageBegin('addVendor', TMessageType.CALL, self._seqid)
639
    args = addVendor_args()
640
    args.vendor = vendor
641
    args.write(self._oprot)
642
    self._oprot.writeMessageEnd()
643
    self._oprot.trans.flush()
644
 
645
  def recv_addVendor(self, ):
646
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
647
    if mtype == TMessageType.EXCEPTION:
648
      x = TApplicationException()
649
      x.read(self._iprot)
650
      self._iprot.readMessageEnd()
651
      raise x
652
    result = addVendor_result()
653
    result.read(self._iprot)
654
    self._iprot.readMessageEnd()
655
    if result.success is not None:
656
      return result.success
657
    if result.cex is not None:
658
      raise result.cex
659
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
660
 
661
  def updateInventoryHistory(self, warehouse_id, timestamp, availability):
662
    """
663
    Stores the incremental warehouse updates of items.
664
 
665
    Parameters:
666
     - warehouse_id
667
     - timestamp
668
     - availability
669
    """
670
    self.send_updateInventoryHistory(warehouse_id, timestamp, availability)
671
    self.recv_updateInventoryHistory()
672
 
673
  def send_updateInventoryHistory(self, warehouse_id, timestamp, availability):
674
    self._oprot.writeMessageBegin('updateInventoryHistory', TMessageType.CALL, self._seqid)
675
    args = updateInventoryHistory_args()
676
    args.warehouse_id = warehouse_id
677
    args.timestamp = timestamp
678
    args.availability = availability
679
    args.write(self._oprot)
680
    self._oprot.writeMessageEnd()
681
    self._oprot.trans.flush()
682
 
683
  def recv_updateInventoryHistory(self, ):
684
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
685
    if mtype == TMessageType.EXCEPTION:
686
      x = TApplicationException()
687
      x.read(self._iprot)
688
      self._iprot.readMessageEnd()
689
      raise x
690
    result = updateInventoryHistory_result()
691
    result.read(self._iprot)
692
    self._iprot.readMessageEnd()
693
    if result.cex is not None:
694
      raise result.cex
695
    return
696
 
697
  def updateInventory(self, warehouse_id, timestamp, availability):
698
    """
699
    Stores the final inventory stocks of items.
700
 
701
    Parameters:
702
     - warehouse_id
703
     - timestamp
704
     - availability
705
    """
706
    self.send_updateInventory(warehouse_id, timestamp, availability)
707
    self.recv_updateInventory()
708
 
709
  def send_updateInventory(self, warehouse_id, timestamp, availability):
710
    self._oprot.writeMessageBegin('updateInventory', TMessageType.CALL, self._seqid)
711
    args = updateInventory_args()
712
    args.warehouse_id = warehouse_id
713
    args.timestamp = timestamp
714
    args.availability = availability
715
    args.write(self._oprot)
716
    self._oprot.writeMessageEnd()
717
    self._oprot.trans.flush()
718
 
719
  def recv_updateInventory(self, ):
720
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
721
    if mtype == TMessageType.EXCEPTION:
722
      x = TApplicationException()
723
      x.read(self._iprot)
724
      self._iprot.readMessageEnd()
725
      raise x
726
    result = updateInventory_result()
727
    result.read(self._iprot)
728
    self._iprot.readMessageEnd()
729
    if result.cex is not None:
730
      raise result.cex
731
    return
732
 
733
  def addInventory(self, itemId, warehouseId, quantity):
734
    """
735
    Add the inventory to existing stock.
736
 
737
    Parameters:
738
     - itemId
739
     - warehouseId
740
     - quantity
741
    """
742
    self.send_addInventory(itemId, warehouseId, quantity)
743
    self.recv_addInventory()
744
 
745
  def send_addInventory(self, itemId, warehouseId, quantity):
746
    self._oprot.writeMessageBegin('addInventory', TMessageType.CALL, self._seqid)
747
    args = addInventory_args()
748
    args.itemId = itemId
749
    args.warehouseId = warehouseId
750
    args.quantity = quantity
751
    args.write(self._oprot)
752
    self._oprot.writeMessageEnd()
753
    self._oprot.trans.flush()
754
 
755
  def recv_addInventory(self, ):
756
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
757
    if mtype == TMessageType.EXCEPTION:
758
      x = TApplicationException()
759
      x.read(self._iprot)
760
      self._iprot.readMessageEnd()
761
      raise x
762
    result = addInventory_result()
763
    result.read(self._iprot)
764
    self._iprot.readMessageEnd()
765
    if result.cex is not None:
766
      raise result.cex
767
    return
768
 
769
  def retireWarehouse(self, warehouse_id):
770
    """
771
    Parameters:
772
     - warehouse_id
773
    """
774
    self.send_retireWarehouse(warehouse_id)
775
    self.recv_retireWarehouse()
776
 
777
  def send_retireWarehouse(self, warehouse_id):
778
    self._oprot.writeMessageBegin('retireWarehouse', TMessageType.CALL, self._seqid)
779
    args = retireWarehouse_args()
780
    args.warehouse_id = warehouse_id
781
    args.write(self._oprot)
782
    self._oprot.writeMessageEnd()
783
    self._oprot.trans.flush()
784
 
785
  def recv_retireWarehouse(self, ):
786
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
787
    if mtype == TMessageType.EXCEPTION:
788
      x = TApplicationException()
789
      x.read(self._iprot)
790
      self._iprot.readMessageEnd()
791
      raise x
792
    result = retireWarehouse_result()
793
    result.read(self._iprot)
794
    self._iprot.readMessageEnd()
795
    if result.cex is not None:
796
      raise result.cex
797
    return
798
 
799
  def getItemInventoryByItemId(self, item_id):
800
    """
801
    Parameters:
802
     - item_id
803
    """
804
    self.send_getItemInventoryByItemId(item_id)
805
    return self.recv_getItemInventoryByItemId()
806
 
807
  def send_getItemInventoryByItemId(self, item_id):
808
    self._oprot.writeMessageBegin('getItemInventoryByItemId', TMessageType.CALL, self._seqid)
809
    args = getItemInventoryByItemId_args()
810
    args.item_id = item_id
811
    args.write(self._oprot)
812
    self._oprot.writeMessageEnd()
813
    self._oprot.trans.flush()
814
 
815
  def recv_getItemInventoryByItemId(self, ):
816
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
817
    if mtype == TMessageType.EXCEPTION:
818
      x = TApplicationException()
819
      x.read(self._iprot)
820
      self._iprot.readMessageEnd()
821
      raise x
822
    result = getItemInventoryByItemId_result()
823
    result.read(self._iprot)
824
    self._iprot.readMessageEnd()
825
    if result.success is not None:
826
      return result.success
827
    if result.cex is not None:
828
      raise result.cex
829
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
830
 
831
  def getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
832
    """
833
    Parameters:
834
     - warehouse_id
835
     - item_id
836
    """
837
    self.send_getItemAvailibilityAtWarehouse(warehouse_id, item_id)
838
    return self.recv_getItemAvailibilityAtWarehouse()
839
 
840
  def send_getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
841
    self._oprot.writeMessageBegin('getItemAvailibilityAtWarehouse', TMessageType.CALL, self._seqid)
842
    args = getItemAvailibilityAtWarehouse_args()
843
    args.warehouse_id = warehouse_id
844
    args.item_id = item_id
845
    args.write(self._oprot)
846
    self._oprot.writeMessageEnd()
847
    self._oprot.trans.flush()
848
 
849
  def recv_getItemAvailibilityAtWarehouse(self, ):
850
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
851
    if mtype == TMessageType.EXCEPTION:
852
      x = TApplicationException()
853
      x.read(self._iprot)
854
      self._iprot.readMessageEnd()
855
      raise x
856
    result = getItemAvailibilityAtWarehouse_result()
857
    result.read(self._iprot)
858
    self._iprot.readMessageEnd()
859
    if result.success is not None:
860
      return result.success
861
    if result.cex is not None:
862
      raise result.cex
863
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
864
 
5978 rajveer 865
  def getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 866
    """
867
    Determines the warehouse that should be used to fulfil an order for the given item.
868
    It first checks all the warehouses which are in the logistics location given by the
869
    warehouse_loc parameter. If none of the warehouses there have any inventory, then the
870
    preferred warehouse for the item is used.
871
 
872
    Returns an ordered list of size 4 with following elements in the given order:
873
    1. Id of the fulfillment warehouse which was finally picked up.
874
    2. Expected delay added by the category manager.
875
    3. Id of the billing warehouse which was finally picked up.
876
 
877
    Parameters:
878
     - itemId
5978 rajveer 879
     - sourceId
5944 mandeep.dh 880
    """
5978 rajveer 881
    self.send_getItemAvailabilityAtLocation(itemId, sourceId)
5944 mandeep.dh 882
    return self.recv_getItemAvailabilityAtLocation()
883
 
5978 rajveer 884
  def send_getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 885
    self._oprot.writeMessageBegin('getItemAvailabilityAtLocation', TMessageType.CALL, self._seqid)
886
    args = getItemAvailabilityAtLocation_args()
887
    args.itemId = itemId
5978 rajveer 888
    args.sourceId = sourceId
5944 mandeep.dh 889
    args.write(self._oprot)
890
    self._oprot.writeMessageEnd()
891
    self._oprot.trans.flush()
892
 
893
  def recv_getItemAvailabilityAtLocation(self, ):
894
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
895
    if mtype == TMessageType.EXCEPTION:
896
      x = TApplicationException()
897
      x.read(self._iprot)
898
      self._iprot.readMessageEnd()
899
      raise x
900
    result = getItemAvailabilityAtLocation_result()
901
    result.read(self._iprot)
902
    self._iprot.readMessageEnd()
903
    if result.success is not None:
904
      return result.success
905
    if result.isex is not None:
906
      raise result.isex
907
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
908
 
909
  def getAllWarehouses(self, isActive):
910
    """
911
    Parameters:
912
     - isActive
913
    """
914
    self.send_getAllWarehouses(isActive)
915
    return self.recv_getAllWarehouses()
916
 
917
  def send_getAllWarehouses(self, isActive):
918
    self._oprot.writeMessageBegin('getAllWarehouses', TMessageType.CALL, self._seqid)
919
    args = getAllWarehouses_args()
920
    args.isActive = isActive
921
    args.write(self._oprot)
922
    self._oprot.writeMessageEnd()
923
    self._oprot.trans.flush()
924
 
925
  def recv_getAllWarehouses(self, ):
926
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
927
    if mtype == TMessageType.EXCEPTION:
928
      x = TApplicationException()
929
      x.read(self._iprot)
930
      self._iprot.readMessageEnd()
931
      raise x
932
    result = getAllWarehouses_result()
933
    result.read(self._iprot)
934
    self._iprot.readMessageEnd()
935
    if result.success is not None:
936
      return result.success
937
    if result.cex is not None:
938
      raise result.cex
939
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
940
 
941
  def getWarehouse(self, warehouse_id):
942
    """
943
    Returns the warehouse with the given id.
944
 
945
    Parameters:
946
     - warehouse_id
947
    """
948
    self.send_getWarehouse(warehouse_id)
949
    return self.recv_getWarehouse()
950
 
951
  def send_getWarehouse(self, warehouse_id):
952
    self._oprot.writeMessageBegin('getWarehouse', TMessageType.CALL, self._seqid)
953
    args = getWarehouse_args()
954
    args.warehouse_id = warehouse_id
955
    args.write(self._oprot)
956
    self._oprot.writeMessageEnd()
957
    self._oprot.trans.flush()
958
 
959
  def recv_getWarehouse(self, ):
960
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
961
    if mtype == TMessageType.EXCEPTION:
962
      x = TApplicationException()
963
      x.read(self._iprot)
964
      self._iprot.readMessageEnd()
965
      raise x
966
    result = getWarehouse_result()
967
    result.read(self._iprot)
968
    self._iprot.readMessageEnd()
969
    if result.success is not None:
970
      return result.success
971
    if result.cex is not None:
972
      raise result.cex
973
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
974
 
975
  def getAllItemsForWarehouse(self, warehouse_id):
976
    """
977
    Parameters:
978
     - warehouse_id
979
    """
980
    self.send_getAllItemsForWarehouse(warehouse_id)
981
    return self.recv_getAllItemsForWarehouse()
982
 
983
  def send_getAllItemsForWarehouse(self, warehouse_id):
984
    self._oprot.writeMessageBegin('getAllItemsForWarehouse', TMessageType.CALL, self._seqid)
985
    args = getAllItemsForWarehouse_args()
986
    args.warehouse_id = warehouse_id
987
    args.write(self._oprot)
988
    self._oprot.writeMessageEnd()
989
    self._oprot.trans.flush()
990
 
991
  def recv_getAllItemsForWarehouse(self, ):
992
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
993
    if mtype == TMessageType.EXCEPTION:
994
      x = TApplicationException()
995
      x.read(self._iprot)
996
      self._iprot.readMessageEnd()
997
      raise x
998
    result = getAllItemsForWarehouse_result()
999
    result.read(self._iprot)
1000
    self._iprot.readMessageEnd()
1001
    if result.success is not None:
1002
      return result.success
1003
    if result.cex is not None:
1004
      raise result.cex
1005
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
1006
 
5966 rajveer 1007
  def isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
5944 mandeep.dh 1008
    """
5978 rajveer 1009
    Depending on reservation in the table, verify if we can bill this order or not.
5966 rajveer 1010
 
1011
    Parameters:
1012
     - itemId
1013
     - warehouseId
1014
     - sourceId
1015
     - orderId
1016
    """
1017
    self.send_isOrderBillable(itemId, warehouseId, sourceId, orderId)
1018
    return self.recv_isOrderBillable()
1019
 
1020
  def send_isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
1021
    self._oprot.writeMessageBegin('isOrderBillable', TMessageType.CALL, self._seqid)
1022
    args = isOrderBillable_args()
1023
    args.itemId = itemId
1024
    args.warehouseId = warehouseId
1025
    args.sourceId = sourceId
1026
    args.orderId = orderId
1027
    args.write(self._oprot)
1028
    self._oprot.writeMessageEnd()
1029
    self._oprot.trans.flush()
1030
 
1031
  def recv_isOrderBillable(self, ):
1032
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1033
    if mtype == TMessageType.EXCEPTION:
1034
      x = TApplicationException()
1035
      x.read(self._iprot)
1036
      self._iprot.readMessageEnd()
1037
      raise x
1038
    result = isOrderBillable_result()
1039
    result.read(self._iprot)
1040
    self._iprot.readMessageEnd()
1041
    if result.success is not None:
1042
      return result.success
1043
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
1044
 
1045
  def reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1046
    """
5944 mandeep.dh 1047
    Increases the reservation count for an item in a warehouse. Should always succeed normally.
1048
 
1049
    Parameters:
1050
     - itemId
1051
     - warehouseId
5966 rajveer 1052
     - sourceId
1053
     - orderId
1054
     - createdTimestamp
1055
     - promisedShippingTimestamp
5944 mandeep.dh 1056
     - quantity
1057
    """
5966 rajveer 1058
    self.send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
5944 mandeep.dh 1059
    return self.recv_reserveItemInWarehouse()
1060
 
5966 rajveer 1061
  def send_reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
5944 mandeep.dh 1062
    self._oprot.writeMessageBegin('reserveItemInWarehouse', TMessageType.CALL, self._seqid)
1063
    args = reserveItemInWarehouse_args()
1064
    args.itemId = itemId
1065
    args.warehouseId = warehouseId
5966 rajveer 1066
    args.sourceId = sourceId
1067
    args.orderId = orderId
1068
    args.createdTimestamp = createdTimestamp
1069
    args.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 1070
    args.quantity = quantity
1071
    args.write(self._oprot)
1072
    self._oprot.writeMessageEnd()
1073
    self._oprot.trans.flush()
1074
 
1075
  def recv_reserveItemInWarehouse(self, ):
1076
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1077
    if mtype == TMessageType.EXCEPTION:
1078
      x = TApplicationException()
1079
      x.read(self._iprot)
1080
      self._iprot.readMessageEnd()
1081
      raise x
1082
    result = reserveItemInWarehouse_result()
1083
    result.read(self._iprot)
1084
    self._iprot.readMessageEnd()
1085
    if result.success is not None:
1086
      return result.success
1087
    if result.cex is not None:
1088
      raise result.cex
1089
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
1090
 
7968 amar.kumar 1091
  def updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1092
    """
1093
    Updates the reservation for Order
1094
 
1095
    Parameters:
1096
     - itemId
1097
     - warehouseId
1098
     - sourceId
1099
     - orderId
1100
     - createdTimestamp
1101
     - promisedShippingTimestamp
1102
     - quantity
1103
    """
1104
    self.send_updateReservationForOrder(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
1105
    return self.recv_updateReservationForOrder()
1106
 
1107
  def send_updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1108
    self._oprot.writeMessageBegin('updateReservationForOrder', TMessageType.CALL, self._seqid)
1109
    args = updateReservationForOrder_args()
1110
    args.itemId = itemId
1111
    args.warehouseId = warehouseId
1112
    args.sourceId = sourceId
1113
    args.orderId = orderId
1114
    args.createdTimestamp = createdTimestamp
1115
    args.promisedShippingTimestamp = promisedShippingTimestamp
1116
    args.quantity = quantity
1117
    args.write(self._oprot)
1118
    self._oprot.writeMessageEnd()
1119
    self._oprot.trans.flush()
1120
 
1121
  def recv_updateReservationForOrder(self, ):
1122
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1123
    if mtype == TMessageType.EXCEPTION:
1124
      x = TApplicationException()
1125
      x.read(self._iprot)
1126
      self._iprot.readMessageEnd()
1127
      raise x
1128
    result = updateReservationForOrder_result()
1129
    result.read(self._iprot)
1130
    self._iprot.readMessageEnd()
1131
    if result.success is not None:
1132
      return result.success
1133
    if result.cex is not None:
1134
      raise result.cex
1135
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateReservationForOrder failed: unknown result");
1136
 
5966 rajveer 1137
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1138
    """
1139
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
1140
 
1141
    Parameters:
1142
     - itemId
1143
     - warehouseId
5966 rajveer 1144
     - sourceId
1145
     - orderId
5944 mandeep.dh 1146
     - quantity
1147
    """
5966 rajveer 1148
    self.send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity)
5944 mandeep.dh 1149
    return self.recv_reduceReservationCount()
1150
 
5966 rajveer 1151
  def send_reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1152
    self._oprot.writeMessageBegin('reduceReservationCount', TMessageType.CALL, self._seqid)
1153
    args = reduceReservationCount_args()
1154
    args.itemId = itemId
1155
    args.warehouseId = warehouseId
5966 rajveer 1156
    args.sourceId = sourceId
1157
    args.orderId = orderId
5944 mandeep.dh 1158
    args.quantity = quantity
1159
    args.write(self._oprot)
1160
    self._oprot.writeMessageEnd()
1161
    self._oprot.trans.flush()
1162
 
1163
  def recv_reduceReservationCount(self, ):
1164
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1165
    if mtype == TMessageType.EXCEPTION:
1166
      x = TApplicationException()
1167
      x.read(self._iprot)
1168
      self._iprot.readMessageEnd()
1169
      raise x
1170
    result = reduceReservationCount_result()
1171
    result.read(self._iprot)
1172
    self._iprot.readMessageEnd()
1173
    if result.success is not None:
1174
      return result.success
1175
    if result.cex is not None:
1176
      raise result.cex
1177
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
1178
 
1179
  def getItemPricing(self, itemId, vendorId):
1180
    """
1181
    Returns the pricing information of an item associated with the vendor of the given warehouse.
1182
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
1183
 
1184
    Parameters:
1185
     - itemId
1186
     - vendorId
1187
    """
1188
    self.send_getItemPricing(itemId, vendorId)
1189
    return self.recv_getItemPricing()
1190
 
1191
  def send_getItemPricing(self, itemId, vendorId):
1192
    self._oprot.writeMessageBegin('getItemPricing', TMessageType.CALL, self._seqid)
1193
    args = getItemPricing_args()
1194
    args.itemId = itemId
1195
    args.vendorId = vendorId
1196
    args.write(self._oprot)
1197
    self._oprot.writeMessageEnd()
1198
    self._oprot.trans.flush()
1199
 
1200
  def recv_getItemPricing(self, ):
1201
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1202
    if mtype == TMessageType.EXCEPTION:
1203
      x = TApplicationException()
1204
      x.read(self._iprot)
1205
      self._iprot.readMessageEnd()
1206
      raise x
1207
    result = getItemPricing_result()
1208
    result.read(self._iprot)
1209
    self._iprot.readMessageEnd()
1210
    if result.success is not None:
1211
      return result.success
1212
    if result.cex is not None:
1213
      raise result.cex
1214
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
1215
 
1216
  def getAllItemPricing(self, itemId):
1217
    """
1218
    Returns the list of vendor pricing information of an item.
1219
    Raises an exception if item not found corresponding to itemId
1220
 
1221
    Parameters:
1222
     - itemId
1223
    """
1224
    self.send_getAllItemPricing(itemId)
1225
    return self.recv_getAllItemPricing()
1226
 
1227
  def send_getAllItemPricing(self, itemId):
1228
    self._oprot.writeMessageBegin('getAllItemPricing', TMessageType.CALL, self._seqid)
1229
    args = getAllItemPricing_args()
1230
    args.itemId = itemId
1231
    args.write(self._oprot)
1232
    self._oprot.writeMessageEnd()
1233
    self._oprot.trans.flush()
1234
 
1235
  def recv_getAllItemPricing(self, ):
1236
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1237
    if mtype == TMessageType.EXCEPTION:
1238
      x = TApplicationException()
1239
      x.read(self._iprot)
1240
      self._iprot.readMessageEnd()
1241
      raise x
1242
    result = getAllItemPricing_result()
1243
    result.read(self._iprot)
1244
    self._iprot.readMessageEnd()
1245
    if result.success is not None:
1246
      return result.success
1247
    if result.cex is not None:
1248
      raise result.cex
1249
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
1250
 
1251
  def addVendorItemPricing(self, vendorItemPricing):
1252
    """
1253
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
1254
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
1255
 
1256
    Parameters:
1257
     - vendorItemPricing
1258
    """
1259
    self.send_addVendorItemPricing(vendorItemPricing)
1260
    self.recv_addVendorItemPricing()
1261
 
1262
  def send_addVendorItemPricing(self, vendorItemPricing):
1263
    self._oprot.writeMessageBegin('addVendorItemPricing', TMessageType.CALL, self._seqid)
1264
    args = addVendorItemPricing_args()
1265
    args.vendorItemPricing = vendorItemPricing
1266
    args.write(self._oprot)
1267
    self._oprot.writeMessageEnd()
1268
    self._oprot.trans.flush()
1269
 
1270
  def recv_addVendorItemPricing(self, ):
1271
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1272
    if mtype == TMessageType.EXCEPTION:
1273
      x = TApplicationException()
1274
      x.read(self._iprot)
1275
      self._iprot.readMessageEnd()
1276
      raise x
1277
    result = addVendorItemPricing_result()
1278
    result.read(self._iprot)
1279
    self._iprot.readMessageEnd()
1280
    if result.cex is not None:
1281
      raise result.cex
1282
    return
1283
 
1284
  def getVendor(self, vendorId):
1285
    """
1286
    Returns a vendor given its id
1287
 
1288
    Parameters:
1289
     - vendorId
1290
    """
1291
    self.send_getVendor(vendorId)
1292
    return self.recv_getVendor()
1293
 
1294
  def send_getVendor(self, vendorId):
1295
    self._oprot.writeMessageBegin('getVendor', TMessageType.CALL, self._seqid)
1296
    args = getVendor_args()
1297
    args.vendorId = vendorId
1298
    args.write(self._oprot)
1299
    self._oprot.writeMessageEnd()
1300
    self._oprot.trans.flush()
1301
 
1302
  def recv_getVendor(self, ):
1303
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1304
    if mtype == TMessageType.EXCEPTION:
1305
      x = TApplicationException()
1306
      x.read(self._iprot)
1307
      self._iprot.readMessageEnd()
1308
      raise x
1309
    result = getVendor_result()
1310
    result.read(self._iprot)
1311
    self._iprot.readMessageEnd()
1312
    if result.success is not None:
1313
      return result.success
1314
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
1315
 
1316
  def getAllVendors(self, ):
1317
    """
1318
    Return list of all vendors
1319
    """
1320
    self.send_getAllVendors()
1321
    return self.recv_getAllVendors()
1322
 
1323
  def send_getAllVendors(self, ):
1324
    self._oprot.writeMessageBegin('getAllVendors', TMessageType.CALL, self._seqid)
1325
    args = getAllVendors_args()
1326
    args.write(self._oprot)
1327
    self._oprot.writeMessageEnd()
1328
    self._oprot.trans.flush()
1329
 
1330
  def recv_getAllVendors(self, ):
1331
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1332
    if mtype == TMessageType.EXCEPTION:
1333
      x = TApplicationException()
1334
      x.read(self._iprot)
1335
      self._iprot.readMessageEnd()
1336
      raise x
1337
    result = getAllVendors_result()
1338
    result.read(self._iprot)
1339
    self._iprot.readMessageEnd()
1340
    if result.success is not None:
1341
      return result.success
1342
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1343
 
1344
  def addVendorItemMapping(self, key, vendorItemMapping):
1345
    """
1346
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
1347
 
1348
    Parameters:
1349
     - key
1350
     - vendorItemMapping
1351
    """
1352
    self.send_addVendorItemMapping(key, vendorItemMapping)
1353
    self.recv_addVendorItemMapping()
1354
 
1355
  def send_addVendorItemMapping(self, key, vendorItemMapping):
1356
    self._oprot.writeMessageBegin('addVendorItemMapping', TMessageType.CALL, self._seqid)
1357
    args = addVendorItemMapping_args()
1358
    args.key = key
1359
    args.vendorItemMapping = vendorItemMapping
1360
    args.write(self._oprot)
1361
    self._oprot.writeMessageEnd()
1362
    self._oprot.trans.flush()
1363
 
1364
  def recv_addVendorItemMapping(self, ):
1365
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1366
    if mtype == TMessageType.EXCEPTION:
1367
      x = TApplicationException()
1368
      x.read(self._iprot)
1369
      self._iprot.readMessageEnd()
1370
      raise x
1371
    result = addVendorItemMapping_result()
1372
    result.read(self._iprot)
1373
    self._iprot.readMessageEnd()
1374
    if result.cex is not None:
1375
      raise result.cex
1376
    return
1377
 
1378
  def getVendorItemMappings(self, itemId):
1379
    """
1380
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
1381
    Raises an exception if item not found corresponding to itemId
1382
 
1383
    Parameters:
1384
     - itemId
1385
    """
1386
    self.send_getVendorItemMappings(itemId)
1387
    return self.recv_getVendorItemMappings()
1388
 
1389
  def send_getVendorItemMappings(self, itemId):
1390
    self._oprot.writeMessageBegin('getVendorItemMappings', TMessageType.CALL, self._seqid)
1391
    args = getVendorItemMappings_args()
1392
    args.itemId = itemId
1393
    args.write(self._oprot)
1394
    self._oprot.writeMessageEnd()
1395
    self._oprot.trans.flush()
1396
 
1397
  def recv_getVendorItemMappings(self, ):
1398
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1399
    if mtype == TMessageType.EXCEPTION:
1400
      x = TApplicationException()
1401
      x.read(self._iprot)
1402
      self._iprot.readMessageEnd()
1403
      raise x
1404
    result = getVendorItemMappings_result()
1405
    result.read(self._iprot)
1406
    self._iprot.readMessageEnd()
1407
    if result.success is not None:
1408
      return result.success
1409
    if result.cex is not None:
1410
      raise result.cex
1411
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
1412
 
1413
  def getPendingOrdersInventory(self, vendorid):
1414
    """
1415
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
1416
 
1417
    Parameters:
1418
     - vendorid
1419
    """
1420
    self.send_getPendingOrdersInventory(vendorid)
1421
    return self.recv_getPendingOrdersInventory()
1422
 
1423
  def send_getPendingOrdersInventory(self, vendorid):
1424
    self._oprot.writeMessageBegin('getPendingOrdersInventory', TMessageType.CALL, self._seqid)
1425
    args = getPendingOrdersInventory_args()
1426
    args.vendorid = vendorid
1427
    args.write(self._oprot)
1428
    self._oprot.writeMessageEnd()
1429
    self._oprot.trans.flush()
1430
 
1431
  def recv_getPendingOrdersInventory(self, ):
1432
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1433
    if mtype == TMessageType.EXCEPTION:
1434
      x = TApplicationException()
1435
      x.read(self._iprot)
1436
      self._iprot.readMessageEnd()
1437
      raise x
1438
    result = getPendingOrdersInventory_result()
1439
    result.read(self._iprot)
1440
    self._iprot.readMessageEnd()
1441
    if result.success is not None:
1442
      return result.success
1443
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1444
 
1445
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1446
    """
1447
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
1448
    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
1449
    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
1450
       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
1451
       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
1452
 
1453
    Parameters:
1454
     - warehouseType
1455
     - inventoryType
1456
     - vendorId
1457
     - billingWarehouseId
1458
     - shippingWarehouseId
1459
    """
1460
    self.send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId)
1461
    return self.recv_getWarehouses()
1462
 
1463
  def send_getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1464
    self._oprot.writeMessageBegin('getWarehouses', TMessageType.CALL, self._seqid)
1465
    args = getWarehouses_args()
1466
    args.warehouseType = warehouseType
1467
    args.inventoryType = inventoryType
1468
    args.vendorId = vendorId
1469
    args.billingWarehouseId = billingWarehouseId
1470
    args.shippingWarehouseId = shippingWarehouseId
1471
    args.write(self._oprot)
1472
    self._oprot.writeMessageEnd()
1473
    self._oprot.trans.flush()
1474
 
1475
  def recv_getWarehouses(self, ):
1476
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1477
    if mtype == TMessageType.EXCEPTION:
1478
      x = TApplicationException()
1479
      x.read(self._iprot)
1480
      self._iprot.readMessageEnd()
1481
      raise x
1482
    result = getWarehouses_result()
1483
    result.read(self._iprot)
1484
    self._iprot.readMessageEnd()
1485
    if result.success is not None:
1486
      return result.success
1487
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1488
 
1489
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1490
    """
1491
    Resets availability of an item to the quantity mentioned in a warehouse.
1492
 
1493
    Parameters:
1494
     - itemKey
1495
     - vendorId
1496
     - quantity
1497
     - warehouseId
1498
    """
1499
    self.send_resetAvailability(itemKey, vendorId, quantity, warehouseId)
1500
    self.recv_resetAvailability()
1501
 
1502
  def send_resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1503
    self._oprot.writeMessageBegin('resetAvailability', TMessageType.CALL, self._seqid)
1504
    args = resetAvailability_args()
1505
    args.itemKey = itemKey
1506
    args.vendorId = vendorId
1507
    args.quantity = quantity
1508
    args.warehouseId = warehouseId
1509
    args.write(self._oprot)
1510
    self._oprot.writeMessageEnd()
1511
    self._oprot.trans.flush()
1512
 
1513
  def recv_resetAvailability(self, ):
1514
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1515
    if mtype == TMessageType.EXCEPTION:
1516
      x = TApplicationException()
1517
      x.read(self._iprot)
1518
      self._iprot.readMessageEnd()
1519
      raise x
1520
    result = resetAvailability_result()
1521
    result.read(self._iprot)
1522
    self._iprot.readMessageEnd()
1523
    if result.cex is not None:
1524
      raise result.cex
1525
    return
1526
 
1527
  def resetAvailabilityForWarehouse(self, warehouseId):
1528
    """
1529
    Resets availability of a warehouse to zero.
1530
 
1531
    Parameters:
1532
     - warehouseId
1533
    """
1534
    self.send_resetAvailabilityForWarehouse(warehouseId)
1535
    self.recv_resetAvailabilityForWarehouse()
1536
 
1537
  def send_resetAvailabilityForWarehouse(self, warehouseId):
1538
    self._oprot.writeMessageBegin('resetAvailabilityForWarehouse', TMessageType.CALL, self._seqid)
1539
    args = resetAvailabilityForWarehouse_args()
1540
    args.warehouseId = warehouseId
1541
    args.write(self._oprot)
1542
    self._oprot.writeMessageEnd()
1543
    self._oprot.trans.flush()
1544
 
1545
  def recv_resetAvailabilityForWarehouse(self, ):
1546
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1547
    if mtype == TMessageType.EXCEPTION:
1548
      x = TApplicationException()
1549
      x.read(self._iprot)
1550
      self._iprot.readMessageEnd()
1551
      raise x
1552
    result = resetAvailabilityForWarehouse_result()
1553
    result.read(self._iprot)
1554
    self._iprot.readMessageEnd()
1555
    if result.cex is not None:
1556
      raise result.cex
1557
    return
1558
 
1559
  def getItemKeysToBeProcessed(self, warehouseId):
1560
    """
1561
    Returns the list of item keys which need to be processed for a given warehouse.
1562
    This is currently used by Support application to send item keys whose inventory needs
1563
    to be updated from PLB
1564
 
1565
    Parameters:
1566
     - warehouseId
1567
    """
1568
    self.send_getItemKeysToBeProcessed(warehouseId)
1569
    return self.recv_getItemKeysToBeProcessed()
1570
 
1571
  def send_getItemKeysToBeProcessed(self, warehouseId):
1572
    self._oprot.writeMessageBegin('getItemKeysToBeProcessed', TMessageType.CALL, self._seqid)
1573
    args = getItemKeysToBeProcessed_args()
1574
    args.warehouseId = warehouseId
1575
    args.write(self._oprot)
1576
    self._oprot.writeMessageEnd()
1577
    self._oprot.trans.flush()
1578
 
1579
  def recv_getItemKeysToBeProcessed(self, ):
1580
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1581
    if mtype == TMessageType.EXCEPTION:
1582
      x = TApplicationException()
1583
      x.read(self._iprot)
1584
      self._iprot.readMessageEnd()
1585
      raise x
1586
    result = getItemKeysToBeProcessed_result()
1587
    result.read(self._iprot)
1588
    self._iprot.readMessageEnd()
1589
    if result.success is not None:
1590
      return result.success
1591
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1592
 
1593
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1594
    """
1595
    Marks/Deletes missed inventory updates for a given key and warehouse.
1596
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
1597
 
1598
    Parameters:
1599
     - itemKey
1600
     - warehouseId
1601
    """
1602
    self.send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId)
1603
    self.recv_markMissedInventoryUpdatesAsProcessed()
1604
 
1605
  def send_markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1606
    self._oprot.writeMessageBegin('markMissedInventoryUpdatesAsProcessed', TMessageType.CALL, self._seqid)
1607
    args = markMissedInventoryUpdatesAsProcessed_args()
1608
    args.itemKey = itemKey
1609
    args.warehouseId = warehouseId
1610
    args.write(self._oprot)
1611
    self._oprot.writeMessageEnd()
1612
    self._oprot.trans.flush()
1613
 
1614
  def recv_markMissedInventoryUpdatesAsProcessed(self, ):
1615
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1616
    if mtype == TMessageType.EXCEPTION:
1617
      x = TApplicationException()
1618
      x.read(self._iprot)
1619
      self._iprot.readMessageEnd()
1620
      raise x
1621
    result = markMissedInventoryUpdatesAsProcessed_result()
1622
    result.read(self._iprot)
1623
    self._iprot.readMessageEnd()
1624
    return
1625
 
1626
  def getIgnoredItemKeys(self, ):
1627
    """
1628
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
1629
    and the timestamp from where alert was raised.
1630
    """
1631
    self.send_getIgnoredItemKeys()
1632
    return self.recv_getIgnoredItemKeys()
1633
 
1634
  def send_getIgnoredItemKeys(self, ):
1635
    self._oprot.writeMessageBegin('getIgnoredItemKeys', TMessageType.CALL, self._seqid)
1636
    args = getIgnoredItemKeys_args()
1637
    args.write(self._oprot)
1638
    self._oprot.writeMessageEnd()
1639
    self._oprot.trans.flush()
1640
 
1641
  def recv_getIgnoredItemKeys(self, ):
1642
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1643
    if mtype == TMessageType.EXCEPTION:
1644
      x = TApplicationException()
1645
      x.read(self._iprot)
1646
      self._iprot.readMessageEnd()
1647
      raise x
1648
    result = getIgnoredItemKeys_result()
1649
    result.read(self._iprot)
1650
    self._iprot.readMessageEnd()
1651
    if result.success is not None:
1652
      return result.success
1653
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1654
 
1655
  def addBadInventory(self, itemId, warehouseId, quantity):
1656
    """
1657
    Add the BAD type inventory to existing stock.
1658
 
1659
    Parameters:
1660
     - itemId
1661
     - warehouseId
1662
     - quantity
1663
    """
1664
    self.send_addBadInventory(itemId, warehouseId, quantity)
1665
    self.recv_addBadInventory()
1666
 
1667
  def send_addBadInventory(self, itemId, warehouseId, quantity):
1668
    self._oprot.writeMessageBegin('addBadInventory', TMessageType.CALL, self._seqid)
1669
    args = addBadInventory_args()
1670
    args.itemId = itemId
1671
    args.warehouseId = warehouseId
1672
    args.quantity = quantity
1673
    args.write(self._oprot)
1674
    self._oprot.writeMessageEnd()
1675
    self._oprot.trans.flush()
1676
 
1677
  def recv_addBadInventory(self, ):
1678
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1679
    if mtype == TMessageType.EXCEPTION:
1680
      x = TApplicationException()
1681
      x.read(self._iprot)
1682
      self._iprot.readMessageEnd()
1683
      raise x
1684
    result = addBadInventory_result()
1685
    result.read(self._iprot)
1686
    self._iprot.readMessageEnd()
1687
    if result.cex is not None:
1688
      raise result.cex
1689
    return
1690
 
1691
  def getShippingLocations(self, ):
1692
    """
1693
    Returns all shipping locations
1694
    """
1695
    self.send_getShippingLocations()
1696
    return self.recv_getShippingLocations()
1697
 
1698
  def send_getShippingLocations(self, ):
1699
    self._oprot.writeMessageBegin('getShippingLocations', TMessageType.CALL, self._seqid)
1700
    args = getShippingLocations_args()
1701
    args.write(self._oprot)
1702
    self._oprot.writeMessageEnd()
1703
    self._oprot.trans.flush()
1704
 
1705
  def recv_getShippingLocations(self, ):
1706
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1707
    if mtype == TMessageType.EXCEPTION:
1708
      x = TApplicationException()
1709
      x.read(self._iprot)
1710
      self._iprot.readMessageEnd()
1711
      raise x
1712
    result = getShippingLocations_result()
1713
    result.read(self._iprot)
1714
    self._iprot.readMessageEnd()
1715
    if result.success is not None:
1716
      return result.success
1717
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1718
 
1719
  def getAllVendorItemMappings(self, ):
1720
    """
1721
    Fetches all the vendor item mappings present.
1722
    """
1723
    self.send_getAllVendorItemMappings()
1724
    return self.recv_getAllVendorItemMappings()
1725
 
1726
  def send_getAllVendorItemMappings(self, ):
1727
    self._oprot.writeMessageBegin('getAllVendorItemMappings', TMessageType.CALL, self._seqid)
1728
    args = getAllVendorItemMappings_args()
1729
    args.write(self._oprot)
1730
    self._oprot.writeMessageEnd()
1731
    self._oprot.trans.flush()
1732
 
1733
  def recv_getAllVendorItemMappings(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 = getAllVendorItemMappings_result()
1741
    result.read(self._iprot)
1742
    self._iprot.readMessageEnd()
1743
    if result.success is not None:
1744
      return result.success
1745
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1746
 
1747
  def getInventorySnapshot(self, warehouseId):
1748
    """
1749
    Gets items' inventory for a warehouse
1750
    If warehouse is passed as zero, items' inventory across all warehouses is sent
1751
 
1752
    Parameters:
1753
     - warehouseId
1754
    """
1755
    self.send_getInventorySnapshot(warehouseId)
1756
    return self.recv_getInventorySnapshot()
1757
 
1758
  def send_getInventorySnapshot(self, warehouseId):
1759
    self._oprot.writeMessageBegin('getInventorySnapshot', TMessageType.CALL, self._seqid)
1760
    args = getInventorySnapshot_args()
1761
    args.warehouseId = warehouseId
1762
    args.write(self._oprot)
1763
    self._oprot.writeMessageEnd()
1764
    self._oprot.trans.flush()
1765
 
1766
  def recv_getInventorySnapshot(self, ):
1767
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1768
    if mtype == TMessageType.EXCEPTION:
1769
      x = TApplicationException()
1770
      x.read(self._iprot)
1771
      self._iprot.readMessageEnd()
1772
      raise x
1773
    result = getInventorySnapshot_result()
1774
    result.read(self._iprot)
1775
    self._iprot.readMessageEnd()
1776
    if result.success is not None:
1777
      return result.success
1778
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1779
 
1780
  def clearItemAvailabilityCache(self, ):
1781
    """
1782
    Clear item availability cache.
1783
    """
1784
    self.send_clearItemAvailabilityCache()
1785
    self.recv_clearItemAvailabilityCache()
1786
 
1787
  def send_clearItemAvailabilityCache(self, ):
1788
    self._oprot.writeMessageBegin('clearItemAvailabilityCache', TMessageType.CALL, self._seqid)
1789
    args = clearItemAvailabilityCache_args()
1790
    args.write(self._oprot)
1791
    self._oprot.writeMessageEnd()
1792
    self._oprot.trans.flush()
1793
 
1794
  def recv_clearItemAvailabilityCache(self, ):
1795
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1796
    if mtype == TMessageType.EXCEPTION:
1797
      x = TApplicationException()
1798
      x.read(self._iprot)
1799
      self._iprot.readMessageEnd()
1800
      raise x
1801
    result = clearItemAvailabilityCache_result()
1802
    result.read(self._iprot)
1803
    self._iprot.readMessageEnd()
1804
    return
1805
 
1806
  def updateVendorString(self, warehouseId, vendorString):
1807
    """
1808
    Parameters:
1809
     - warehouseId
1810
     - vendorString
1811
    """
1812
    self.send_updateVendorString(warehouseId, vendorString)
1813
    self.recv_updateVendorString()
1814
 
1815
  def send_updateVendorString(self, warehouseId, vendorString):
1816
    self._oprot.writeMessageBegin('updateVendorString', TMessageType.CALL, self._seqid)
1817
    args = updateVendorString_args()
1818
    args.warehouseId = warehouseId
1819
    args.vendorString = vendorString
1820
    args.write(self._oprot)
1821
    self._oprot.writeMessageEnd()
1822
    self._oprot.trans.flush()
1823
 
1824
  def recv_updateVendorString(self, ):
1825
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1826
    if mtype == TMessageType.EXCEPTION:
1827
      x = TApplicationException()
1828
      x.read(self._iprot)
1829
      self._iprot.readMessageEnd()
1830
      raise x
1831
    result = updateVendorString_result()
1832
    result.read(self._iprot)
1833
    self._iprot.readMessageEnd()
1834
    return
1835
 
6096 amit.gupta 1836
  def clearItemAvailabilityCacheForItem(self, item_id):
1837
    """
1838
    Parameters:
1839
     - item_id
1840
    """
1841
    self.send_clearItemAvailabilityCacheForItem(item_id)
1842
    self.recv_clearItemAvailabilityCacheForItem()
5944 mandeep.dh 1843
 
6096 amit.gupta 1844
  def send_clearItemAvailabilityCacheForItem(self, item_id):
1845
    self._oprot.writeMessageBegin('clearItemAvailabilityCacheForItem', TMessageType.CALL, self._seqid)
1846
    args = clearItemAvailabilityCacheForItem_args()
1847
    args.item_id = item_id
1848
    args.write(self._oprot)
1849
    self._oprot.writeMessageEnd()
1850
    self._oprot.trans.flush()
1851
 
1852
  def recv_clearItemAvailabilityCacheForItem(self, ):
1853
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1854
    if mtype == TMessageType.EXCEPTION:
1855
      x = TApplicationException()
1856
      x.read(self._iprot)
1857
      self._iprot.readMessageEnd()
1858
      raise x
1859
    result = clearItemAvailabilityCacheForItem_result()
1860
    result.read(self._iprot)
1861
    self._iprot.readMessageEnd()
1862
    return
1863
 
7718 amar.kumar 1864
  def getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1865
    """
1866
    Parameters:
1867
     - vendorId
7718 amar.kumar 1868
     - billingWarehouseId
6467 amar.kumar 1869
    """
7718 amar.kumar 1870
    self.send_getOurWarehouseIdForVendor(vendorId, billingWarehouseId)
6467 amar.kumar 1871
    return self.recv_getOurWarehouseIdForVendor()
6096 amit.gupta 1872
 
7718 amar.kumar 1873
  def send_getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1874
    self._oprot.writeMessageBegin('getOurWarehouseIdForVendor', TMessageType.CALL, self._seqid)
1875
    args = getOurWarehouseIdForVendor_args()
1876
    args.vendorId = vendorId
7718 amar.kumar 1877
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 1878
    args.write(self._oprot)
1879
    self._oprot.writeMessageEnd()
1880
    self._oprot.trans.flush()
1881
 
1882
  def recv_getOurWarehouseIdForVendor(self, ):
1883
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1884
    if mtype == TMessageType.EXCEPTION:
1885
      x = TApplicationException()
1886
      x.read(self._iprot)
1887
      self._iprot.readMessageEnd()
1888
      raise x
1889
    result = getOurWarehouseIdForVendor_result()
1890
    result.read(self._iprot)
1891
    self._iprot.readMessageEnd()
1892
    if result.success is not None:
1893
      return result.success
1894
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1895
 
6484 amar.kumar 1896
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1897
    """
1898
    Parameters:
1899
     - item_ids
1900
    """
1901
    self.send_getItemAvailabilitiesAtOurWarehouses(item_ids)
1902
    return self.recv_getItemAvailabilitiesAtOurWarehouses()
6467 amar.kumar 1903
 
6484 amar.kumar 1904
  def send_getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1905
    self._oprot.writeMessageBegin('getItemAvailabilitiesAtOurWarehouses', TMessageType.CALL, self._seqid)
1906
    args = getItemAvailabilitiesAtOurWarehouses_args()
1907
    args.item_ids = item_ids
1908
    args.write(self._oprot)
1909
    self._oprot.writeMessageEnd()
1910
    self._oprot.trans.flush()
1911
 
1912
  def recv_getItemAvailabilitiesAtOurWarehouses(self, ):
1913
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1914
    if mtype == TMessageType.EXCEPTION:
1915
      x = TApplicationException()
1916
      x.read(self._iprot)
1917
      self._iprot.readMessageEnd()
1918
      raise x
1919
    result = getItemAvailabilitiesAtOurWarehouses_result()
1920
    result.read(self._iprot)
1921
    self._iprot.readMessageEnd()
1922
    if result.success is not None:
1923
      return result.success
1924
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
1925
 
6531 vikram.rag 1926
  def getMonitoredWarehouseForVendors(self, vendorIds):
1927
    """
1928
    Parameters:
1929
     - vendorIds
1930
    """
1931
    self.send_getMonitoredWarehouseForVendors(vendorIds)
1932
    return self.recv_getMonitoredWarehouseForVendors()
6484 amar.kumar 1933
 
6531 vikram.rag 1934
  def send_getMonitoredWarehouseForVendors(self, vendorIds):
1935
    self._oprot.writeMessageBegin('getMonitoredWarehouseForVendors', TMessageType.CALL, self._seqid)
1936
    args = getMonitoredWarehouseForVendors_args()
1937
    args.vendorIds = vendorIds
1938
    args.write(self._oprot)
1939
    self._oprot.writeMessageEnd()
1940
    self._oprot.trans.flush()
1941
 
1942
  def recv_getMonitoredWarehouseForVendors(self, ):
1943
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1944
    if mtype == TMessageType.EXCEPTION:
1945
      x = TApplicationException()
1946
      x.read(self._iprot)
1947
      self._iprot.readMessageEnd()
1948
      raise x
1949
    result = getMonitoredWarehouseForVendors_result()
1950
    result.read(self._iprot)
1951
    self._iprot.readMessageEnd()
1952
    if result.success is not None:
1953
      return result.success
1954
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
1955
 
1956
  def getIgnoredWarehouseidsAndItemids(self, ):
1957
    self.send_getIgnoredWarehouseidsAndItemids()
1958
    return self.recv_getIgnoredWarehouseidsAndItemids()
1959
 
1960
  def send_getIgnoredWarehouseidsAndItemids(self, ):
1961
    self._oprot.writeMessageBegin('getIgnoredWarehouseidsAndItemids', TMessageType.CALL, self._seqid)
1962
    args = getIgnoredWarehouseidsAndItemids_args()
1963
    args.write(self._oprot)
1964
    self._oprot.writeMessageEnd()
1965
    self._oprot.trans.flush()
1966
 
1967
  def recv_getIgnoredWarehouseidsAndItemids(self, ):
1968
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1969
    if mtype == TMessageType.EXCEPTION:
1970
      x = TApplicationException()
1971
      x.read(self._iprot)
1972
      self._iprot.readMessageEnd()
1973
      raise x
1974
    result = getIgnoredWarehouseidsAndItemids_result()
1975
    result.read(self._iprot)
1976
    self._iprot.readMessageEnd()
1977
    if result.success is not None:
1978
      return result.success
1979
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
1980
 
1981
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
1982
    """
1983
    Parameters:
1984
     - item_id
1985
     - warehouse_id
1986
    """
1987
    self.send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id)
1988
    return self.recv_insertItemtoIgnoreInventoryUpdatelist()
1989
 
1990
  def send_insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
1991
    self._oprot.writeMessageBegin('insertItemtoIgnoreInventoryUpdatelist', TMessageType.CALL, self._seqid)
1992
    args = insertItemtoIgnoreInventoryUpdatelist_args()
1993
    args.item_id = item_id
1994
    args.warehouse_id = warehouse_id
1995
    args.write(self._oprot)
1996
    self._oprot.writeMessageEnd()
1997
    self._oprot.trans.flush()
1998
 
1999
  def recv_insertItemtoIgnoreInventoryUpdatelist(self, ):
2000
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2001
    if mtype == TMessageType.EXCEPTION:
2002
      x = TApplicationException()
2003
      x.read(self._iprot)
2004
      self._iprot.readMessageEnd()
2005
      raise x
2006
    result = insertItemtoIgnoreInventoryUpdatelist_result()
2007
    result.read(self._iprot)
2008
    self._iprot.readMessageEnd()
2009
    if result.success is not None:
2010
      return result.success
2011
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
2012
 
2013
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2014
    """
2015
    Parameters:
2016
     - item_id
2017
     - warehouse_id
2018
    """
2019
    self.send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id)
2020
    return self.recv_deleteItemFromIgnoredInventoryUpdateList()
2021
 
2022
  def send_deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2023
    self._oprot.writeMessageBegin('deleteItemFromIgnoredInventoryUpdateList', TMessageType.CALL, self._seqid)
2024
    args = deleteItemFromIgnoredInventoryUpdateList_args()
2025
    args.item_id = item_id
2026
    args.warehouse_id = warehouse_id
2027
    args.write(self._oprot)
2028
    self._oprot.writeMessageEnd()
2029
    self._oprot.trans.flush()
2030
 
2031
  def recv_deleteItemFromIgnoredInventoryUpdateList(self, ):
2032
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2033
    if mtype == TMessageType.EXCEPTION:
2034
      x = TApplicationException()
2035
      x.read(self._iprot)
2036
      self._iprot.readMessageEnd()
2037
      raise x
2038
    result = deleteItemFromIgnoredInventoryUpdateList_result()
2039
    result.read(self._iprot)
2040
    self._iprot.readMessageEnd()
2041
    if result.success is not None:
2042
      return result.success
2043
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
2044
 
2045
  def getAllIgnoredInventoryupdateItemsCount(self, ):
2046
    self.send_getAllIgnoredInventoryupdateItemsCount()
2047
    return self.recv_getAllIgnoredInventoryupdateItemsCount()
2048
 
2049
  def send_getAllIgnoredInventoryupdateItemsCount(self, ):
2050
    self._oprot.writeMessageBegin('getAllIgnoredInventoryupdateItemsCount', TMessageType.CALL, self._seqid)
2051
    args = getAllIgnoredInventoryupdateItemsCount_args()
2052
    args.write(self._oprot)
2053
    self._oprot.writeMessageEnd()
2054
    self._oprot.trans.flush()
2055
 
2056
  def recv_getAllIgnoredInventoryupdateItemsCount(self, ):
2057
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2058
    if mtype == TMessageType.EXCEPTION:
2059
      x = TApplicationException()
2060
      x.read(self._iprot)
2061
      self._iprot.readMessageEnd()
2062
      raise x
2063
    result = getAllIgnoredInventoryupdateItemsCount_result()
2064
    result.read(self._iprot)
2065
    self._iprot.readMessageEnd()
2066
    if result.success is not None:
2067
      return result.success
2068
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
2069
 
2070
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
2071
    """
2072
    Parameters:
2073
     - offset
2074
     - limit
2075
    """
2076
    self.send_getIgnoredInventoryUpdateItemids(offset, limit)
2077
    return self.recv_getIgnoredInventoryUpdateItemids()
2078
 
2079
  def send_getIgnoredInventoryUpdateItemids(self, offset, limit):
2080
    self._oprot.writeMessageBegin('getIgnoredInventoryUpdateItemids', TMessageType.CALL, self._seqid)
2081
    args = getIgnoredInventoryUpdateItemids_args()
2082
    args.offset = offset
2083
    args.limit = limit
2084
    args.write(self._oprot)
2085
    self._oprot.writeMessageEnd()
2086
    self._oprot.trans.flush()
2087
 
2088
  def recv_getIgnoredInventoryUpdateItemids(self, ):
2089
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2090
    if mtype == TMessageType.EXCEPTION:
2091
      x = TApplicationException()
2092
      x.read(self._iprot)
2093
      self._iprot.readMessageEnd()
2094
      raise x
2095
    result = getIgnoredInventoryUpdateItemids_result()
2096
    result.read(self._iprot)
2097
    self._iprot.readMessageEnd()
2098
    if result.success is not None:
2099
      return result.success
2100
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
2101
 
6821 amar.kumar 2102
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2103
    """
2104
    Parameters:
2105
     - item_id
2106
     - numOfDaysStock
2107
     - minStockLevel
2108
    """
2109
    self.send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel)
2110
    self.recv_updateItemStockPurchaseParams()
6531 vikram.rag 2111
 
6821 amar.kumar 2112
  def send_updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2113
    self._oprot.writeMessageBegin('updateItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2114
    args = updateItemStockPurchaseParams_args()
2115
    args.item_id = item_id
2116
    args.numOfDaysStock = numOfDaysStock
2117
    args.minStockLevel = minStockLevel
2118
    args.write(self._oprot)
2119
    self._oprot.writeMessageEnd()
2120
    self._oprot.trans.flush()
2121
 
2122
  def recv_updateItemStockPurchaseParams(self, ):
2123
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2124
    if mtype == TMessageType.EXCEPTION:
2125
      x = TApplicationException()
2126
      x.read(self._iprot)
2127
      self._iprot.readMessageEnd()
2128
      raise x
2129
    result = updateItemStockPurchaseParams_result()
2130
    result.read(self._iprot)
2131
    self._iprot.readMessageEnd()
2132
    return
2133
 
2134
  def getItemStockPurchaseParams(self, itemId):
2135
    """
2136
    Parameters:
2137
     - itemId
2138
    """
2139
    self.send_getItemStockPurchaseParams(itemId)
2140
    return self.recv_getItemStockPurchaseParams()
2141
 
2142
  def send_getItemStockPurchaseParams(self, itemId):
2143
    self._oprot.writeMessageBegin('getItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2144
    args = getItemStockPurchaseParams_args()
2145
    args.itemId = itemId
2146
    args.write(self._oprot)
2147
    self._oprot.writeMessageEnd()
2148
    self._oprot.trans.flush()
2149
 
2150
  def recv_getItemStockPurchaseParams(self, ):
2151
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2152
    if mtype == TMessageType.EXCEPTION:
2153
      x = TApplicationException()
2154
      x.read(self._iprot)
2155
      self._iprot.readMessageEnd()
2156
      raise x
2157
    result = getItemStockPurchaseParams_result()
2158
    result.read(self._iprot)
2159
    self._iprot.readMessageEnd()
2160
    if result.success is not None:
2161
      return result.success
2162
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
2163
 
2164
  def addOosStatusForItem(self, oosStatusMap, date):
2165
    """
2166
    Parameters:
2167
     - oosStatusMap
2168
     - date
2169
    """
2170
    self.send_addOosStatusForItem(oosStatusMap, date)
2171
    self.recv_addOosStatusForItem()
2172
 
2173
  def send_addOosStatusForItem(self, oosStatusMap, date):
2174
    self._oprot.writeMessageBegin('addOosStatusForItem', TMessageType.CALL, self._seqid)
2175
    args = addOosStatusForItem_args()
2176
    args.oosStatusMap = oosStatusMap
2177
    args.date = date
2178
    args.write(self._oprot)
2179
    self._oprot.writeMessageEnd()
2180
    self._oprot.trans.flush()
2181
 
2182
  def recv_addOosStatusForItem(self, ):
2183
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2184
    if mtype == TMessageType.EXCEPTION:
2185
      x = TApplicationException()
2186
      x.read(self._iprot)
2187
      self._iprot.readMessageEnd()
2188
      raise x
2189
    result = addOosStatusForItem_result()
2190
    result.read(self._iprot)
2191
    self._iprot.readMessageEnd()
2192
    return
2193
 
6832 amar.kumar 2194
  def getOosStatusesForXDaysForItem(self, itemId, days):
2195
    """
2196
    Parameters:
2197
     - itemId
2198
     - days
2199
    """
2200
    self.send_getOosStatusesForXDaysForItem(itemId, days)
2201
    return self.recv_getOosStatusesForXDaysForItem()
6821 amar.kumar 2202
 
6832 amar.kumar 2203
  def send_getOosStatusesForXDaysForItem(self, itemId, days):
2204
    self._oprot.writeMessageBegin('getOosStatusesForXDaysForItem', TMessageType.CALL, self._seqid)
2205
    args = getOosStatusesForXDaysForItem_args()
2206
    args.itemId = itemId
2207
    args.days = days
2208
    args.write(self._oprot)
2209
    self._oprot.writeMessageEnd()
2210
    self._oprot.trans.flush()
2211
 
2212
  def recv_getOosStatusesForXDaysForItem(self, ):
2213
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2214
    if mtype == TMessageType.EXCEPTION:
2215
      x = TApplicationException()
2216
      x.read(self._iprot)
2217
      self._iprot.readMessageEnd()
2218
      raise x
2219
    result = getOosStatusesForXDaysForItem_result()
2220
    result.read(self._iprot)
2221
    self._iprot.readMessageEnd()
2222
    if result.success is not None:
2223
      return result.success
2224
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
2225
 
6857 amar.kumar 2226
  def getNonZeroItemStockPurchaseParams(self, ):
2227
    self.send_getNonZeroItemStockPurchaseParams()
2228
    return self.recv_getNonZeroItemStockPurchaseParams()
6832 amar.kumar 2229
 
6857 amar.kumar 2230
  def send_getNonZeroItemStockPurchaseParams(self, ):
2231
    self._oprot.writeMessageBegin('getNonZeroItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2232
    args = getNonZeroItemStockPurchaseParams_args()
2233
    args.write(self._oprot)
2234
    self._oprot.writeMessageEnd()
2235
    self._oprot.trans.flush()
2236
 
2237
  def recv_getNonZeroItemStockPurchaseParams(self, ):
2238
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2239
    if mtype == TMessageType.EXCEPTION:
2240
      x = TApplicationException()
2241
      x.read(self._iprot)
2242
      self._iprot.readMessageEnd()
2243
      raise x
2244
    result = getNonZeroItemStockPurchaseParams_result()
2245
    result.read(self._iprot)
2246
    self._iprot.readMessageEnd()
2247
    if result.success is not None:
2248
      return result.success
2249
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
2250
 
7149 amar.kumar 2251
  def getBillableInventoryAndPendingOrders(self, ):
2252
    """
2253
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
2254
    """
2255
    self.send_getBillableInventoryAndPendingOrders()
2256
    return self.recv_getBillableInventoryAndPendingOrders()
6857 amar.kumar 2257
 
7149 amar.kumar 2258
  def send_getBillableInventoryAndPendingOrders(self, ):
2259
    self._oprot.writeMessageBegin('getBillableInventoryAndPendingOrders', TMessageType.CALL, self._seqid)
2260
    args = getBillableInventoryAndPendingOrders_args()
2261
    args.write(self._oprot)
2262
    self._oprot.writeMessageEnd()
2263
    self._oprot.trans.flush()
2264
 
2265
  def recv_getBillableInventoryAndPendingOrders(self, ):
2266
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2267
    if mtype == TMessageType.EXCEPTION:
2268
      x = TApplicationException()
2269
      x.read(self._iprot)
2270
      self._iprot.readMessageEnd()
2271
      raise x
2272
    result = getBillableInventoryAndPendingOrders_result()
2273
    result.read(self._iprot)
2274
    self._iprot.readMessageEnd()
2275
    if result.success is not None:
2276
      return result.success
2277
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
2278
 
7281 kshitij.so 2279
  def getWarehouseName(self, warehouse_id):
2280
    """
2281
    Parameters:
2282
     - warehouse_id
2283
    """
2284
    self.send_getWarehouseName(warehouse_id)
2285
    return self.recv_getWarehouseName()
7149 amar.kumar 2286
 
7281 kshitij.so 2287
  def send_getWarehouseName(self, warehouse_id):
2288
    self._oprot.writeMessageBegin('getWarehouseName', TMessageType.CALL, self._seqid)
2289
    args = getWarehouseName_args()
2290
    args.warehouse_id = warehouse_id
2291
    args.write(self._oprot)
2292
    self._oprot.writeMessageEnd()
2293
    self._oprot.trans.flush()
2294
 
2295
  def recv_getWarehouseName(self, ):
2296
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2297
    if mtype == TMessageType.EXCEPTION:
2298
      x = TApplicationException()
2299
      x.read(self._iprot)
2300
      self._iprot.readMessageEnd()
2301
      raise x
2302
    result = getWarehouseName_result()
2303
    result.read(self._iprot)
2304
    self._iprot.readMessageEnd()
2305
    if result.success is not None:
2306
      return result.success
2307
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseName failed: unknown result");
2308
 
2309
  def getAmazonInventoryForItem(self, item_id):
2310
    """
2311
    Parameters:
2312
     - item_id
2313
    """
2314
    self.send_getAmazonInventoryForItem(item_id)
2315
    return self.recv_getAmazonInventoryForItem()
2316
 
2317
  def send_getAmazonInventoryForItem(self, item_id):
2318
    self._oprot.writeMessageBegin('getAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2319
    args = getAmazonInventoryForItem_args()
2320
    args.item_id = item_id
2321
    args.write(self._oprot)
2322
    self._oprot.writeMessageEnd()
2323
    self._oprot.trans.flush()
2324
 
2325
  def recv_getAmazonInventoryForItem(self, ):
2326
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2327
    if mtype == TMessageType.EXCEPTION:
2328
      x = TApplicationException()
2329
      x.read(self._iprot)
2330
      self._iprot.readMessageEnd()
2331
      raise x
2332
    result = getAmazonInventoryForItem_result()
2333
    result.read(self._iprot)
2334
    self._iprot.readMessageEnd()
2335
    if result.success is not None:
2336
      return result.success
2337
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonInventoryForItem failed: unknown result");
2338
 
2339
  def getAllAmazonInventory(self, ):
2340
    self.send_getAllAmazonInventory()
2341
    return self.recv_getAllAmazonInventory()
2342
 
2343
  def send_getAllAmazonInventory(self, ):
2344
    self._oprot.writeMessageBegin('getAllAmazonInventory', TMessageType.CALL, self._seqid)
2345
    args = getAllAmazonInventory_args()
2346
    args.write(self._oprot)
2347
    self._oprot.writeMessageEnd()
2348
    self._oprot.trans.flush()
2349
 
2350
  def recv_getAllAmazonInventory(self, ):
2351
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2352
    if mtype == TMessageType.EXCEPTION:
2353
      x = TApplicationException()
2354
      x.read(self._iprot)
2355
      self._iprot.readMessageEnd()
2356
      raise x
2357
    result = getAllAmazonInventory_result()
2358
    result.read(self._iprot)
2359
    self._iprot.readMessageEnd()
2360
    if result.success is not None:
2361
      return result.success
2362
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonInventory failed: unknown result");
2363
 
2364
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot):
2365
    """
2366
    Parameters:
2367
     - amazonInventorySnapshot
2368
    """
2369
    self.send_addOrUpdateAmazonInventoryForItem(amazonInventorySnapshot)
2370
    self.recv_addOrUpdateAmazonInventoryForItem()
2371
 
2372
  def send_addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot):
2373
    self._oprot.writeMessageBegin('addOrUpdateAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2374
    args = addOrUpdateAmazonInventoryForItem_args()
2375
    args.amazonInventorySnapshot = amazonInventorySnapshot
2376
    args.write(self._oprot)
2377
    self._oprot.writeMessageEnd()
2378
    self._oprot.trans.flush()
2379
 
2380
  def recv_addOrUpdateAmazonInventoryForItem(self, ):
2381
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2382
    if mtype == TMessageType.EXCEPTION:
2383
      x = TApplicationException()
2384
      x.read(self._iprot)
2385
      self._iprot.readMessageEnd()
2386
      raise x
2387
    result = addOrUpdateAmazonInventoryForItem_result()
2388
    result.read(self._iprot)
2389
    self._iprot.readMessageEnd()
2390
    return
2391
 
7972 amar.kumar 2392
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
2393
    """
2394
    Parameters:
2395
     - itemId
2396
     - numberOfDays
2397
    """
2398
    self.send_getLastNdaySaleForItem(itemId, numberOfDays)
2399
    return self.recv_getLastNdaySaleForItem()
7281 kshitij.so 2400
 
7972 amar.kumar 2401
  def send_getLastNdaySaleForItem(self, itemId, numberOfDays):
2402
    self._oprot.writeMessageBegin('getLastNdaySaleForItem', TMessageType.CALL, self._seqid)
2403
    args = getLastNdaySaleForItem_args()
2404
    args.itemId = itemId
2405
    args.numberOfDays = numberOfDays
2406
    args.write(self._oprot)
2407
    self._oprot.writeMessageEnd()
2408
    self._oprot.trans.flush()
2409
 
2410
  def recv_getLastNdaySaleForItem(self, ):
2411
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2412
    if mtype == TMessageType.EXCEPTION:
2413
      x = TApplicationException()
2414
      x.read(self._iprot)
2415
      self._iprot.readMessageEnd()
2416
      raise x
2417
    result = getLastNdaySaleForItem_result()
2418
    result.read(self._iprot)
2419
    self._iprot.readMessageEnd()
2420
    if result.success is not None:
2421
      return result.success
2422
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastNdaySaleForItem failed: unknown result");
2423
 
8282 kshitij.so 2424
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2425
    """
2426
    Parameters:
2427
     - amazonfbainventorysnapshot
2428
    """
2429
    self.send_addOrUpdateAmazonFbaInventory(amazonfbainventorysnapshot)
2430
    self.recv_addOrUpdateAmazonFbaInventory()
2431
 
2432
  def send_addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2433
    self._oprot.writeMessageBegin('addOrUpdateAmazonFbaInventory', TMessageType.CALL, self._seqid)
2434
    args = addOrUpdateAmazonFbaInventory_args()
2435
    args.amazonfbainventorysnapshot = amazonfbainventorysnapshot
2436
    args.write(self._oprot)
2437
    self._oprot.writeMessageEnd()
2438
    self._oprot.trans.flush()
2439
 
2440
  def recv_addOrUpdateAmazonFbaInventory(self, ):
2441
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2442
    if mtype == TMessageType.EXCEPTION:
2443
      x = TApplicationException()
2444
      x.read(self._iprot)
2445
      self._iprot.readMessageEnd()
2446
      raise x
2447
    result = addOrUpdateAmazonFbaInventory_result()
2448
    result.read(self._iprot)
2449
    self._iprot.readMessageEnd()
2450
    return
2451
 
8182 amar.kumar 2452
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2453
    """
2454
    Parameters:
2455
     - itemId
2456
     - warehouseId
2457
     - holdQuantity
2458
     - source
2459
    """
2460
    self.send_addUpdateHoldInventory(itemId, warehouseId, holdQuantity, source)
2461
    self.recv_addUpdateHoldInventory()
7972 amar.kumar 2462
 
8182 amar.kumar 2463
  def send_addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2464
    self._oprot.writeMessageBegin('addUpdateHoldInventory', TMessageType.CALL, self._seqid)
2465
    args = addUpdateHoldInventory_args()
2466
    args.itemId = itemId
2467
    args.warehouseId = warehouseId
2468
    args.holdQuantity = holdQuantity
2469
    args.source = source
2470
    args.write(self._oprot)
2471
    self._oprot.writeMessageEnd()
2472
    self._oprot.trans.flush()
2473
 
2474
  def recv_addUpdateHoldInventory(self, ):
2475
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2476
    if mtype == TMessageType.EXCEPTION:
2477
      x = TApplicationException()
2478
      x.read(self._iprot)
2479
      self._iprot.readMessageEnd()
2480
      raise x
2481
    result = addUpdateHoldInventory_result()
2482
    result.read(self._iprot)
2483
    self._iprot.readMessageEnd()
2484
    return
2485
 
8282 kshitij.so 2486
  def getAmazonFbaItemInventory(self, itemId):
2487
    """
2488
    Parameters:
2489
     - itemId
2490
    """
2491
    self.send_getAmazonFbaItemInventory(itemId)
2492
    return self.recv_getAmazonFbaItemInventory()
8182 amar.kumar 2493
 
8282 kshitij.so 2494
  def send_getAmazonFbaItemInventory(self, itemId):
2495
    self._oprot.writeMessageBegin('getAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2496
    args = getAmazonFbaItemInventory_args()
2497
    args.itemId = itemId
2498
    args.write(self._oprot)
2499
    self._oprot.writeMessageEnd()
2500
    self._oprot.trans.flush()
2501
 
2502
  def recv_getAmazonFbaItemInventory(self, ):
2503
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2504
    if mtype == TMessageType.EXCEPTION:
2505
      x = TApplicationException()
2506
      x.read(self._iprot)
2507
      self._iprot.readMessageEnd()
2508
      raise x
2509
    result = getAmazonFbaItemInventory_result()
2510
    result.read(self._iprot)
2511
    self._iprot.readMessageEnd()
2512
    if result.success is not None:
2513
      return result.success
2514
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonFbaItemInventory failed: unknown result");
2515
 
8363 vikram.rag 2516
  def getAllAmazonFbaItemInventory(self, ):
2517
    self.send_getAllAmazonFbaItemInventory()
2518
    return self.recv_getAllAmazonFbaItemInventory()
8282 kshitij.so 2519
 
8363 vikram.rag 2520
  def send_getAllAmazonFbaItemInventory(self, ):
2521
    self._oprot.writeMessageBegin('getAllAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2522
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 2523
    args.write(self._oprot)
2524
    self._oprot.writeMessageEnd()
2525
    self._oprot.trans.flush()
2526
 
8363 vikram.rag 2527
  def recv_getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 2528
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2529
    if mtype == TMessageType.EXCEPTION:
2530
      x = TApplicationException()
2531
      x.read(self._iprot)
2532
      self._iprot.readMessageEnd()
2533
      raise x
8363 vikram.rag 2534
    result = getAllAmazonFbaItemInventory_result()
8282 kshitij.so 2535
    result.read(self._iprot)
2536
    self._iprot.readMessageEnd()
2537
    if result.success is not None:
2538
      return result.success
8363 vikram.rag 2539
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonFbaItemInventory failed: unknown result");
8282 kshitij.so 2540
 
8363 vikram.rag 2541
  def getOursGoodWarehouseIdsForLocation(self, state_id):
2542
    """
2543
    Parameters:
2544
     - state_id
2545
    """
2546
    self.send_getOursGoodWarehouseIdsForLocation(state_id)
2547
    return self.recv_getOursGoodWarehouseIdsForLocation()
8282 kshitij.so 2548
 
8363 vikram.rag 2549
  def send_getOursGoodWarehouseIdsForLocation(self, state_id):
2550
    self._oprot.writeMessageBegin('getOursGoodWarehouseIdsForLocation', TMessageType.CALL, self._seqid)
2551
    args = getOursGoodWarehouseIdsForLocation_args()
2552
    args.state_id = state_id
2553
    args.write(self._oprot)
2554
    self._oprot.writeMessageEnd()
2555
    self._oprot.trans.flush()
2556
 
2557
  def recv_getOursGoodWarehouseIdsForLocation(self, ):
2558
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2559
    if mtype == TMessageType.EXCEPTION:
2560
      x = TApplicationException()
2561
      x.read(self._iprot)
2562
      self._iprot.readMessageEnd()
2563
      raise x
2564
    result = getOursGoodWarehouseIdsForLocation_result()
2565
    result.read(self._iprot)
2566
    self._iprot.readMessageEnd()
2567
    if result.success is not None:
2568
      return result.success
2569
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOursGoodWarehouseIdsForLocation failed: unknown result");
2570
 
8955 vikram.rag 2571
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2572
    """
2573
    Parameters:
2574
     - id
2575
     - warehouse_id
2576
     - source
2577
    """
2578
    self.send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(id, warehouse_id, source)
2579
    return self.recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource()
8363 vikram.rag 2580
 
8955 vikram.rag 2581
  def send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2582
    self._oprot.writeMessageBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource', TMessageType.CALL, self._seqid)
2583
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
2584
    args.id = id
2585
    args.warehouse_id = warehouse_id
2586
    args.source = source
2587
    args.write(self._oprot)
2588
    self._oprot.writeMessageEnd()
2589
    self._oprot.trans.flush()
2590
 
2591
  def recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, ):
2592
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2593
    if mtype == TMessageType.EXCEPTION:
2594
      x = TApplicationException()
2595
      x.read(self._iprot)
2596
      self._iprot.readMessageEnd()
2597
      raise x
2598
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
2599
    result.read(self._iprot)
2600
    self._iprot.readMessageEnd()
2601
    if result.success is not None:
2602
      return result.success
2603
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetailForItemForWarehouseIdExceptSource failed: unknown result");
2604
 
9404 vikram.rag 2605
  def getSnapdealInventoryForItem(self, item_id):
2606
    """
2607
    Parameters:
2608
     - item_id
2609
    """
2610
    self.send_getSnapdealInventoryForItem(item_id)
2611
    return self.recv_getSnapdealInventoryForItem()
8955 vikram.rag 2612
 
9404 vikram.rag 2613
  def send_getSnapdealInventoryForItem(self, item_id):
2614
    self._oprot.writeMessageBegin('getSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2615
    args = getSnapdealInventoryForItem_args()
2616
    args.item_id = item_id
2617
    args.write(self._oprot)
2618
    self._oprot.writeMessageEnd()
2619
    self._oprot.trans.flush()
2620
 
2621
  def recv_getSnapdealInventoryForItem(self, ):
2622
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2623
    if mtype == TMessageType.EXCEPTION:
2624
      x = TApplicationException()
2625
      x.read(self._iprot)
2626
      self._iprot.readMessageEnd()
2627
      raise x
2628
    result = getSnapdealInventoryForItem_result()
2629
    result.read(self._iprot)
2630
    self._iprot.readMessageEnd()
2631
    if result.success is not None:
2632
      return result.success
2633
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventoryForItem failed: unknown result");
2634
 
2635
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2636
    """
2637
    Parameters:
2638
     - snapdealinventoryitem
2639
    """
2640
    self.send_addOrUpdateSnapdealInventoryForItem(snapdealinventoryitem)
2641
    self.recv_addOrUpdateSnapdealInventoryForItem()
2642
 
2643
  def send_addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2644
    self._oprot.writeMessageBegin('addOrUpdateSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2645
    args = addOrUpdateSnapdealInventoryForItem_args()
2646
    args.snapdealinventoryitem = snapdealinventoryitem
2647
    args.write(self._oprot)
2648
    self._oprot.writeMessageEnd()
2649
    self._oprot.trans.flush()
2650
 
2651
  def recv_addOrUpdateSnapdealInventoryForItem(self, ):
2652
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2653
    if mtype == TMessageType.EXCEPTION:
2654
      x = TApplicationException()
2655
      x.read(self._iprot)
2656
      self._iprot.readMessageEnd()
2657
      raise x
2658
    result = addOrUpdateSnapdealInventoryForItem_result()
2659
    result.read(self._iprot)
2660
    self._iprot.readMessageEnd()
2661
    return
2662
 
2663
  def getNlcForWarehouse(self, warehouse_id, item_id):
2664
    """
2665
    Parameters:
2666
     - warehouse_id
2667
     - item_id
2668
    """
2669
    self.send_getNlcForWarehouse(warehouse_id, item_id)
2670
    return self.recv_getNlcForWarehouse()
2671
 
2672
  def send_getNlcForWarehouse(self, warehouse_id, item_id):
2673
    self._oprot.writeMessageBegin('getNlcForWarehouse', TMessageType.CALL, self._seqid)
2674
    args = getNlcForWarehouse_args()
2675
    args.warehouse_id = warehouse_id
2676
    args.item_id = item_id
2677
    args.write(self._oprot)
2678
    self._oprot.writeMessageEnd()
2679
    self._oprot.trans.flush()
2680
 
2681
  def recv_getNlcForWarehouse(self, ):
2682
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2683
    if mtype == TMessageType.EXCEPTION:
2684
      x = TApplicationException()
2685
      x.read(self._iprot)
2686
      self._iprot.readMessageEnd()
2687
      raise x
2688
    result = getNlcForWarehouse_result()
2689
    result.read(self._iprot)
2690
    self._iprot.readMessageEnd()
2691
    if result.success is not None:
2692
      return result.success
2693
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
2694
 
9495 vikram.rag 2695
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2696
    """
2697
    Parameters:
2698
     - allamazonfbainventorysnapshot
2699
    """
2700
    self.send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot)
2701
    self.recv_addOrUpdateAllAmazonFbaInventory()
9404 vikram.rag 2702
 
9495 vikram.rag 2703
  def send_addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2704
    self._oprot.writeMessageBegin('addOrUpdateAllAmazonFbaInventory', TMessageType.CALL, self._seqid)
2705
    args = addOrUpdateAllAmazonFbaInventory_args()
2706
    args.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 2707
    args.write(self._oprot)
2708
    self._oprot.writeMessageEnd()
2709
    self._oprot.trans.flush()
2710
 
9495 vikram.rag 2711
  def recv_addOrUpdateAllAmazonFbaInventory(self, ):
9456 vikram.rag 2712
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2713
    if mtype == TMessageType.EXCEPTION:
2714
      x = TApplicationException()
2715
      x.read(self._iprot)
2716
      self._iprot.readMessageEnd()
2717
      raise x
9495 vikram.rag 2718
    result = addOrUpdateAllAmazonFbaInventory_result()
9456 vikram.rag 2719
    result.read(self._iprot)
2720
    self._iprot.readMessageEnd()
9495 vikram.rag 2721
    return
9456 vikram.rag 2722
 
9495 vikram.rag 2723
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
9482 vikram.rag 2724
    """
2725
    Parameters:
9495 vikram.rag 2726
     - allsnapdealinventorysnapshot
9482 vikram.rag 2727
    """
9495 vikram.rag 2728
    self.send_addOrUpdateAllSnapdealInventory(allsnapdealinventorysnapshot)
2729
    self.recv_addOrUpdateAllSnapdealInventory()
9456 vikram.rag 2730
 
9495 vikram.rag 2731
  def send_addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
2732
    self._oprot.writeMessageBegin('addOrUpdateAllSnapdealInventory', TMessageType.CALL, self._seqid)
2733
    args = addOrUpdateAllSnapdealInventory_args()
2734
    args.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 2735
    args.write(self._oprot)
2736
    self._oprot.writeMessageEnd()
2737
    self._oprot.trans.flush()
2738
 
9495 vikram.rag 2739
  def recv_addOrUpdateAllSnapdealInventory(self, ):
9482 vikram.rag 2740
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2741
    if mtype == TMessageType.EXCEPTION:
2742
      x = TApplicationException()
2743
      x.read(self._iprot)
2744
      self._iprot.readMessageEnd()
2745
      raise x
9495 vikram.rag 2746
    result = addOrUpdateAllSnapdealInventory_result()
9482 vikram.rag 2747
    result.read(self._iprot)
2748
    self._iprot.readMessageEnd()
2749
    return
2750
 
9495 vikram.rag 2751
  def getSnapdealInventorySnapshot(self, ):
2752
    self.send_getSnapdealInventorySnapshot()
2753
    return self.recv_getSnapdealInventorySnapshot()
9482 vikram.rag 2754
 
9495 vikram.rag 2755
  def send_getSnapdealInventorySnapshot(self, ):
2756
    self._oprot.writeMessageBegin('getSnapdealInventorySnapshot', TMessageType.CALL, self._seqid)
2757
    args = getSnapdealInventorySnapshot_args()
2758
    args.write(self._oprot)
2759
    self._oprot.writeMessageEnd()
2760
    self._oprot.trans.flush()
2761
 
2762
  def recv_getSnapdealInventorySnapshot(self, ):
2763
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2764
    if mtype == TMessageType.EXCEPTION:
2765
      x = TApplicationException()
2766
      x.read(self._iprot)
2767
      self._iprot.readMessageEnd()
2768
      raise x
2769
    result = getSnapdealInventorySnapshot_result()
2770
    result.read(self._iprot)
2771
    self._iprot.readMessageEnd()
2772
    if result.success is not None:
2773
      return result.success
2774
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventorySnapshot failed: unknown result");
2775
 
2776
 
5944 mandeep.dh 2777
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2778
  def __init__(self, handler):
2779
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2780
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
2781
    self._processMap["addVendor"] = Processor.process_addVendor
2782
    self._processMap["updateInventoryHistory"] = Processor.process_updateInventoryHistory
2783
    self._processMap["updateInventory"] = Processor.process_updateInventory
2784
    self._processMap["addInventory"] = Processor.process_addInventory
2785
    self._processMap["retireWarehouse"] = Processor.process_retireWarehouse
2786
    self._processMap["getItemInventoryByItemId"] = Processor.process_getItemInventoryByItemId
2787
    self._processMap["getItemAvailibilityAtWarehouse"] = Processor.process_getItemAvailibilityAtWarehouse
2788
    self._processMap["getItemAvailabilityAtLocation"] = Processor.process_getItemAvailabilityAtLocation
2789
    self._processMap["getAllWarehouses"] = Processor.process_getAllWarehouses
2790
    self._processMap["getWarehouse"] = Processor.process_getWarehouse
2791
    self._processMap["getAllItemsForWarehouse"] = Processor.process_getAllItemsForWarehouse
5966 rajveer 2792
    self._processMap["isOrderBillable"] = Processor.process_isOrderBillable
5944 mandeep.dh 2793
    self._processMap["reserveItemInWarehouse"] = Processor.process_reserveItemInWarehouse
7968 amar.kumar 2794
    self._processMap["updateReservationForOrder"] = Processor.process_updateReservationForOrder
5944 mandeep.dh 2795
    self._processMap["reduceReservationCount"] = Processor.process_reduceReservationCount
2796
    self._processMap["getItemPricing"] = Processor.process_getItemPricing
2797
    self._processMap["getAllItemPricing"] = Processor.process_getAllItemPricing
2798
    self._processMap["addVendorItemPricing"] = Processor.process_addVendorItemPricing
2799
    self._processMap["getVendor"] = Processor.process_getVendor
2800
    self._processMap["getAllVendors"] = Processor.process_getAllVendors
2801
    self._processMap["addVendorItemMapping"] = Processor.process_addVendorItemMapping
2802
    self._processMap["getVendorItemMappings"] = Processor.process_getVendorItemMappings
2803
    self._processMap["getPendingOrdersInventory"] = Processor.process_getPendingOrdersInventory
2804
    self._processMap["getWarehouses"] = Processor.process_getWarehouses
2805
    self._processMap["resetAvailability"] = Processor.process_resetAvailability
2806
    self._processMap["resetAvailabilityForWarehouse"] = Processor.process_resetAvailabilityForWarehouse
2807
    self._processMap["getItemKeysToBeProcessed"] = Processor.process_getItemKeysToBeProcessed
2808
    self._processMap["markMissedInventoryUpdatesAsProcessed"] = Processor.process_markMissedInventoryUpdatesAsProcessed
2809
    self._processMap["getIgnoredItemKeys"] = Processor.process_getIgnoredItemKeys
2810
    self._processMap["addBadInventory"] = Processor.process_addBadInventory
2811
    self._processMap["getShippingLocations"] = Processor.process_getShippingLocations
2812
    self._processMap["getAllVendorItemMappings"] = Processor.process_getAllVendorItemMappings
2813
    self._processMap["getInventorySnapshot"] = Processor.process_getInventorySnapshot
2814
    self._processMap["clearItemAvailabilityCache"] = Processor.process_clearItemAvailabilityCache
2815
    self._processMap["updateVendorString"] = Processor.process_updateVendorString
6096 amit.gupta 2816
    self._processMap["clearItemAvailabilityCacheForItem"] = Processor.process_clearItemAvailabilityCacheForItem
6467 amar.kumar 2817
    self._processMap["getOurWarehouseIdForVendor"] = Processor.process_getOurWarehouseIdForVendor
6484 amar.kumar 2818
    self._processMap["getItemAvailabilitiesAtOurWarehouses"] = Processor.process_getItemAvailabilitiesAtOurWarehouses
6531 vikram.rag 2819
    self._processMap["getMonitoredWarehouseForVendors"] = Processor.process_getMonitoredWarehouseForVendors
2820
    self._processMap["getIgnoredWarehouseidsAndItemids"] = Processor.process_getIgnoredWarehouseidsAndItemids
2821
    self._processMap["insertItemtoIgnoreInventoryUpdatelist"] = Processor.process_insertItemtoIgnoreInventoryUpdatelist
2822
    self._processMap["deleteItemFromIgnoredInventoryUpdateList"] = Processor.process_deleteItemFromIgnoredInventoryUpdateList
2823
    self._processMap["getAllIgnoredInventoryupdateItemsCount"] = Processor.process_getAllIgnoredInventoryupdateItemsCount
2824
    self._processMap["getIgnoredInventoryUpdateItemids"] = Processor.process_getIgnoredInventoryUpdateItemids
6821 amar.kumar 2825
    self._processMap["updateItemStockPurchaseParams"] = Processor.process_updateItemStockPurchaseParams
2826
    self._processMap["getItemStockPurchaseParams"] = Processor.process_getItemStockPurchaseParams
2827
    self._processMap["addOosStatusForItem"] = Processor.process_addOosStatusForItem
6832 amar.kumar 2828
    self._processMap["getOosStatusesForXDaysForItem"] = Processor.process_getOosStatusesForXDaysForItem
6857 amar.kumar 2829
    self._processMap["getNonZeroItemStockPurchaseParams"] = Processor.process_getNonZeroItemStockPurchaseParams
7149 amar.kumar 2830
    self._processMap["getBillableInventoryAndPendingOrders"] = Processor.process_getBillableInventoryAndPendingOrders
7281 kshitij.so 2831
    self._processMap["getWarehouseName"] = Processor.process_getWarehouseName
2832
    self._processMap["getAmazonInventoryForItem"] = Processor.process_getAmazonInventoryForItem
2833
    self._processMap["getAllAmazonInventory"] = Processor.process_getAllAmazonInventory
2834
    self._processMap["addOrUpdateAmazonInventoryForItem"] = Processor.process_addOrUpdateAmazonInventoryForItem
7972 amar.kumar 2835
    self._processMap["getLastNdaySaleForItem"] = Processor.process_getLastNdaySaleForItem
8282 kshitij.so 2836
    self._processMap["addOrUpdateAmazonFbaInventory"] = Processor.process_addOrUpdateAmazonFbaInventory
8182 amar.kumar 2837
    self._processMap["addUpdateHoldInventory"] = Processor.process_addUpdateHoldInventory
8282 kshitij.so 2838
    self._processMap["getAmazonFbaItemInventory"] = Processor.process_getAmazonFbaItemInventory
8363 vikram.rag 2839
    self._processMap["getAllAmazonFbaItemInventory"] = Processor.process_getAllAmazonFbaItemInventory
2840
    self._processMap["getOursGoodWarehouseIdsForLocation"] = Processor.process_getOursGoodWarehouseIdsForLocation
8955 vikram.rag 2841
    self._processMap["getHoldInventoryDetailForItemForWarehouseIdExceptSource"] = Processor.process_getHoldInventoryDetailForItemForWarehouseIdExceptSource
9404 vikram.rag 2842
    self._processMap["getSnapdealInventoryForItem"] = Processor.process_getSnapdealInventoryForItem
2843
    self._processMap["addOrUpdateSnapdealInventoryForItem"] = Processor.process_addOrUpdateSnapdealInventoryForItem
2844
    self._processMap["getNlcForWarehouse"] = Processor.process_getNlcForWarehouse
9482 vikram.rag 2845
    self._processMap["addOrUpdateAllAmazonFbaInventory"] = Processor.process_addOrUpdateAllAmazonFbaInventory
9495 vikram.rag 2846
    self._processMap["addOrUpdateAllSnapdealInventory"] = Processor.process_addOrUpdateAllSnapdealInventory
2847
    self._processMap["getSnapdealInventorySnapshot"] = Processor.process_getSnapdealInventorySnapshot
5944 mandeep.dh 2848
 
2849
  def process(self, iprot, oprot):
2850
    (name, type, seqid) = iprot.readMessageBegin()
2851
    if name not in self._processMap:
2852
      iprot.skip(TType.STRUCT)
2853
      iprot.readMessageEnd()
2854
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2855
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2856
      x.write(oprot)
2857
      oprot.writeMessageEnd()
2858
      oprot.trans.flush()
2859
      return
2860
    else:
2861
      self._processMap[name](self, seqid, iprot, oprot)
2862
    return True
2863
 
2864
  def process_addWarehouse(self, seqid, iprot, oprot):
2865
    args = addWarehouse_args()
2866
    args.read(iprot)
2867
    iprot.readMessageEnd()
2868
    result = addWarehouse_result()
2869
    try:
2870
      result.success = self._handler.addWarehouse(args.warehouse)
2871
    except InventoryServiceException, cex:
2872
      result.cex = cex
2873
    oprot.writeMessageBegin("addWarehouse", TMessageType.REPLY, seqid)
2874
    result.write(oprot)
2875
    oprot.writeMessageEnd()
2876
    oprot.trans.flush()
2877
 
2878
  def process_addVendor(self, seqid, iprot, oprot):
2879
    args = addVendor_args()
2880
    args.read(iprot)
2881
    iprot.readMessageEnd()
2882
    result = addVendor_result()
2883
    try:
2884
      result.success = self._handler.addVendor(args.vendor)
2885
    except InventoryServiceException, cex:
2886
      result.cex = cex
2887
    oprot.writeMessageBegin("addVendor", TMessageType.REPLY, seqid)
2888
    result.write(oprot)
2889
    oprot.writeMessageEnd()
2890
    oprot.trans.flush()
2891
 
2892
  def process_updateInventoryHistory(self, seqid, iprot, oprot):
2893
    args = updateInventoryHistory_args()
2894
    args.read(iprot)
2895
    iprot.readMessageEnd()
2896
    result = updateInventoryHistory_result()
2897
    try:
2898
      self._handler.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability)
2899
    except InventoryServiceException, cex:
2900
      result.cex = cex
2901
    oprot.writeMessageBegin("updateInventoryHistory", TMessageType.REPLY, seqid)
2902
    result.write(oprot)
2903
    oprot.writeMessageEnd()
2904
    oprot.trans.flush()
2905
 
2906
  def process_updateInventory(self, seqid, iprot, oprot):
2907
    args = updateInventory_args()
2908
    args.read(iprot)
2909
    iprot.readMessageEnd()
2910
    result = updateInventory_result()
2911
    try:
2912
      self._handler.updateInventory(args.warehouse_id, args.timestamp, args.availability)
2913
    except InventoryServiceException, cex:
2914
      result.cex = cex
2915
    oprot.writeMessageBegin("updateInventory", TMessageType.REPLY, seqid)
2916
    result.write(oprot)
2917
    oprot.writeMessageEnd()
2918
    oprot.trans.flush()
2919
 
2920
  def process_addInventory(self, seqid, iprot, oprot):
2921
    args = addInventory_args()
2922
    args.read(iprot)
2923
    iprot.readMessageEnd()
2924
    result = addInventory_result()
2925
    try:
2926
      self._handler.addInventory(args.itemId, args.warehouseId, args.quantity)
2927
    except InventoryServiceException, cex:
2928
      result.cex = cex
2929
    oprot.writeMessageBegin("addInventory", TMessageType.REPLY, seqid)
2930
    result.write(oprot)
2931
    oprot.writeMessageEnd()
2932
    oprot.trans.flush()
2933
 
2934
  def process_retireWarehouse(self, seqid, iprot, oprot):
2935
    args = retireWarehouse_args()
2936
    args.read(iprot)
2937
    iprot.readMessageEnd()
2938
    result = retireWarehouse_result()
2939
    try:
2940
      self._handler.retireWarehouse(args.warehouse_id)
2941
    except InventoryServiceException, cex:
2942
      result.cex = cex
2943
    oprot.writeMessageBegin("retireWarehouse", TMessageType.REPLY, seqid)
2944
    result.write(oprot)
2945
    oprot.writeMessageEnd()
2946
    oprot.trans.flush()
2947
 
2948
  def process_getItemInventoryByItemId(self, seqid, iprot, oprot):
2949
    args = getItemInventoryByItemId_args()
2950
    args.read(iprot)
2951
    iprot.readMessageEnd()
2952
    result = getItemInventoryByItemId_result()
2953
    try:
2954
      result.success = self._handler.getItemInventoryByItemId(args.item_id)
2955
    except InventoryServiceException, cex:
2956
      result.cex = cex
2957
    oprot.writeMessageBegin("getItemInventoryByItemId", TMessageType.REPLY, seqid)
2958
    result.write(oprot)
2959
    oprot.writeMessageEnd()
2960
    oprot.trans.flush()
2961
 
2962
  def process_getItemAvailibilityAtWarehouse(self, seqid, iprot, oprot):
2963
    args = getItemAvailibilityAtWarehouse_args()
2964
    args.read(iprot)
2965
    iprot.readMessageEnd()
2966
    result = getItemAvailibilityAtWarehouse_result()
2967
    try:
2968
      result.success = self._handler.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id)
2969
    except InventoryServiceException, cex:
2970
      result.cex = cex
2971
    oprot.writeMessageBegin("getItemAvailibilityAtWarehouse", TMessageType.REPLY, seqid)
2972
    result.write(oprot)
2973
    oprot.writeMessageEnd()
2974
    oprot.trans.flush()
2975
 
2976
  def process_getItemAvailabilityAtLocation(self, seqid, iprot, oprot):
2977
    args = getItemAvailabilityAtLocation_args()
2978
    args.read(iprot)
2979
    iprot.readMessageEnd()
2980
    result = getItemAvailabilityAtLocation_result()
2981
    try:
5978 rajveer 2982
      result.success = self._handler.getItemAvailabilityAtLocation(args.itemId, args.sourceId)
5944 mandeep.dh 2983
    except InventoryServiceException, isex:
2984
      result.isex = isex
2985
    oprot.writeMessageBegin("getItemAvailabilityAtLocation", TMessageType.REPLY, seqid)
2986
    result.write(oprot)
2987
    oprot.writeMessageEnd()
2988
    oprot.trans.flush()
2989
 
2990
  def process_getAllWarehouses(self, seqid, iprot, oprot):
2991
    args = getAllWarehouses_args()
2992
    args.read(iprot)
2993
    iprot.readMessageEnd()
2994
    result = getAllWarehouses_result()
2995
    try:
2996
      result.success = self._handler.getAllWarehouses(args.isActive)
2997
    except InventoryServiceException, cex:
2998
      result.cex = cex
2999
    oprot.writeMessageBegin("getAllWarehouses", TMessageType.REPLY, seqid)
3000
    result.write(oprot)
3001
    oprot.writeMessageEnd()
3002
    oprot.trans.flush()
3003
 
3004
  def process_getWarehouse(self, seqid, iprot, oprot):
3005
    args = getWarehouse_args()
3006
    args.read(iprot)
3007
    iprot.readMessageEnd()
3008
    result = getWarehouse_result()
3009
    try:
3010
      result.success = self._handler.getWarehouse(args.warehouse_id)
3011
    except InventoryServiceException, cex:
3012
      result.cex = cex
3013
    oprot.writeMessageBegin("getWarehouse", TMessageType.REPLY, seqid)
3014
    result.write(oprot)
3015
    oprot.writeMessageEnd()
3016
    oprot.trans.flush()
3017
 
3018
  def process_getAllItemsForWarehouse(self, seqid, iprot, oprot):
3019
    args = getAllItemsForWarehouse_args()
3020
    args.read(iprot)
3021
    iprot.readMessageEnd()
3022
    result = getAllItemsForWarehouse_result()
3023
    try:
3024
      result.success = self._handler.getAllItemsForWarehouse(args.warehouse_id)
3025
    except InventoryServiceException, cex:
3026
      result.cex = cex
3027
    oprot.writeMessageBegin("getAllItemsForWarehouse", TMessageType.REPLY, seqid)
3028
    result.write(oprot)
3029
    oprot.writeMessageEnd()
3030
    oprot.trans.flush()
3031
 
5966 rajveer 3032
  def process_isOrderBillable(self, seqid, iprot, oprot):
3033
    args = isOrderBillable_args()
3034
    args.read(iprot)
3035
    iprot.readMessageEnd()
3036
    result = isOrderBillable_result()
3037
    result.success = self._handler.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId)
3038
    oprot.writeMessageBegin("isOrderBillable", TMessageType.REPLY, seqid)
3039
    result.write(oprot)
3040
    oprot.writeMessageEnd()
3041
    oprot.trans.flush()
3042
 
5944 mandeep.dh 3043
  def process_reserveItemInWarehouse(self, seqid, iprot, oprot):
3044
    args = reserveItemInWarehouse_args()
3045
    args.read(iprot)
3046
    iprot.readMessageEnd()
3047
    result = reserveItemInWarehouse_result()
3048
    try:
5966 rajveer 3049
      result.success = self._handler.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
5944 mandeep.dh 3050
    except InventoryServiceException, cex:
3051
      result.cex = cex
3052
    oprot.writeMessageBegin("reserveItemInWarehouse", TMessageType.REPLY, seqid)
3053
    result.write(oprot)
3054
    oprot.writeMessageEnd()
3055
    oprot.trans.flush()
3056
 
7968 amar.kumar 3057
  def process_updateReservationForOrder(self, seqid, iprot, oprot):
3058
    args = updateReservationForOrder_args()
3059
    args.read(iprot)
3060
    iprot.readMessageEnd()
3061
    result = updateReservationForOrder_result()
3062
    try:
3063
      result.success = self._handler.updateReservationForOrder(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
3064
    except InventoryServiceException, cex:
3065
      result.cex = cex
3066
    oprot.writeMessageBegin("updateReservationForOrder", TMessageType.REPLY, seqid)
3067
    result.write(oprot)
3068
    oprot.writeMessageEnd()
3069
    oprot.trans.flush()
3070
 
5944 mandeep.dh 3071
  def process_reduceReservationCount(self, seqid, iprot, oprot):
3072
    args = reduceReservationCount_args()
3073
    args.read(iprot)
3074
    iprot.readMessageEnd()
3075
    result = reduceReservationCount_result()
3076
    try:
5966 rajveer 3077
      result.success = self._handler.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity)
5944 mandeep.dh 3078
    except InventoryServiceException, cex:
3079
      result.cex = cex
3080
    oprot.writeMessageBegin("reduceReservationCount", TMessageType.REPLY, seqid)
3081
    result.write(oprot)
3082
    oprot.writeMessageEnd()
3083
    oprot.trans.flush()
3084
 
3085
  def process_getItemPricing(self, seqid, iprot, oprot):
3086
    args = getItemPricing_args()
3087
    args.read(iprot)
3088
    iprot.readMessageEnd()
3089
    result = getItemPricing_result()
3090
    try:
3091
      result.success = self._handler.getItemPricing(args.itemId, args.vendorId)
3092
    except InventoryServiceException, cex:
3093
      result.cex = cex
3094
    oprot.writeMessageBegin("getItemPricing", TMessageType.REPLY, seqid)
3095
    result.write(oprot)
3096
    oprot.writeMessageEnd()
3097
    oprot.trans.flush()
3098
 
3099
  def process_getAllItemPricing(self, seqid, iprot, oprot):
3100
    args = getAllItemPricing_args()
3101
    args.read(iprot)
3102
    iprot.readMessageEnd()
3103
    result = getAllItemPricing_result()
3104
    try:
3105
      result.success = self._handler.getAllItemPricing(args.itemId)
3106
    except InventoryServiceException, cex:
3107
      result.cex = cex
3108
    oprot.writeMessageBegin("getAllItemPricing", TMessageType.REPLY, seqid)
3109
    result.write(oprot)
3110
    oprot.writeMessageEnd()
3111
    oprot.trans.flush()
3112
 
3113
  def process_addVendorItemPricing(self, seqid, iprot, oprot):
3114
    args = addVendorItemPricing_args()
3115
    args.read(iprot)
3116
    iprot.readMessageEnd()
3117
    result = addVendorItemPricing_result()
3118
    try:
3119
      self._handler.addVendorItemPricing(args.vendorItemPricing)
3120
    except InventoryServiceException, cex:
3121
      result.cex = cex
3122
    oprot.writeMessageBegin("addVendorItemPricing", TMessageType.REPLY, seqid)
3123
    result.write(oprot)
3124
    oprot.writeMessageEnd()
3125
    oprot.trans.flush()
3126
 
3127
  def process_getVendor(self, seqid, iprot, oprot):
3128
    args = getVendor_args()
3129
    args.read(iprot)
3130
    iprot.readMessageEnd()
3131
    result = getVendor_result()
3132
    result.success = self._handler.getVendor(args.vendorId)
3133
    oprot.writeMessageBegin("getVendor", TMessageType.REPLY, seqid)
3134
    result.write(oprot)
3135
    oprot.writeMessageEnd()
3136
    oprot.trans.flush()
3137
 
3138
  def process_getAllVendors(self, seqid, iprot, oprot):
3139
    args = getAllVendors_args()
3140
    args.read(iprot)
3141
    iprot.readMessageEnd()
3142
    result = getAllVendors_result()
3143
    result.success = self._handler.getAllVendors()
3144
    oprot.writeMessageBegin("getAllVendors", TMessageType.REPLY, seqid)
3145
    result.write(oprot)
3146
    oprot.writeMessageEnd()
3147
    oprot.trans.flush()
3148
 
3149
  def process_addVendorItemMapping(self, seqid, iprot, oprot):
3150
    args = addVendorItemMapping_args()
3151
    args.read(iprot)
3152
    iprot.readMessageEnd()
3153
    result = addVendorItemMapping_result()
3154
    try:
3155
      self._handler.addVendorItemMapping(args.key, args.vendorItemMapping)
3156
    except InventoryServiceException, cex:
3157
      result.cex = cex
3158
    oprot.writeMessageBegin("addVendorItemMapping", TMessageType.REPLY, seqid)
3159
    result.write(oprot)
3160
    oprot.writeMessageEnd()
3161
    oprot.trans.flush()
3162
 
3163
  def process_getVendorItemMappings(self, seqid, iprot, oprot):
3164
    args = getVendorItemMappings_args()
3165
    args.read(iprot)
3166
    iprot.readMessageEnd()
3167
    result = getVendorItemMappings_result()
3168
    try:
3169
      result.success = self._handler.getVendorItemMappings(args.itemId)
3170
    except InventoryServiceException, cex:
3171
      result.cex = cex
3172
    oprot.writeMessageBegin("getVendorItemMappings", TMessageType.REPLY, seqid)
3173
    result.write(oprot)
3174
    oprot.writeMessageEnd()
3175
    oprot.trans.flush()
3176
 
3177
  def process_getPendingOrdersInventory(self, seqid, iprot, oprot):
3178
    args = getPendingOrdersInventory_args()
3179
    args.read(iprot)
3180
    iprot.readMessageEnd()
3181
    result = getPendingOrdersInventory_result()
3182
    result.success = self._handler.getPendingOrdersInventory(args.vendorid)
3183
    oprot.writeMessageBegin("getPendingOrdersInventory", TMessageType.REPLY, seqid)
3184
    result.write(oprot)
3185
    oprot.writeMessageEnd()
3186
    oprot.trans.flush()
3187
 
3188
  def process_getWarehouses(self, seqid, iprot, oprot):
3189
    args = getWarehouses_args()
3190
    args.read(iprot)
3191
    iprot.readMessageEnd()
3192
    result = getWarehouses_result()
3193
    result.success = self._handler.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId)
3194
    oprot.writeMessageBegin("getWarehouses", TMessageType.REPLY, seqid)
3195
    result.write(oprot)
3196
    oprot.writeMessageEnd()
3197
    oprot.trans.flush()
3198
 
3199
  def process_resetAvailability(self, seqid, iprot, oprot):
3200
    args = resetAvailability_args()
3201
    args.read(iprot)
3202
    iprot.readMessageEnd()
3203
    result = resetAvailability_result()
3204
    try:
3205
      self._handler.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId)
3206
    except InventoryServiceException, cex:
3207
      result.cex = cex
3208
    oprot.writeMessageBegin("resetAvailability", TMessageType.REPLY, seqid)
3209
    result.write(oprot)
3210
    oprot.writeMessageEnd()
3211
    oprot.trans.flush()
3212
 
3213
  def process_resetAvailabilityForWarehouse(self, seqid, iprot, oprot):
3214
    args = resetAvailabilityForWarehouse_args()
3215
    args.read(iprot)
3216
    iprot.readMessageEnd()
3217
    result = resetAvailabilityForWarehouse_result()
3218
    try:
3219
      self._handler.resetAvailabilityForWarehouse(args.warehouseId)
3220
    except InventoryServiceException, cex:
3221
      result.cex = cex
3222
    oprot.writeMessageBegin("resetAvailabilityForWarehouse", TMessageType.REPLY, seqid)
3223
    result.write(oprot)
3224
    oprot.writeMessageEnd()
3225
    oprot.trans.flush()
3226
 
3227
  def process_getItemKeysToBeProcessed(self, seqid, iprot, oprot):
3228
    args = getItemKeysToBeProcessed_args()
3229
    args.read(iprot)
3230
    iprot.readMessageEnd()
3231
    result = getItemKeysToBeProcessed_result()
3232
    result.success = self._handler.getItemKeysToBeProcessed(args.warehouseId)
3233
    oprot.writeMessageBegin("getItemKeysToBeProcessed", TMessageType.REPLY, seqid)
3234
    result.write(oprot)
3235
    oprot.writeMessageEnd()
3236
    oprot.trans.flush()
3237
 
3238
  def process_markMissedInventoryUpdatesAsProcessed(self, seqid, iprot, oprot):
3239
    args = markMissedInventoryUpdatesAsProcessed_args()
3240
    args.read(iprot)
3241
    iprot.readMessageEnd()
3242
    result = markMissedInventoryUpdatesAsProcessed_result()
3243
    self._handler.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId)
3244
    oprot.writeMessageBegin("markMissedInventoryUpdatesAsProcessed", TMessageType.REPLY, seqid)
3245
    result.write(oprot)
3246
    oprot.writeMessageEnd()
3247
    oprot.trans.flush()
3248
 
3249
  def process_getIgnoredItemKeys(self, seqid, iprot, oprot):
3250
    args = getIgnoredItemKeys_args()
3251
    args.read(iprot)
3252
    iprot.readMessageEnd()
3253
    result = getIgnoredItemKeys_result()
3254
    result.success = self._handler.getIgnoredItemKeys()
3255
    oprot.writeMessageBegin("getIgnoredItemKeys", TMessageType.REPLY, seqid)
3256
    result.write(oprot)
3257
    oprot.writeMessageEnd()
3258
    oprot.trans.flush()
3259
 
3260
  def process_addBadInventory(self, seqid, iprot, oprot):
3261
    args = addBadInventory_args()
3262
    args.read(iprot)
3263
    iprot.readMessageEnd()
3264
    result = addBadInventory_result()
3265
    try:
3266
      self._handler.addBadInventory(args.itemId, args.warehouseId, args.quantity)
3267
    except InventoryServiceException, cex:
3268
      result.cex = cex
3269
    oprot.writeMessageBegin("addBadInventory", TMessageType.REPLY, seqid)
3270
    result.write(oprot)
3271
    oprot.writeMessageEnd()
3272
    oprot.trans.flush()
3273
 
3274
  def process_getShippingLocations(self, seqid, iprot, oprot):
3275
    args = getShippingLocations_args()
3276
    args.read(iprot)
3277
    iprot.readMessageEnd()
3278
    result = getShippingLocations_result()
3279
    result.success = self._handler.getShippingLocations()
3280
    oprot.writeMessageBegin("getShippingLocations", TMessageType.REPLY, seqid)
3281
    result.write(oprot)
3282
    oprot.writeMessageEnd()
3283
    oprot.trans.flush()
3284
 
3285
  def process_getAllVendorItemMappings(self, seqid, iprot, oprot):
3286
    args = getAllVendorItemMappings_args()
3287
    args.read(iprot)
3288
    iprot.readMessageEnd()
3289
    result = getAllVendorItemMappings_result()
3290
    result.success = self._handler.getAllVendorItemMappings()
3291
    oprot.writeMessageBegin("getAllVendorItemMappings", TMessageType.REPLY, seqid)
3292
    result.write(oprot)
3293
    oprot.writeMessageEnd()
3294
    oprot.trans.flush()
3295
 
3296
  def process_getInventorySnapshot(self, seqid, iprot, oprot):
3297
    args = getInventorySnapshot_args()
3298
    args.read(iprot)
3299
    iprot.readMessageEnd()
3300
    result = getInventorySnapshot_result()
3301
    result.success = self._handler.getInventorySnapshot(args.warehouseId)
3302
    oprot.writeMessageBegin("getInventorySnapshot", TMessageType.REPLY, seqid)
3303
    result.write(oprot)
3304
    oprot.writeMessageEnd()
3305
    oprot.trans.flush()
3306
 
3307
  def process_clearItemAvailabilityCache(self, seqid, iprot, oprot):
3308
    args = clearItemAvailabilityCache_args()
3309
    args.read(iprot)
3310
    iprot.readMessageEnd()
3311
    result = clearItemAvailabilityCache_result()
3312
    self._handler.clearItemAvailabilityCache()
3313
    oprot.writeMessageBegin("clearItemAvailabilityCache", TMessageType.REPLY, seqid)
3314
    result.write(oprot)
3315
    oprot.writeMessageEnd()
3316
    oprot.trans.flush()
3317
 
3318
  def process_updateVendorString(self, seqid, iprot, oprot):
3319
    args = updateVendorString_args()
3320
    args.read(iprot)
3321
    iprot.readMessageEnd()
3322
    result = updateVendorString_result()
3323
    self._handler.updateVendorString(args.warehouseId, args.vendorString)
3324
    oprot.writeMessageBegin("updateVendorString", TMessageType.REPLY, seqid)
3325
    result.write(oprot)
3326
    oprot.writeMessageEnd()
3327
    oprot.trans.flush()
3328
 
6096 amit.gupta 3329
  def process_clearItemAvailabilityCacheForItem(self, seqid, iprot, oprot):
3330
    args = clearItemAvailabilityCacheForItem_args()
3331
    args.read(iprot)
3332
    iprot.readMessageEnd()
3333
    result = clearItemAvailabilityCacheForItem_result()
3334
    self._handler.clearItemAvailabilityCacheForItem(args.item_id)
3335
    oprot.writeMessageBegin("clearItemAvailabilityCacheForItem", TMessageType.REPLY, seqid)
3336
    result.write(oprot)
3337
    oprot.writeMessageEnd()
3338
    oprot.trans.flush()
5944 mandeep.dh 3339
 
6467 amar.kumar 3340
  def process_getOurWarehouseIdForVendor(self, seqid, iprot, oprot):
3341
    args = getOurWarehouseIdForVendor_args()
3342
    args.read(iprot)
3343
    iprot.readMessageEnd()
3344
    result = getOurWarehouseIdForVendor_result()
7718 amar.kumar 3345
    result.success = self._handler.getOurWarehouseIdForVendor(args.vendorId, args.billingWarehouseId)
6467 amar.kumar 3346
    oprot.writeMessageBegin("getOurWarehouseIdForVendor", TMessageType.REPLY, seqid)
3347
    result.write(oprot)
3348
    oprot.writeMessageEnd()
3349
    oprot.trans.flush()
6096 amit.gupta 3350
 
6484 amar.kumar 3351
  def process_getItemAvailabilitiesAtOurWarehouses(self, seqid, iprot, oprot):
3352
    args = getItemAvailabilitiesAtOurWarehouses_args()
3353
    args.read(iprot)
3354
    iprot.readMessageEnd()
3355
    result = getItemAvailabilitiesAtOurWarehouses_result()
3356
    result.success = self._handler.getItemAvailabilitiesAtOurWarehouses(args.item_ids)
3357
    oprot.writeMessageBegin("getItemAvailabilitiesAtOurWarehouses", TMessageType.REPLY, seqid)
3358
    result.write(oprot)
3359
    oprot.writeMessageEnd()
3360
    oprot.trans.flush()
6467 amar.kumar 3361
 
6531 vikram.rag 3362
  def process_getMonitoredWarehouseForVendors(self, seqid, iprot, oprot):
3363
    args = getMonitoredWarehouseForVendors_args()
3364
    args.read(iprot)
3365
    iprot.readMessageEnd()
3366
    result = getMonitoredWarehouseForVendors_result()
3367
    result.success = self._handler.getMonitoredWarehouseForVendors(args.vendorIds)
3368
    oprot.writeMessageBegin("getMonitoredWarehouseForVendors", TMessageType.REPLY, seqid)
3369
    result.write(oprot)
3370
    oprot.writeMessageEnd()
3371
    oprot.trans.flush()
6484 amar.kumar 3372
 
6531 vikram.rag 3373
  def process_getIgnoredWarehouseidsAndItemids(self, seqid, iprot, oprot):
3374
    args = getIgnoredWarehouseidsAndItemids_args()
3375
    args.read(iprot)
3376
    iprot.readMessageEnd()
3377
    result = getIgnoredWarehouseidsAndItemids_result()
3378
    result.success = self._handler.getIgnoredWarehouseidsAndItemids()
3379
    oprot.writeMessageBegin("getIgnoredWarehouseidsAndItemids", TMessageType.REPLY, seqid)
3380
    result.write(oprot)
3381
    oprot.writeMessageEnd()
3382
    oprot.trans.flush()
3383
 
3384
  def process_insertItemtoIgnoreInventoryUpdatelist(self, seqid, iprot, oprot):
3385
    args = insertItemtoIgnoreInventoryUpdatelist_args()
3386
    args.read(iprot)
3387
    iprot.readMessageEnd()
3388
    result = insertItemtoIgnoreInventoryUpdatelist_result()
3389
    result.success = self._handler.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id)
3390
    oprot.writeMessageBegin("insertItemtoIgnoreInventoryUpdatelist", TMessageType.REPLY, seqid)
3391
    result.write(oprot)
3392
    oprot.writeMessageEnd()
3393
    oprot.trans.flush()
3394
 
3395
  def process_deleteItemFromIgnoredInventoryUpdateList(self, seqid, iprot, oprot):
3396
    args = deleteItemFromIgnoredInventoryUpdateList_args()
3397
    args.read(iprot)
3398
    iprot.readMessageEnd()
3399
    result = deleteItemFromIgnoredInventoryUpdateList_result()
3400
    result.success = self._handler.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id)
3401
    oprot.writeMessageBegin("deleteItemFromIgnoredInventoryUpdateList", TMessageType.REPLY, seqid)
3402
    result.write(oprot)
3403
    oprot.writeMessageEnd()
3404
    oprot.trans.flush()
3405
 
3406
  def process_getAllIgnoredInventoryupdateItemsCount(self, seqid, iprot, oprot):
3407
    args = getAllIgnoredInventoryupdateItemsCount_args()
3408
    args.read(iprot)
3409
    iprot.readMessageEnd()
3410
    result = getAllIgnoredInventoryupdateItemsCount_result()
3411
    result.success = self._handler.getAllIgnoredInventoryupdateItemsCount()
3412
    oprot.writeMessageBegin("getAllIgnoredInventoryupdateItemsCount", TMessageType.REPLY, seqid)
3413
    result.write(oprot)
3414
    oprot.writeMessageEnd()
3415
    oprot.trans.flush()
3416
 
3417
  def process_getIgnoredInventoryUpdateItemids(self, seqid, iprot, oprot):
3418
    args = getIgnoredInventoryUpdateItemids_args()
3419
    args.read(iprot)
3420
    iprot.readMessageEnd()
3421
    result = getIgnoredInventoryUpdateItemids_result()
3422
    result.success = self._handler.getIgnoredInventoryUpdateItemids(args.offset, args.limit)
3423
    oprot.writeMessageBegin("getIgnoredInventoryUpdateItemids", TMessageType.REPLY, seqid)
3424
    result.write(oprot)
3425
    oprot.writeMessageEnd()
3426
    oprot.trans.flush()
3427
 
6821 amar.kumar 3428
  def process_updateItemStockPurchaseParams(self, seqid, iprot, oprot):
3429
    args = updateItemStockPurchaseParams_args()
3430
    args.read(iprot)
3431
    iprot.readMessageEnd()
3432
    result = updateItemStockPurchaseParams_result()
3433
    self._handler.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel)
3434
    oprot.writeMessageBegin("updateItemStockPurchaseParams", TMessageType.REPLY, seqid)
3435
    result.write(oprot)
3436
    oprot.writeMessageEnd()
3437
    oprot.trans.flush()
6531 vikram.rag 3438
 
6821 amar.kumar 3439
  def process_getItemStockPurchaseParams(self, seqid, iprot, oprot):
3440
    args = getItemStockPurchaseParams_args()
3441
    args.read(iprot)
3442
    iprot.readMessageEnd()
3443
    result = getItemStockPurchaseParams_result()
3444
    result.success = self._handler.getItemStockPurchaseParams(args.itemId)
3445
    oprot.writeMessageBegin("getItemStockPurchaseParams", TMessageType.REPLY, seqid)
3446
    result.write(oprot)
3447
    oprot.writeMessageEnd()
3448
    oprot.trans.flush()
3449
 
3450
  def process_addOosStatusForItem(self, seqid, iprot, oprot):
3451
    args = addOosStatusForItem_args()
3452
    args.read(iprot)
3453
    iprot.readMessageEnd()
3454
    result = addOosStatusForItem_result()
3455
    self._handler.addOosStatusForItem(args.oosStatusMap, args.date)
3456
    oprot.writeMessageBegin("addOosStatusForItem", TMessageType.REPLY, seqid)
3457
    result.write(oprot)
3458
    oprot.writeMessageEnd()
3459
    oprot.trans.flush()
3460
 
6832 amar.kumar 3461
  def process_getOosStatusesForXDaysForItem(self, seqid, iprot, oprot):
3462
    args = getOosStatusesForXDaysForItem_args()
3463
    args.read(iprot)
3464
    iprot.readMessageEnd()
3465
    result = getOosStatusesForXDaysForItem_result()
3466
    result.success = self._handler.getOosStatusesForXDaysForItem(args.itemId, args.days)
3467
    oprot.writeMessageBegin("getOosStatusesForXDaysForItem", TMessageType.REPLY, seqid)
3468
    result.write(oprot)
3469
    oprot.writeMessageEnd()
3470
    oprot.trans.flush()
6821 amar.kumar 3471
 
6857 amar.kumar 3472
  def process_getNonZeroItemStockPurchaseParams(self, seqid, iprot, oprot):
3473
    args = getNonZeroItemStockPurchaseParams_args()
3474
    args.read(iprot)
3475
    iprot.readMessageEnd()
3476
    result = getNonZeroItemStockPurchaseParams_result()
3477
    result.success = self._handler.getNonZeroItemStockPurchaseParams()
3478
    oprot.writeMessageBegin("getNonZeroItemStockPurchaseParams", TMessageType.REPLY, seqid)
3479
    result.write(oprot)
3480
    oprot.writeMessageEnd()
3481
    oprot.trans.flush()
6832 amar.kumar 3482
 
7149 amar.kumar 3483
  def process_getBillableInventoryAndPendingOrders(self, seqid, iprot, oprot):
3484
    args = getBillableInventoryAndPendingOrders_args()
3485
    args.read(iprot)
3486
    iprot.readMessageEnd()
3487
    result = getBillableInventoryAndPendingOrders_result()
3488
    result.success = self._handler.getBillableInventoryAndPendingOrders()
3489
    oprot.writeMessageBegin("getBillableInventoryAndPendingOrders", TMessageType.REPLY, seqid)
3490
    result.write(oprot)
3491
    oprot.writeMessageEnd()
3492
    oprot.trans.flush()
6857 amar.kumar 3493
 
7281 kshitij.so 3494
  def process_getWarehouseName(self, seqid, iprot, oprot):
3495
    args = getWarehouseName_args()
3496
    args.read(iprot)
3497
    iprot.readMessageEnd()
3498
    result = getWarehouseName_result()
3499
    result.success = self._handler.getWarehouseName(args.warehouse_id)
3500
    oprot.writeMessageBegin("getWarehouseName", TMessageType.REPLY, seqid)
3501
    result.write(oprot)
3502
    oprot.writeMessageEnd()
3503
    oprot.trans.flush()
7149 amar.kumar 3504
 
7281 kshitij.so 3505
  def process_getAmazonInventoryForItem(self, seqid, iprot, oprot):
3506
    args = getAmazonInventoryForItem_args()
3507
    args.read(iprot)
3508
    iprot.readMessageEnd()
3509
    result = getAmazonInventoryForItem_result()
3510
    result.success = self._handler.getAmazonInventoryForItem(args.item_id)
3511
    oprot.writeMessageBegin("getAmazonInventoryForItem", TMessageType.REPLY, seqid)
3512
    result.write(oprot)
3513
    oprot.writeMessageEnd()
3514
    oprot.trans.flush()
3515
 
3516
  def process_getAllAmazonInventory(self, seqid, iprot, oprot):
3517
    args = getAllAmazonInventory_args()
3518
    args.read(iprot)
3519
    iprot.readMessageEnd()
3520
    result = getAllAmazonInventory_result()
3521
    result.success = self._handler.getAllAmazonInventory()
3522
    oprot.writeMessageBegin("getAllAmazonInventory", TMessageType.REPLY, seqid)
3523
    result.write(oprot)
3524
    oprot.writeMessageEnd()
3525
    oprot.trans.flush()
3526
 
3527
  def process_addOrUpdateAmazonInventoryForItem(self, seqid, iprot, oprot):
3528
    args = addOrUpdateAmazonInventoryForItem_args()
3529
    args.read(iprot)
3530
    iprot.readMessageEnd()
3531
    result = addOrUpdateAmazonInventoryForItem_result()
3532
    self._handler.addOrUpdateAmazonInventoryForItem(args.amazonInventorySnapshot)
3533
    oprot.writeMessageBegin("addOrUpdateAmazonInventoryForItem", TMessageType.REPLY, seqid)
3534
    result.write(oprot)
3535
    oprot.writeMessageEnd()
3536
    oprot.trans.flush()
3537
 
7972 amar.kumar 3538
  def process_getLastNdaySaleForItem(self, seqid, iprot, oprot):
3539
    args = getLastNdaySaleForItem_args()
3540
    args.read(iprot)
3541
    iprot.readMessageEnd()
3542
    result = getLastNdaySaleForItem_result()
3543
    result.success = self._handler.getLastNdaySaleForItem(args.itemId, args.numberOfDays)
3544
    oprot.writeMessageBegin("getLastNdaySaleForItem", TMessageType.REPLY, seqid)
3545
    result.write(oprot)
3546
    oprot.writeMessageEnd()
3547
    oprot.trans.flush()
7281 kshitij.so 3548
 
8282 kshitij.so 3549
  def process_addOrUpdateAmazonFbaInventory(self, seqid, iprot, oprot):
3550
    args = addOrUpdateAmazonFbaInventory_args()
3551
    args.read(iprot)
3552
    iprot.readMessageEnd()
3553
    result = addOrUpdateAmazonFbaInventory_result()
3554
    self._handler.addOrUpdateAmazonFbaInventory(args.amazonfbainventorysnapshot)
3555
    oprot.writeMessageBegin("addOrUpdateAmazonFbaInventory", TMessageType.REPLY, seqid)
3556
    result.write(oprot)
3557
    oprot.writeMessageEnd()
3558
    oprot.trans.flush()
3559
 
8182 amar.kumar 3560
  def process_addUpdateHoldInventory(self, seqid, iprot, oprot):
3561
    args = addUpdateHoldInventory_args()
3562
    args.read(iprot)
3563
    iprot.readMessageEnd()
3564
    result = addUpdateHoldInventory_result()
3565
    self._handler.addUpdateHoldInventory(args.itemId, args.warehouseId, args.holdQuantity, args.source)
3566
    oprot.writeMessageBegin("addUpdateHoldInventory", TMessageType.REPLY, seqid)
3567
    result.write(oprot)
3568
    oprot.writeMessageEnd()
3569
    oprot.trans.flush()
7972 amar.kumar 3570
 
8282 kshitij.so 3571
  def process_getAmazonFbaItemInventory(self, seqid, iprot, oprot):
3572
    args = getAmazonFbaItemInventory_args()
3573
    args.read(iprot)
3574
    iprot.readMessageEnd()
3575
    result = getAmazonFbaItemInventory_result()
3576
    result.success = self._handler.getAmazonFbaItemInventory(args.itemId)
3577
    oprot.writeMessageBegin("getAmazonFbaItemInventory", TMessageType.REPLY, seqid)
3578
    result.write(oprot)
3579
    oprot.writeMessageEnd()
3580
    oprot.trans.flush()
8182 amar.kumar 3581
 
8363 vikram.rag 3582
  def process_getAllAmazonFbaItemInventory(self, seqid, iprot, oprot):
3583
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 3584
    args.read(iprot)
3585
    iprot.readMessageEnd()
8363 vikram.rag 3586
    result = getAllAmazonFbaItemInventory_result()
3587
    result.success = self._handler.getAllAmazonFbaItemInventory()
3588
    oprot.writeMessageBegin("getAllAmazonFbaItemInventory", TMessageType.REPLY, seqid)
8282 kshitij.so 3589
    result.write(oprot)
3590
    oprot.writeMessageEnd()
3591
    oprot.trans.flush()
3592
 
8363 vikram.rag 3593
  def process_getOursGoodWarehouseIdsForLocation(self, seqid, iprot, oprot):
3594
    args = getOursGoodWarehouseIdsForLocation_args()
3595
    args.read(iprot)
3596
    iprot.readMessageEnd()
3597
    result = getOursGoodWarehouseIdsForLocation_result()
3598
    result.success = self._handler.getOursGoodWarehouseIdsForLocation(args.state_id)
3599
    oprot.writeMessageBegin("getOursGoodWarehouseIdsForLocation", TMessageType.REPLY, seqid)
3600
    result.write(oprot)
3601
    oprot.writeMessageEnd()
3602
    oprot.trans.flush()
8282 kshitij.so 3603
 
8955 vikram.rag 3604
  def process_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, seqid, iprot, oprot):
3605
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
3606
    args.read(iprot)
3607
    iprot.readMessageEnd()
3608
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
3609
    result.success = self._handler.getHoldInventoryDetailForItemForWarehouseIdExceptSource(args.id, args.warehouse_id, args.source)
3610
    oprot.writeMessageBegin("getHoldInventoryDetailForItemForWarehouseIdExceptSource", TMessageType.REPLY, seqid)
3611
    result.write(oprot)
3612
    oprot.writeMessageEnd()
3613
    oprot.trans.flush()
8363 vikram.rag 3614
 
9404 vikram.rag 3615
  def process_getSnapdealInventoryForItem(self, seqid, iprot, oprot):
3616
    args = getSnapdealInventoryForItem_args()
3617
    args.read(iprot)
3618
    iprot.readMessageEnd()
3619
    result = getSnapdealInventoryForItem_result()
3620
    result.success = self._handler.getSnapdealInventoryForItem(args.item_id)
3621
    oprot.writeMessageBegin("getSnapdealInventoryForItem", TMessageType.REPLY, seqid)
3622
    result.write(oprot)
3623
    oprot.writeMessageEnd()
3624
    oprot.trans.flush()
8955 vikram.rag 3625
 
9404 vikram.rag 3626
  def process_addOrUpdateSnapdealInventoryForItem(self, seqid, iprot, oprot):
3627
    args = addOrUpdateSnapdealInventoryForItem_args()
3628
    args.read(iprot)
3629
    iprot.readMessageEnd()
3630
    result = addOrUpdateSnapdealInventoryForItem_result()
3631
    self._handler.addOrUpdateSnapdealInventoryForItem(args.snapdealinventoryitem)
3632
    oprot.writeMessageBegin("addOrUpdateSnapdealInventoryForItem", TMessageType.REPLY, seqid)
3633
    result.write(oprot)
3634
    oprot.writeMessageEnd()
3635
    oprot.trans.flush()
3636
 
3637
  def process_getNlcForWarehouse(self, seqid, iprot, oprot):
3638
    args = getNlcForWarehouse_args()
3639
    args.read(iprot)
3640
    iprot.readMessageEnd()
3641
    result = getNlcForWarehouse_result()
3642
    result.success = self._handler.getNlcForWarehouse(args.warehouse_id, args.item_id)
3643
    oprot.writeMessageBegin("getNlcForWarehouse", TMessageType.REPLY, seqid)
3644
    result.write(oprot)
3645
    oprot.writeMessageEnd()
3646
    oprot.trans.flush()
3647
 
9495 vikram.rag 3648
  def process_addOrUpdateAllAmazonFbaInventory(self, seqid, iprot, oprot):
3649
    args = addOrUpdateAllAmazonFbaInventory_args()
9456 vikram.rag 3650
    args.read(iprot)
3651
    iprot.readMessageEnd()
9495 vikram.rag 3652
    result = addOrUpdateAllAmazonFbaInventory_result()
3653
    self._handler.addOrUpdateAllAmazonFbaInventory(args.allamazonfbainventorysnapshot)
3654
    oprot.writeMessageBegin("addOrUpdateAllAmazonFbaInventory", TMessageType.REPLY, seqid)
9456 vikram.rag 3655
    result.write(oprot)
3656
    oprot.writeMessageEnd()
3657
    oprot.trans.flush()
9404 vikram.rag 3658
 
9495 vikram.rag 3659
  def process_addOrUpdateAllSnapdealInventory(self, seqid, iprot, oprot):
3660
    args = addOrUpdateAllSnapdealInventory_args()
9482 vikram.rag 3661
    args.read(iprot)
3662
    iprot.readMessageEnd()
9495 vikram.rag 3663
    result = addOrUpdateAllSnapdealInventory_result()
3664
    self._handler.addOrUpdateAllSnapdealInventory(args.allsnapdealinventorysnapshot)
3665
    oprot.writeMessageBegin("addOrUpdateAllSnapdealInventory", TMessageType.REPLY, seqid)
9482 vikram.rag 3666
    result.write(oprot)
3667
    oprot.writeMessageEnd()
3668
    oprot.trans.flush()
9456 vikram.rag 3669
 
9495 vikram.rag 3670
  def process_getSnapdealInventorySnapshot(self, seqid, iprot, oprot):
3671
    args = getSnapdealInventorySnapshot_args()
3672
    args.read(iprot)
3673
    iprot.readMessageEnd()
3674
    result = getSnapdealInventorySnapshot_result()
3675
    result.success = self._handler.getSnapdealInventorySnapshot()
3676
    oprot.writeMessageBegin("getSnapdealInventorySnapshot", TMessageType.REPLY, seqid)
3677
    result.write(oprot)
3678
    oprot.writeMessageEnd()
3679
    oprot.trans.flush()
9482 vikram.rag 3680
 
9495 vikram.rag 3681
 
5944 mandeep.dh 3682
# HELPER FUNCTIONS AND STRUCTURES
3683
 
3684
class addWarehouse_args:
3685
  """
3686
  Attributes:
3687
   - warehouse
3688
  """
3689
 
3690
  thrift_spec = (
3691
    None, # 0
3692
    (1, TType.STRUCT, 'warehouse', (Warehouse, Warehouse.thrift_spec), None, ), # 1
3693
  )
3694
 
3695
  def __init__(self, warehouse=None,):
3696
    self.warehouse = warehouse
3697
 
3698
  def read(self, iprot):
3699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3700
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3701
      return
3702
    iprot.readStructBegin()
3703
    while True:
3704
      (fname, ftype, fid) = iprot.readFieldBegin()
3705
      if ftype == TType.STOP:
3706
        break
3707
      if fid == 1:
3708
        if ftype == TType.STRUCT:
3709
          self.warehouse = Warehouse()
3710
          self.warehouse.read(iprot)
3711
        else:
3712
          iprot.skip(ftype)
3713
      else:
3714
        iprot.skip(ftype)
3715
      iprot.readFieldEnd()
3716
    iprot.readStructEnd()
3717
 
3718
  def write(self, oprot):
3719
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3720
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3721
      return
3722
    oprot.writeStructBegin('addWarehouse_args')
3723
    if self.warehouse is not None:
3724
      oprot.writeFieldBegin('warehouse', TType.STRUCT, 1)
3725
      self.warehouse.write(oprot)
3726
      oprot.writeFieldEnd()
3727
    oprot.writeFieldStop()
3728
    oprot.writeStructEnd()
3729
 
3730
  def validate(self):
3731
    return
3732
 
3733
 
3734
  def __repr__(self):
3735
    L = ['%s=%r' % (key, value)
3736
      for key, value in self.__dict__.iteritems()]
3737
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3738
 
3739
  def __eq__(self, other):
3740
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3741
 
3742
  def __ne__(self, other):
3743
    return not (self == other)
3744
 
3745
class addWarehouse_result:
3746
  """
3747
  Attributes:
3748
   - success
3749
   - cex
3750
  """
3751
 
3752
  thrift_spec = (
3753
    (0, TType.I64, 'success', None, None, ), # 0
3754
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
3755
  )
3756
 
3757
  def __init__(self, success=None, cex=None,):
3758
    self.success = success
3759
    self.cex = cex
3760
 
3761
  def read(self, iprot):
3762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3764
      return
3765
    iprot.readStructBegin()
3766
    while True:
3767
      (fname, ftype, fid) = iprot.readFieldBegin()
3768
      if ftype == TType.STOP:
3769
        break
3770
      if fid == 0:
3771
        if ftype == TType.I64:
3772
          self.success = iprot.readI64();
3773
        else:
3774
          iprot.skip(ftype)
3775
      elif fid == 1:
3776
        if ftype == TType.STRUCT:
3777
          self.cex = InventoryServiceException()
3778
          self.cex.read(iprot)
3779
        else:
3780
          iprot.skip(ftype)
3781
      else:
3782
        iprot.skip(ftype)
3783
      iprot.readFieldEnd()
3784
    iprot.readStructEnd()
3785
 
3786
  def write(self, oprot):
3787
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3788
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3789
      return
3790
    oprot.writeStructBegin('addWarehouse_result')
3791
    if self.success is not None:
3792
      oprot.writeFieldBegin('success', TType.I64, 0)
3793
      oprot.writeI64(self.success)
3794
      oprot.writeFieldEnd()
3795
    if self.cex is not None:
3796
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
3797
      self.cex.write(oprot)
3798
      oprot.writeFieldEnd()
3799
    oprot.writeFieldStop()
3800
    oprot.writeStructEnd()
3801
 
3802
  def validate(self):
3803
    return
3804
 
3805
 
3806
  def __repr__(self):
3807
    L = ['%s=%r' % (key, value)
3808
      for key, value in self.__dict__.iteritems()]
3809
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3810
 
3811
  def __eq__(self, other):
3812
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3813
 
3814
  def __ne__(self, other):
3815
    return not (self == other)
3816
 
3817
class addVendor_args:
3818
  """
3819
  Attributes:
3820
   - vendor
3821
  """
3822
 
3823
  thrift_spec = (
3824
    None, # 0
3825
    (1, TType.STRUCT, 'vendor', (Vendor, Vendor.thrift_spec), None, ), # 1
3826
  )
3827
 
3828
  def __init__(self, vendor=None,):
3829
    self.vendor = vendor
3830
 
3831
  def read(self, iprot):
3832
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3833
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3834
      return
3835
    iprot.readStructBegin()
3836
    while True:
3837
      (fname, ftype, fid) = iprot.readFieldBegin()
3838
      if ftype == TType.STOP:
3839
        break
3840
      if fid == 1:
3841
        if ftype == TType.STRUCT:
3842
          self.vendor = Vendor()
3843
          self.vendor.read(iprot)
3844
        else:
3845
          iprot.skip(ftype)
3846
      else:
3847
        iprot.skip(ftype)
3848
      iprot.readFieldEnd()
3849
    iprot.readStructEnd()
3850
 
3851
  def write(self, oprot):
3852
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3853
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3854
      return
3855
    oprot.writeStructBegin('addVendor_args')
3856
    if self.vendor is not None:
3857
      oprot.writeFieldBegin('vendor', TType.STRUCT, 1)
3858
      self.vendor.write(oprot)
3859
      oprot.writeFieldEnd()
3860
    oprot.writeFieldStop()
3861
    oprot.writeStructEnd()
3862
 
3863
  def validate(self):
3864
    return
3865
 
3866
 
3867
  def __repr__(self):
3868
    L = ['%s=%r' % (key, value)
3869
      for key, value in self.__dict__.iteritems()]
3870
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3871
 
3872
  def __eq__(self, other):
3873
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3874
 
3875
  def __ne__(self, other):
3876
    return not (self == other)
3877
 
3878
class addVendor_result:
3879
  """
3880
  Attributes:
3881
   - success
3882
   - cex
3883
  """
3884
 
3885
  thrift_spec = (
3886
    (0, TType.I64, 'success', None, None, ), # 0
3887
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
3888
  )
3889
 
3890
  def __init__(self, success=None, cex=None,):
3891
    self.success = success
3892
    self.cex = cex
3893
 
3894
  def read(self, iprot):
3895
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3896
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3897
      return
3898
    iprot.readStructBegin()
3899
    while True:
3900
      (fname, ftype, fid) = iprot.readFieldBegin()
3901
      if ftype == TType.STOP:
3902
        break
3903
      if fid == 0:
3904
        if ftype == TType.I64:
3905
          self.success = iprot.readI64();
3906
        else:
3907
          iprot.skip(ftype)
3908
      elif fid == 1:
3909
        if ftype == TType.STRUCT:
3910
          self.cex = InventoryServiceException()
3911
          self.cex.read(iprot)
3912
        else:
3913
          iprot.skip(ftype)
3914
      else:
3915
        iprot.skip(ftype)
3916
      iprot.readFieldEnd()
3917
    iprot.readStructEnd()
3918
 
3919
  def write(self, oprot):
3920
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3921
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3922
      return
3923
    oprot.writeStructBegin('addVendor_result')
3924
    if self.success is not None:
3925
      oprot.writeFieldBegin('success', TType.I64, 0)
3926
      oprot.writeI64(self.success)
3927
      oprot.writeFieldEnd()
3928
    if self.cex is not None:
3929
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
3930
      self.cex.write(oprot)
3931
      oprot.writeFieldEnd()
3932
    oprot.writeFieldStop()
3933
    oprot.writeStructEnd()
3934
 
3935
  def validate(self):
3936
    return
3937
 
3938
 
3939
  def __repr__(self):
3940
    L = ['%s=%r' % (key, value)
3941
      for key, value in self.__dict__.iteritems()]
3942
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3943
 
3944
  def __eq__(self, other):
3945
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3946
 
3947
  def __ne__(self, other):
3948
    return not (self == other)
3949
 
3950
class updateInventoryHistory_args:
3951
  """
3952
  Attributes:
3953
   - warehouse_id
3954
   - timestamp
3955
   - availability
3956
  """
3957
 
3958
  thrift_spec = (
3959
    None, # 0
3960
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
3961
    (2, TType.STRING, 'timestamp', None, None, ), # 2
3962
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
3963
  )
3964
 
3965
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
3966
    self.warehouse_id = warehouse_id
3967
    self.timestamp = timestamp
3968
    self.availability = availability
3969
 
3970
  def read(self, iprot):
3971
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3972
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3973
      return
3974
    iprot.readStructBegin()
3975
    while True:
3976
      (fname, ftype, fid) = iprot.readFieldBegin()
3977
      if ftype == TType.STOP:
3978
        break
3979
      if fid == 1:
3980
        if ftype == TType.I64:
3981
          self.warehouse_id = iprot.readI64();
3982
        else:
3983
          iprot.skip(ftype)
3984
      elif fid == 2:
3985
        if ftype == TType.STRING:
3986
          self.timestamp = iprot.readString();
3987
        else:
3988
          iprot.skip(ftype)
3989
      elif fid == 3:
3990
        if ftype == TType.MAP:
3991
          self.availability = {}
8182 amar.kumar 3992
          (_ktype28, _vtype29, _size27 ) = iprot.readMapBegin() 
3993
          for _i31 in xrange(_size27):
3994
            _key32 = iprot.readString();
3995
            _val33 = iprot.readI64();
3996
            self.availability[_key32] = _val33
5944 mandeep.dh 3997
          iprot.readMapEnd()
3998
        else:
3999
          iprot.skip(ftype)
4000
      else:
4001
        iprot.skip(ftype)
4002
      iprot.readFieldEnd()
4003
    iprot.readStructEnd()
4004
 
4005
  def write(self, oprot):
4006
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4007
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4008
      return
4009
    oprot.writeStructBegin('updateInventoryHistory_args')
4010
    if self.warehouse_id is not None:
4011
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4012
      oprot.writeI64(self.warehouse_id)
4013
      oprot.writeFieldEnd()
4014
    if self.timestamp is not None:
4015
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4016
      oprot.writeString(self.timestamp)
4017
      oprot.writeFieldEnd()
4018
    if self.availability is not None:
4019
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4020
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4021
      for kiter34,viter35 in self.availability.items():
4022
        oprot.writeString(kiter34)
4023
        oprot.writeI64(viter35)
5944 mandeep.dh 4024
      oprot.writeMapEnd()
4025
      oprot.writeFieldEnd()
4026
    oprot.writeFieldStop()
4027
    oprot.writeStructEnd()
4028
 
4029
  def validate(self):
4030
    return
4031
 
4032
 
4033
  def __repr__(self):
4034
    L = ['%s=%r' % (key, value)
4035
      for key, value in self.__dict__.iteritems()]
4036
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4037
 
4038
  def __eq__(self, other):
4039
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4040
 
4041
  def __ne__(self, other):
4042
    return not (self == other)
4043
 
4044
class updateInventoryHistory_result:
4045
  """
4046
  Attributes:
4047
   - cex
4048
  """
4049
 
4050
  thrift_spec = (
4051
    None, # 0
4052
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4053
  )
4054
 
4055
  def __init__(self, cex=None,):
4056
    self.cex = cex
4057
 
4058
  def read(self, iprot):
4059
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4060
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4061
      return
4062
    iprot.readStructBegin()
4063
    while True:
4064
      (fname, ftype, fid) = iprot.readFieldBegin()
4065
      if ftype == TType.STOP:
4066
        break
4067
      if fid == 1:
4068
        if ftype == TType.STRUCT:
4069
          self.cex = InventoryServiceException()
4070
          self.cex.read(iprot)
4071
        else:
4072
          iprot.skip(ftype)
4073
      else:
4074
        iprot.skip(ftype)
4075
      iprot.readFieldEnd()
4076
    iprot.readStructEnd()
4077
 
4078
  def write(self, oprot):
4079
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4080
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4081
      return
4082
    oprot.writeStructBegin('updateInventoryHistory_result')
4083
    if self.cex is not None:
4084
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4085
      self.cex.write(oprot)
4086
      oprot.writeFieldEnd()
4087
    oprot.writeFieldStop()
4088
    oprot.writeStructEnd()
4089
 
4090
  def validate(self):
4091
    return
4092
 
4093
 
4094
  def __repr__(self):
4095
    L = ['%s=%r' % (key, value)
4096
      for key, value in self.__dict__.iteritems()]
4097
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4098
 
4099
  def __eq__(self, other):
4100
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4101
 
4102
  def __ne__(self, other):
4103
    return not (self == other)
4104
 
4105
class updateInventory_args:
4106
  """
4107
  Attributes:
4108
   - warehouse_id
4109
   - timestamp
4110
   - availability
4111
  """
4112
 
4113
  thrift_spec = (
4114
    None, # 0
4115
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4116
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4117
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4118
  )
4119
 
4120
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4121
    self.warehouse_id = warehouse_id
4122
    self.timestamp = timestamp
4123
    self.availability = availability
4124
 
4125
  def read(self, iprot):
4126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4128
      return
4129
    iprot.readStructBegin()
4130
    while True:
4131
      (fname, ftype, fid) = iprot.readFieldBegin()
4132
      if ftype == TType.STOP:
4133
        break
4134
      if fid == 1:
4135
        if ftype == TType.I64:
4136
          self.warehouse_id = iprot.readI64();
4137
        else:
4138
          iprot.skip(ftype)
4139
      elif fid == 2:
4140
        if ftype == TType.STRING:
4141
          self.timestamp = iprot.readString();
4142
        else:
4143
          iprot.skip(ftype)
4144
      elif fid == 3:
4145
        if ftype == TType.MAP:
4146
          self.availability = {}
8182 amar.kumar 4147
          (_ktype37, _vtype38, _size36 ) = iprot.readMapBegin() 
4148
          for _i40 in xrange(_size36):
4149
            _key41 = iprot.readString();
4150
            _val42 = iprot.readI64();
4151
            self.availability[_key41] = _val42
5944 mandeep.dh 4152
          iprot.readMapEnd()
4153
        else:
4154
          iprot.skip(ftype)
4155
      else:
4156
        iprot.skip(ftype)
4157
      iprot.readFieldEnd()
4158
    iprot.readStructEnd()
4159
 
4160
  def write(self, oprot):
4161
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4162
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4163
      return
4164
    oprot.writeStructBegin('updateInventory_args')
4165
    if self.warehouse_id is not None:
4166
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4167
      oprot.writeI64(self.warehouse_id)
4168
      oprot.writeFieldEnd()
4169
    if self.timestamp is not None:
4170
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4171
      oprot.writeString(self.timestamp)
4172
      oprot.writeFieldEnd()
4173
    if self.availability is not None:
4174
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4175
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4176
      for kiter43,viter44 in self.availability.items():
4177
        oprot.writeString(kiter43)
4178
        oprot.writeI64(viter44)
5944 mandeep.dh 4179
      oprot.writeMapEnd()
4180
      oprot.writeFieldEnd()
4181
    oprot.writeFieldStop()
4182
    oprot.writeStructEnd()
4183
 
4184
  def validate(self):
4185
    return
4186
 
4187
 
4188
  def __repr__(self):
4189
    L = ['%s=%r' % (key, value)
4190
      for key, value in self.__dict__.iteritems()]
4191
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4192
 
4193
  def __eq__(self, other):
4194
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4195
 
4196
  def __ne__(self, other):
4197
    return not (self == other)
4198
 
4199
class updateInventory_result:
4200
  """
4201
  Attributes:
4202
   - cex
4203
  """
4204
 
4205
  thrift_spec = (
4206
    None, # 0
4207
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4208
  )
4209
 
4210
  def __init__(self, cex=None,):
4211
    self.cex = cex
4212
 
4213
  def read(self, iprot):
4214
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4215
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4216
      return
4217
    iprot.readStructBegin()
4218
    while True:
4219
      (fname, ftype, fid) = iprot.readFieldBegin()
4220
      if ftype == TType.STOP:
4221
        break
4222
      if fid == 1:
4223
        if ftype == TType.STRUCT:
4224
          self.cex = InventoryServiceException()
4225
          self.cex.read(iprot)
4226
        else:
4227
          iprot.skip(ftype)
4228
      else:
4229
        iprot.skip(ftype)
4230
      iprot.readFieldEnd()
4231
    iprot.readStructEnd()
4232
 
4233
  def write(self, oprot):
4234
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4235
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4236
      return
4237
    oprot.writeStructBegin('updateInventory_result')
4238
    if self.cex is not None:
4239
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4240
      self.cex.write(oprot)
4241
      oprot.writeFieldEnd()
4242
    oprot.writeFieldStop()
4243
    oprot.writeStructEnd()
4244
 
4245
  def validate(self):
4246
    return
4247
 
4248
 
4249
  def __repr__(self):
4250
    L = ['%s=%r' % (key, value)
4251
      for key, value in self.__dict__.iteritems()]
4252
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4253
 
4254
  def __eq__(self, other):
4255
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4256
 
4257
  def __ne__(self, other):
4258
    return not (self == other)
4259
 
4260
class addInventory_args:
4261
  """
4262
  Attributes:
4263
   - itemId
4264
   - warehouseId
4265
   - quantity
4266
  """
4267
 
4268
  thrift_spec = (
4269
    None, # 0
4270
    (1, TType.I64, 'itemId', None, None, ), # 1
4271
    (2, TType.I64, 'warehouseId', None, None, ), # 2
4272
    (3, TType.I64, 'quantity', None, None, ), # 3
4273
  )
4274
 
4275
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
4276
    self.itemId = itemId
4277
    self.warehouseId = warehouseId
4278
    self.quantity = quantity
4279
 
4280
  def read(self, iprot):
4281
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4282
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4283
      return
4284
    iprot.readStructBegin()
4285
    while True:
4286
      (fname, ftype, fid) = iprot.readFieldBegin()
4287
      if ftype == TType.STOP:
4288
        break
4289
      if fid == 1:
4290
        if ftype == TType.I64:
4291
          self.itemId = iprot.readI64();
4292
        else:
4293
          iprot.skip(ftype)
4294
      elif fid == 2:
4295
        if ftype == TType.I64:
4296
          self.warehouseId = iprot.readI64();
4297
        else:
4298
          iprot.skip(ftype)
4299
      elif fid == 3:
4300
        if ftype == TType.I64:
4301
          self.quantity = iprot.readI64();
4302
        else:
4303
          iprot.skip(ftype)
4304
      else:
4305
        iprot.skip(ftype)
4306
      iprot.readFieldEnd()
4307
    iprot.readStructEnd()
4308
 
4309
  def write(self, oprot):
4310
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4311
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4312
      return
4313
    oprot.writeStructBegin('addInventory_args')
4314
    if self.itemId is not None:
4315
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4316
      oprot.writeI64(self.itemId)
4317
      oprot.writeFieldEnd()
4318
    if self.warehouseId is not None:
4319
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
4320
      oprot.writeI64(self.warehouseId)
4321
      oprot.writeFieldEnd()
4322
    if self.quantity is not None:
4323
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4324
      oprot.writeI64(self.quantity)
4325
      oprot.writeFieldEnd()
4326
    oprot.writeFieldStop()
4327
    oprot.writeStructEnd()
4328
 
4329
  def validate(self):
4330
    return
4331
 
4332
 
4333
  def __repr__(self):
4334
    L = ['%s=%r' % (key, value)
4335
      for key, value in self.__dict__.iteritems()]
4336
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4337
 
4338
  def __eq__(self, other):
4339
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4340
 
4341
  def __ne__(self, other):
4342
    return not (self == other)
4343
 
4344
class addInventory_result:
4345
  """
4346
  Attributes:
4347
   - cex
4348
  """
4349
 
4350
  thrift_spec = (
4351
    None, # 0
4352
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4353
  )
4354
 
4355
  def __init__(self, cex=None,):
4356
    self.cex = cex
4357
 
4358
  def read(self, iprot):
4359
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4360
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4361
      return
4362
    iprot.readStructBegin()
4363
    while True:
4364
      (fname, ftype, fid) = iprot.readFieldBegin()
4365
      if ftype == TType.STOP:
4366
        break
4367
      if fid == 1:
4368
        if ftype == TType.STRUCT:
4369
          self.cex = InventoryServiceException()
4370
          self.cex.read(iprot)
4371
        else:
4372
          iprot.skip(ftype)
4373
      else:
4374
        iprot.skip(ftype)
4375
      iprot.readFieldEnd()
4376
    iprot.readStructEnd()
4377
 
4378
  def write(self, oprot):
4379
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4380
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4381
      return
4382
    oprot.writeStructBegin('addInventory_result')
4383
    if self.cex is not None:
4384
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4385
      self.cex.write(oprot)
4386
      oprot.writeFieldEnd()
4387
    oprot.writeFieldStop()
4388
    oprot.writeStructEnd()
4389
 
4390
  def validate(self):
4391
    return
4392
 
4393
 
4394
  def __repr__(self):
4395
    L = ['%s=%r' % (key, value)
4396
      for key, value in self.__dict__.iteritems()]
4397
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4398
 
4399
  def __eq__(self, other):
4400
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4401
 
4402
  def __ne__(self, other):
4403
    return not (self == other)
4404
 
4405
class retireWarehouse_args:
4406
  """
4407
  Attributes:
4408
   - warehouse_id
4409
  """
4410
 
4411
  thrift_spec = (
4412
    None, # 0
4413
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4414
  )
4415
 
4416
  def __init__(self, warehouse_id=None,):
4417
    self.warehouse_id = warehouse_id
4418
 
4419
  def read(self, iprot):
4420
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4421
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4422
      return
4423
    iprot.readStructBegin()
4424
    while True:
4425
      (fname, ftype, fid) = iprot.readFieldBegin()
4426
      if ftype == TType.STOP:
4427
        break
4428
      if fid == 1:
4429
        if ftype == TType.I64:
4430
          self.warehouse_id = iprot.readI64();
4431
        else:
4432
          iprot.skip(ftype)
4433
      else:
4434
        iprot.skip(ftype)
4435
      iprot.readFieldEnd()
4436
    iprot.readStructEnd()
4437
 
4438
  def write(self, oprot):
4439
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4440
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4441
      return
4442
    oprot.writeStructBegin('retireWarehouse_args')
4443
    if self.warehouse_id is not None:
4444
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4445
      oprot.writeI64(self.warehouse_id)
4446
      oprot.writeFieldEnd()
4447
    oprot.writeFieldStop()
4448
    oprot.writeStructEnd()
4449
 
4450
  def validate(self):
4451
    return
4452
 
4453
 
4454
  def __repr__(self):
4455
    L = ['%s=%r' % (key, value)
4456
      for key, value in self.__dict__.iteritems()]
4457
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4458
 
4459
  def __eq__(self, other):
4460
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4461
 
4462
  def __ne__(self, other):
4463
    return not (self == other)
4464
 
4465
class retireWarehouse_result:
4466
  """
4467
  Attributes:
4468
   - cex
4469
  """
4470
 
4471
  thrift_spec = (
4472
    None, # 0
4473
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4474
  )
4475
 
4476
  def __init__(self, cex=None,):
4477
    self.cex = cex
4478
 
4479
  def read(self, iprot):
4480
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4481
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4482
      return
4483
    iprot.readStructBegin()
4484
    while True:
4485
      (fname, ftype, fid) = iprot.readFieldBegin()
4486
      if ftype == TType.STOP:
4487
        break
4488
      if fid == 1:
4489
        if ftype == TType.STRUCT:
4490
          self.cex = InventoryServiceException()
4491
          self.cex.read(iprot)
4492
        else:
4493
          iprot.skip(ftype)
4494
      else:
4495
        iprot.skip(ftype)
4496
      iprot.readFieldEnd()
4497
    iprot.readStructEnd()
4498
 
4499
  def write(self, oprot):
4500
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4501
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4502
      return
4503
    oprot.writeStructBegin('retireWarehouse_result')
4504
    if self.cex is not None:
4505
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4506
      self.cex.write(oprot)
4507
      oprot.writeFieldEnd()
4508
    oprot.writeFieldStop()
4509
    oprot.writeStructEnd()
4510
 
4511
  def validate(self):
4512
    return
4513
 
4514
 
4515
  def __repr__(self):
4516
    L = ['%s=%r' % (key, value)
4517
      for key, value in self.__dict__.iteritems()]
4518
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4519
 
4520
  def __eq__(self, other):
4521
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4522
 
4523
  def __ne__(self, other):
4524
    return not (self == other)
4525
 
4526
class getItemInventoryByItemId_args:
4527
  """
4528
  Attributes:
4529
   - item_id
4530
  """
4531
 
4532
  thrift_spec = (
4533
    None, # 0
4534
    (1, TType.I64, 'item_id', None, None, ), # 1
4535
  )
4536
 
4537
  def __init__(self, item_id=None,):
4538
    self.item_id = item_id
4539
 
4540
  def read(self, iprot):
4541
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4542
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4543
      return
4544
    iprot.readStructBegin()
4545
    while True:
4546
      (fname, ftype, fid) = iprot.readFieldBegin()
4547
      if ftype == TType.STOP:
4548
        break
4549
      if fid == 1:
4550
        if ftype == TType.I64:
4551
          self.item_id = iprot.readI64();
4552
        else:
4553
          iprot.skip(ftype)
4554
      else:
4555
        iprot.skip(ftype)
4556
      iprot.readFieldEnd()
4557
    iprot.readStructEnd()
4558
 
4559
  def write(self, oprot):
4560
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4561
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4562
      return
4563
    oprot.writeStructBegin('getItemInventoryByItemId_args')
4564
    if self.item_id is not None:
4565
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4566
      oprot.writeI64(self.item_id)
4567
      oprot.writeFieldEnd()
4568
    oprot.writeFieldStop()
4569
    oprot.writeStructEnd()
4570
 
4571
  def validate(self):
4572
    return
4573
 
4574
 
4575
  def __repr__(self):
4576
    L = ['%s=%r' % (key, value)
4577
      for key, value in self.__dict__.iteritems()]
4578
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4579
 
4580
  def __eq__(self, other):
4581
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4582
 
4583
  def __ne__(self, other):
4584
    return not (self == other)
4585
 
4586
class getItemInventoryByItemId_result:
4587
  """
4588
  Attributes:
4589
   - success
4590
   - cex
4591
  """
4592
 
4593
  thrift_spec = (
4594
    (0, TType.STRUCT, 'success', (ItemInventory, ItemInventory.thrift_spec), None, ), # 0
4595
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4596
  )
4597
 
4598
  def __init__(self, success=None, cex=None,):
4599
    self.success = success
4600
    self.cex = cex
4601
 
4602
  def read(self, iprot):
4603
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4604
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4605
      return
4606
    iprot.readStructBegin()
4607
    while True:
4608
      (fname, ftype, fid) = iprot.readFieldBegin()
4609
      if ftype == TType.STOP:
4610
        break
4611
      if fid == 0:
4612
        if ftype == TType.STRUCT:
4613
          self.success = ItemInventory()
4614
          self.success.read(iprot)
4615
        else:
4616
          iprot.skip(ftype)
4617
      elif fid == 1:
4618
        if ftype == TType.STRUCT:
4619
          self.cex = InventoryServiceException()
4620
          self.cex.read(iprot)
4621
        else:
4622
          iprot.skip(ftype)
4623
      else:
4624
        iprot.skip(ftype)
4625
      iprot.readFieldEnd()
4626
    iprot.readStructEnd()
4627
 
4628
  def write(self, oprot):
4629
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4630
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4631
      return
4632
    oprot.writeStructBegin('getItemInventoryByItemId_result')
4633
    if self.success is not None:
4634
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4635
      self.success.write(oprot)
4636
      oprot.writeFieldEnd()
4637
    if self.cex is not None:
4638
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4639
      self.cex.write(oprot)
4640
      oprot.writeFieldEnd()
4641
    oprot.writeFieldStop()
4642
    oprot.writeStructEnd()
4643
 
4644
  def validate(self):
4645
    return
4646
 
4647
 
4648
  def __repr__(self):
4649
    L = ['%s=%r' % (key, value)
4650
      for key, value in self.__dict__.iteritems()]
4651
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4652
 
4653
  def __eq__(self, other):
4654
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4655
 
4656
  def __ne__(self, other):
4657
    return not (self == other)
4658
 
4659
class getItemAvailibilityAtWarehouse_args:
4660
  """
4661
  Attributes:
4662
   - warehouse_id
4663
   - item_id
4664
  """
4665
 
4666
  thrift_spec = (
4667
    None, # 0
4668
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4669
    (2, TType.I64, 'item_id', None, None, ), # 2
4670
  )
4671
 
4672
  def __init__(self, warehouse_id=None, item_id=None,):
4673
    self.warehouse_id = warehouse_id
4674
    self.item_id = item_id
4675
 
4676
  def read(self, iprot):
4677
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4678
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4679
      return
4680
    iprot.readStructBegin()
4681
    while True:
4682
      (fname, ftype, fid) = iprot.readFieldBegin()
4683
      if ftype == TType.STOP:
4684
        break
4685
      if fid == 1:
4686
        if ftype == TType.I64:
4687
          self.warehouse_id = iprot.readI64();
4688
        else:
4689
          iprot.skip(ftype)
4690
      elif fid == 2:
4691
        if ftype == TType.I64:
4692
          self.item_id = iprot.readI64();
4693
        else:
4694
          iprot.skip(ftype)
4695
      else:
4696
        iprot.skip(ftype)
4697
      iprot.readFieldEnd()
4698
    iprot.readStructEnd()
4699
 
4700
  def write(self, oprot):
4701
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4702
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4703
      return
4704
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_args')
4705
    if self.warehouse_id is not None:
4706
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4707
      oprot.writeI64(self.warehouse_id)
4708
      oprot.writeFieldEnd()
4709
    if self.item_id is not None:
4710
      oprot.writeFieldBegin('item_id', TType.I64, 2)
4711
      oprot.writeI64(self.item_id)
4712
      oprot.writeFieldEnd()
4713
    oprot.writeFieldStop()
4714
    oprot.writeStructEnd()
4715
 
4716
  def validate(self):
4717
    return
4718
 
4719
 
4720
  def __repr__(self):
4721
    L = ['%s=%r' % (key, value)
4722
      for key, value in self.__dict__.iteritems()]
4723
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4724
 
4725
  def __eq__(self, other):
4726
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4727
 
4728
  def __ne__(self, other):
4729
    return not (self == other)
4730
 
4731
class getItemAvailibilityAtWarehouse_result:
4732
  """
4733
  Attributes:
4734
   - success
4735
   - cex
4736
  """
4737
 
4738
  thrift_spec = (
4739
    (0, TType.I64, 'success', None, None, ), # 0
4740
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4741
  )
4742
 
4743
  def __init__(self, success=None, cex=None,):
4744
    self.success = success
4745
    self.cex = cex
4746
 
4747
  def read(self, iprot):
4748
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4749
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4750
      return
4751
    iprot.readStructBegin()
4752
    while True:
4753
      (fname, ftype, fid) = iprot.readFieldBegin()
4754
      if ftype == TType.STOP:
4755
        break
4756
      if fid == 0:
4757
        if ftype == TType.I64:
4758
          self.success = iprot.readI64();
4759
        else:
4760
          iprot.skip(ftype)
4761
      elif fid == 1:
4762
        if ftype == TType.STRUCT:
4763
          self.cex = InventoryServiceException()
4764
          self.cex.read(iprot)
4765
        else:
4766
          iprot.skip(ftype)
4767
      else:
4768
        iprot.skip(ftype)
4769
      iprot.readFieldEnd()
4770
    iprot.readStructEnd()
4771
 
4772
  def write(self, oprot):
4773
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4774
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4775
      return
4776
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_result')
4777
    if self.success is not None:
4778
      oprot.writeFieldBegin('success', TType.I64, 0)
4779
      oprot.writeI64(self.success)
4780
      oprot.writeFieldEnd()
4781
    if self.cex is not None:
4782
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4783
      self.cex.write(oprot)
4784
      oprot.writeFieldEnd()
4785
    oprot.writeFieldStop()
4786
    oprot.writeStructEnd()
4787
 
4788
  def validate(self):
4789
    return
4790
 
4791
 
4792
  def __repr__(self):
4793
    L = ['%s=%r' % (key, value)
4794
      for key, value in self.__dict__.iteritems()]
4795
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4796
 
4797
  def __eq__(self, other):
4798
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4799
 
4800
  def __ne__(self, other):
4801
    return not (self == other)
4802
 
4803
class getItemAvailabilityAtLocation_args:
4804
  """
4805
  Attributes:
4806
   - itemId
5978 rajveer 4807
   - sourceId
5944 mandeep.dh 4808
  """
4809
 
4810
  thrift_spec = (
4811
    None, # 0
4812
    (1, TType.I64, 'itemId', None, None, ), # 1
5978 rajveer 4813
    (2, TType.I64, 'sourceId', None, None, ), # 2
5944 mandeep.dh 4814
  )
4815
 
5978 rajveer 4816
  def __init__(self, itemId=None, sourceId=None,):
5944 mandeep.dh 4817
    self.itemId = itemId
5978 rajveer 4818
    self.sourceId = sourceId
5944 mandeep.dh 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.itemId = iprot.readI64();
4832
        else:
4833
          iprot.skip(ftype)
5978 rajveer 4834
      elif fid == 2:
4835
        if ftype == TType.I64:
4836
          self.sourceId = iprot.readI64();
4837
        else:
4838
          iprot.skip(ftype)
5944 mandeep.dh 4839
      else:
4840
        iprot.skip(ftype)
4841
      iprot.readFieldEnd()
4842
    iprot.readStructEnd()
4843
 
4844
  def write(self, oprot):
4845
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4846
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4847
      return
4848
    oprot.writeStructBegin('getItemAvailabilityAtLocation_args')
4849
    if self.itemId is not None:
4850
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4851
      oprot.writeI64(self.itemId)
4852
      oprot.writeFieldEnd()
5978 rajveer 4853
    if self.sourceId is not None:
4854
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
4855
      oprot.writeI64(self.sourceId)
4856
      oprot.writeFieldEnd()
5944 mandeep.dh 4857
    oprot.writeFieldStop()
4858
    oprot.writeStructEnd()
4859
 
4860
  def validate(self):
4861
    return
4862
 
4863
 
4864
  def __repr__(self):
4865
    L = ['%s=%r' % (key, value)
4866
      for key, value in self.__dict__.iteritems()]
4867
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4868
 
4869
  def __eq__(self, other):
4870
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4871
 
4872
  def __ne__(self, other):
4873
    return not (self == other)
4874
 
4875
class getItemAvailabilityAtLocation_result:
4876
  """
4877
  Attributes:
4878
   - success
4879
   - isex
4880
  """
4881
 
4882
  thrift_spec = (
4883
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
4884
    (1, TType.STRUCT, 'isex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4885
  )
4886
 
4887
  def __init__(self, success=None, isex=None,):
4888
    self.success = success
4889
    self.isex = isex
4890
 
4891
  def read(self, iprot):
4892
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4893
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4894
      return
4895
    iprot.readStructBegin()
4896
    while True:
4897
      (fname, ftype, fid) = iprot.readFieldBegin()
4898
      if ftype == TType.STOP:
4899
        break
4900
      if fid == 0:
4901
        if ftype == TType.LIST:
4902
          self.success = []
8182 amar.kumar 4903
          (_etype48, _size45) = iprot.readListBegin()
4904
          for _i49 in xrange(_size45):
4905
            _elem50 = iprot.readI64();
4906
            self.success.append(_elem50)
5944 mandeep.dh 4907
          iprot.readListEnd()
4908
        else:
4909
          iprot.skip(ftype)
4910
      elif fid == 1:
4911
        if ftype == TType.STRUCT:
4912
          self.isex = InventoryServiceException()
4913
          self.isex.read(iprot)
4914
        else:
4915
          iprot.skip(ftype)
4916
      else:
4917
        iprot.skip(ftype)
4918
      iprot.readFieldEnd()
4919
    iprot.readStructEnd()
4920
 
4921
  def write(self, oprot):
4922
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4923
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4924
      return
4925
    oprot.writeStructBegin('getItemAvailabilityAtLocation_result')
4926
    if self.success is not None:
4927
      oprot.writeFieldBegin('success', TType.LIST, 0)
4928
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 4929
      for iter51 in self.success:
4930
        oprot.writeI64(iter51)
5944 mandeep.dh 4931
      oprot.writeListEnd()
4932
      oprot.writeFieldEnd()
4933
    if self.isex is not None:
4934
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4935
      self.isex.write(oprot)
4936
      oprot.writeFieldEnd()
4937
    oprot.writeFieldStop()
4938
    oprot.writeStructEnd()
4939
 
4940
  def validate(self):
4941
    return
4942
 
4943
 
4944
  def __repr__(self):
4945
    L = ['%s=%r' % (key, value)
4946
      for key, value in self.__dict__.iteritems()]
4947
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4948
 
4949
  def __eq__(self, other):
4950
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4951
 
4952
  def __ne__(self, other):
4953
    return not (self == other)
4954
 
4955
class getAllWarehouses_args:
4956
  """
4957
  Attributes:
4958
   - isActive
4959
  """
4960
 
4961
  thrift_spec = (
4962
    None, # 0
4963
    (1, TType.BOOL, 'isActive', None, None, ), # 1
4964
  )
4965
 
4966
  def __init__(self, isActive=None,):
4967
    self.isActive = isActive
4968
 
4969
  def read(self, iprot):
4970
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4971
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4972
      return
4973
    iprot.readStructBegin()
4974
    while True:
4975
      (fname, ftype, fid) = iprot.readFieldBegin()
4976
      if ftype == TType.STOP:
4977
        break
4978
      if fid == 1:
4979
        if ftype == TType.BOOL:
4980
          self.isActive = iprot.readBool();
4981
        else:
4982
          iprot.skip(ftype)
4983
      else:
4984
        iprot.skip(ftype)
4985
      iprot.readFieldEnd()
4986
    iprot.readStructEnd()
4987
 
4988
  def write(self, oprot):
4989
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4990
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4991
      return
4992
    oprot.writeStructBegin('getAllWarehouses_args')
4993
    if self.isActive is not None:
4994
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
4995
      oprot.writeBool(self.isActive)
4996
      oprot.writeFieldEnd()
4997
    oprot.writeFieldStop()
4998
    oprot.writeStructEnd()
4999
 
5000
  def validate(self):
5001
    return
5002
 
5003
 
5004
  def __repr__(self):
5005
    L = ['%s=%r' % (key, value)
5006
      for key, value in self.__dict__.iteritems()]
5007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5008
 
5009
  def __eq__(self, other):
5010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5011
 
5012
  def __ne__(self, other):
5013
    return not (self == other)
5014
 
5015
class getAllWarehouses_result:
5016
  """
5017
  Attributes:
5018
   - success
5019
   - cex
5020
  """
5021
 
5022
  thrift_spec = (
5023
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
5024
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5025
  )
5026
 
5027
  def __init__(self, success=None, cex=None,):
5028
    self.success = success
5029
    self.cex = cex
5030
 
5031
  def read(self, iprot):
5032
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5033
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5034
      return
5035
    iprot.readStructBegin()
5036
    while True:
5037
      (fname, ftype, fid) = iprot.readFieldBegin()
5038
      if ftype == TType.STOP:
5039
        break
5040
      if fid == 0:
5041
        if ftype == TType.LIST:
5042
          self.success = []
8182 amar.kumar 5043
          (_etype55, _size52) = iprot.readListBegin()
5044
          for _i56 in xrange(_size52):
5045
            _elem57 = Warehouse()
5046
            _elem57.read(iprot)
5047
            self.success.append(_elem57)
5944 mandeep.dh 5048
          iprot.readListEnd()
5049
        else:
5050
          iprot.skip(ftype)
5051
      elif fid == 1:
5052
        if ftype == TType.STRUCT:
5053
          self.cex = InventoryServiceException()
5054
          self.cex.read(iprot)
5055
        else:
5056
          iprot.skip(ftype)
5057
      else:
5058
        iprot.skip(ftype)
5059
      iprot.readFieldEnd()
5060
    iprot.readStructEnd()
5061
 
5062
  def write(self, oprot):
5063
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5064
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5065
      return
5066
    oprot.writeStructBegin('getAllWarehouses_result')
5067
    if self.success is not None:
5068
      oprot.writeFieldBegin('success', TType.LIST, 0)
5069
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 5070
      for iter58 in self.success:
5071
        iter58.write(oprot)
5944 mandeep.dh 5072
      oprot.writeListEnd()
5073
      oprot.writeFieldEnd()
5074
    if self.cex is not None:
5075
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5076
      self.cex.write(oprot)
5077
      oprot.writeFieldEnd()
5078
    oprot.writeFieldStop()
5079
    oprot.writeStructEnd()
5080
 
5081
  def validate(self):
5082
    return
5083
 
5084
 
5085
  def __repr__(self):
5086
    L = ['%s=%r' % (key, value)
5087
      for key, value in self.__dict__.iteritems()]
5088
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5089
 
5090
  def __eq__(self, other):
5091
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5092
 
5093
  def __ne__(self, other):
5094
    return not (self == other)
5095
 
5096
class getWarehouse_args:
5097
  """
5098
  Attributes:
5099
   - warehouse_id
5100
  """
5101
 
5102
  thrift_spec = (
5103
    None, # 0
5104
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5105
  )
5106
 
5107
  def __init__(self, warehouse_id=None,):
5108
    self.warehouse_id = warehouse_id
5109
 
5110
  def read(self, iprot):
5111
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5112
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5113
      return
5114
    iprot.readStructBegin()
5115
    while True:
5116
      (fname, ftype, fid) = iprot.readFieldBegin()
5117
      if ftype == TType.STOP:
5118
        break
5119
      if fid == 1:
5120
        if ftype == TType.I64:
5121
          self.warehouse_id = iprot.readI64();
5122
        else:
5123
          iprot.skip(ftype)
5124
      else:
5125
        iprot.skip(ftype)
5126
      iprot.readFieldEnd()
5127
    iprot.readStructEnd()
5128
 
5129
  def write(self, oprot):
5130
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5131
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5132
      return
5133
    oprot.writeStructBegin('getWarehouse_args')
5134
    if self.warehouse_id is not None:
5135
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5136
      oprot.writeI64(self.warehouse_id)
5137
      oprot.writeFieldEnd()
5138
    oprot.writeFieldStop()
5139
    oprot.writeStructEnd()
5140
 
5141
  def validate(self):
5142
    return
5143
 
5144
 
5145
  def __repr__(self):
5146
    L = ['%s=%r' % (key, value)
5147
      for key, value in self.__dict__.iteritems()]
5148
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5149
 
5150
  def __eq__(self, other):
5151
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5152
 
5153
  def __ne__(self, other):
5154
    return not (self == other)
5155
 
5156
class getWarehouse_result:
5157
  """
5158
  Attributes:
5159
   - success
5160
   - cex
5161
  """
5162
 
5163
  thrift_spec = (
5164
    (0, TType.STRUCT, 'success', (Warehouse, Warehouse.thrift_spec), None, ), # 0
5165
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5166
  )
5167
 
5168
  def __init__(self, success=None, cex=None,):
5169
    self.success = success
5170
    self.cex = cex
5171
 
5172
  def read(self, iprot):
5173
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5174
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5175
      return
5176
    iprot.readStructBegin()
5177
    while True:
5178
      (fname, ftype, fid) = iprot.readFieldBegin()
5179
      if ftype == TType.STOP:
5180
        break
5181
      if fid == 0:
5182
        if ftype == TType.STRUCT:
5183
          self.success = Warehouse()
5184
          self.success.read(iprot)
5185
        else:
5186
          iprot.skip(ftype)
5187
      elif fid == 1:
5188
        if ftype == TType.STRUCT:
5189
          self.cex = InventoryServiceException()
5190
          self.cex.read(iprot)
5191
        else:
5192
          iprot.skip(ftype)
5193
      else:
5194
        iprot.skip(ftype)
5195
      iprot.readFieldEnd()
5196
    iprot.readStructEnd()
5197
 
5198
  def write(self, oprot):
5199
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5200
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5201
      return
5202
    oprot.writeStructBegin('getWarehouse_result')
5203
    if self.success is not None:
5204
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5205
      self.success.write(oprot)
5206
      oprot.writeFieldEnd()
5207
    if self.cex is not None:
5208
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5209
      self.cex.write(oprot)
5210
      oprot.writeFieldEnd()
5211
    oprot.writeFieldStop()
5212
    oprot.writeStructEnd()
5213
 
5214
  def validate(self):
5215
    return
5216
 
5217
 
5218
  def __repr__(self):
5219
    L = ['%s=%r' % (key, value)
5220
      for key, value in self.__dict__.iteritems()]
5221
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5222
 
5223
  def __eq__(self, other):
5224
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5225
 
5226
  def __ne__(self, other):
5227
    return not (self == other)
5228
 
5229
class getAllItemsForWarehouse_args:
5230
  """
5231
  Attributes:
5232
   - warehouse_id
5233
  """
5234
 
5235
  thrift_spec = (
5236
    None, # 0
5237
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5238
  )
5239
 
5240
  def __init__(self, warehouse_id=None,):
5241
    self.warehouse_id = warehouse_id
5242
 
5243
  def read(self, iprot):
5244
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5245
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5246
      return
5247
    iprot.readStructBegin()
5248
    while True:
5249
      (fname, ftype, fid) = iprot.readFieldBegin()
5250
      if ftype == TType.STOP:
5251
        break
5252
      if fid == 1:
5253
        if ftype == TType.I64:
5254
          self.warehouse_id = iprot.readI64();
5255
        else:
5256
          iprot.skip(ftype)
5257
      else:
5258
        iprot.skip(ftype)
5259
      iprot.readFieldEnd()
5260
    iprot.readStructEnd()
5261
 
5262
  def write(self, oprot):
5263
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5264
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5265
      return
5266
    oprot.writeStructBegin('getAllItemsForWarehouse_args')
5267
    if self.warehouse_id is not None:
5268
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5269
      oprot.writeI64(self.warehouse_id)
5270
      oprot.writeFieldEnd()
5271
    oprot.writeFieldStop()
5272
    oprot.writeStructEnd()
5273
 
5274
  def validate(self):
5275
    return
5276
 
5277
 
5278
  def __repr__(self):
5279
    L = ['%s=%r' % (key, value)
5280
      for key, value in self.__dict__.iteritems()]
5281
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5282
 
5283
  def __eq__(self, other):
5284
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5285
 
5286
  def __ne__(self, other):
5287
    return not (self == other)
5288
 
5289
class getAllItemsForWarehouse_result:
5290
  """
5291
  Attributes:
5292
   - success
5293
   - cex
5294
  """
5295
 
5296
  thrift_spec = (
5297
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5298
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5299
  )
5300
 
5301
  def __init__(self, success=None, cex=None,):
5302
    self.success = success
5303
    self.cex = cex
5304
 
5305
  def read(self, iprot):
5306
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5307
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5308
      return
5309
    iprot.readStructBegin()
5310
    while True:
5311
      (fname, ftype, fid) = iprot.readFieldBegin()
5312
      if ftype == TType.STOP:
5313
        break
5314
      if fid == 0:
5315
        if ftype == TType.LIST:
5316
          self.success = []
8182 amar.kumar 5317
          (_etype62, _size59) = iprot.readListBegin()
5318
          for _i63 in xrange(_size59):
5319
            _elem64 = iprot.readI64();
5320
            self.success.append(_elem64)
5944 mandeep.dh 5321
          iprot.readListEnd()
5322
        else:
5323
          iprot.skip(ftype)
5324
      elif fid == 1:
5325
        if ftype == TType.STRUCT:
5326
          self.cex = InventoryServiceException()
5327
          self.cex.read(iprot)
5328
        else:
5329
          iprot.skip(ftype)
5330
      else:
5331
        iprot.skip(ftype)
5332
      iprot.readFieldEnd()
5333
    iprot.readStructEnd()
5334
 
5335
  def write(self, oprot):
5336
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5337
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5338
      return
5339
    oprot.writeStructBegin('getAllItemsForWarehouse_result')
5340
    if self.success is not None:
5341
      oprot.writeFieldBegin('success', TType.LIST, 0)
5342
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5343
      for iter65 in self.success:
5344
        oprot.writeI64(iter65)
5944 mandeep.dh 5345
      oprot.writeListEnd()
5346
      oprot.writeFieldEnd()
5347
    if self.cex is not None:
5348
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5349
      self.cex.write(oprot)
5350
      oprot.writeFieldEnd()
5351
    oprot.writeFieldStop()
5352
    oprot.writeStructEnd()
5353
 
5354
  def validate(self):
5355
    return
5356
 
5357
 
5358
  def __repr__(self):
5359
    L = ['%s=%r' % (key, value)
5360
      for key, value in self.__dict__.iteritems()]
5361
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5362
 
5363
  def __eq__(self, other):
5364
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5365
 
5366
  def __ne__(self, other):
5367
    return not (self == other)
5368
 
5966 rajveer 5369
class isOrderBillable_args:
5370
  """
5371
  Attributes:
5372
   - itemId
5373
   - warehouseId
5374
   - sourceId
5375
   - orderId
5376
  """
5377
 
5378
  thrift_spec = (
5379
    None, # 0
5380
    (1, TType.I64, 'itemId', None, None, ), # 1
5381
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5382
    (3, TType.I64, 'sourceId', None, None, ), # 3
5383
    (4, TType.I64, 'orderId', None, None, ), # 4
5384
  )
5385
 
5386
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None,):
5387
    self.itemId = itemId
5388
    self.warehouseId = warehouseId
5389
    self.sourceId = sourceId
5390
    self.orderId = orderId
5391
 
5392
  def read(self, iprot):
5393
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5394
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5395
      return
5396
    iprot.readStructBegin()
5397
    while True:
5398
      (fname, ftype, fid) = iprot.readFieldBegin()
5399
      if ftype == TType.STOP:
5400
        break
5401
      if fid == 1:
5402
        if ftype == TType.I64:
5403
          self.itemId = iprot.readI64();
5404
        else:
5405
          iprot.skip(ftype)
5406
      elif fid == 2:
5407
        if ftype == TType.I64:
5408
          self.warehouseId = iprot.readI64();
5409
        else:
5410
          iprot.skip(ftype)
5411
      elif fid == 3:
5412
        if ftype == TType.I64:
5413
          self.sourceId = iprot.readI64();
5414
        else:
5415
          iprot.skip(ftype)
5416
      elif fid == 4:
5417
        if ftype == TType.I64:
5418
          self.orderId = iprot.readI64();
5419
        else:
5420
          iprot.skip(ftype)
5421
      else:
5422
        iprot.skip(ftype)
5423
      iprot.readFieldEnd()
5424
    iprot.readStructEnd()
5425
 
5426
  def write(self, oprot):
5427
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5428
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5429
      return
5430
    oprot.writeStructBegin('isOrderBillable_args')
5431
    if self.itemId is not None:
5432
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5433
      oprot.writeI64(self.itemId)
5434
      oprot.writeFieldEnd()
5435
    if self.warehouseId is not None:
5436
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5437
      oprot.writeI64(self.warehouseId)
5438
      oprot.writeFieldEnd()
5439
    if self.sourceId is not None:
5440
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
5441
      oprot.writeI64(self.sourceId)
5442
      oprot.writeFieldEnd()
5443
    if self.orderId is not None:
5444
      oprot.writeFieldBegin('orderId', TType.I64, 4)
5445
      oprot.writeI64(self.orderId)
5446
      oprot.writeFieldEnd()
5447
    oprot.writeFieldStop()
5448
    oprot.writeStructEnd()
5449
 
5450
  def validate(self):
5451
    return
5452
 
5453
 
5454
  def __repr__(self):
5455
    L = ['%s=%r' % (key, value)
5456
      for key, value in self.__dict__.iteritems()]
5457
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5458
 
5459
  def __eq__(self, other):
5460
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5461
 
5462
  def __ne__(self, other):
5463
    return not (self == other)
5464
 
5465
class isOrderBillable_result:
5466
  """
5467
  Attributes:
5468
   - success
5469
  """
5470
 
5471
  thrift_spec = (
5472
    (0, TType.BOOL, 'success', None, None, ), # 0
5473
  )
5474
 
5475
  def __init__(self, success=None,):
5476
    self.success = success
5477
 
5478
  def read(self, iprot):
5479
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5480
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5481
      return
5482
    iprot.readStructBegin()
5483
    while True:
5484
      (fname, ftype, fid) = iprot.readFieldBegin()
5485
      if ftype == TType.STOP:
5486
        break
5487
      if fid == 0:
5488
        if ftype == TType.BOOL:
5489
          self.success = iprot.readBool();
5490
        else:
5491
          iprot.skip(ftype)
5492
      else:
5493
        iprot.skip(ftype)
5494
      iprot.readFieldEnd()
5495
    iprot.readStructEnd()
5496
 
5497
  def write(self, oprot):
5498
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5499
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5500
      return
5501
    oprot.writeStructBegin('isOrderBillable_result')
5502
    if self.success is not None:
5503
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5504
      oprot.writeBool(self.success)
5505
      oprot.writeFieldEnd()
5506
    oprot.writeFieldStop()
5507
    oprot.writeStructEnd()
5508
 
5509
  def validate(self):
5510
    return
5511
 
5512
 
5513
  def __repr__(self):
5514
    L = ['%s=%r' % (key, value)
5515
      for key, value in self.__dict__.iteritems()]
5516
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5517
 
5518
  def __eq__(self, other):
5519
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5520
 
5521
  def __ne__(self, other):
5522
    return not (self == other)
5523
 
5944 mandeep.dh 5524
class reserveItemInWarehouse_args:
5525
  """
5526
  Attributes:
5527
   - itemId
5528
   - warehouseId
5966 rajveer 5529
   - sourceId
5530
   - orderId
5531
   - createdTimestamp
5532
   - promisedShippingTimestamp
5944 mandeep.dh 5533
   - quantity
5534
  """
5535
 
5536
  thrift_spec = (
5537
    None, # 0
5538
    (1, TType.I64, 'itemId', None, None, ), # 1
5539
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 5540
    (3, TType.I64, 'sourceId', None, None, ), # 3
5541
    (4, TType.I64, 'orderId', None, None, ), # 4
5542
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
5543
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
5544
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
5944 mandeep.dh 5545
  )
5546
 
5966 rajveer 5547
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
5944 mandeep.dh 5548
    self.itemId = itemId
5549
    self.warehouseId = warehouseId
5966 rajveer 5550
    self.sourceId = sourceId
5551
    self.orderId = orderId
5552
    self.createdTimestamp = createdTimestamp
5553
    self.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 5554
    self.quantity = quantity
5555
 
5556
  def read(self, iprot):
5557
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5558
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5559
      return
5560
    iprot.readStructBegin()
5561
    while True:
5562
      (fname, ftype, fid) = iprot.readFieldBegin()
5563
      if ftype == TType.STOP:
5564
        break
5565
      if fid == 1:
5566
        if ftype == TType.I64:
5567
          self.itemId = iprot.readI64();
5568
        else:
5569
          iprot.skip(ftype)
5570
      elif fid == 2:
5571
        if ftype == TType.I64:
5572
          self.warehouseId = iprot.readI64();
5573
        else:
5574
          iprot.skip(ftype)
5575
      elif fid == 3:
5966 rajveer 5576
        if ftype == TType.I64:
5577
          self.sourceId = iprot.readI64();
5578
        else:
5579
          iprot.skip(ftype)
5580
      elif fid == 4:
5581
        if ftype == TType.I64:
5582
          self.orderId = iprot.readI64();
5583
        else:
5584
          iprot.skip(ftype)
5585
      elif fid == 5:
5586
        if ftype == TType.I64:
5587
          self.createdTimestamp = iprot.readI64();
5588
        else:
5589
          iprot.skip(ftype)
5590
      elif fid == 6:
5591
        if ftype == TType.I64:
5592
          self.promisedShippingTimestamp = iprot.readI64();
5593
        else:
5594
          iprot.skip(ftype)
5595
      elif fid == 7:
5944 mandeep.dh 5596
        if ftype == TType.DOUBLE:
5597
          self.quantity = iprot.readDouble();
5598
        else:
5599
          iprot.skip(ftype)
5600
      else:
5601
        iprot.skip(ftype)
5602
      iprot.readFieldEnd()
5603
    iprot.readStructEnd()
5604
 
5605
  def write(self, oprot):
5606
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5607
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5608
      return
5609
    oprot.writeStructBegin('reserveItemInWarehouse_args')
5610
    if self.itemId is not None:
5611
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5612
      oprot.writeI64(self.itemId)
5613
      oprot.writeFieldEnd()
5614
    if self.warehouseId is not None:
5615
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5616
      oprot.writeI64(self.warehouseId)
5617
      oprot.writeFieldEnd()
5966 rajveer 5618
    if self.sourceId is not None:
5619
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
5620
      oprot.writeI64(self.sourceId)
5621
      oprot.writeFieldEnd()
5622
    if self.orderId is not None:
5623
      oprot.writeFieldBegin('orderId', TType.I64, 4)
5624
      oprot.writeI64(self.orderId)
5625
      oprot.writeFieldEnd()
5626
    if self.createdTimestamp is not None:
5627
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
5628
      oprot.writeI64(self.createdTimestamp)
5629
      oprot.writeFieldEnd()
5630
    if self.promisedShippingTimestamp is not None:
5631
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
5632
      oprot.writeI64(self.promisedShippingTimestamp)
5633
      oprot.writeFieldEnd()
5944 mandeep.dh 5634
    if self.quantity is not None:
5966 rajveer 5635
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
5944 mandeep.dh 5636
      oprot.writeDouble(self.quantity)
5637
      oprot.writeFieldEnd()
5638
    oprot.writeFieldStop()
5639
    oprot.writeStructEnd()
5640
 
5641
  def validate(self):
5642
    return
5643
 
5644
 
5645
  def __repr__(self):
5646
    L = ['%s=%r' % (key, value)
5647
      for key, value in self.__dict__.iteritems()]
5648
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5649
 
5650
  def __eq__(self, other):
5651
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5652
 
5653
  def __ne__(self, other):
5654
    return not (self == other)
5655
 
5656
class reserveItemInWarehouse_result:
5657
  """
5658
  Attributes:
5659
   - success
5660
   - cex
5661
  """
5662
 
5663
  thrift_spec = (
5664
    (0, TType.BOOL, 'success', None, None, ), # 0
5665
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5666
  )
5667
 
5668
  def __init__(self, success=None, cex=None,):
5669
    self.success = success
5670
    self.cex = cex
5671
 
5672
  def read(self, iprot):
5673
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5674
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5675
      return
5676
    iprot.readStructBegin()
5677
    while True:
5678
      (fname, ftype, fid) = iprot.readFieldBegin()
5679
      if ftype == TType.STOP:
5680
        break
5681
      if fid == 0:
5682
        if ftype == TType.BOOL:
5683
          self.success = iprot.readBool();
5684
        else:
5685
          iprot.skip(ftype)
5686
      elif fid == 1:
5687
        if ftype == TType.STRUCT:
5688
          self.cex = InventoryServiceException()
5689
          self.cex.read(iprot)
5690
        else:
5691
          iprot.skip(ftype)
5692
      else:
5693
        iprot.skip(ftype)
5694
      iprot.readFieldEnd()
5695
    iprot.readStructEnd()
5696
 
5697
  def write(self, oprot):
5698
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5699
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5700
      return
5701
    oprot.writeStructBegin('reserveItemInWarehouse_result')
5702
    if self.success is not None:
5703
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5704
      oprot.writeBool(self.success)
5705
      oprot.writeFieldEnd()
5706
    if self.cex is not None:
5707
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5708
      self.cex.write(oprot)
5709
      oprot.writeFieldEnd()
5710
    oprot.writeFieldStop()
5711
    oprot.writeStructEnd()
5712
 
5713
  def validate(self):
5714
    return
5715
 
5716
 
5717
  def __repr__(self):
5718
    L = ['%s=%r' % (key, value)
5719
      for key, value in self.__dict__.iteritems()]
5720
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5721
 
5722
  def __eq__(self, other):
5723
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5724
 
5725
  def __ne__(self, other):
5726
    return not (self == other)
5727
 
7968 amar.kumar 5728
class updateReservationForOrder_args:
5729
  """
5730
  Attributes:
5731
   - itemId
5732
   - warehouseId
5733
   - sourceId
5734
   - orderId
5735
   - createdTimestamp
5736
   - promisedShippingTimestamp
5737
   - quantity
5738
  """
5739
 
5740
  thrift_spec = (
5741
    None, # 0
5742
    (1, TType.I64, 'itemId', None, None, ), # 1
5743
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5744
    (3, TType.I64, 'sourceId', None, None, ), # 3
5745
    (4, TType.I64, 'orderId', None, None, ), # 4
5746
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
5747
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
5748
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
5749
  )
5750
 
5751
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
5752
    self.itemId = itemId
5753
    self.warehouseId = warehouseId
5754
    self.sourceId = sourceId
5755
    self.orderId = orderId
5756
    self.createdTimestamp = createdTimestamp
5757
    self.promisedShippingTimestamp = promisedShippingTimestamp
5758
    self.quantity = quantity
5759
 
5760
  def read(self, iprot):
5761
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5762
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5763
      return
5764
    iprot.readStructBegin()
5765
    while True:
5766
      (fname, ftype, fid) = iprot.readFieldBegin()
5767
      if ftype == TType.STOP:
5768
        break
5769
      if fid == 1:
5770
        if ftype == TType.I64:
5771
          self.itemId = iprot.readI64();
5772
        else:
5773
          iprot.skip(ftype)
5774
      elif fid == 2:
5775
        if ftype == TType.I64:
5776
          self.warehouseId = iprot.readI64();
5777
        else:
5778
          iprot.skip(ftype)
5779
      elif fid == 3:
5780
        if ftype == TType.I64:
5781
          self.sourceId = iprot.readI64();
5782
        else:
5783
          iprot.skip(ftype)
5784
      elif fid == 4:
5785
        if ftype == TType.I64:
5786
          self.orderId = iprot.readI64();
5787
        else:
5788
          iprot.skip(ftype)
5789
      elif fid == 5:
5790
        if ftype == TType.I64:
5791
          self.createdTimestamp = iprot.readI64();
5792
        else:
5793
          iprot.skip(ftype)
5794
      elif fid == 6:
5795
        if ftype == TType.I64:
5796
          self.promisedShippingTimestamp = iprot.readI64();
5797
        else:
5798
          iprot.skip(ftype)
5799
      elif fid == 7:
5800
        if ftype == TType.DOUBLE:
5801
          self.quantity = iprot.readDouble();
5802
        else:
5803
          iprot.skip(ftype)
5804
      else:
5805
        iprot.skip(ftype)
5806
      iprot.readFieldEnd()
5807
    iprot.readStructEnd()
5808
 
5809
  def write(self, oprot):
5810
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5811
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5812
      return
5813
    oprot.writeStructBegin('updateReservationForOrder_args')
5814
    if self.itemId is not None:
5815
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5816
      oprot.writeI64(self.itemId)
5817
      oprot.writeFieldEnd()
5818
    if self.warehouseId is not None:
5819
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5820
      oprot.writeI64(self.warehouseId)
5821
      oprot.writeFieldEnd()
5822
    if self.sourceId is not None:
5823
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
5824
      oprot.writeI64(self.sourceId)
5825
      oprot.writeFieldEnd()
5826
    if self.orderId is not None:
5827
      oprot.writeFieldBegin('orderId', TType.I64, 4)
5828
      oprot.writeI64(self.orderId)
5829
      oprot.writeFieldEnd()
5830
    if self.createdTimestamp is not None:
5831
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
5832
      oprot.writeI64(self.createdTimestamp)
5833
      oprot.writeFieldEnd()
5834
    if self.promisedShippingTimestamp is not None:
5835
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
5836
      oprot.writeI64(self.promisedShippingTimestamp)
5837
      oprot.writeFieldEnd()
5838
    if self.quantity is not None:
5839
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
5840
      oprot.writeDouble(self.quantity)
5841
      oprot.writeFieldEnd()
5842
    oprot.writeFieldStop()
5843
    oprot.writeStructEnd()
5844
 
5845
  def validate(self):
5846
    return
5847
 
5848
 
5849
  def __repr__(self):
5850
    L = ['%s=%r' % (key, value)
5851
      for key, value in self.__dict__.iteritems()]
5852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5853
 
5854
  def __eq__(self, other):
5855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5856
 
5857
  def __ne__(self, other):
5858
    return not (self == other)
5859
 
5860
class updateReservationForOrder_result:
5861
  """
5862
  Attributes:
5863
   - success
5864
   - cex
5865
  """
5866
 
5867
  thrift_spec = (
5868
    (0, TType.BOOL, 'success', None, None, ), # 0
5869
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5870
  )
5871
 
5872
  def __init__(self, success=None, cex=None,):
5873
    self.success = success
5874
    self.cex = cex
5875
 
5876
  def read(self, iprot):
5877
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5878
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5879
      return
5880
    iprot.readStructBegin()
5881
    while True:
5882
      (fname, ftype, fid) = iprot.readFieldBegin()
5883
      if ftype == TType.STOP:
5884
        break
5885
      if fid == 0:
5886
        if ftype == TType.BOOL:
5887
          self.success = iprot.readBool();
5888
        else:
5889
          iprot.skip(ftype)
5890
      elif fid == 1:
5891
        if ftype == TType.STRUCT:
5892
          self.cex = InventoryServiceException()
5893
          self.cex.read(iprot)
5894
        else:
5895
          iprot.skip(ftype)
5896
      else:
5897
        iprot.skip(ftype)
5898
      iprot.readFieldEnd()
5899
    iprot.readStructEnd()
5900
 
5901
  def write(self, oprot):
5902
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5903
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5904
      return
5905
    oprot.writeStructBegin('updateReservationForOrder_result')
5906
    if self.success is not None:
5907
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5908
      oprot.writeBool(self.success)
5909
      oprot.writeFieldEnd()
5910
    if self.cex is not None:
5911
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5912
      self.cex.write(oprot)
5913
      oprot.writeFieldEnd()
5914
    oprot.writeFieldStop()
5915
    oprot.writeStructEnd()
5916
 
5917
  def validate(self):
5918
    return
5919
 
5920
 
5921
  def __repr__(self):
5922
    L = ['%s=%r' % (key, value)
5923
      for key, value in self.__dict__.iteritems()]
5924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5925
 
5926
  def __eq__(self, other):
5927
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5928
 
5929
  def __ne__(self, other):
5930
    return not (self == other)
5931
 
5944 mandeep.dh 5932
class reduceReservationCount_args:
5933
  """
5934
  Attributes:
5935
   - itemId
5936
   - warehouseId
5966 rajveer 5937
   - sourceId
5938
   - orderId
5944 mandeep.dh 5939
   - quantity
5940
  """
5941
 
5942
  thrift_spec = (
5943
    None, # 0
5944
    (1, TType.I64, 'itemId', None, None, ), # 1
5945
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 5946
    (3, TType.I64, 'sourceId', None, None, ), # 3
5947
    (4, TType.I64, 'orderId', None, None, ), # 4
5948
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
5944 mandeep.dh 5949
  )
5950
 
5966 rajveer 5951
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, quantity=None,):
5944 mandeep.dh 5952
    self.itemId = itemId
5953
    self.warehouseId = warehouseId
5966 rajveer 5954
    self.sourceId = sourceId
5955
    self.orderId = orderId
5944 mandeep.dh 5956
    self.quantity = quantity
5957
 
5958
  def read(self, iprot):
5959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5961
      return
5962
    iprot.readStructBegin()
5963
    while True:
5964
      (fname, ftype, fid) = iprot.readFieldBegin()
5965
      if ftype == TType.STOP:
5966
        break
5967
      if fid == 1:
5968
        if ftype == TType.I64:
5969
          self.itemId = iprot.readI64();
5970
        else:
5971
          iprot.skip(ftype)
5972
      elif fid == 2:
5973
        if ftype == TType.I64:
5974
          self.warehouseId = iprot.readI64();
5975
        else:
5976
          iprot.skip(ftype)
5977
      elif fid == 3:
5966 rajveer 5978
        if ftype == TType.I64:
5979
          self.sourceId = iprot.readI64();
5980
        else:
5981
          iprot.skip(ftype)
5982
      elif fid == 4:
5983
        if ftype == TType.I64:
5984
          self.orderId = iprot.readI64();
5985
        else:
5986
          iprot.skip(ftype)
5987
      elif fid == 5:
5944 mandeep.dh 5988
        if ftype == TType.DOUBLE:
5989
          self.quantity = iprot.readDouble();
5990
        else:
5991
          iprot.skip(ftype)
5992
      else:
5993
        iprot.skip(ftype)
5994
      iprot.readFieldEnd()
5995
    iprot.readStructEnd()
5996
 
5997
  def write(self, oprot):
5998
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5999
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6000
      return
6001
    oprot.writeStructBegin('reduceReservationCount_args')
6002
    if self.itemId is not None:
6003
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6004
      oprot.writeI64(self.itemId)
6005
      oprot.writeFieldEnd()
6006
    if self.warehouseId is not None:
6007
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6008
      oprot.writeI64(self.warehouseId)
6009
      oprot.writeFieldEnd()
5966 rajveer 6010
    if self.sourceId is not None:
6011
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6012
      oprot.writeI64(self.sourceId)
6013
      oprot.writeFieldEnd()
6014
    if self.orderId is not None:
6015
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6016
      oprot.writeI64(self.orderId)
6017
      oprot.writeFieldEnd()
5944 mandeep.dh 6018
    if self.quantity is not None:
5966 rajveer 6019
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
5944 mandeep.dh 6020
      oprot.writeDouble(self.quantity)
6021
      oprot.writeFieldEnd()
6022
    oprot.writeFieldStop()
6023
    oprot.writeStructEnd()
6024
 
6025
  def validate(self):
6026
    return
6027
 
6028
 
6029
  def __repr__(self):
6030
    L = ['%s=%r' % (key, value)
6031
      for key, value in self.__dict__.iteritems()]
6032
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6033
 
6034
  def __eq__(self, other):
6035
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6036
 
6037
  def __ne__(self, other):
6038
    return not (self == other)
6039
 
6040
class reduceReservationCount_result:
6041
  """
6042
  Attributes:
6043
   - success
6044
   - cex
6045
  """
6046
 
6047
  thrift_spec = (
6048
    (0, TType.BOOL, 'success', None, None, ), # 0
6049
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6050
  )
6051
 
6052
  def __init__(self, success=None, cex=None,):
6053
    self.success = success
6054
    self.cex = cex
6055
 
6056
  def read(self, iprot):
6057
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6058
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6059
      return
6060
    iprot.readStructBegin()
6061
    while True:
6062
      (fname, ftype, fid) = iprot.readFieldBegin()
6063
      if ftype == TType.STOP:
6064
        break
6065
      if fid == 0:
6066
        if ftype == TType.BOOL:
6067
          self.success = iprot.readBool();
6068
        else:
6069
          iprot.skip(ftype)
6070
      elif fid == 1:
6071
        if ftype == TType.STRUCT:
6072
          self.cex = InventoryServiceException()
6073
          self.cex.read(iprot)
6074
        else:
6075
          iprot.skip(ftype)
6076
      else:
6077
        iprot.skip(ftype)
6078
      iprot.readFieldEnd()
6079
    iprot.readStructEnd()
6080
 
6081
  def write(self, oprot):
6082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6084
      return
6085
    oprot.writeStructBegin('reduceReservationCount_result')
6086
    if self.success is not None:
6087
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6088
      oprot.writeBool(self.success)
6089
      oprot.writeFieldEnd()
6090
    if self.cex is not None:
6091
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6092
      self.cex.write(oprot)
6093
      oprot.writeFieldEnd()
6094
    oprot.writeFieldStop()
6095
    oprot.writeStructEnd()
6096
 
6097
  def validate(self):
6098
    return
6099
 
6100
 
6101
  def __repr__(self):
6102
    L = ['%s=%r' % (key, value)
6103
      for key, value in self.__dict__.iteritems()]
6104
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6105
 
6106
  def __eq__(self, other):
6107
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6108
 
6109
  def __ne__(self, other):
6110
    return not (self == other)
6111
 
6112
class getItemPricing_args:
6113
  """
6114
  Attributes:
6115
   - itemId
6116
   - vendorId
6117
  """
6118
 
6119
  thrift_spec = (
6120
    None, # 0
6121
    (1, TType.I64, 'itemId', None, None, ), # 1
6122
    (2, TType.I64, 'vendorId', None, None, ), # 2
6123
  )
6124
 
6125
  def __init__(self, itemId=None, vendorId=None,):
6126
    self.itemId = itemId
6127
    self.vendorId = vendorId
6128
 
6129
  def read(self, iprot):
6130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6132
      return
6133
    iprot.readStructBegin()
6134
    while True:
6135
      (fname, ftype, fid) = iprot.readFieldBegin()
6136
      if ftype == TType.STOP:
6137
        break
6138
      if fid == 1:
6139
        if ftype == TType.I64:
6140
          self.itemId = iprot.readI64();
6141
        else:
6142
          iprot.skip(ftype)
6143
      elif fid == 2:
6144
        if ftype == TType.I64:
6145
          self.vendorId = iprot.readI64();
6146
        else:
6147
          iprot.skip(ftype)
6148
      else:
6149
        iprot.skip(ftype)
6150
      iprot.readFieldEnd()
6151
    iprot.readStructEnd()
6152
 
6153
  def write(self, oprot):
6154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6156
      return
6157
    oprot.writeStructBegin('getItemPricing_args')
6158
    if self.itemId is not None:
6159
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6160
      oprot.writeI64(self.itemId)
6161
      oprot.writeFieldEnd()
6162
    if self.vendorId is not None:
6163
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6164
      oprot.writeI64(self.vendorId)
6165
      oprot.writeFieldEnd()
6166
    oprot.writeFieldStop()
6167
    oprot.writeStructEnd()
6168
 
6169
  def validate(self):
6170
    return
6171
 
6172
 
6173
  def __repr__(self):
6174
    L = ['%s=%r' % (key, value)
6175
      for key, value in self.__dict__.iteritems()]
6176
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6177
 
6178
  def __eq__(self, other):
6179
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6180
 
6181
  def __ne__(self, other):
6182
    return not (self == other)
6183
 
6184
class getItemPricing_result:
6185
  """
6186
  Attributes:
6187
   - success
6188
   - cex
6189
  """
6190
 
6191
  thrift_spec = (
6192
    (0, TType.STRUCT, 'success', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 0
6193
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6194
  )
6195
 
6196
  def __init__(self, success=None, cex=None,):
6197
    self.success = success
6198
    self.cex = cex
6199
 
6200
  def read(self, iprot):
6201
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6202
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6203
      return
6204
    iprot.readStructBegin()
6205
    while True:
6206
      (fname, ftype, fid) = iprot.readFieldBegin()
6207
      if ftype == TType.STOP:
6208
        break
6209
      if fid == 0:
6210
        if ftype == TType.STRUCT:
6211
          self.success = VendorItemPricing()
6212
          self.success.read(iprot)
6213
        else:
6214
          iprot.skip(ftype)
6215
      elif fid == 1:
6216
        if ftype == TType.STRUCT:
6217
          self.cex = InventoryServiceException()
6218
          self.cex.read(iprot)
6219
        else:
6220
          iprot.skip(ftype)
6221
      else:
6222
        iprot.skip(ftype)
6223
      iprot.readFieldEnd()
6224
    iprot.readStructEnd()
6225
 
6226
  def write(self, oprot):
6227
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6228
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6229
      return
6230
    oprot.writeStructBegin('getItemPricing_result')
6231
    if self.success is not None:
6232
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6233
      self.success.write(oprot)
6234
      oprot.writeFieldEnd()
6235
    if self.cex is not None:
6236
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6237
      self.cex.write(oprot)
6238
      oprot.writeFieldEnd()
6239
    oprot.writeFieldStop()
6240
    oprot.writeStructEnd()
6241
 
6242
  def validate(self):
6243
    return
6244
 
6245
 
6246
  def __repr__(self):
6247
    L = ['%s=%r' % (key, value)
6248
      for key, value in self.__dict__.iteritems()]
6249
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6250
 
6251
  def __eq__(self, other):
6252
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6253
 
6254
  def __ne__(self, other):
6255
    return not (self == other)
6256
 
6257
class getAllItemPricing_args:
6258
  """
6259
  Attributes:
6260
   - itemId
6261
  """
6262
 
6263
  thrift_spec = (
6264
    None, # 0
6265
    (1, TType.I64, 'itemId', None, None, ), # 1
6266
  )
6267
 
6268
  def __init__(self, itemId=None,):
6269
    self.itemId = itemId
6270
 
6271
  def read(self, iprot):
6272
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6273
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6274
      return
6275
    iprot.readStructBegin()
6276
    while True:
6277
      (fname, ftype, fid) = iprot.readFieldBegin()
6278
      if ftype == TType.STOP:
6279
        break
6280
      if fid == 1:
6281
        if ftype == TType.I64:
6282
          self.itemId = iprot.readI64();
6283
        else:
6284
          iprot.skip(ftype)
6285
      else:
6286
        iprot.skip(ftype)
6287
      iprot.readFieldEnd()
6288
    iprot.readStructEnd()
6289
 
6290
  def write(self, oprot):
6291
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6292
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6293
      return
6294
    oprot.writeStructBegin('getAllItemPricing_args')
6295
    if self.itemId is not None:
6296
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6297
      oprot.writeI64(self.itemId)
6298
      oprot.writeFieldEnd()
6299
    oprot.writeFieldStop()
6300
    oprot.writeStructEnd()
6301
 
6302
  def validate(self):
6303
    return
6304
 
6305
 
6306
  def __repr__(self):
6307
    L = ['%s=%r' % (key, value)
6308
      for key, value in self.__dict__.iteritems()]
6309
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6310
 
6311
  def __eq__(self, other):
6312
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6313
 
6314
  def __ne__(self, other):
6315
    return not (self == other)
6316
 
6317
class getAllItemPricing_result:
6318
  """
6319
  Attributes:
6320
   - success
6321
   - cex
6322
  """
6323
 
6324
  thrift_spec = (
6325
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
6326
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6327
  )
6328
 
6329
  def __init__(self, success=None, cex=None,):
6330
    self.success = success
6331
    self.cex = cex
6332
 
6333
  def read(self, iprot):
6334
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6335
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6336
      return
6337
    iprot.readStructBegin()
6338
    while True:
6339
      (fname, ftype, fid) = iprot.readFieldBegin()
6340
      if ftype == TType.STOP:
6341
        break
6342
      if fid == 0:
6343
        if ftype == TType.LIST:
6344
          self.success = []
8182 amar.kumar 6345
          (_etype69, _size66) = iprot.readListBegin()
6346
          for _i70 in xrange(_size66):
6347
            _elem71 = VendorItemPricing()
6348
            _elem71.read(iprot)
6349
            self.success.append(_elem71)
5944 mandeep.dh 6350
          iprot.readListEnd()
6351
        else:
6352
          iprot.skip(ftype)
6353
      elif fid == 1:
6354
        if ftype == TType.STRUCT:
6355
          self.cex = InventoryServiceException()
6356
          self.cex.read(iprot)
6357
        else:
6358
          iprot.skip(ftype)
6359
      else:
6360
        iprot.skip(ftype)
6361
      iprot.readFieldEnd()
6362
    iprot.readStructEnd()
6363
 
6364
  def write(self, oprot):
6365
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6366
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6367
      return
6368
    oprot.writeStructBegin('getAllItemPricing_result')
6369
    if self.success is not None:
6370
      oprot.writeFieldBegin('success', TType.LIST, 0)
6371
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 6372
      for iter72 in self.success:
6373
        iter72.write(oprot)
5944 mandeep.dh 6374
      oprot.writeListEnd()
6375
      oprot.writeFieldEnd()
6376
    if self.cex is not None:
6377
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6378
      self.cex.write(oprot)
6379
      oprot.writeFieldEnd()
6380
    oprot.writeFieldStop()
6381
    oprot.writeStructEnd()
6382
 
6383
  def validate(self):
6384
    return
6385
 
6386
 
6387
  def __repr__(self):
6388
    L = ['%s=%r' % (key, value)
6389
      for key, value in self.__dict__.iteritems()]
6390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6391
 
6392
  def __eq__(self, other):
6393
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6394
 
6395
  def __ne__(self, other):
6396
    return not (self == other)
6397
 
6398
class addVendorItemPricing_args:
6399
  """
6400
  Attributes:
6401
   - vendorItemPricing
6402
  """
6403
 
6404
  thrift_spec = (
6405
    None, # 0
6406
    (1, TType.STRUCT, 'vendorItemPricing', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 1
6407
  )
6408
 
6409
  def __init__(self, vendorItemPricing=None,):
6410
    self.vendorItemPricing = vendorItemPricing
6411
 
6412
  def read(self, iprot):
6413
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6414
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6415
      return
6416
    iprot.readStructBegin()
6417
    while True:
6418
      (fname, ftype, fid) = iprot.readFieldBegin()
6419
      if ftype == TType.STOP:
6420
        break
6421
      if fid == 1:
6422
        if ftype == TType.STRUCT:
6423
          self.vendorItemPricing = VendorItemPricing()
6424
          self.vendorItemPricing.read(iprot)
6425
        else:
6426
          iprot.skip(ftype)
6427
      else:
6428
        iprot.skip(ftype)
6429
      iprot.readFieldEnd()
6430
    iprot.readStructEnd()
6431
 
6432
  def write(self, oprot):
6433
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6434
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6435
      return
6436
    oprot.writeStructBegin('addVendorItemPricing_args')
6437
    if self.vendorItemPricing is not None:
6438
      oprot.writeFieldBegin('vendorItemPricing', TType.STRUCT, 1)
6439
      self.vendorItemPricing.write(oprot)
6440
      oprot.writeFieldEnd()
6441
    oprot.writeFieldStop()
6442
    oprot.writeStructEnd()
6443
 
6444
  def validate(self):
6445
    return
6446
 
6447
 
6448
  def __repr__(self):
6449
    L = ['%s=%r' % (key, value)
6450
      for key, value in self.__dict__.iteritems()]
6451
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6452
 
6453
  def __eq__(self, other):
6454
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6455
 
6456
  def __ne__(self, other):
6457
    return not (self == other)
6458
 
6459
class addVendorItemPricing_result:
6460
  """
6461
  Attributes:
6462
   - cex
6463
  """
6464
 
6465
  thrift_spec = (
6466
    None, # 0
6467
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6468
  )
6469
 
6470
  def __init__(self, cex=None,):
6471
    self.cex = cex
6472
 
6473
  def read(self, iprot):
6474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6476
      return
6477
    iprot.readStructBegin()
6478
    while True:
6479
      (fname, ftype, fid) = iprot.readFieldBegin()
6480
      if ftype == TType.STOP:
6481
        break
6482
      if fid == 1:
6483
        if ftype == TType.STRUCT:
6484
          self.cex = InventoryServiceException()
6485
          self.cex.read(iprot)
6486
        else:
6487
          iprot.skip(ftype)
6488
      else:
6489
        iprot.skip(ftype)
6490
      iprot.readFieldEnd()
6491
    iprot.readStructEnd()
6492
 
6493
  def write(self, oprot):
6494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6496
      return
6497
    oprot.writeStructBegin('addVendorItemPricing_result')
6498
    if self.cex is not None:
6499
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6500
      self.cex.write(oprot)
6501
      oprot.writeFieldEnd()
6502
    oprot.writeFieldStop()
6503
    oprot.writeStructEnd()
6504
 
6505
  def validate(self):
6506
    return
6507
 
6508
 
6509
  def __repr__(self):
6510
    L = ['%s=%r' % (key, value)
6511
      for key, value in self.__dict__.iteritems()]
6512
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6513
 
6514
  def __eq__(self, other):
6515
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6516
 
6517
  def __ne__(self, other):
6518
    return not (self == other)
6519
 
6520
class getVendor_args:
6521
  """
6522
  Attributes:
6523
   - vendorId
6524
  """
6525
 
6526
  thrift_spec = (
6527
    None, # 0
6528
    (1, TType.I64, 'vendorId', None, None, ), # 1
6529
  )
6530
 
6531
  def __init__(self, vendorId=None,):
6532
    self.vendorId = vendorId
6533
 
6534
  def read(self, iprot):
6535
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6536
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6537
      return
6538
    iprot.readStructBegin()
6539
    while True:
6540
      (fname, ftype, fid) = iprot.readFieldBegin()
6541
      if ftype == TType.STOP:
6542
        break
6543
      if fid == 1:
6544
        if ftype == TType.I64:
6545
          self.vendorId = iprot.readI64();
6546
        else:
6547
          iprot.skip(ftype)
6548
      else:
6549
        iprot.skip(ftype)
6550
      iprot.readFieldEnd()
6551
    iprot.readStructEnd()
6552
 
6553
  def write(self, oprot):
6554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6556
      return
6557
    oprot.writeStructBegin('getVendor_args')
6558
    if self.vendorId is not None:
6559
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
6560
      oprot.writeI64(self.vendorId)
6561
      oprot.writeFieldEnd()
6562
    oprot.writeFieldStop()
6563
    oprot.writeStructEnd()
6564
 
6565
  def validate(self):
6566
    return
6567
 
6568
 
6569
  def __repr__(self):
6570
    L = ['%s=%r' % (key, value)
6571
      for key, value in self.__dict__.iteritems()]
6572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6573
 
6574
  def __eq__(self, other):
6575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6576
 
6577
  def __ne__(self, other):
6578
    return not (self == other)
6579
 
6580
class getVendor_result:
6581
  """
6582
  Attributes:
6583
   - success
6584
  """
6585
 
6586
  thrift_spec = (
6587
    (0, TType.STRUCT, 'success', (Vendor, Vendor.thrift_spec), None, ), # 0
6588
  )
6589
 
6590
  def __init__(self, success=None,):
6591
    self.success = success
6592
 
6593
  def read(self, iprot):
6594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6596
      return
6597
    iprot.readStructBegin()
6598
    while True:
6599
      (fname, ftype, fid) = iprot.readFieldBegin()
6600
      if ftype == TType.STOP:
6601
        break
6602
      if fid == 0:
6603
        if ftype == TType.STRUCT:
6604
          self.success = Vendor()
6605
          self.success.read(iprot)
6606
        else:
6607
          iprot.skip(ftype)
6608
      else:
6609
        iprot.skip(ftype)
6610
      iprot.readFieldEnd()
6611
    iprot.readStructEnd()
6612
 
6613
  def write(self, oprot):
6614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6616
      return
6617
    oprot.writeStructBegin('getVendor_result')
6618
    if self.success is not None:
6619
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6620
      self.success.write(oprot)
6621
      oprot.writeFieldEnd()
6622
    oprot.writeFieldStop()
6623
    oprot.writeStructEnd()
6624
 
6625
  def validate(self):
6626
    return
6627
 
6628
 
6629
  def __repr__(self):
6630
    L = ['%s=%r' % (key, value)
6631
      for key, value in self.__dict__.iteritems()]
6632
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6633
 
6634
  def __eq__(self, other):
6635
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6636
 
6637
  def __ne__(self, other):
6638
    return not (self == other)
6639
 
6640
class getAllVendors_args:
6641
 
6642
  thrift_spec = (
6643
  )
6644
 
6645
  def read(self, iprot):
6646
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6647
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6648
      return
6649
    iprot.readStructBegin()
6650
    while True:
6651
      (fname, ftype, fid) = iprot.readFieldBegin()
6652
      if ftype == TType.STOP:
6653
        break
6654
      else:
6655
        iprot.skip(ftype)
6656
      iprot.readFieldEnd()
6657
    iprot.readStructEnd()
6658
 
6659
  def write(self, oprot):
6660
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6661
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6662
      return
6663
    oprot.writeStructBegin('getAllVendors_args')
6664
    oprot.writeFieldStop()
6665
    oprot.writeStructEnd()
6666
 
6667
  def validate(self):
6668
    return
6669
 
6670
 
6671
  def __repr__(self):
6672
    L = ['%s=%r' % (key, value)
6673
      for key, value in self.__dict__.iteritems()]
6674
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6675
 
6676
  def __eq__(self, other):
6677
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6678
 
6679
  def __ne__(self, other):
6680
    return not (self == other)
6681
 
6682
class getAllVendors_result:
6683
  """
6684
  Attributes:
6685
   - success
6686
  """
6687
 
6688
  thrift_spec = (
6689
    (0, TType.LIST, 'success', (TType.STRUCT,(Vendor, Vendor.thrift_spec)), None, ), # 0
6690
  )
6691
 
6692
  def __init__(self, success=None,):
6693
    self.success = success
6694
 
6695
  def read(self, iprot):
6696
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6697
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6698
      return
6699
    iprot.readStructBegin()
6700
    while True:
6701
      (fname, ftype, fid) = iprot.readFieldBegin()
6702
      if ftype == TType.STOP:
6703
        break
6704
      if fid == 0:
6705
        if ftype == TType.LIST:
6706
          self.success = []
8182 amar.kumar 6707
          (_etype76, _size73) = iprot.readListBegin()
6708
          for _i77 in xrange(_size73):
6709
            _elem78 = Vendor()
6710
            _elem78.read(iprot)
6711
            self.success.append(_elem78)
5944 mandeep.dh 6712
          iprot.readListEnd()
6713
        else:
6714
          iprot.skip(ftype)
6715
      else:
6716
        iprot.skip(ftype)
6717
      iprot.readFieldEnd()
6718
    iprot.readStructEnd()
6719
 
6720
  def write(self, oprot):
6721
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6722
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6723
      return
6724
    oprot.writeStructBegin('getAllVendors_result')
6725
    if self.success is not None:
6726
      oprot.writeFieldBegin('success', TType.LIST, 0)
6727
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 6728
      for iter79 in self.success:
6729
        iter79.write(oprot)
5944 mandeep.dh 6730
      oprot.writeListEnd()
6731
      oprot.writeFieldEnd()
6732
    oprot.writeFieldStop()
6733
    oprot.writeStructEnd()
6734
 
6735
  def validate(self):
6736
    return
6737
 
6738
 
6739
  def __repr__(self):
6740
    L = ['%s=%r' % (key, value)
6741
      for key, value in self.__dict__.iteritems()]
6742
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6743
 
6744
  def __eq__(self, other):
6745
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6746
 
6747
  def __ne__(self, other):
6748
    return not (self == other)
6749
 
6750
class addVendorItemMapping_args:
6751
  """
6752
  Attributes:
6753
   - key
6754
   - vendorItemMapping
6755
  """
6756
 
6757
  thrift_spec = (
6758
    None, # 0
6759
    (1, TType.STRING, 'key', None, None, ), # 1
6760
    (2, TType.STRUCT, 'vendorItemMapping', (VendorItemMapping, VendorItemMapping.thrift_spec), None, ), # 2
6761
  )
6762
 
6763
  def __init__(self, key=None, vendorItemMapping=None,):
6764
    self.key = key
6765
    self.vendorItemMapping = vendorItemMapping
6766
 
6767
  def read(self, iprot):
6768
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6769
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6770
      return
6771
    iprot.readStructBegin()
6772
    while True:
6773
      (fname, ftype, fid) = iprot.readFieldBegin()
6774
      if ftype == TType.STOP:
6775
        break
6776
      if fid == 1:
6777
        if ftype == TType.STRING:
6778
          self.key = iprot.readString();
6779
        else:
6780
          iprot.skip(ftype)
6781
      elif fid == 2:
6782
        if ftype == TType.STRUCT:
6783
          self.vendorItemMapping = VendorItemMapping()
6784
          self.vendorItemMapping.read(iprot)
6785
        else:
6786
          iprot.skip(ftype)
6787
      else:
6788
        iprot.skip(ftype)
6789
      iprot.readFieldEnd()
6790
    iprot.readStructEnd()
6791
 
6792
  def write(self, oprot):
6793
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6794
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6795
      return
6796
    oprot.writeStructBegin('addVendorItemMapping_args')
6797
    if self.key is not None:
6798
      oprot.writeFieldBegin('key', TType.STRING, 1)
6799
      oprot.writeString(self.key)
6800
      oprot.writeFieldEnd()
6801
    if self.vendorItemMapping is not None:
6802
      oprot.writeFieldBegin('vendorItemMapping', TType.STRUCT, 2)
6803
      self.vendorItemMapping.write(oprot)
6804
      oprot.writeFieldEnd()
6805
    oprot.writeFieldStop()
6806
    oprot.writeStructEnd()
6807
 
6808
  def validate(self):
6809
    return
6810
 
6811
 
6812
  def __repr__(self):
6813
    L = ['%s=%r' % (key, value)
6814
      for key, value in self.__dict__.iteritems()]
6815
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6816
 
6817
  def __eq__(self, other):
6818
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6819
 
6820
  def __ne__(self, other):
6821
    return not (self == other)
6822
 
6823
class addVendorItemMapping_result:
6824
  """
6825
  Attributes:
6826
   - cex
6827
  """
6828
 
6829
  thrift_spec = (
6830
    None, # 0
6831
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6832
  )
6833
 
6834
  def __init__(self, cex=None,):
6835
    self.cex = cex
6836
 
6837
  def read(self, iprot):
6838
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6839
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6840
      return
6841
    iprot.readStructBegin()
6842
    while True:
6843
      (fname, ftype, fid) = iprot.readFieldBegin()
6844
      if ftype == TType.STOP:
6845
        break
6846
      if fid == 1:
6847
        if ftype == TType.STRUCT:
6848
          self.cex = InventoryServiceException()
6849
          self.cex.read(iprot)
6850
        else:
6851
          iprot.skip(ftype)
6852
      else:
6853
        iprot.skip(ftype)
6854
      iprot.readFieldEnd()
6855
    iprot.readStructEnd()
6856
 
6857
  def write(self, oprot):
6858
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6859
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6860
      return
6861
    oprot.writeStructBegin('addVendorItemMapping_result')
6862
    if self.cex is not None:
6863
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6864
      self.cex.write(oprot)
6865
      oprot.writeFieldEnd()
6866
    oprot.writeFieldStop()
6867
    oprot.writeStructEnd()
6868
 
6869
  def validate(self):
6870
    return
6871
 
6872
 
6873
  def __repr__(self):
6874
    L = ['%s=%r' % (key, value)
6875
      for key, value in self.__dict__.iteritems()]
6876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6877
 
6878
  def __eq__(self, other):
6879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6880
 
6881
  def __ne__(self, other):
6882
    return not (self == other)
6883
 
6884
class getVendorItemMappings_args:
6885
  """
6886
  Attributes:
6887
   - itemId
6888
  """
6889
 
6890
  thrift_spec = (
6891
    None, # 0
6892
    (1, TType.I64, 'itemId', None, None, ), # 1
6893
  )
6894
 
6895
  def __init__(self, itemId=None,):
6896
    self.itemId = itemId
6897
 
6898
  def read(self, iprot):
6899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6901
      return
6902
    iprot.readStructBegin()
6903
    while True:
6904
      (fname, ftype, fid) = iprot.readFieldBegin()
6905
      if ftype == TType.STOP:
6906
        break
6907
      if fid == 1:
6908
        if ftype == TType.I64:
6909
          self.itemId = iprot.readI64();
6910
        else:
6911
          iprot.skip(ftype)
6912
      else:
6913
        iprot.skip(ftype)
6914
      iprot.readFieldEnd()
6915
    iprot.readStructEnd()
6916
 
6917
  def write(self, oprot):
6918
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6919
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6920
      return
6921
    oprot.writeStructBegin('getVendorItemMappings_args')
6922
    if self.itemId is not None:
6923
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6924
      oprot.writeI64(self.itemId)
6925
      oprot.writeFieldEnd()
6926
    oprot.writeFieldStop()
6927
    oprot.writeStructEnd()
6928
 
6929
  def validate(self):
6930
    return
6931
 
6932
 
6933
  def __repr__(self):
6934
    L = ['%s=%r' % (key, value)
6935
      for key, value in self.__dict__.iteritems()]
6936
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6937
 
6938
  def __eq__(self, other):
6939
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6940
 
6941
  def __ne__(self, other):
6942
    return not (self == other)
6943
 
6944
class getVendorItemMappings_result:
6945
  """
6946
  Attributes:
6947
   - success
6948
   - cex
6949
  """
6950
 
6951
  thrift_spec = (
6952
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
6953
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6954
  )
6955
 
6956
  def __init__(self, success=None, cex=None,):
6957
    self.success = success
6958
    self.cex = cex
6959
 
6960
  def read(self, iprot):
6961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6963
      return
6964
    iprot.readStructBegin()
6965
    while True:
6966
      (fname, ftype, fid) = iprot.readFieldBegin()
6967
      if ftype == TType.STOP:
6968
        break
6969
      if fid == 0:
6970
        if ftype == TType.LIST:
6971
          self.success = []
8182 amar.kumar 6972
          (_etype83, _size80) = iprot.readListBegin()
6973
          for _i84 in xrange(_size80):
6974
            _elem85 = VendorItemMapping()
6975
            _elem85.read(iprot)
6976
            self.success.append(_elem85)
5944 mandeep.dh 6977
          iprot.readListEnd()
6978
        else:
6979
          iprot.skip(ftype)
6980
      elif fid == 1:
6981
        if ftype == TType.STRUCT:
6982
          self.cex = InventoryServiceException()
6983
          self.cex.read(iprot)
6984
        else:
6985
          iprot.skip(ftype)
6986
      else:
6987
        iprot.skip(ftype)
6988
      iprot.readFieldEnd()
6989
    iprot.readStructEnd()
6990
 
6991
  def write(self, oprot):
6992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6994
      return
6995
    oprot.writeStructBegin('getVendorItemMappings_result')
6996
    if self.success is not None:
6997
      oprot.writeFieldBegin('success', TType.LIST, 0)
6998
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 6999
      for iter86 in self.success:
7000
        iter86.write(oprot)
5944 mandeep.dh 7001
      oprot.writeListEnd()
7002
      oprot.writeFieldEnd()
7003
    if self.cex is not None:
7004
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7005
      self.cex.write(oprot)
7006
      oprot.writeFieldEnd()
7007
    oprot.writeFieldStop()
7008
    oprot.writeStructEnd()
7009
 
7010
  def validate(self):
7011
    return
7012
 
7013
 
7014
  def __repr__(self):
7015
    L = ['%s=%r' % (key, value)
7016
      for key, value in self.__dict__.iteritems()]
7017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7018
 
7019
  def __eq__(self, other):
7020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7021
 
7022
  def __ne__(self, other):
7023
    return not (self == other)
7024
 
7025
class getPendingOrdersInventory_args:
7026
  """
7027
  Attributes:
7028
   - vendorid
7029
  """
7030
 
7031
  thrift_spec = (
7032
    None, # 0
7033
    (1, TType.I64, 'vendorid', None, None, ), # 1
7034
  )
7035
 
7036
  def __init__(self, vendorid=None,):
7037
    self.vendorid = vendorid
7038
 
7039
  def read(self, iprot):
7040
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7041
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7042
      return
7043
    iprot.readStructBegin()
7044
    while True:
7045
      (fname, ftype, fid) = iprot.readFieldBegin()
7046
      if ftype == TType.STOP:
7047
        break
7048
      if fid == 1:
7049
        if ftype == TType.I64:
7050
          self.vendorid = iprot.readI64();
7051
        else:
7052
          iprot.skip(ftype)
7053
      else:
7054
        iprot.skip(ftype)
7055
      iprot.readFieldEnd()
7056
    iprot.readStructEnd()
7057
 
7058
  def write(self, oprot):
7059
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7060
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7061
      return
7062
    oprot.writeStructBegin('getPendingOrdersInventory_args')
7063
    if self.vendorid is not None:
7064
      oprot.writeFieldBegin('vendorid', TType.I64, 1)
7065
      oprot.writeI64(self.vendorid)
7066
      oprot.writeFieldEnd()
7067
    oprot.writeFieldStop()
7068
    oprot.writeStructEnd()
7069
 
7070
  def validate(self):
7071
    return
7072
 
7073
 
7074
  def __repr__(self):
7075
    L = ['%s=%r' % (key, value)
7076
      for key, value in self.__dict__.iteritems()]
7077
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7078
 
7079
  def __eq__(self, other):
7080
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7081
 
7082
  def __ne__(self, other):
7083
    return not (self == other)
7084
 
7085
class getPendingOrdersInventory_result:
7086
  """
7087
  Attributes:
7088
   - success
7089
  """
7090
 
7091
  thrift_spec = (
7092
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
7093
  )
7094
 
7095
  def __init__(self, success=None,):
7096
    self.success = success
7097
 
7098
  def read(self, iprot):
7099
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7100
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7101
      return
7102
    iprot.readStructBegin()
7103
    while True:
7104
      (fname, ftype, fid) = iprot.readFieldBegin()
7105
      if ftype == TType.STOP:
7106
        break
7107
      if fid == 0:
7108
        if ftype == TType.LIST:
7109
          self.success = []
8182 amar.kumar 7110
          (_etype90, _size87) = iprot.readListBegin()
7111
          for _i91 in xrange(_size87):
7112
            _elem92 = AvailableAndReservedStock()
7113
            _elem92.read(iprot)
7114
            self.success.append(_elem92)
5944 mandeep.dh 7115
          iprot.readListEnd()
7116
        else:
7117
          iprot.skip(ftype)
7118
      else:
7119
        iprot.skip(ftype)
7120
      iprot.readFieldEnd()
7121
    iprot.readStructEnd()
7122
 
7123
  def write(self, oprot):
7124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7126
      return
7127
    oprot.writeStructBegin('getPendingOrdersInventory_result')
7128
    if self.success is not None:
7129
      oprot.writeFieldBegin('success', TType.LIST, 0)
7130
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7131
      for iter93 in self.success:
7132
        iter93.write(oprot)
5944 mandeep.dh 7133
      oprot.writeListEnd()
7134
      oprot.writeFieldEnd()
7135
    oprot.writeFieldStop()
7136
    oprot.writeStructEnd()
7137
 
7138
  def validate(self):
7139
    return
7140
 
7141
 
7142
  def __repr__(self):
7143
    L = ['%s=%r' % (key, value)
7144
      for key, value in self.__dict__.iteritems()]
7145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7146
 
7147
  def __eq__(self, other):
7148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7149
 
7150
  def __ne__(self, other):
7151
    return not (self == other)
7152
 
7153
class getWarehouses_args:
7154
  """
7155
  Attributes:
7156
   - warehouseType
7157
   - inventoryType
7158
   - vendorId
7159
   - billingWarehouseId
7160
   - shippingWarehouseId
7161
  """
7162
 
7163
  thrift_spec = (
7164
    None, # 0
7165
    (1, TType.I32, 'warehouseType', None, None, ), # 1
7166
    (2, TType.I32, 'inventoryType', None, None, ), # 2
7167
    (3, TType.I64, 'vendorId', None, None, ), # 3
7168
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
7169
    (5, TType.I64, 'shippingWarehouseId', None, None, ), # 5
7170
  )
7171
 
7172
  def __init__(self, warehouseType=None, inventoryType=None, vendorId=None, billingWarehouseId=None, shippingWarehouseId=None,):
7173
    self.warehouseType = warehouseType
7174
    self.inventoryType = inventoryType
7175
    self.vendorId = vendorId
7176
    self.billingWarehouseId = billingWarehouseId
7177
    self.shippingWarehouseId = shippingWarehouseId
7178
 
7179
  def read(self, iprot):
7180
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7181
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7182
      return
7183
    iprot.readStructBegin()
7184
    while True:
7185
      (fname, ftype, fid) = iprot.readFieldBegin()
7186
      if ftype == TType.STOP:
7187
        break
7188
      if fid == 1:
7189
        if ftype == TType.I32:
7190
          self.warehouseType = iprot.readI32();
7191
        else:
7192
          iprot.skip(ftype)
7193
      elif fid == 2:
7194
        if ftype == TType.I32:
7195
          self.inventoryType = iprot.readI32();
7196
        else:
7197
          iprot.skip(ftype)
7198
      elif fid == 3:
7199
        if ftype == TType.I64:
7200
          self.vendorId = iprot.readI64();
7201
        else:
7202
          iprot.skip(ftype)
7203
      elif fid == 4:
7204
        if ftype == TType.I64:
7205
          self.billingWarehouseId = iprot.readI64();
7206
        else:
7207
          iprot.skip(ftype)
7208
      elif fid == 5:
7209
        if ftype == TType.I64:
7210
          self.shippingWarehouseId = iprot.readI64();
7211
        else:
7212
          iprot.skip(ftype)
7213
      else:
7214
        iprot.skip(ftype)
7215
      iprot.readFieldEnd()
7216
    iprot.readStructEnd()
7217
 
7218
  def write(self, oprot):
7219
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7220
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7221
      return
7222
    oprot.writeStructBegin('getWarehouses_args')
7223
    if self.warehouseType is not None:
7224
      oprot.writeFieldBegin('warehouseType', TType.I32, 1)
7225
      oprot.writeI32(self.warehouseType)
7226
      oprot.writeFieldEnd()
7227
    if self.inventoryType is not None:
7228
      oprot.writeFieldBegin('inventoryType', TType.I32, 2)
7229
      oprot.writeI32(self.inventoryType)
7230
      oprot.writeFieldEnd()
7231
    if self.vendorId is not None:
7232
      oprot.writeFieldBegin('vendorId', TType.I64, 3)
7233
      oprot.writeI64(self.vendorId)
7234
      oprot.writeFieldEnd()
7235
    if self.billingWarehouseId is not None:
7236
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
7237
      oprot.writeI64(self.billingWarehouseId)
7238
      oprot.writeFieldEnd()
7239
    if self.shippingWarehouseId is not None:
7240
      oprot.writeFieldBegin('shippingWarehouseId', TType.I64, 5)
7241
      oprot.writeI64(self.shippingWarehouseId)
7242
      oprot.writeFieldEnd()
7243
    oprot.writeFieldStop()
7244
    oprot.writeStructEnd()
7245
 
7246
  def validate(self):
7247
    return
7248
 
7249
 
7250
  def __repr__(self):
7251
    L = ['%s=%r' % (key, value)
7252
      for key, value in self.__dict__.iteritems()]
7253
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7254
 
7255
  def __eq__(self, other):
7256
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7257
 
7258
  def __ne__(self, other):
7259
    return not (self == other)
7260
 
7261
class getWarehouses_result:
7262
  """
7263
  Attributes:
7264
   - success
7265
  """
7266
 
7267
  thrift_spec = (
7268
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
7269
  )
7270
 
7271
  def __init__(self, success=None,):
7272
    self.success = success
7273
 
7274
  def read(self, iprot):
7275
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7276
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7277
      return
7278
    iprot.readStructBegin()
7279
    while True:
7280
      (fname, ftype, fid) = iprot.readFieldBegin()
7281
      if ftype == TType.STOP:
7282
        break
7283
      if fid == 0:
7284
        if ftype == TType.LIST:
7285
          self.success = []
8182 amar.kumar 7286
          (_etype97, _size94) = iprot.readListBegin()
7287
          for _i98 in xrange(_size94):
7288
            _elem99 = Warehouse()
7289
            _elem99.read(iprot)
7290
            self.success.append(_elem99)
5944 mandeep.dh 7291
          iprot.readListEnd()
7292
        else:
7293
          iprot.skip(ftype)
7294
      else:
7295
        iprot.skip(ftype)
7296
      iprot.readFieldEnd()
7297
    iprot.readStructEnd()
7298
 
7299
  def write(self, oprot):
7300
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7301
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7302
      return
7303
    oprot.writeStructBegin('getWarehouses_result')
7304
    if self.success is not None:
7305
      oprot.writeFieldBegin('success', TType.LIST, 0)
7306
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7307
      for iter100 in self.success:
7308
        iter100.write(oprot)
5944 mandeep.dh 7309
      oprot.writeListEnd()
7310
      oprot.writeFieldEnd()
7311
    oprot.writeFieldStop()
7312
    oprot.writeStructEnd()
7313
 
7314
  def validate(self):
7315
    return
7316
 
7317
 
7318
  def __repr__(self):
7319
    L = ['%s=%r' % (key, value)
7320
      for key, value in self.__dict__.iteritems()]
7321
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7322
 
7323
  def __eq__(self, other):
7324
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7325
 
7326
  def __ne__(self, other):
7327
    return not (self == other)
7328
 
7329
class resetAvailability_args:
7330
  """
7331
  Attributes:
7332
   - itemKey
7333
   - vendorId
7334
   - quantity
7335
   - warehouseId
7336
  """
7337
 
7338
  thrift_spec = (
7339
    None, # 0
7340
    (1, TType.STRING, 'itemKey', None, None, ), # 1
7341
    (2, TType.I64, 'vendorId', None, None, ), # 2
7342
    (3, TType.I64, 'quantity', None, None, ), # 3
7343
    (4, TType.I64, 'warehouseId', None, None, ), # 4
7344
  )
7345
 
7346
  def __init__(self, itemKey=None, vendorId=None, quantity=None, warehouseId=None,):
7347
    self.itemKey = itemKey
7348
    self.vendorId = vendorId
7349
    self.quantity = quantity
7350
    self.warehouseId = warehouseId
7351
 
7352
  def read(self, iprot):
7353
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7354
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7355
      return
7356
    iprot.readStructBegin()
7357
    while True:
7358
      (fname, ftype, fid) = iprot.readFieldBegin()
7359
      if ftype == TType.STOP:
7360
        break
7361
      if fid == 1:
7362
        if ftype == TType.STRING:
7363
          self.itemKey = iprot.readString();
7364
        else:
7365
          iprot.skip(ftype)
7366
      elif fid == 2:
7367
        if ftype == TType.I64:
7368
          self.vendorId = iprot.readI64();
7369
        else:
7370
          iprot.skip(ftype)
7371
      elif fid == 3:
7372
        if ftype == TType.I64:
7373
          self.quantity = iprot.readI64();
7374
        else:
7375
          iprot.skip(ftype)
7376
      elif fid == 4:
7377
        if ftype == TType.I64:
7378
          self.warehouseId = iprot.readI64();
7379
        else:
7380
          iprot.skip(ftype)
7381
      else:
7382
        iprot.skip(ftype)
7383
      iprot.readFieldEnd()
7384
    iprot.readStructEnd()
7385
 
7386
  def write(self, oprot):
7387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7389
      return
7390
    oprot.writeStructBegin('resetAvailability_args')
7391
    if self.itemKey is not None:
7392
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
7393
      oprot.writeString(self.itemKey)
7394
      oprot.writeFieldEnd()
7395
    if self.vendorId is not None:
7396
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
7397
      oprot.writeI64(self.vendorId)
7398
      oprot.writeFieldEnd()
7399
    if self.quantity is not None:
7400
      oprot.writeFieldBegin('quantity', TType.I64, 3)
7401
      oprot.writeI64(self.quantity)
7402
      oprot.writeFieldEnd()
7403
    if self.warehouseId is not None:
7404
      oprot.writeFieldBegin('warehouseId', TType.I64, 4)
7405
      oprot.writeI64(self.warehouseId)
7406
      oprot.writeFieldEnd()
7407
    oprot.writeFieldStop()
7408
    oprot.writeStructEnd()
7409
 
7410
  def validate(self):
7411
    return
7412
 
7413
 
7414
  def __repr__(self):
7415
    L = ['%s=%r' % (key, value)
7416
      for key, value in self.__dict__.iteritems()]
7417
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7418
 
7419
  def __eq__(self, other):
7420
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7421
 
7422
  def __ne__(self, other):
7423
    return not (self == other)
7424
 
7425
class resetAvailability_result:
7426
  """
7427
  Attributes:
7428
   - cex
7429
  """
7430
 
7431
  thrift_spec = (
7432
    None, # 0
7433
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7434
  )
7435
 
7436
  def __init__(self, cex=None,):
7437
    self.cex = cex
7438
 
7439
  def read(self, iprot):
7440
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7441
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7442
      return
7443
    iprot.readStructBegin()
7444
    while True:
7445
      (fname, ftype, fid) = iprot.readFieldBegin()
7446
      if ftype == TType.STOP:
7447
        break
7448
      if fid == 1:
7449
        if ftype == TType.STRUCT:
7450
          self.cex = InventoryServiceException()
7451
          self.cex.read(iprot)
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('resetAvailability_result')
7464
    if self.cex is not None:
7465
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7466
      self.cex.write(oprot)
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 resetAvailabilityForWarehouse_args:
7487
  """
7488
  Attributes:
7489
   - warehouseId
7490
  """
7491
 
7492
  thrift_spec = (
7493
    None, # 0
7494
    (1, TType.I64, 'warehouseId', None, None, ), # 1
7495
  )
7496
 
7497
  def __init__(self, warehouseId=None,):
7498
    self.warehouseId = warehouseId
7499
 
7500
  def read(self, iprot):
7501
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7502
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7503
      return
7504
    iprot.readStructBegin()
7505
    while True:
7506
      (fname, ftype, fid) = iprot.readFieldBegin()
7507
      if ftype == TType.STOP:
7508
        break
7509
      if fid == 1:
7510
        if ftype == TType.I64:
7511
          self.warehouseId = iprot.readI64();
7512
        else:
7513
          iprot.skip(ftype)
7514
      else:
7515
        iprot.skip(ftype)
7516
      iprot.readFieldEnd()
7517
    iprot.readStructEnd()
7518
 
7519
  def write(self, oprot):
7520
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7521
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7522
      return
7523
    oprot.writeStructBegin('resetAvailabilityForWarehouse_args')
7524
    if self.warehouseId is not None:
7525
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
7526
      oprot.writeI64(self.warehouseId)
7527
      oprot.writeFieldEnd()
7528
    oprot.writeFieldStop()
7529
    oprot.writeStructEnd()
7530
 
7531
  def validate(self):
7532
    return
7533
 
7534
 
7535
  def __repr__(self):
7536
    L = ['%s=%r' % (key, value)
7537
      for key, value in self.__dict__.iteritems()]
7538
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7539
 
7540
  def __eq__(self, other):
7541
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7542
 
7543
  def __ne__(self, other):
7544
    return not (self == other)
7545
 
7546
class resetAvailabilityForWarehouse_result:
7547
  """
7548
  Attributes:
7549
   - cex
7550
  """
7551
 
7552
  thrift_spec = (
7553
    None, # 0
7554
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7555
  )
7556
 
7557
  def __init__(self, cex=None,):
7558
    self.cex = cex
7559
 
7560
  def read(self, iprot):
7561
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7562
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7563
      return
7564
    iprot.readStructBegin()
7565
    while True:
7566
      (fname, ftype, fid) = iprot.readFieldBegin()
7567
      if ftype == TType.STOP:
7568
        break
7569
      if fid == 1:
7570
        if ftype == TType.STRUCT:
7571
          self.cex = InventoryServiceException()
7572
          self.cex.read(iprot)
7573
        else:
7574
          iprot.skip(ftype)
7575
      else:
7576
        iprot.skip(ftype)
7577
      iprot.readFieldEnd()
7578
    iprot.readStructEnd()
7579
 
7580
  def write(self, oprot):
7581
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7582
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7583
      return
7584
    oprot.writeStructBegin('resetAvailabilityForWarehouse_result')
7585
    if self.cex is not None:
7586
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7587
      self.cex.write(oprot)
7588
      oprot.writeFieldEnd()
7589
    oprot.writeFieldStop()
7590
    oprot.writeStructEnd()
7591
 
7592
  def validate(self):
7593
    return
7594
 
7595
 
7596
  def __repr__(self):
7597
    L = ['%s=%r' % (key, value)
7598
      for key, value in self.__dict__.iteritems()]
7599
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7600
 
7601
  def __eq__(self, other):
7602
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7603
 
7604
  def __ne__(self, other):
7605
    return not (self == other)
7606
 
7607
class getItemKeysToBeProcessed_args:
7608
  """
7609
  Attributes:
7610
   - warehouseId
7611
  """
7612
 
7613
  thrift_spec = (
7614
    None, # 0
7615
    (1, TType.I64, 'warehouseId', None, None, ), # 1
7616
  )
7617
 
7618
  def __init__(self, warehouseId=None,):
7619
    self.warehouseId = warehouseId
7620
 
7621
  def read(self, iprot):
7622
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7623
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7624
      return
7625
    iprot.readStructBegin()
7626
    while True:
7627
      (fname, ftype, fid) = iprot.readFieldBegin()
7628
      if ftype == TType.STOP:
7629
        break
7630
      if fid == 1:
7631
        if ftype == TType.I64:
7632
          self.warehouseId = iprot.readI64();
7633
        else:
7634
          iprot.skip(ftype)
7635
      else:
7636
        iprot.skip(ftype)
7637
      iprot.readFieldEnd()
7638
    iprot.readStructEnd()
7639
 
7640
  def write(self, oprot):
7641
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7642
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7643
      return
7644
    oprot.writeStructBegin('getItemKeysToBeProcessed_args')
7645
    if self.warehouseId is not None:
7646
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
7647
      oprot.writeI64(self.warehouseId)
7648
      oprot.writeFieldEnd()
7649
    oprot.writeFieldStop()
7650
    oprot.writeStructEnd()
7651
 
7652
  def validate(self):
7653
    return
7654
 
7655
 
7656
  def __repr__(self):
7657
    L = ['%s=%r' % (key, value)
7658
      for key, value in self.__dict__.iteritems()]
7659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7660
 
7661
  def __eq__(self, other):
7662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7663
 
7664
  def __ne__(self, other):
7665
    return not (self == other)
7666
 
7667
class getItemKeysToBeProcessed_result:
7668
  """
7669
  Attributes:
7670
   - success
7671
  """
7672
 
7673
  thrift_spec = (
7674
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
7675
  )
7676
 
7677
  def __init__(self, success=None,):
7678
    self.success = success
7679
 
7680
  def read(self, iprot):
7681
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7682
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7683
      return
7684
    iprot.readStructBegin()
7685
    while True:
7686
      (fname, ftype, fid) = iprot.readFieldBegin()
7687
      if ftype == TType.STOP:
7688
        break
7689
      if fid == 0:
7690
        if ftype == TType.LIST:
7691
          self.success = []
8182 amar.kumar 7692
          (_etype104, _size101) = iprot.readListBegin()
7693
          for _i105 in xrange(_size101):
7694
            _elem106 = iprot.readString();
7695
            self.success.append(_elem106)
5944 mandeep.dh 7696
          iprot.readListEnd()
7697
        else:
7698
          iprot.skip(ftype)
7699
      else:
7700
        iprot.skip(ftype)
7701
      iprot.readFieldEnd()
7702
    iprot.readStructEnd()
7703
 
7704
  def write(self, oprot):
7705
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7706
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7707
      return
7708
    oprot.writeStructBegin('getItemKeysToBeProcessed_result')
7709
    if self.success is not None:
7710
      oprot.writeFieldBegin('success', TType.LIST, 0)
7711
      oprot.writeListBegin(TType.STRING, len(self.success))
8182 amar.kumar 7712
      for iter107 in self.success:
7713
        oprot.writeString(iter107)
5944 mandeep.dh 7714
      oprot.writeListEnd()
7715
      oprot.writeFieldEnd()
7716
    oprot.writeFieldStop()
7717
    oprot.writeStructEnd()
7718
 
7719
  def validate(self):
7720
    return
7721
 
7722
 
7723
  def __repr__(self):
7724
    L = ['%s=%r' % (key, value)
7725
      for key, value in self.__dict__.iteritems()]
7726
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7727
 
7728
  def __eq__(self, other):
7729
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7730
 
7731
  def __ne__(self, other):
7732
    return not (self == other)
7733
 
7734
class markMissedInventoryUpdatesAsProcessed_args:
7735
  """
7736
  Attributes:
7737
   - itemKey
7738
   - warehouseId
7739
  """
7740
 
7741
  thrift_spec = (
7742
    None, # 0
7743
    (1, TType.STRING, 'itemKey', None, None, ), # 1
7744
    (2, TType.I64, 'warehouseId', None, None, ), # 2
7745
  )
7746
 
7747
  def __init__(self, itemKey=None, warehouseId=None,):
7748
    self.itemKey = itemKey
7749
    self.warehouseId = warehouseId
7750
 
7751
  def read(self, iprot):
7752
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7753
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7754
      return
7755
    iprot.readStructBegin()
7756
    while True:
7757
      (fname, ftype, fid) = iprot.readFieldBegin()
7758
      if ftype == TType.STOP:
7759
        break
7760
      if fid == 1:
7761
        if ftype == TType.STRING:
7762
          self.itemKey = iprot.readString();
7763
        else:
7764
          iprot.skip(ftype)
7765
      elif fid == 2:
7766
        if ftype == TType.I64:
7767
          self.warehouseId = iprot.readI64();
7768
        else:
7769
          iprot.skip(ftype)
7770
      else:
7771
        iprot.skip(ftype)
7772
      iprot.readFieldEnd()
7773
    iprot.readStructEnd()
7774
 
7775
  def write(self, oprot):
7776
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7777
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7778
      return
7779
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_args')
7780
    if self.itemKey is not None:
7781
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
7782
      oprot.writeString(self.itemKey)
7783
      oprot.writeFieldEnd()
7784
    if self.warehouseId is not None:
7785
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
7786
      oprot.writeI64(self.warehouseId)
7787
      oprot.writeFieldEnd()
7788
    oprot.writeFieldStop()
7789
    oprot.writeStructEnd()
7790
 
7791
  def validate(self):
7792
    return
7793
 
7794
 
7795
  def __repr__(self):
7796
    L = ['%s=%r' % (key, value)
7797
      for key, value in self.__dict__.iteritems()]
7798
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7799
 
7800
  def __eq__(self, other):
7801
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7802
 
7803
  def __ne__(self, other):
7804
    return not (self == other)
7805
 
7806
class markMissedInventoryUpdatesAsProcessed_result:
7807
 
7808
  thrift_spec = (
7809
  )
7810
 
7811
  def read(self, iprot):
7812
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7813
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7814
      return
7815
    iprot.readStructBegin()
7816
    while True:
7817
      (fname, ftype, fid) = iprot.readFieldBegin()
7818
      if ftype == TType.STOP:
7819
        break
7820
      else:
7821
        iprot.skip(ftype)
7822
      iprot.readFieldEnd()
7823
    iprot.readStructEnd()
7824
 
7825
  def write(self, oprot):
7826
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7827
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7828
      return
7829
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_result')
7830
    oprot.writeFieldStop()
7831
    oprot.writeStructEnd()
7832
 
7833
  def validate(self):
7834
    return
7835
 
7836
 
7837
  def __repr__(self):
7838
    L = ['%s=%r' % (key, value)
7839
      for key, value in self.__dict__.iteritems()]
7840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7841
 
7842
  def __eq__(self, other):
7843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7844
 
7845
  def __ne__(self, other):
7846
    return not (self == other)
7847
 
7848
class getIgnoredItemKeys_args:
7849
 
7850
  thrift_spec = (
7851
  )
7852
 
7853
  def read(self, iprot):
7854
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7855
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7856
      return
7857
    iprot.readStructBegin()
7858
    while True:
7859
      (fname, ftype, fid) = iprot.readFieldBegin()
7860
      if ftype == TType.STOP:
7861
        break
7862
      else:
7863
        iprot.skip(ftype)
7864
      iprot.readFieldEnd()
7865
    iprot.readStructEnd()
7866
 
7867
  def write(self, oprot):
7868
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7869
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7870
      return
7871
    oprot.writeStructBegin('getIgnoredItemKeys_args')
7872
    oprot.writeFieldStop()
7873
    oprot.writeStructEnd()
7874
 
7875
  def validate(self):
7876
    return
7877
 
7878
 
7879
  def __repr__(self):
7880
    L = ['%s=%r' % (key, value)
7881
      for key, value in self.__dict__.iteritems()]
7882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7883
 
7884
  def __eq__(self, other):
7885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7886
 
7887
  def __ne__(self, other):
7888
    return not (self == other)
7889
 
7890
class getIgnoredItemKeys_result:
7891
  """
7892
  Attributes:
7893
   - success
7894
  """
7895
 
7896
  thrift_spec = (
7897
    (0, TType.MAP, 'success', (TType.STRING,None,TType.MAP,(TType.I64,None,TType.I64,None)), None, ), # 0
7898
  )
7899
 
7900
  def __init__(self, success=None,):
7901
    self.success = success
7902
 
7903
  def read(self, iprot):
7904
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7905
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7906
      return
7907
    iprot.readStructBegin()
7908
    while True:
7909
      (fname, ftype, fid) = iprot.readFieldBegin()
7910
      if ftype == TType.STOP:
7911
        break
7912
      if fid == 0:
7913
        if ftype == TType.MAP:
7914
          self.success = {}
8182 amar.kumar 7915
          (_ktype109, _vtype110, _size108 ) = iprot.readMapBegin() 
7916
          for _i112 in xrange(_size108):
7917
            _key113 = iprot.readString();
7918
            _val114 = {}
7919
            (_ktype116, _vtype117, _size115 ) = iprot.readMapBegin() 
7920
            for _i119 in xrange(_size115):
7921
              _key120 = iprot.readI64();
7922
              _val121 = iprot.readI64();
7923
              _val114[_key120] = _val121
5944 mandeep.dh 7924
            iprot.readMapEnd()
8182 amar.kumar 7925
            self.success[_key113] = _val114
5944 mandeep.dh 7926
          iprot.readMapEnd()
7927
        else:
7928
          iprot.skip(ftype)
7929
      else:
7930
        iprot.skip(ftype)
7931
      iprot.readFieldEnd()
7932
    iprot.readStructEnd()
7933
 
7934
  def write(self, oprot):
7935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7937
      return
7938
    oprot.writeStructBegin('getIgnoredItemKeys_result')
7939
    if self.success is not None:
7940
      oprot.writeFieldBegin('success', TType.MAP, 0)
7941
      oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.success))
8182 amar.kumar 7942
      for kiter122,viter123 in self.success.items():
7943
        oprot.writeString(kiter122)
7944
        oprot.writeMapBegin(TType.I64, TType.I64, len(viter123))
7945
        for kiter124,viter125 in viter123.items():
7946
          oprot.writeI64(kiter124)
7947
          oprot.writeI64(viter125)
5944 mandeep.dh 7948
        oprot.writeMapEnd()
7949
      oprot.writeMapEnd()
7950
      oprot.writeFieldEnd()
7951
    oprot.writeFieldStop()
7952
    oprot.writeStructEnd()
7953
 
7954
  def validate(self):
7955
    return
7956
 
7957
 
7958
  def __repr__(self):
7959
    L = ['%s=%r' % (key, value)
7960
      for key, value in self.__dict__.iteritems()]
7961
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7962
 
7963
  def __eq__(self, other):
7964
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7965
 
7966
  def __ne__(self, other):
7967
    return not (self == other)
7968
 
7969
class addBadInventory_args:
7970
  """
7971
  Attributes:
7972
   - itemId
7973
   - warehouseId
7974
   - quantity
7975
  """
7976
 
7977
  thrift_spec = (
7978
    None, # 0
7979
    (1, TType.I64, 'itemId', None, None, ), # 1
7980
    (2, TType.I64, 'warehouseId', None, None, ), # 2
7981
    (3, TType.I64, 'quantity', None, None, ), # 3
7982
  )
7983
 
7984
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
7985
    self.itemId = itemId
7986
    self.warehouseId = warehouseId
7987
    self.quantity = quantity
7988
 
7989
  def read(self, iprot):
7990
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7991
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7992
      return
7993
    iprot.readStructBegin()
7994
    while True:
7995
      (fname, ftype, fid) = iprot.readFieldBegin()
7996
      if ftype == TType.STOP:
7997
        break
7998
      if fid == 1:
7999
        if ftype == TType.I64:
8000
          self.itemId = iprot.readI64();
8001
        else:
8002
          iprot.skip(ftype)
8003
      elif fid == 2:
8004
        if ftype == TType.I64:
8005
          self.warehouseId = iprot.readI64();
8006
        else:
8007
          iprot.skip(ftype)
8008
      elif fid == 3:
8009
        if ftype == TType.I64:
8010
          self.quantity = iprot.readI64();
8011
        else:
8012
          iprot.skip(ftype)
8013
      else:
8014
        iprot.skip(ftype)
8015
      iprot.readFieldEnd()
8016
    iprot.readStructEnd()
8017
 
8018
  def write(self, oprot):
8019
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8020
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8021
      return
8022
    oprot.writeStructBegin('addBadInventory_args')
8023
    if self.itemId is not None:
8024
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8025
      oprot.writeI64(self.itemId)
8026
      oprot.writeFieldEnd()
8027
    if self.warehouseId is not None:
8028
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8029
      oprot.writeI64(self.warehouseId)
8030
      oprot.writeFieldEnd()
8031
    if self.quantity is not None:
8032
      oprot.writeFieldBegin('quantity', TType.I64, 3)
8033
      oprot.writeI64(self.quantity)
8034
      oprot.writeFieldEnd()
8035
    oprot.writeFieldStop()
8036
    oprot.writeStructEnd()
8037
 
8038
  def validate(self):
8039
    return
8040
 
8041
 
8042
  def __repr__(self):
8043
    L = ['%s=%r' % (key, value)
8044
      for key, value in self.__dict__.iteritems()]
8045
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8046
 
8047
  def __eq__(self, other):
8048
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8049
 
8050
  def __ne__(self, other):
8051
    return not (self == other)
8052
 
8053
class addBadInventory_result:
8054
  """
8055
  Attributes:
8056
   - cex
8057
  """
8058
 
8059
  thrift_spec = (
8060
    None, # 0
8061
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8062
  )
8063
 
8064
  def __init__(self, cex=None,):
8065
    self.cex = cex
8066
 
8067
  def read(self, iprot):
8068
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8069
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8070
      return
8071
    iprot.readStructBegin()
8072
    while True:
8073
      (fname, ftype, fid) = iprot.readFieldBegin()
8074
      if ftype == TType.STOP:
8075
        break
8076
      if fid == 1:
8077
        if ftype == TType.STRUCT:
8078
          self.cex = InventoryServiceException()
8079
          self.cex.read(iprot)
8080
        else:
8081
          iprot.skip(ftype)
8082
      else:
8083
        iprot.skip(ftype)
8084
      iprot.readFieldEnd()
8085
    iprot.readStructEnd()
8086
 
8087
  def write(self, oprot):
8088
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8089
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8090
      return
8091
    oprot.writeStructBegin('addBadInventory_result')
8092
    if self.cex is not None:
8093
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8094
      self.cex.write(oprot)
8095
      oprot.writeFieldEnd()
8096
    oprot.writeFieldStop()
8097
    oprot.writeStructEnd()
8098
 
8099
  def validate(self):
8100
    return
8101
 
8102
 
8103
  def __repr__(self):
8104
    L = ['%s=%r' % (key, value)
8105
      for key, value in self.__dict__.iteritems()]
8106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8107
 
8108
  def __eq__(self, other):
8109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8110
 
8111
  def __ne__(self, other):
8112
    return not (self == other)
8113
 
8114
class getShippingLocations_args:
8115
 
8116
  thrift_spec = (
8117
  )
8118
 
8119
  def read(self, iprot):
8120
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8121
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8122
      return
8123
    iprot.readStructBegin()
8124
    while True:
8125
      (fname, ftype, fid) = iprot.readFieldBegin()
8126
      if ftype == TType.STOP:
8127
        break
8128
      else:
8129
        iprot.skip(ftype)
8130
      iprot.readFieldEnd()
8131
    iprot.readStructEnd()
8132
 
8133
  def write(self, oprot):
8134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8136
      return
8137
    oprot.writeStructBegin('getShippingLocations_args')
8138
    oprot.writeFieldStop()
8139
    oprot.writeStructEnd()
8140
 
8141
  def validate(self):
8142
    return
8143
 
8144
 
8145
  def __repr__(self):
8146
    L = ['%s=%r' % (key, value)
8147
      for key, value in self.__dict__.iteritems()]
8148
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8149
 
8150
  def __eq__(self, other):
8151
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8152
 
8153
  def __ne__(self, other):
8154
    return not (self == other)
8155
 
8156
class getShippingLocations_result:
8157
  """
8158
  Attributes:
8159
   - success
8160
  """
8161
 
8162
  thrift_spec = (
8163
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
8164
  )
8165
 
8166
  def __init__(self, success=None,):
8167
    self.success = success
8168
 
8169
  def read(self, iprot):
8170
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8171
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8172
      return
8173
    iprot.readStructBegin()
8174
    while True:
8175
      (fname, ftype, fid) = iprot.readFieldBegin()
8176
      if ftype == TType.STOP:
8177
        break
8178
      if fid == 0:
8179
        if ftype == TType.LIST:
8180
          self.success = []
8182 amar.kumar 8181
          (_etype129, _size126) = iprot.readListBegin()
8182
          for _i130 in xrange(_size126):
8183
            _elem131 = Warehouse()
8184
            _elem131.read(iprot)
8185
            self.success.append(_elem131)
5944 mandeep.dh 8186
          iprot.readListEnd()
8187
        else:
8188
          iprot.skip(ftype)
8189
      else:
8190
        iprot.skip(ftype)
8191
      iprot.readFieldEnd()
8192
    iprot.readStructEnd()
8193
 
8194
  def write(self, oprot):
8195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8197
      return
8198
    oprot.writeStructBegin('getShippingLocations_result')
8199
    if self.success is not None:
8200
      oprot.writeFieldBegin('success', TType.LIST, 0)
8201
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8202
      for iter132 in self.success:
8203
        iter132.write(oprot)
5944 mandeep.dh 8204
      oprot.writeListEnd()
8205
      oprot.writeFieldEnd()
8206
    oprot.writeFieldStop()
8207
    oprot.writeStructEnd()
8208
 
8209
  def validate(self):
8210
    return
8211
 
8212
 
8213
  def __repr__(self):
8214
    L = ['%s=%r' % (key, value)
8215
      for key, value in self.__dict__.iteritems()]
8216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8217
 
8218
  def __eq__(self, other):
8219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8220
 
8221
  def __ne__(self, other):
8222
    return not (self == other)
8223
 
8224
class getAllVendorItemMappings_args:
8225
 
8226
  thrift_spec = (
8227
  )
8228
 
8229
  def read(self, iprot):
8230
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8231
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8232
      return
8233
    iprot.readStructBegin()
8234
    while True:
8235
      (fname, ftype, fid) = iprot.readFieldBegin()
8236
      if ftype == TType.STOP:
8237
        break
8238
      else:
8239
        iprot.skip(ftype)
8240
      iprot.readFieldEnd()
8241
    iprot.readStructEnd()
8242
 
8243
  def write(self, oprot):
8244
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8245
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8246
      return
8247
    oprot.writeStructBegin('getAllVendorItemMappings_args')
8248
    oprot.writeFieldStop()
8249
    oprot.writeStructEnd()
8250
 
8251
  def validate(self):
8252
    return
8253
 
8254
 
8255
  def __repr__(self):
8256
    L = ['%s=%r' % (key, value)
8257
      for key, value in self.__dict__.iteritems()]
8258
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8259
 
8260
  def __eq__(self, other):
8261
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8262
 
8263
  def __ne__(self, other):
8264
    return not (self == other)
8265
 
8266
class getAllVendorItemMappings_result:
8267
  """
8268
  Attributes:
8269
   - success
8270
  """
8271
 
8272
  thrift_spec = (
8273
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
8274
  )
8275
 
8276
  def __init__(self, success=None,):
8277
    self.success = success
8278
 
8279
  def read(self, iprot):
8280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8282
      return
8283
    iprot.readStructBegin()
8284
    while True:
8285
      (fname, ftype, fid) = iprot.readFieldBegin()
8286
      if ftype == TType.STOP:
8287
        break
8288
      if fid == 0:
8289
        if ftype == TType.LIST:
8290
          self.success = []
8182 amar.kumar 8291
          (_etype136, _size133) = iprot.readListBegin()
8292
          for _i137 in xrange(_size133):
8293
            _elem138 = VendorItemMapping()
8294
            _elem138.read(iprot)
8295
            self.success.append(_elem138)
5944 mandeep.dh 8296
          iprot.readListEnd()
8297
        else:
8298
          iprot.skip(ftype)
8299
      else:
8300
        iprot.skip(ftype)
8301
      iprot.readFieldEnd()
8302
    iprot.readStructEnd()
8303
 
8304
  def write(self, oprot):
8305
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8306
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8307
      return
8308
    oprot.writeStructBegin('getAllVendorItemMappings_result')
8309
    if self.success is not None:
8310
      oprot.writeFieldBegin('success', TType.LIST, 0)
8311
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8312
      for iter139 in self.success:
8313
        iter139.write(oprot)
5944 mandeep.dh 8314
      oprot.writeListEnd()
8315
      oprot.writeFieldEnd()
8316
    oprot.writeFieldStop()
8317
    oprot.writeStructEnd()
8318
 
8319
  def validate(self):
8320
    return
8321
 
8322
 
8323
  def __repr__(self):
8324
    L = ['%s=%r' % (key, value)
8325
      for key, value in self.__dict__.iteritems()]
8326
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8327
 
8328
  def __eq__(self, other):
8329
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8330
 
8331
  def __ne__(self, other):
8332
    return not (self == other)
8333
 
8334
class getInventorySnapshot_args:
8335
  """
8336
  Attributes:
8337
   - warehouseId
8338
  """
8339
 
8340
  thrift_spec = (
8341
    None, # 0
8342
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8343
  )
8344
 
8345
  def __init__(self, warehouseId=None,):
8346
    self.warehouseId = warehouseId
8347
 
8348
  def read(self, iprot):
8349
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8350
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8351
      return
8352
    iprot.readStructBegin()
8353
    while True:
8354
      (fname, ftype, fid) = iprot.readFieldBegin()
8355
      if ftype == TType.STOP:
8356
        break
8357
      if fid == 1:
8358
        if ftype == TType.I64:
8359
          self.warehouseId = iprot.readI64();
8360
        else:
8361
          iprot.skip(ftype)
8362
      else:
8363
        iprot.skip(ftype)
8364
      iprot.readFieldEnd()
8365
    iprot.readStructEnd()
8366
 
8367
  def write(self, oprot):
8368
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8369
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8370
      return
8371
    oprot.writeStructBegin('getInventorySnapshot_args')
8372
    if self.warehouseId is not None:
8373
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8374
      oprot.writeI64(self.warehouseId)
8375
      oprot.writeFieldEnd()
8376
    oprot.writeFieldStop()
8377
    oprot.writeStructEnd()
8378
 
8379
  def validate(self):
8380
    return
8381
 
8382
 
8383
  def __repr__(self):
8384
    L = ['%s=%r' % (key, value)
8385
      for key, value in self.__dict__.iteritems()]
8386
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8387
 
8388
  def __eq__(self, other):
8389
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8390
 
8391
  def __ne__(self, other):
8392
    return not (self == other)
8393
 
8394
class getInventorySnapshot_result:
8395
  """
8396
  Attributes:
8397
   - success
8398
  """
8399
 
8400
  thrift_spec = (
8401
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ItemInventory, ItemInventory.thrift_spec)), None, ), # 0
8402
  )
8403
 
8404
  def __init__(self, success=None,):
8405
    self.success = success
8406
 
8407
  def read(self, iprot):
8408
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8409
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8410
      return
8411
    iprot.readStructBegin()
8412
    while True:
8413
      (fname, ftype, fid) = iprot.readFieldBegin()
8414
      if ftype == TType.STOP:
8415
        break
8416
      if fid == 0:
8417
        if ftype == TType.MAP:
8418
          self.success = {}
8182 amar.kumar 8419
          (_ktype141, _vtype142, _size140 ) = iprot.readMapBegin() 
8420
          for _i144 in xrange(_size140):
8421
            _key145 = iprot.readI64();
8422
            _val146 = ItemInventory()
8423
            _val146.read(iprot)
8424
            self.success[_key145] = _val146
5944 mandeep.dh 8425
          iprot.readMapEnd()
8426
        else:
8427
          iprot.skip(ftype)
8428
      else:
8429
        iprot.skip(ftype)
8430
      iprot.readFieldEnd()
8431
    iprot.readStructEnd()
8432
 
8433
  def write(self, oprot):
8434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8436
      return
8437
    oprot.writeStructBegin('getInventorySnapshot_result')
8438
    if self.success is not None:
8439
      oprot.writeFieldBegin('success', TType.MAP, 0)
8440
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
8182 amar.kumar 8441
      for kiter147,viter148 in self.success.items():
8442
        oprot.writeI64(kiter147)
8443
        viter148.write(oprot)
5944 mandeep.dh 8444
      oprot.writeMapEnd()
8445
      oprot.writeFieldEnd()
8446
    oprot.writeFieldStop()
8447
    oprot.writeStructEnd()
8448
 
8449
  def validate(self):
8450
    return
8451
 
8452
 
8453
  def __repr__(self):
8454
    L = ['%s=%r' % (key, value)
8455
      for key, value in self.__dict__.iteritems()]
8456
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8457
 
8458
  def __eq__(self, other):
8459
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8460
 
8461
  def __ne__(self, other):
8462
    return not (self == other)
8463
 
8464
class clearItemAvailabilityCache_args:
8465
 
8466
  thrift_spec = (
8467
  )
8468
 
8469
  def read(self, iprot):
8470
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8471
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8472
      return
8473
    iprot.readStructBegin()
8474
    while True:
8475
      (fname, ftype, fid) = iprot.readFieldBegin()
8476
      if ftype == TType.STOP:
8477
        break
8478
      else:
8479
        iprot.skip(ftype)
8480
      iprot.readFieldEnd()
8481
    iprot.readStructEnd()
8482
 
8483
  def write(self, oprot):
8484
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8485
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8486
      return
8487
    oprot.writeStructBegin('clearItemAvailabilityCache_args')
8488
    oprot.writeFieldStop()
8489
    oprot.writeStructEnd()
8490
 
8491
  def validate(self):
8492
    return
8493
 
8494
 
8495
  def __repr__(self):
8496
    L = ['%s=%r' % (key, value)
8497
      for key, value in self.__dict__.iteritems()]
8498
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8499
 
8500
  def __eq__(self, other):
8501
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8502
 
8503
  def __ne__(self, other):
8504
    return not (self == other)
8505
 
8506
class clearItemAvailabilityCache_result:
8507
 
8508
  thrift_spec = (
8509
  )
8510
 
8511
  def read(self, iprot):
8512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8514
      return
8515
    iprot.readStructBegin()
8516
    while True:
8517
      (fname, ftype, fid) = iprot.readFieldBegin()
8518
      if ftype == TType.STOP:
8519
        break
8520
      else:
8521
        iprot.skip(ftype)
8522
      iprot.readFieldEnd()
8523
    iprot.readStructEnd()
8524
 
8525
  def write(self, oprot):
8526
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8527
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8528
      return
8529
    oprot.writeStructBegin('clearItemAvailabilityCache_result')
8530
    oprot.writeFieldStop()
8531
    oprot.writeStructEnd()
8532
 
8533
  def validate(self):
8534
    return
8535
 
8536
 
8537
  def __repr__(self):
8538
    L = ['%s=%r' % (key, value)
8539
      for key, value in self.__dict__.iteritems()]
8540
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8541
 
8542
  def __eq__(self, other):
8543
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8544
 
8545
  def __ne__(self, other):
8546
    return not (self == other)
8547
 
8548
class updateVendorString_args:
8549
  """
8550
  Attributes:
8551
   - warehouseId
8552
   - vendorString
8553
  """
8554
 
8555
  thrift_spec = (
8556
    None, # 0
8557
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8558
    (2, TType.STRING, 'vendorString', None, None, ), # 2
8559
  )
8560
 
8561
  def __init__(self, warehouseId=None, vendorString=None,):
8562
    self.warehouseId = warehouseId
8563
    self.vendorString = vendorString
8564
 
8565
  def read(self, iprot):
8566
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8567
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8568
      return
8569
    iprot.readStructBegin()
8570
    while True:
8571
      (fname, ftype, fid) = iprot.readFieldBegin()
8572
      if ftype == TType.STOP:
8573
        break
8574
      if fid == 1:
8575
        if ftype == TType.I64:
8576
          self.warehouseId = iprot.readI64();
8577
        else:
8578
          iprot.skip(ftype)
8579
      elif fid == 2:
8580
        if ftype == TType.STRING:
8581
          self.vendorString = iprot.readString();
8582
        else:
8583
          iprot.skip(ftype)
8584
      else:
8585
        iprot.skip(ftype)
8586
      iprot.readFieldEnd()
8587
    iprot.readStructEnd()
8588
 
8589
  def write(self, oprot):
8590
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8591
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8592
      return
8593
    oprot.writeStructBegin('updateVendorString_args')
8594
    if self.warehouseId is not None:
8595
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8596
      oprot.writeI64(self.warehouseId)
8597
      oprot.writeFieldEnd()
8598
    if self.vendorString is not None:
8599
      oprot.writeFieldBegin('vendorString', TType.STRING, 2)
8600
      oprot.writeString(self.vendorString)
8601
      oprot.writeFieldEnd()
8602
    oprot.writeFieldStop()
8603
    oprot.writeStructEnd()
8604
 
8605
  def validate(self):
8606
    return
8607
 
8608
 
8609
  def __repr__(self):
8610
    L = ['%s=%r' % (key, value)
8611
      for key, value in self.__dict__.iteritems()]
8612
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8613
 
8614
  def __eq__(self, other):
8615
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8616
 
8617
  def __ne__(self, other):
8618
    return not (self == other)
8619
 
8620
class updateVendorString_result:
8621
 
8622
  thrift_spec = (
8623
  )
8624
 
8625
  def read(self, iprot):
8626
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8627
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8628
      return
8629
    iprot.readStructBegin()
8630
    while True:
8631
      (fname, ftype, fid) = iprot.readFieldBegin()
8632
      if ftype == TType.STOP:
8633
        break
8634
      else:
8635
        iprot.skip(ftype)
8636
      iprot.readFieldEnd()
8637
    iprot.readStructEnd()
8638
 
8639
  def write(self, oprot):
8640
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8641
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8642
      return
8643
    oprot.writeStructBegin('updateVendorString_result')
8644
    oprot.writeFieldStop()
8645
    oprot.writeStructEnd()
8646
 
8647
  def validate(self):
8648
    return
8649
 
8650
 
8651
  def __repr__(self):
8652
    L = ['%s=%r' % (key, value)
8653
      for key, value in self.__dict__.iteritems()]
8654
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8655
 
8656
  def __eq__(self, other):
8657
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8658
 
8659
  def __ne__(self, other):
8660
    return not (self == other)
6096 amit.gupta 8661
 
8662
class clearItemAvailabilityCacheForItem_args:
8663
  """
8664
  Attributes:
8665
   - item_id
8666
  """
8667
 
8668
  thrift_spec = (
8669
    None, # 0
8670
    (1, TType.I64, 'item_id', None, None, ), # 1
8671
  )
8672
 
8673
  def __init__(self, item_id=None,):
8674
    self.item_id = item_id
8675
 
8676
  def read(self, iprot):
8677
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8678
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8679
      return
8680
    iprot.readStructBegin()
8681
    while True:
8682
      (fname, ftype, fid) = iprot.readFieldBegin()
8683
      if ftype == TType.STOP:
8684
        break
8685
      if fid == 1:
8686
        if ftype == TType.I64:
8687
          self.item_id = iprot.readI64();
8688
        else:
8689
          iprot.skip(ftype)
8690
      else:
8691
        iprot.skip(ftype)
8692
      iprot.readFieldEnd()
8693
    iprot.readStructEnd()
8694
 
8695
  def write(self, oprot):
8696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8698
      return
8699
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_args')
8700
    if self.item_id is not None:
8701
      oprot.writeFieldBegin('item_id', TType.I64, 1)
8702
      oprot.writeI64(self.item_id)
8703
      oprot.writeFieldEnd()
8704
    oprot.writeFieldStop()
8705
    oprot.writeStructEnd()
8706
 
8707
  def validate(self):
8708
    return
8709
 
8710
 
8711
  def __repr__(self):
8712
    L = ['%s=%r' % (key, value)
8713
      for key, value in self.__dict__.iteritems()]
8714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8715
 
8716
  def __eq__(self, other):
8717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8718
 
8719
  def __ne__(self, other):
8720
    return not (self == other)
8721
 
8722
class clearItemAvailabilityCacheForItem_result:
8723
 
8724
  thrift_spec = (
8725
  )
8726
 
8727
  def read(self, iprot):
8728
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8729
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8730
      return
8731
    iprot.readStructBegin()
8732
    while True:
8733
      (fname, ftype, fid) = iprot.readFieldBegin()
8734
      if ftype == TType.STOP:
8735
        break
8736
      else:
8737
        iprot.skip(ftype)
8738
      iprot.readFieldEnd()
8739
    iprot.readStructEnd()
8740
 
8741
  def write(self, oprot):
8742
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8743
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8744
      return
8745
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_result')
8746
    oprot.writeFieldStop()
8747
    oprot.writeStructEnd()
8748
 
8749
  def validate(self):
8750
    return
8751
 
8752
 
8753
  def __repr__(self):
8754
    L = ['%s=%r' % (key, value)
8755
      for key, value in self.__dict__.iteritems()]
8756
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8757
 
8758
  def __eq__(self, other):
8759
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8760
 
8761
  def __ne__(self, other):
8762
    return not (self == other)
6467 amar.kumar 8763
 
8764
class getOurWarehouseIdForVendor_args:
8765
  """
8766
  Attributes:
8767
   - vendorId
7718 amar.kumar 8768
   - billingWarehouseId
6467 amar.kumar 8769
  """
8770
 
8771
  thrift_spec = (
8772
    None, # 0
8773
    (1, TType.I64, 'vendorId', None, None, ), # 1
7718 amar.kumar 8774
    (2, TType.I64, 'billingWarehouseId', None, None, ), # 2
6467 amar.kumar 8775
  )
8776
 
7718 amar.kumar 8777
  def __init__(self, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 8778
    self.vendorId = vendorId
7718 amar.kumar 8779
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 8780
 
8781
  def read(self, iprot):
8782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8784
      return
8785
    iprot.readStructBegin()
8786
    while True:
8787
      (fname, ftype, fid) = iprot.readFieldBegin()
8788
      if ftype == TType.STOP:
8789
        break
8790
      if fid == 1:
8791
        if ftype == TType.I64:
8792
          self.vendorId = iprot.readI64();
8793
        else:
8794
          iprot.skip(ftype)
7718 amar.kumar 8795
      elif fid == 2:
8796
        if ftype == TType.I64:
8797
          self.billingWarehouseId = iprot.readI64();
8798
        else:
8799
          iprot.skip(ftype)
6467 amar.kumar 8800
      else:
8801
        iprot.skip(ftype)
8802
      iprot.readFieldEnd()
8803
    iprot.readStructEnd()
8804
 
8805
  def write(self, oprot):
8806
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8807
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8808
      return
8809
    oprot.writeStructBegin('getOurWarehouseIdForVendor_args')
8810
    if self.vendorId is not None:
8811
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
8812
      oprot.writeI64(self.vendorId)
8813
      oprot.writeFieldEnd()
7718 amar.kumar 8814
    if self.billingWarehouseId is not None:
8815
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 2)
8816
      oprot.writeI64(self.billingWarehouseId)
8817
      oprot.writeFieldEnd()
6467 amar.kumar 8818
    oprot.writeFieldStop()
8819
    oprot.writeStructEnd()
8820
 
8821
  def validate(self):
8822
    return
8823
 
8824
 
8825
  def __repr__(self):
8826
    L = ['%s=%r' % (key, value)
8827
      for key, value in self.__dict__.iteritems()]
8828
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8829
 
8830
  def __eq__(self, other):
8831
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8832
 
8833
  def __ne__(self, other):
8834
    return not (self == other)
8835
 
8836
class getOurWarehouseIdForVendor_result:
8837
  """
8838
  Attributes:
8839
   - success
8840
  """
8841
 
8842
  thrift_spec = (
8843
    (0, TType.I64, 'success', None, None, ), # 0
8844
  )
8845
 
8846
  def __init__(self, success=None,):
8847
    self.success = success
8848
 
8849
  def read(self, iprot):
8850
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8851
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8852
      return
8853
    iprot.readStructBegin()
8854
    while True:
8855
      (fname, ftype, fid) = iprot.readFieldBegin()
8856
      if ftype == TType.STOP:
8857
        break
8858
      if fid == 0:
8859
        if ftype == TType.I64:
8860
          self.success = iprot.readI64();
8861
        else:
8862
          iprot.skip(ftype)
8863
      else:
8864
        iprot.skip(ftype)
8865
      iprot.readFieldEnd()
8866
    iprot.readStructEnd()
8867
 
8868
  def write(self, oprot):
8869
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8870
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8871
      return
8872
    oprot.writeStructBegin('getOurWarehouseIdForVendor_result')
8873
    if self.success is not None:
8874
      oprot.writeFieldBegin('success', TType.I64, 0)
8875
      oprot.writeI64(self.success)
8876
      oprot.writeFieldEnd()
8877
    oprot.writeFieldStop()
8878
    oprot.writeStructEnd()
8879
 
8880
  def validate(self):
8881
    return
8882
 
8883
 
8884
  def __repr__(self):
8885
    L = ['%s=%r' % (key, value)
8886
      for key, value in self.__dict__.iteritems()]
8887
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8888
 
8889
  def __eq__(self, other):
8890
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8891
 
8892
  def __ne__(self, other):
8893
    return not (self == other)
6484 amar.kumar 8894
 
8895
class getItemAvailabilitiesAtOurWarehouses_args:
8896
  """
8897
  Attributes:
8898
   - item_ids
8899
  """
8900
 
8901
  thrift_spec = (
8902
    None, # 0
8903
    (1, TType.LIST, 'item_ids', (TType.I64,None), None, ), # 1
8904
  )
8905
 
8906
  def __init__(self, item_ids=None,):
8907
    self.item_ids = item_ids
8908
 
8909
  def read(self, iprot):
8910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8912
      return
8913
    iprot.readStructBegin()
8914
    while True:
8915
      (fname, ftype, fid) = iprot.readFieldBegin()
8916
      if ftype == TType.STOP:
8917
        break
8918
      if fid == 1:
8919
        if ftype == TType.LIST:
8920
          self.item_ids = []
8182 amar.kumar 8921
          (_etype152, _size149) = iprot.readListBegin()
8922
          for _i153 in xrange(_size149):
8923
            _elem154 = iprot.readI64();
8924
            self.item_ids.append(_elem154)
6484 amar.kumar 8925
          iprot.readListEnd()
8926
        else:
8927
          iprot.skip(ftype)
8928
      else:
8929
        iprot.skip(ftype)
8930
      iprot.readFieldEnd()
8931
    iprot.readStructEnd()
8932
 
8933
  def write(self, oprot):
8934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8936
      return
8937
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_args')
8938
    if self.item_ids is not None:
8939
      oprot.writeFieldBegin('item_ids', TType.LIST, 1)
8940
      oprot.writeListBegin(TType.I64, len(self.item_ids))
8182 amar.kumar 8941
      for iter155 in self.item_ids:
8942
        oprot.writeI64(iter155)
6484 amar.kumar 8943
      oprot.writeListEnd()
8944
      oprot.writeFieldEnd()
8945
    oprot.writeFieldStop()
8946
    oprot.writeStructEnd()
8947
 
8948
  def validate(self):
8949
    return
8950
 
8951
 
8952
  def __repr__(self):
8953
    L = ['%s=%r' % (key, value)
8954
      for key, value in self.__dict__.iteritems()]
8955
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8956
 
8957
  def __eq__(self, other):
8958
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8959
 
8960
  def __ne__(self, other):
8961
    return not (self == other)
8962
 
8963
class getItemAvailabilitiesAtOurWarehouses_result:
8964
  """
8965
  Attributes:
8966
   - success
8967
  """
8968
 
8969
  thrift_spec = (
8970
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
8971
  )
8972
 
8973
  def __init__(self, success=None,):
8974
    self.success = success
8975
 
8976
  def read(self, iprot):
8977
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8978
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8979
      return
8980
    iprot.readStructBegin()
8981
    while True:
8982
      (fname, ftype, fid) = iprot.readFieldBegin()
8983
      if ftype == TType.STOP:
8984
        break
8985
      if fid == 0:
8986
        if ftype == TType.MAP:
8987
          self.success = {}
8182 amar.kumar 8988
          (_ktype157, _vtype158, _size156 ) = iprot.readMapBegin() 
8989
          for _i160 in xrange(_size156):
8990
            _key161 = iprot.readI64();
8991
            _val162 = iprot.readI64();
8992
            self.success[_key161] = _val162
6484 amar.kumar 8993
          iprot.readMapEnd()
8994
        else:
8995
          iprot.skip(ftype)
8996
      else:
8997
        iprot.skip(ftype)
8998
      iprot.readFieldEnd()
8999
    iprot.readStructEnd()
9000
 
9001
  def write(self, oprot):
9002
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9003
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9004
      return
9005
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_result')
9006
    if self.success is not None:
9007
      oprot.writeFieldBegin('success', TType.MAP, 0)
9008
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
8182 amar.kumar 9009
      for kiter163,viter164 in self.success.items():
9010
        oprot.writeI64(kiter163)
9011
        oprot.writeI64(viter164)
6484 amar.kumar 9012
      oprot.writeMapEnd()
9013
      oprot.writeFieldEnd()
9014
    oprot.writeFieldStop()
9015
    oprot.writeStructEnd()
9016
 
9017
  def validate(self):
9018
    return
9019
 
9020
 
9021
  def __repr__(self):
9022
    L = ['%s=%r' % (key, value)
9023
      for key, value in self.__dict__.iteritems()]
9024
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9025
 
9026
  def __eq__(self, other):
9027
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9028
 
9029
  def __ne__(self, other):
9030
    return not (self == other)
6531 vikram.rag 9031
 
9032
class getMonitoredWarehouseForVendors_args:
9033
  """
9034
  Attributes:
9035
   - vendorIds
9036
  """
9037
 
9038
  thrift_spec = (
9039
    None, # 0
9040
    (1, TType.LIST, 'vendorIds', (TType.I64,None), None, ), # 1
9041
  )
9042
 
9043
  def __init__(self, vendorIds=None,):
9044
    self.vendorIds = vendorIds
9045
 
9046
  def read(self, iprot):
9047
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9048
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9049
      return
9050
    iprot.readStructBegin()
9051
    while True:
9052
      (fname, ftype, fid) = iprot.readFieldBegin()
9053
      if ftype == TType.STOP:
9054
        break
9055
      if fid == 1:
9056
        if ftype == TType.LIST:
9057
          self.vendorIds = []
8182 amar.kumar 9058
          (_etype168, _size165) = iprot.readListBegin()
9059
          for _i169 in xrange(_size165):
9060
            _elem170 = iprot.readI64();
9061
            self.vendorIds.append(_elem170)
6531 vikram.rag 9062
          iprot.readListEnd()
9063
        else:
9064
          iprot.skip(ftype)
9065
      else:
9066
        iprot.skip(ftype)
9067
      iprot.readFieldEnd()
9068
    iprot.readStructEnd()
9069
 
9070
  def write(self, oprot):
9071
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9072
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9073
      return
9074
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_args')
9075
    if self.vendorIds is not None:
9076
      oprot.writeFieldBegin('vendorIds', TType.LIST, 1)
9077
      oprot.writeListBegin(TType.I64, len(self.vendorIds))
8182 amar.kumar 9078
      for iter171 in self.vendorIds:
9079
        oprot.writeI64(iter171)
6531 vikram.rag 9080
      oprot.writeListEnd()
9081
      oprot.writeFieldEnd()
9082
    oprot.writeFieldStop()
9083
    oprot.writeStructEnd()
9084
 
9085
  def validate(self):
9086
    return
9087
 
9088
 
9089
  def __repr__(self):
9090
    L = ['%s=%r' % (key, value)
9091
      for key, value in self.__dict__.iteritems()]
9092
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9093
 
9094
  def __eq__(self, other):
9095
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9096
 
9097
  def __ne__(self, other):
9098
    return not (self == other)
9099
 
9100
class getMonitoredWarehouseForVendors_result:
9101
  """
9102
  Attributes:
9103
   - success
9104
  """
9105
 
9106
  thrift_spec = (
9107
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9108
  )
9109
 
9110
  def __init__(self, success=None,):
9111
    self.success = success
9112
 
9113
  def read(self, iprot):
9114
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9115
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9116
      return
9117
    iprot.readStructBegin()
9118
    while True:
9119
      (fname, ftype, fid) = iprot.readFieldBegin()
9120
      if ftype == TType.STOP:
9121
        break
9122
      if fid == 0:
9123
        if ftype == TType.LIST:
9124
          self.success = []
8182 amar.kumar 9125
          (_etype175, _size172) = iprot.readListBegin()
9126
          for _i176 in xrange(_size172):
9127
            _elem177 = iprot.readI64();
9128
            self.success.append(_elem177)
6531 vikram.rag 9129
          iprot.readListEnd()
9130
        else:
9131
          iprot.skip(ftype)
9132
      else:
9133
        iprot.skip(ftype)
9134
      iprot.readFieldEnd()
9135
    iprot.readStructEnd()
9136
 
9137
  def write(self, oprot):
9138
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9139
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9140
      return
9141
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_result')
9142
    if self.success is not None:
9143
      oprot.writeFieldBegin('success', TType.LIST, 0)
9144
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 9145
      for iter178 in self.success:
9146
        oprot.writeI64(iter178)
6531 vikram.rag 9147
      oprot.writeListEnd()
9148
      oprot.writeFieldEnd()
9149
    oprot.writeFieldStop()
9150
    oprot.writeStructEnd()
9151
 
9152
  def validate(self):
9153
    return
9154
 
9155
 
9156
  def __repr__(self):
9157
    L = ['%s=%r' % (key, value)
9158
      for key, value in self.__dict__.iteritems()]
9159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9160
 
9161
  def __eq__(self, other):
9162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9163
 
9164
  def __ne__(self, other):
9165
    return not (self == other)
9166
 
9167
class getIgnoredWarehouseidsAndItemids_args:
9168
 
9169
  thrift_spec = (
9170
  )
9171
 
9172
  def read(self, iprot):
9173
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9174
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9175
      return
9176
    iprot.readStructBegin()
9177
    while True:
9178
      (fname, ftype, fid) = iprot.readFieldBegin()
9179
      if ftype == TType.STOP:
9180
        break
9181
      else:
9182
        iprot.skip(ftype)
9183
      iprot.readFieldEnd()
9184
    iprot.readStructEnd()
9185
 
9186
  def write(self, oprot):
9187
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9188
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9189
      return
9190
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_args')
9191
    oprot.writeFieldStop()
9192
    oprot.writeStructEnd()
9193
 
9194
  def validate(self):
9195
    return
9196
 
9197
 
9198
  def __repr__(self):
9199
    L = ['%s=%r' % (key, value)
9200
      for key, value in self.__dict__.iteritems()]
9201
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9202
 
9203
  def __eq__(self, other):
9204
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9205
 
9206
  def __ne__(self, other):
9207
    return not (self == other)
9208
 
9209
class getIgnoredWarehouseidsAndItemids_result:
9210
  """
9211
  Attributes:
9212
   - success
9213
  """
9214
 
9215
  thrift_spec = (
9216
    (0, TType.LIST, 'success', (TType.STRUCT,(IgnoredInventoryUpdateItems, IgnoredInventoryUpdateItems.thrift_spec)), None, ), # 0
9217
  )
9218
 
9219
  def __init__(self, success=None,):
9220
    self.success = success
9221
 
9222
  def read(self, iprot):
9223
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9224
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9225
      return
9226
    iprot.readStructBegin()
9227
    while True:
9228
      (fname, ftype, fid) = iprot.readFieldBegin()
9229
      if ftype == TType.STOP:
9230
        break
9231
      if fid == 0:
9232
        if ftype == TType.LIST:
9233
          self.success = []
8182 amar.kumar 9234
          (_etype182, _size179) = iprot.readListBegin()
9235
          for _i183 in xrange(_size179):
9236
            _elem184 = IgnoredInventoryUpdateItems()
9237
            _elem184.read(iprot)
9238
            self.success.append(_elem184)
6531 vikram.rag 9239
          iprot.readListEnd()
9240
        else:
9241
          iprot.skip(ftype)
9242
      else:
9243
        iprot.skip(ftype)
9244
      iprot.readFieldEnd()
9245
    iprot.readStructEnd()
9246
 
9247
  def write(self, oprot):
9248
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9249
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9250
      return
9251
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_result')
9252
    if self.success is not None:
9253
      oprot.writeFieldBegin('success', TType.LIST, 0)
9254
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 9255
      for iter185 in self.success:
9256
        iter185.write(oprot)
6531 vikram.rag 9257
      oprot.writeListEnd()
9258
      oprot.writeFieldEnd()
9259
    oprot.writeFieldStop()
9260
    oprot.writeStructEnd()
9261
 
9262
  def validate(self):
9263
    return
9264
 
9265
 
9266
  def __repr__(self):
9267
    L = ['%s=%r' % (key, value)
9268
      for key, value in self.__dict__.iteritems()]
9269
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9270
 
9271
  def __eq__(self, other):
9272
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9273
 
9274
  def __ne__(self, other):
9275
    return not (self == other)
9276
 
9277
class insertItemtoIgnoreInventoryUpdatelist_args:
9278
  """
9279
  Attributes:
9280
   - item_id
9281
   - warehouse_id
9282
  """
9283
 
9284
  thrift_spec = (
9285
    None, # 0
9286
    (1, TType.I64, 'item_id', None, None, ), # 1
9287
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
9288
  )
9289
 
9290
  def __init__(self, item_id=None, warehouse_id=None,):
9291
    self.item_id = item_id
9292
    self.warehouse_id = warehouse_id
9293
 
9294
  def read(self, iprot):
9295
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9296
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9297
      return
9298
    iprot.readStructBegin()
9299
    while True:
9300
      (fname, ftype, fid) = iprot.readFieldBegin()
9301
      if ftype == TType.STOP:
9302
        break
9303
      if fid == 1:
9304
        if ftype == TType.I64:
9305
          self.item_id = iprot.readI64();
9306
        else:
9307
          iprot.skip(ftype)
9308
      elif fid == 2:
9309
        if ftype == TType.I64:
9310
          self.warehouse_id = iprot.readI64();
9311
        else:
9312
          iprot.skip(ftype)
9313
      else:
9314
        iprot.skip(ftype)
9315
      iprot.readFieldEnd()
9316
    iprot.readStructEnd()
9317
 
9318
  def write(self, oprot):
9319
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9320
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9321
      return
9322
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_args')
9323
    if self.item_id is not None:
9324
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9325
      oprot.writeI64(self.item_id)
9326
      oprot.writeFieldEnd()
9327
    if self.warehouse_id is not None:
9328
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
9329
      oprot.writeI64(self.warehouse_id)
9330
      oprot.writeFieldEnd()
9331
    oprot.writeFieldStop()
9332
    oprot.writeStructEnd()
9333
 
9334
  def validate(self):
9335
    return
9336
 
9337
 
9338
  def __repr__(self):
9339
    L = ['%s=%r' % (key, value)
9340
      for key, value in self.__dict__.iteritems()]
9341
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9342
 
9343
  def __eq__(self, other):
9344
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9345
 
9346
  def __ne__(self, other):
9347
    return not (self == other)
9348
 
9349
class insertItemtoIgnoreInventoryUpdatelist_result:
9350
  """
9351
  Attributes:
9352
   - success
9353
  """
9354
 
9355
  thrift_spec = (
9356
    (0, TType.BOOL, 'success', None, None, ), # 0
9357
  )
9358
 
9359
  def __init__(self, success=None,):
9360
    self.success = success
9361
 
9362
  def read(self, iprot):
9363
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9364
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9365
      return
9366
    iprot.readStructBegin()
9367
    while True:
9368
      (fname, ftype, fid) = iprot.readFieldBegin()
9369
      if ftype == TType.STOP:
9370
        break
9371
      if fid == 0:
9372
        if ftype == TType.BOOL:
9373
          self.success = iprot.readBool();
9374
        else:
9375
          iprot.skip(ftype)
9376
      else:
9377
        iprot.skip(ftype)
9378
      iprot.readFieldEnd()
9379
    iprot.readStructEnd()
9380
 
9381
  def write(self, oprot):
9382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9384
      return
9385
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_result')
9386
    if self.success is not None:
9387
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9388
      oprot.writeBool(self.success)
9389
      oprot.writeFieldEnd()
9390
    oprot.writeFieldStop()
9391
    oprot.writeStructEnd()
9392
 
9393
  def validate(self):
9394
    return
9395
 
9396
 
9397
  def __repr__(self):
9398
    L = ['%s=%r' % (key, value)
9399
      for key, value in self.__dict__.iteritems()]
9400
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9401
 
9402
  def __eq__(self, other):
9403
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9404
 
9405
  def __ne__(self, other):
9406
    return not (self == other)
9407
 
9408
class deleteItemFromIgnoredInventoryUpdateList_args:
9409
  """
9410
  Attributes:
9411
   - item_id
9412
   - warehouse_id
9413
  """
9414
 
9415
  thrift_spec = (
9416
    None, # 0
9417
    (1, TType.I64, 'item_id', None, None, ), # 1
9418
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
9419
  )
9420
 
9421
  def __init__(self, item_id=None, warehouse_id=None,):
9422
    self.item_id = item_id
9423
    self.warehouse_id = warehouse_id
9424
 
9425
  def read(self, iprot):
9426
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9427
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9428
      return
9429
    iprot.readStructBegin()
9430
    while True:
9431
      (fname, ftype, fid) = iprot.readFieldBegin()
9432
      if ftype == TType.STOP:
9433
        break
9434
      if fid == 1:
9435
        if ftype == TType.I64:
9436
          self.item_id = iprot.readI64();
9437
        else:
9438
          iprot.skip(ftype)
9439
      elif fid == 2:
9440
        if ftype == TType.I64:
9441
          self.warehouse_id = iprot.readI64();
9442
        else:
9443
          iprot.skip(ftype)
9444
      else:
9445
        iprot.skip(ftype)
9446
      iprot.readFieldEnd()
9447
    iprot.readStructEnd()
9448
 
9449
  def write(self, oprot):
9450
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9451
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9452
      return
9453
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_args')
9454
    if self.item_id is not None:
9455
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9456
      oprot.writeI64(self.item_id)
9457
      oprot.writeFieldEnd()
9458
    if self.warehouse_id is not None:
9459
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
9460
      oprot.writeI64(self.warehouse_id)
9461
      oprot.writeFieldEnd()
9462
    oprot.writeFieldStop()
9463
    oprot.writeStructEnd()
9464
 
9465
  def validate(self):
9466
    return
9467
 
9468
 
9469
  def __repr__(self):
9470
    L = ['%s=%r' % (key, value)
9471
      for key, value in self.__dict__.iteritems()]
9472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9473
 
9474
  def __eq__(self, other):
9475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9476
 
9477
  def __ne__(self, other):
9478
    return not (self == other)
9479
 
9480
class deleteItemFromIgnoredInventoryUpdateList_result:
9481
  """
9482
  Attributes:
9483
   - success
9484
  """
9485
 
9486
  thrift_spec = (
9487
    (0, TType.BOOL, 'success', None, None, ), # 0
9488
  )
9489
 
9490
  def __init__(self, success=None,):
9491
    self.success = success
9492
 
9493
  def read(self, iprot):
9494
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9495
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9496
      return
9497
    iprot.readStructBegin()
9498
    while True:
9499
      (fname, ftype, fid) = iprot.readFieldBegin()
9500
      if ftype == TType.STOP:
9501
        break
9502
      if fid == 0:
9503
        if ftype == TType.BOOL:
9504
          self.success = iprot.readBool();
9505
        else:
9506
          iprot.skip(ftype)
9507
      else:
9508
        iprot.skip(ftype)
9509
      iprot.readFieldEnd()
9510
    iprot.readStructEnd()
9511
 
9512
  def write(self, oprot):
9513
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9514
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9515
      return
9516
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_result')
9517
    if self.success is not None:
9518
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9519
      oprot.writeBool(self.success)
9520
      oprot.writeFieldEnd()
9521
    oprot.writeFieldStop()
9522
    oprot.writeStructEnd()
9523
 
9524
  def validate(self):
9525
    return
9526
 
9527
 
9528
  def __repr__(self):
9529
    L = ['%s=%r' % (key, value)
9530
      for key, value in self.__dict__.iteritems()]
9531
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9532
 
9533
  def __eq__(self, other):
9534
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9535
 
9536
  def __ne__(self, other):
9537
    return not (self == other)
9538
 
9539
class getAllIgnoredInventoryupdateItemsCount_args:
9540
 
9541
  thrift_spec = (
9542
  )
9543
 
9544
  def read(self, iprot):
9545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9547
      return
9548
    iprot.readStructBegin()
9549
    while True:
9550
      (fname, ftype, fid) = iprot.readFieldBegin()
9551
      if ftype == TType.STOP:
9552
        break
9553
      else:
9554
        iprot.skip(ftype)
9555
      iprot.readFieldEnd()
9556
    iprot.readStructEnd()
9557
 
9558
  def write(self, oprot):
9559
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9560
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9561
      return
9562
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_args')
9563
    oprot.writeFieldStop()
9564
    oprot.writeStructEnd()
9565
 
9566
  def validate(self):
9567
    return
9568
 
9569
 
9570
  def __repr__(self):
9571
    L = ['%s=%r' % (key, value)
9572
      for key, value in self.__dict__.iteritems()]
9573
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9574
 
9575
  def __eq__(self, other):
9576
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9577
 
9578
  def __ne__(self, other):
9579
    return not (self == other)
9580
 
9581
class getAllIgnoredInventoryupdateItemsCount_result:
9582
  """
9583
  Attributes:
9584
   - success
9585
  """
9586
 
9587
  thrift_spec = (
9588
    (0, TType.I32, 'success', None, None, ), # 0
9589
  )
9590
 
9591
  def __init__(self, success=None,):
9592
    self.success = success
9593
 
9594
  def read(self, iprot):
9595
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9596
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9597
      return
9598
    iprot.readStructBegin()
9599
    while True:
9600
      (fname, ftype, fid) = iprot.readFieldBegin()
9601
      if ftype == TType.STOP:
9602
        break
9603
      if fid == 0:
9604
        if ftype == TType.I32:
9605
          self.success = iprot.readI32();
9606
        else:
9607
          iprot.skip(ftype)
9608
      else:
9609
        iprot.skip(ftype)
9610
      iprot.readFieldEnd()
9611
    iprot.readStructEnd()
9612
 
9613
  def write(self, oprot):
9614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9616
      return
9617
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_result')
9618
    if self.success is not None:
9619
      oprot.writeFieldBegin('success', TType.I32, 0)
9620
      oprot.writeI32(self.success)
9621
      oprot.writeFieldEnd()
9622
    oprot.writeFieldStop()
9623
    oprot.writeStructEnd()
9624
 
9625
  def validate(self):
9626
    return
9627
 
9628
 
9629
  def __repr__(self):
9630
    L = ['%s=%r' % (key, value)
9631
      for key, value in self.__dict__.iteritems()]
9632
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9633
 
9634
  def __eq__(self, other):
9635
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9636
 
9637
  def __ne__(self, other):
9638
    return not (self == other)
9639
 
9640
class getIgnoredInventoryUpdateItemids_args:
9641
  """
9642
  Attributes:
9643
   - offset
9644
   - limit
9645
  """
9646
 
9647
  thrift_spec = (
9648
    None, # 0
9649
    (1, TType.I32, 'offset', None, None, ), # 1
9650
    (2, TType.I32, 'limit', None, None, ), # 2
9651
  )
9652
 
9653
  def __init__(self, offset=None, limit=None,):
9654
    self.offset = offset
9655
    self.limit = limit
9656
 
9657
  def read(self, iprot):
9658
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9659
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9660
      return
9661
    iprot.readStructBegin()
9662
    while True:
9663
      (fname, ftype, fid) = iprot.readFieldBegin()
9664
      if ftype == TType.STOP:
9665
        break
9666
      if fid == 1:
9667
        if ftype == TType.I32:
9668
          self.offset = iprot.readI32();
9669
        else:
9670
          iprot.skip(ftype)
9671
      elif fid == 2:
9672
        if ftype == TType.I32:
9673
          self.limit = iprot.readI32();
9674
        else:
9675
          iprot.skip(ftype)
9676
      else:
9677
        iprot.skip(ftype)
9678
      iprot.readFieldEnd()
9679
    iprot.readStructEnd()
9680
 
9681
  def write(self, oprot):
9682
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9683
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9684
      return
9685
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_args')
9686
    if self.offset is not None:
9687
      oprot.writeFieldBegin('offset', TType.I32, 1)
9688
      oprot.writeI32(self.offset)
9689
      oprot.writeFieldEnd()
9690
    if self.limit is not None:
9691
      oprot.writeFieldBegin('limit', TType.I32, 2)
9692
      oprot.writeI32(self.limit)
9693
      oprot.writeFieldEnd()
9694
    oprot.writeFieldStop()
9695
    oprot.writeStructEnd()
9696
 
9697
  def validate(self):
9698
    return
9699
 
9700
 
9701
  def __repr__(self):
9702
    L = ['%s=%r' % (key, value)
9703
      for key, value in self.__dict__.iteritems()]
9704
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9705
 
9706
  def __eq__(self, other):
9707
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9708
 
9709
  def __ne__(self, other):
9710
    return not (self == other)
9711
 
9712
class getIgnoredInventoryUpdateItemids_result:
9713
  """
9714
  Attributes:
9715
   - success
9716
  """
9717
 
9718
  thrift_spec = (
9719
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9720
  )
9721
 
9722
  def __init__(self, success=None,):
9723
    self.success = success
9724
 
9725
  def read(self, iprot):
9726
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9727
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9728
      return
9729
    iprot.readStructBegin()
9730
    while True:
9731
      (fname, ftype, fid) = iprot.readFieldBegin()
9732
      if ftype == TType.STOP:
9733
        break
9734
      if fid == 0:
9735
        if ftype == TType.LIST:
9736
          self.success = []
8182 amar.kumar 9737
          (_etype189, _size186) = iprot.readListBegin()
9738
          for _i190 in xrange(_size186):
9739
            _elem191 = iprot.readI64();
9740
            self.success.append(_elem191)
6531 vikram.rag 9741
          iprot.readListEnd()
9742
        else:
9743
          iprot.skip(ftype)
9744
      else:
9745
        iprot.skip(ftype)
9746
      iprot.readFieldEnd()
9747
    iprot.readStructEnd()
9748
 
9749
  def write(self, oprot):
9750
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9751
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9752
      return
9753
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_result')
9754
    if self.success is not None:
9755
      oprot.writeFieldBegin('success', TType.LIST, 0)
9756
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 9757
      for iter192 in self.success:
9758
        oprot.writeI64(iter192)
6531 vikram.rag 9759
      oprot.writeListEnd()
9760
      oprot.writeFieldEnd()
9761
    oprot.writeFieldStop()
9762
    oprot.writeStructEnd()
9763
 
9764
  def validate(self):
9765
    return
9766
 
9767
 
9768
  def __repr__(self):
9769
    L = ['%s=%r' % (key, value)
9770
      for key, value in self.__dict__.iteritems()]
9771
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9772
 
9773
  def __eq__(self, other):
9774
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9775
 
9776
  def __ne__(self, other):
9777
    return not (self == other)
6821 amar.kumar 9778
 
9779
class updateItemStockPurchaseParams_args:
9780
  """
9781
  Attributes:
9782
   - item_id
9783
   - numOfDaysStock
9784
   - minStockLevel
9785
  """
9786
 
9787
  thrift_spec = (
9788
    None, # 0
9789
    (1, TType.I64, 'item_id', None, None, ), # 1
9790
    (2, TType.I32, 'numOfDaysStock', None, None, ), # 2
9791
    (3, TType.I64, 'minStockLevel', None, None, ), # 3
9792
  )
9793
 
9794
  def __init__(self, item_id=None, numOfDaysStock=None, minStockLevel=None,):
9795
    self.item_id = item_id
9796
    self.numOfDaysStock = numOfDaysStock
9797
    self.minStockLevel = minStockLevel
9798
 
9799
  def read(self, iprot):
9800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9802
      return
9803
    iprot.readStructBegin()
9804
    while True:
9805
      (fname, ftype, fid) = iprot.readFieldBegin()
9806
      if ftype == TType.STOP:
9807
        break
9808
      if fid == 1:
9809
        if ftype == TType.I64:
9810
          self.item_id = iprot.readI64();
9811
        else:
9812
          iprot.skip(ftype)
9813
      elif fid == 2:
9814
        if ftype == TType.I32:
9815
          self.numOfDaysStock = iprot.readI32();
9816
        else:
9817
          iprot.skip(ftype)
9818
      elif fid == 3:
9819
        if ftype == TType.I64:
9820
          self.minStockLevel = iprot.readI64();
9821
        else:
9822
          iprot.skip(ftype)
9823
      else:
9824
        iprot.skip(ftype)
9825
      iprot.readFieldEnd()
9826
    iprot.readStructEnd()
9827
 
9828
  def write(self, oprot):
9829
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9830
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9831
      return
9832
    oprot.writeStructBegin('updateItemStockPurchaseParams_args')
9833
    if self.item_id is not None:
9834
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9835
      oprot.writeI64(self.item_id)
9836
      oprot.writeFieldEnd()
9837
    if self.numOfDaysStock is not None:
9838
      oprot.writeFieldBegin('numOfDaysStock', TType.I32, 2)
9839
      oprot.writeI32(self.numOfDaysStock)
9840
      oprot.writeFieldEnd()
9841
    if self.minStockLevel is not None:
9842
      oprot.writeFieldBegin('minStockLevel', TType.I64, 3)
9843
      oprot.writeI64(self.minStockLevel)
9844
      oprot.writeFieldEnd()
9845
    oprot.writeFieldStop()
9846
    oprot.writeStructEnd()
9847
 
9848
  def validate(self):
9849
    return
9850
 
9851
 
9852
  def __repr__(self):
9853
    L = ['%s=%r' % (key, value)
9854
      for key, value in self.__dict__.iteritems()]
9855
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9856
 
9857
  def __eq__(self, other):
9858
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9859
 
9860
  def __ne__(self, other):
9861
    return not (self == other)
9862
 
9863
class updateItemStockPurchaseParams_result:
9864
 
9865
  thrift_spec = (
9866
  )
9867
 
9868
  def read(self, iprot):
9869
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9870
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9871
      return
9872
    iprot.readStructBegin()
9873
    while True:
9874
      (fname, ftype, fid) = iprot.readFieldBegin()
9875
      if ftype == TType.STOP:
9876
        break
9877
      else:
9878
        iprot.skip(ftype)
9879
      iprot.readFieldEnd()
9880
    iprot.readStructEnd()
9881
 
9882
  def write(self, oprot):
9883
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9884
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9885
      return
9886
    oprot.writeStructBegin('updateItemStockPurchaseParams_result')
9887
    oprot.writeFieldStop()
9888
    oprot.writeStructEnd()
9889
 
9890
  def validate(self):
9891
    return
9892
 
9893
 
9894
  def __repr__(self):
9895
    L = ['%s=%r' % (key, value)
9896
      for key, value in self.__dict__.iteritems()]
9897
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9898
 
9899
  def __eq__(self, other):
9900
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9901
 
9902
  def __ne__(self, other):
9903
    return not (self == other)
9904
 
9905
class getItemStockPurchaseParams_args:
9906
  """
9907
  Attributes:
9908
   - itemId
9909
  """
9910
 
9911
  thrift_spec = (
9912
    None, # 0
9913
    (1, TType.I64, 'itemId', None, None, ), # 1
9914
  )
9915
 
9916
  def __init__(self, itemId=None,):
9917
    self.itemId = itemId
9918
 
9919
  def read(self, iprot):
9920
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9921
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9922
      return
9923
    iprot.readStructBegin()
9924
    while True:
9925
      (fname, ftype, fid) = iprot.readFieldBegin()
9926
      if ftype == TType.STOP:
9927
        break
9928
      if fid == 1:
9929
        if ftype == TType.I64:
9930
          self.itemId = iprot.readI64();
9931
        else:
9932
          iprot.skip(ftype)
9933
      else:
9934
        iprot.skip(ftype)
9935
      iprot.readFieldEnd()
9936
    iprot.readStructEnd()
9937
 
9938
  def write(self, oprot):
9939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9941
      return
9942
    oprot.writeStructBegin('getItemStockPurchaseParams_args')
9943
    if self.itemId is not None:
9944
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9945
      oprot.writeI64(self.itemId)
9946
      oprot.writeFieldEnd()
9947
    oprot.writeFieldStop()
9948
    oprot.writeStructEnd()
9949
 
9950
  def validate(self):
9951
    return
9952
 
9953
 
9954
  def __repr__(self):
9955
    L = ['%s=%r' % (key, value)
9956
      for key, value in self.__dict__.iteritems()]
9957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9958
 
9959
  def __eq__(self, other):
9960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9961
 
9962
  def __ne__(self, other):
9963
    return not (self == other)
9964
 
9965
class getItemStockPurchaseParams_result:
9966
  """
9967
  Attributes:
9968
   - success
9969
  """
9970
 
9971
  thrift_spec = (
9972
    (0, TType.STRUCT, 'success', (ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec), None, ), # 0
9973
  )
9974
 
9975
  def __init__(self, success=None,):
9976
    self.success = success
9977
 
9978
  def read(self, iprot):
9979
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9980
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9981
      return
9982
    iprot.readStructBegin()
9983
    while True:
9984
      (fname, ftype, fid) = iprot.readFieldBegin()
9985
      if ftype == TType.STOP:
9986
        break
9987
      if fid == 0:
9988
        if ftype == TType.STRUCT:
9989
          self.success = ItemStockPurchaseParams()
9990
          self.success.read(iprot)
9991
        else:
9992
          iprot.skip(ftype)
9993
      else:
9994
        iprot.skip(ftype)
9995
      iprot.readFieldEnd()
9996
    iprot.readStructEnd()
9997
 
9998
  def write(self, oprot):
9999
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10000
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10001
      return
10002
    oprot.writeStructBegin('getItemStockPurchaseParams_result')
10003
    if self.success is not None:
10004
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10005
      self.success.write(oprot)
10006
      oprot.writeFieldEnd()
10007
    oprot.writeFieldStop()
10008
    oprot.writeStructEnd()
10009
 
10010
  def validate(self):
10011
    return
10012
 
10013
 
10014
  def __repr__(self):
10015
    L = ['%s=%r' % (key, value)
10016
      for key, value in self.__dict__.iteritems()]
10017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10018
 
10019
  def __eq__(self, other):
10020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10021
 
10022
  def __ne__(self, other):
10023
    return not (self == other)
10024
 
10025
class addOosStatusForItem_args:
10026
  """
10027
  Attributes:
10028
   - oosStatusMap
10029
   - date
10030
  """
10031
 
10032
  thrift_spec = (
10033
    None, # 0
10034
    (1, TType.MAP, 'oosStatusMap', (TType.I64,None,TType.BOOL,None), None, ), # 1
10035
    (2, TType.I64, 'date', None, None, ), # 2
10036
  )
10037
 
10038
  def __init__(self, oosStatusMap=None, date=None,):
10039
    self.oosStatusMap = oosStatusMap
10040
    self.date = date
10041
 
10042
  def read(self, iprot):
10043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10045
      return
10046
    iprot.readStructBegin()
10047
    while True:
10048
      (fname, ftype, fid) = iprot.readFieldBegin()
10049
      if ftype == TType.STOP:
10050
        break
10051
      if fid == 1:
10052
        if ftype == TType.MAP:
10053
          self.oosStatusMap = {}
8182 amar.kumar 10054
          (_ktype194, _vtype195, _size193 ) = iprot.readMapBegin() 
10055
          for _i197 in xrange(_size193):
10056
            _key198 = iprot.readI64();
10057
            _val199 = iprot.readBool();
10058
            self.oosStatusMap[_key198] = _val199
6821 amar.kumar 10059
          iprot.readMapEnd()
10060
        else:
10061
          iprot.skip(ftype)
10062
      elif fid == 2:
10063
        if ftype == TType.I64:
10064
          self.date = iprot.readI64();
10065
        else:
10066
          iprot.skip(ftype)
10067
      else:
10068
        iprot.skip(ftype)
10069
      iprot.readFieldEnd()
10070
    iprot.readStructEnd()
10071
 
10072
  def write(self, oprot):
10073
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10074
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10075
      return
10076
    oprot.writeStructBegin('addOosStatusForItem_args')
10077
    if self.oosStatusMap is not None:
10078
      oprot.writeFieldBegin('oosStatusMap', TType.MAP, 1)
10079
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.oosStatusMap))
8182 amar.kumar 10080
      for kiter200,viter201 in self.oosStatusMap.items():
10081
        oprot.writeI64(kiter200)
10082
        oprot.writeBool(viter201)
6821 amar.kumar 10083
      oprot.writeMapEnd()
10084
      oprot.writeFieldEnd()
10085
    if self.date is not None:
10086
      oprot.writeFieldBegin('date', TType.I64, 2)
10087
      oprot.writeI64(self.date)
10088
      oprot.writeFieldEnd()
10089
    oprot.writeFieldStop()
10090
    oprot.writeStructEnd()
10091
 
10092
  def validate(self):
10093
    return
10094
 
10095
 
10096
  def __repr__(self):
10097
    L = ['%s=%r' % (key, value)
10098
      for key, value in self.__dict__.iteritems()]
10099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10100
 
10101
  def __eq__(self, other):
10102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10103
 
10104
  def __ne__(self, other):
10105
    return not (self == other)
10106
 
10107
class addOosStatusForItem_result:
10108
 
10109
  thrift_spec = (
10110
  )
10111
 
10112
  def read(self, iprot):
10113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10115
      return
10116
    iprot.readStructBegin()
10117
    while True:
10118
      (fname, ftype, fid) = iprot.readFieldBegin()
10119
      if ftype == TType.STOP:
10120
        break
10121
      else:
10122
        iprot.skip(ftype)
10123
      iprot.readFieldEnd()
10124
    iprot.readStructEnd()
10125
 
10126
  def write(self, oprot):
10127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10129
      return
10130
    oprot.writeStructBegin('addOosStatusForItem_result')
10131
    oprot.writeFieldStop()
10132
    oprot.writeStructEnd()
10133
 
10134
  def validate(self):
10135
    return
10136
 
10137
 
10138
  def __repr__(self):
10139
    L = ['%s=%r' % (key, value)
10140
      for key, value in self.__dict__.iteritems()]
10141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10142
 
10143
  def __eq__(self, other):
10144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10145
 
10146
  def __ne__(self, other):
10147
    return not (self == other)
6832 amar.kumar 10148
 
10149
class getOosStatusesForXDaysForItem_args:
10150
  """
10151
  Attributes:
10152
   - itemId
10153
   - days
10154
  """
10155
 
10156
  thrift_spec = (
10157
    None, # 0
10158
    (1, TType.I64, 'itemId', None, None, ), # 1
10159
    (2, TType.I32, 'days', None, None, ), # 2
10160
  )
10161
 
10162
  def __init__(self, itemId=None, days=None,):
10163
    self.itemId = itemId
10164
    self.days = days
10165
 
10166
  def read(self, iprot):
10167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10169
      return
10170
    iprot.readStructBegin()
10171
    while True:
10172
      (fname, ftype, fid) = iprot.readFieldBegin()
10173
      if ftype == TType.STOP:
10174
        break
10175
      if fid == 1:
10176
        if ftype == TType.I64:
10177
          self.itemId = iprot.readI64();
10178
        else:
10179
          iprot.skip(ftype)
10180
      elif fid == 2:
10181
        if ftype == TType.I32:
10182
          self.days = iprot.readI32();
10183
        else:
10184
          iprot.skip(ftype)
10185
      else:
10186
        iprot.skip(ftype)
10187
      iprot.readFieldEnd()
10188
    iprot.readStructEnd()
10189
 
10190
  def write(self, oprot):
10191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10193
      return
10194
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_args')
10195
    if self.itemId is not None:
10196
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10197
      oprot.writeI64(self.itemId)
10198
      oprot.writeFieldEnd()
10199
    if self.days is not None:
10200
      oprot.writeFieldBegin('days', TType.I32, 2)
10201
      oprot.writeI32(self.days)
10202
      oprot.writeFieldEnd()
10203
    oprot.writeFieldStop()
10204
    oprot.writeStructEnd()
10205
 
10206
  def validate(self):
10207
    return
10208
 
10209
 
10210
  def __repr__(self):
10211
    L = ['%s=%r' % (key, value)
10212
      for key, value in self.__dict__.iteritems()]
10213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10214
 
10215
  def __eq__(self, other):
10216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10217
 
10218
  def __ne__(self, other):
10219
    return not (self == other)
10220
 
10221
class getOosStatusesForXDaysForItem_result:
10222
  """
10223
  Attributes:
10224
   - success
10225
  """
10226
 
10227
  thrift_spec = (
10228
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.thrift_spec)), None, ), # 0
10229
  )
10230
 
10231
  def __init__(self, success=None,):
10232
    self.success = success
10233
 
10234
  def read(self, iprot):
10235
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10236
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10237
      return
10238
    iprot.readStructBegin()
10239
    while True:
10240
      (fname, ftype, fid) = iprot.readFieldBegin()
10241
      if ftype == TType.STOP:
10242
        break
10243
      if fid == 0:
10244
        if ftype == TType.LIST:
10245
          self.success = []
8182 amar.kumar 10246
          (_etype205, _size202) = iprot.readListBegin()
10247
          for _i206 in xrange(_size202):
10248
            _elem207 = OOSStatus()
10249
            _elem207.read(iprot)
10250
            self.success.append(_elem207)
6832 amar.kumar 10251
          iprot.readListEnd()
10252
        else:
10253
          iprot.skip(ftype)
10254
      else:
10255
        iprot.skip(ftype)
10256
      iprot.readFieldEnd()
10257
    iprot.readStructEnd()
10258
 
10259
  def write(self, oprot):
10260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10262
      return
10263
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_result')
10264
    if self.success is not None:
10265
      oprot.writeFieldBegin('success', TType.LIST, 0)
10266
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10267
      for iter208 in self.success:
10268
        iter208.write(oprot)
6832 amar.kumar 10269
      oprot.writeListEnd()
10270
      oprot.writeFieldEnd()
10271
    oprot.writeFieldStop()
10272
    oprot.writeStructEnd()
10273
 
10274
  def validate(self):
10275
    return
10276
 
10277
 
10278
  def __repr__(self):
10279
    L = ['%s=%r' % (key, value)
10280
      for key, value in self.__dict__.iteritems()]
10281
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10282
 
10283
  def __eq__(self, other):
10284
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10285
 
10286
  def __ne__(self, other):
10287
    return not (self == other)
6857 amar.kumar 10288
 
10289
class getNonZeroItemStockPurchaseParams_args:
10290
 
10291
  thrift_spec = (
10292
  )
10293
 
10294
  def read(self, iprot):
10295
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10296
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10297
      return
10298
    iprot.readStructBegin()
10299
    while True:
10300
      (fname, ftype, fid) = iprot.readFieldBegin()
10301
      if ftype == TType.STOP:
10302
        break
10303
      else:
10304
        iprot.skip(ftype)
10305
      iprot.readFieldEnd()
10306
    iprot.readStructEnd()
10307
 
10308
  def write(self, oprot):
10309
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10310
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10311
      return
10312
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_args')
10313
    oprot.writeFieldStop()
10314
    oprot.writeStructEnd()
10315
 
10316
  def validate(self):
10317
    return
10318
 
10319
 
10320
  def __repr__(self):
10321
    L = ['%s=%r' % (key, value)
10322
      for key, value in self.__dict__.iteritems()]
10323
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10324
 
10325
  def __eq__(self, other):
10326
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10327
 
10328
  def __ne__(self, other):
10329
    return not (self == other)
10330
 
10331
class getNonZeroItemStockPurchaseParams_result:
10332
  """
10333
  Attributes:
10334
   - success
10335
  """
10336
 
10337
  thrift_spec = (
10338
    (0, TType.LIST, 'success', (TType.STRUCT,(ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec)), None, ), # 0
10339
  )
10340
 
10341
  def __init__(self, success=None,):
10342
    self.success = success
10343
 
10344
  def read(self, iprot):
10345
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10346
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10347
      return
10348
    iprot.readStructBegin()
10349
    while True:
10350
      (fname, ftype, fid) = iprot.readFieldBegin()
10351
      if ftype == TType.STOP:
10352
        break
10353
      if fid == 0:
10354
        if ftype == TType.LIST:
10355
          self.success = []
8182 amar.kumar 10356
          (_etype212, _size209) = iprot.readListBegin()
10357
          for _i213 in xrange(_size209):
10358
            _elem214 = ItemStockPurchaseParams()
10359
            _elem214.read(iprot)
10360
            self.success.append(_elem214)
6857 amar.kumar 10361
          iprot.readListEnd()
10362
        else:
10363
          iprot.skip(ftype)
10364
      else:
10365
        iprot.skip(ftype)
10366
      iprot.readFieldEnd()
10367
    iprot.readStructEnd()
10368
 
10369
  def write(self, oprot):
10370
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10371
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10372
      return
10373
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_result')
10374
    if self.success is not None:
10375
      oprot.writeFieldBegin('success', TType.LIST, 0)
10376
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10377
      for iter215 in self.success:
10378
        iter215.write(oprot)
6857 amar.kumar 10379
      oprot.writeListEnd()
10380
      oprot.writeFieldEnd()
10381
    oprot.writeFieldStop()
10382
    oprot.writeStructEnd()
10383
 
10384
  def validate(self):
10385
    return
10386
 
10387
 
10388
  def __repr__(self):
10389
    L = ['%s=%r' % (key, value)
10390
      for key, value in self.__dict__.iteritems()]
10391
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10392
 
10393
  def __eq__(self, other):
10394
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10395
 
10396
  def __ne__(self, other):
10397
    return not (self == other)
7149 amar.kumar 10398
 
10399
class getBillableInventoryAndPendingOrders_args:
10400
 
10401
  thrift_spec = (
10402
  )
10403
 
10404
  def read(self, iprot):
10405
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10406
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10407
      return
10408
    iprot.readStructBegin()
10409
    while True:
10410
      (fname, ftype, fid) = iprot.readFieldBegin()
10411
      if ftype == TType.STOP:
10412
        break
10413
      else:
10414
        iprot.skip(ftype)
10415
      iprot.readFieldEnd()
10416
    iprot.readStructEnd()
10417
 
10418
  def write(self, oprot):
10419
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10420
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10421
      return
10422
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_args')
10423
    oprot.writeFieldStop()
10424
    oprot.writeStructEnd()
10425
 
10426
  def validate(self):
10427
    return
10428
 
10429
 
10430
  def __repr__(self):
10431
    L = ['%s=%r' % (key, value)
10432
      for key, value in self.__dict__.iteritems()]
10433
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10434
 
10435
  def __eq__(self, other):
10436
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10437
 
10438
  def __ne__(self, other):
10439
    return not (self == other)
10440
 
10441
class getBillableInventoryAndPendingOrders_result:
10442
  """
10443
  Attributes:
10444
   - success
10445
  """
10446
 
10447
  thrift_spec = (
10448
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
10449
  )
10450
 
10451
  def __init__(self, success=None,):
10452
    self.success = success
10453
 
10454
  def read(self, iprot):
10455
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10456
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10457
      return
10458
    iprot.readStructBegin()
10459
    while True:
10460
      (fname, ftype, fid) = iprot.readFieldBegin()
10461
      if ftype == TType.STOP:
10462
        break
10463
      if fid == 0:
10464
        if ftype == TType.LIST:
10465
          self.success = []
8182 amar.kumar 10466
          (_etype219, _size216) = iprot.readListBegin()
10467
          for _i220 in xrange(_size216):
10468
            _elem221 = AvailableAndReservedStock()
10469
            _elem221.read(iprot)
10470
            self.success.append(_elem221)
7149 amar.kumar 10471
          iprot.readListEnd()
10472
        else:
10473
          iprot.skip(ftype)
10474
      else:
10475
        iprot.skip(ftype)
10476
      iprot.readFieldEnd()
10477
    iprot.readStructEnd()
10478
 
10479
  def write(self, oprot):
10480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10482
      return
10483
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_result')
10484
    if self.success is not None:
10485
      oprot.writeFieldBegin('success', TType.LIST, 0)
10486
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10487
      for iter222 in self.success:
10488
        iter222.write(oprot)
7149 amar.kumar 10489
      oprot.writeListEnd()
10490
      oprot.writeFieldEnd()
10491
    oprot.writeFieldStop()
10492
    oprot.writeStructEnd()
10493
 
10494
  def validate(self):
10495
    return
10496
 
10497
 
10498
  def __repr__(self):
10499
    L = ['%s=%r' % (key, value)
10500
      for key, value in self.__dict__.iteritems()]
10501
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10502
 
10503
  def __eq__(self, other):
10504
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10505
 
10506
  def __ne__(self, other):
10507
    return not (self == other)
7281 kshitij.so 10508
 
10509
class getWarehouseName_args:
10510
  """
10511
  Attributes:
10512
   - warehouse_id
10513
  """
10514
 
10515
  thrift_spec = (
10516
    None, # 0
10517
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
10518
  )
10519
 
10520
  def __init__(self, warehouse_id=None,):
10521
    self.warehouse_id = warehouse_id
10522
 
10523
  def read(self, iprot):
10524
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10525
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10526
      return
10527
    iprot.readStructBegin()
10528
    while True:
10529
      (fname, ftype, fid) = iprot.readFieldBegin()
10530
      if ftype == TType.STOP:
10531
        break
10532
      if fid == 1:
10533
        if ftype == TType.I64:
10534
          self.warehouse_id = iprot.readI64();
10535
        else:
10536
          iprot.skip(ftype)
10537
      else:
10538
        iprot.skip(ftype)
10539
      iprot.readFieldEnd()
10540
    iprot.readStructEnd()
10541
 
10542
  def write(self, oprot):
10543
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10544
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10545
      return
10546
    oprot.writeStructBegin('getWarehouseName_args')
10547
    if self.warehouse_id is not None:
10548
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
10549
      oprot.writeI64(self.warehouse_id)
10550
      oprot.writeFieldEnd()
10551
    oprot.writeFieldStop()
10552
    oprot.writeStructEnd()
10553
 
10554
  def validate(self):
10555
    return
10556
 
10557
 
10558
  def __repr__(self):
10559
    L = ['%s=%r' % (key, value)
10560
      for key, value in self.__dict__.iteritems()]
10561
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10562
 
10563
  def __eq__(self, other):
10564
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10565
 
10566
  def __ne__(self, other):
10567
    return not (self == other)
10568
 
10569
class getWarehouseName_result:
10570
  """
10571
  Attributes:
10572
   - success
10573
  """
10574
 
10575
  thrift_spec = (
10576
    (0, TType.STRING, 'success', None, None, ), # 0
10577
  )
10578
 
10579
  def __init__(self, success=None,):
10580
    self.success = success
10581
 
10582
  def read(self, iprot):
10583
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10584
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10585
      return
10586
    iprot.readStructBegin()
10587
    while True:
10588
      (fname, ftype, fid) = iprot.readFieldBegin()
10589
      if ftype == TType.STOP:
10590
        break
10591
      if fid == 0:
10592
        if ftype == TType.STRING:
10593
          self.success = iprot.readString();
10594
        else:
10595
          iprot.skip(ftype)
10596
      else:
10597
        iprot.skip(ftype)
10598
      iprot.readFieldEnd()
10599
    iprot.readStructEnd()
10600
 
10601
  def write(self, oprot):
10602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10604
      return
10605
    oprot.writeStructBegin('getWarehouseName_result')
10606
    if self.success is not None:
10607
      oprot.writeFieldBegin('success', TType.STRING, 0)
10608
      oprot.writeString(self.success)
10609
      oprot.writeFieldEnd()
10610
    oprot.writeFieldStop()
10611
    oprot.writeStructEnd()
10612
 
10613
  def validate(self):
10614
    return
10615
 
10616
 
10617
  def __repr__(self):
10618
    L = ['%s=%r' % (key, value)
10619
      for key, value in self.__dict__.iteritems()]
10620
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10621
 
10622
  def __eq__(self, other):
10623
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10624
 
10625
  def __ne__(self, other):
10626
    return not (self == other)
10627
 
10628
class getAmazonInventoryForItem_args:
10629
  """
10630
  Attributes:
10631
   - item_id
10632
  """
10633
 
10634
  thrift_spec = (
10635
    None, # 0
10636
    (1, TType.I64, 'item_id', None, None, ), # 1
10637
  )
10638
 
10639
  def __init__(self, item_id=None,):
10640
    self.item_id = item_id
10641
 
10642
  def read(self, iprot):
10643
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10644
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10645
      return
10646
    iprot.readStructBegin()
10647
    while True:
10648
      (fname, ftype, fid) = iprot.readFieldBegin()
10649
      if ftype == TType.STOP:
10650
        break
10651
      if fid == 1:
10652
        if ftype == TType.I64:
10653
          self.item_id = iprot.readI64();
10654
        else:
10655
          iprot.skip(ftype)
10656
      else:
10657
        iprot.skip(ftype)
10658
      iprot.readFieldEnd()
10659
    iprot.readStructEnd()
10660
 
10661
  def write(self, oprot):
10662
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10663
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10664
      return
10665
    oprot.writeStructBegin('getAmazonInventoryForItem_args')
10666
    if self.item_id is not None:
10667
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10668
      oprot.writeI64(self.item_id)
10669
      oprot.writeFieldEnd()
10670
    oprot.writeFieldStop()
10671
    oprot.writeStructEnd()
10672
 
10673
  def validate(self):
10674
    return
10675
 
10676
 
10677
  def __repr__(self):
10678
    L = ['%s=%r' % (key, value)
10679
      for key, value in self.__dict__.iteritems()]
10680
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10681
 
10682
  def __eq__(self, other):
10683
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10684
 
10685
  def __ne__(self, other):
10686
    return not (self == other)
10687
 
10688
class getAmazonInventoryForItem_result:
10689
  """
10690
  Attributes:
10691
   - success
10692
  """
10693
 
10694
  thrift_spec = (
10695
    (0, TType.STRUCT, 'success', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 0
10696
  )
10697
 
10698
  def __init__(self, success=None,):
10699
    self.success = success
10700
 
10701
  def read(self, iprot):
10702
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10703
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10704
      return
10705
    iprot.readStructBegin()
10706
    while True:
10707
      (fname, ftype, fid) = iprot.readFieldBegin()
10708
      if ftype == TType.STOP:
10709
        break
10710
      if fid == 0:
10711
        if ftype == TType.STRUCT:
10712
          self.success = AmazonInventorySnapshot()
10713
          self.success.read(iprot)
10714
        else:
10715
          iprot.skip(ftype)
10716
      else:
10717
        iprot.skip(ftype)
10718
      iprot.readFieldEnd()
10719
    iprot.readStructEnd()
10720
 
10721
  def write(self, oprot):
10722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10724
      return
10725
    oprot.writeStructBegin('getAmazonInventoryForItem_result')
10726
    if self.success is not None:
10727
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10728
      self.success.write(oprot)
10729
      oprot.writeFieldEnd()
10730
    oprot.writeFieldStop()
10731
    oprot.writeStructEnd()
10732
 
10733
  def validate(self):
10734
    return
10735
 
10736
 
10737
  def __repr__(self):
10738
    L = ['%s=%r' % (key, value)
10739
      for key, value in self.__dict__.iteritems()]
10740
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10741
 
10742
  def __eq__(self, other):
10743
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10744
 
10745
  def __ne__(self, other):
10746
    return not (self == other)
10747
 
10748
class getAllAmazonInventory_args:
10749
 
10750
  thrift_spec = (
10751
  )
10752
 
10753
  def read(self, iprot):
10754
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10755
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10756
      return
10757
    iprot.readStructBegin()
10758
    while True:
10759
      (fname, ftype, fid) = iprot.readFieldBegin()
10760
      if ftype == TType.STOP:
10761
        break
10762
      else:
10763
        iprot.skip(ftype)
10764
      iprot.readFieldEnd()
10765
    iprot.readStructEnd()
10766
 
10767
  def write(self, oprot):
10768
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10769
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10770
      return
10771
    oprot.writeStructBegin('getAllAmazonInventory_args')
10772
    oprot.writeFieldStop()
10773
    oprot.writeStructEnd()
10774
 
10775
  def validate(self):
10776
    return
10777
 
10778
 
10779
  def __repr__(self):
10780
    L = ['%s=%r' % (key, value)
10781
      for key, value in self.__dict__.iteritems()]
10782
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10783
 
10784
  def __eq__(self, other):
10785
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10786
 
10787
  def __ne__(self, other):
10788
    return not (self == other)
10789
 
10790
class getAllAmazonInventory_result:
10791
  """
10792
  Attributes:
10793
   - success
10794
  """
10795
 
10796
  thrift_spec = (
10797
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec)), None, ), # 0
10798
  )
10799
 
10800
  def __init__(self, success=None,):
10801
    self.success = success
10802
 
10803
  def read(self, iprot):
10804
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10805
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10806
      return
10807
    iprot.readStructBegin()
10808
    while True:
10809
      (fname, ftype, fid) = iprot.readFieldBegin()
10810
      if ftype == TType.STOP:
10811
        break
10812
      if fid == 0:
10813
        if ftype == TType.LIST:
10814
          self.success = []
8182 amar.kumar 10815
          (_etype226, _size223) = iprot.readListBegin()
10816
          for _i227 in xrange(_size223):
10817
            _elem228 = AmazonInventorySnapshot()
10818
            _elem228.read(iprot)
10819
            self.success.append(_elem228)
7281 kshitij.so 10820
          iprot.readListEnd()
10821
        else:
10822
          iprot.skip(ftype)
10823
      else:
10824
        iprot.skip(ftype)
10825
      iprot.readFieldEnd()
10826
    iprot.readStructEnd()
10827
 
10828
  def write(self, oprot):
10829
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10830
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10831
      return
10832
    oprot.writeStructBegin('getAllAmazonInventory_result')
10833
    if self.success is not None:
10834
      oprot.writeFieldBegin('success', TType.LIST, 0)
10835
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10836
      for iter229 in self.success:
10837
        iter229.write(oprot)
7281 kshitij.so 10838
      oprot.writeListEnd()
10839
      oprot.writeFieldEnd()
10840
    oprot.writeFieldStop()
10841
    oprot.writeStructEnd()
10842
 
10843
  def validate(self):
10844
    return
10845
 
10846
 
10847
  def __repr__(self):
10848
    L = ['%s=%r' % (key, value)
10849
      for key, value in self.__dict__.iteritems()]
10850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10851
 
10852
  def __eq__(self, other):
10853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10854
 
10855
  def __ne__(self, other):
10856
    return not (self == other)
10857
 
10858
class addOrUpdateAmazonInventoryForItem_args:
10859
  """
10860
  Attributes:
10861
   - amazonInventorySnapshot
10862
  """
10863
 
10864
  thrift_spec = (
10865
    None, # 0
10866
    (1, TType.STRUCT, 'amazonInventorySnapshot', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 1
10867
  )
10868
 
10869
  def __init__(self, amazonInventorySnapshot=None,):
10870
    self.amazonInventorySnapshot = amazonInventorySnapshot
10871
 
10872
  def read(self, iprot):
10873
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10874
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10875
      return
10876
    iprot.readStructBegin()
10877
    while True:
10878
      (fname, ftype, fid) = iprot.readFieldBegin()
10879
      if ftype == TType.STOP:
10880
        break
10881
      if fid == 1:
10882
        if ftype == TType.STRUCT:
10883
          self.amazonInventorySnapshot = AmazonInventorySnapshot()
10884
          self.amazonInventorySnapshot.read(iprot)
10885
        else:
10886
          iprot.skip(ftype)
10887
      else:
10888
        iprot.skip(ftype)
10889
      iprot.readFieldEnd()
10890
    iprot.readStructEnd()
10891
 
10892
  def write(self, oprot):
10893
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10894
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10895
      return
10896
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_args')
10897
    if self.amazonInventorySnapshot is not None:
10898
      oprot.writeFieldBegin('amazonInventorySnapshot', TType.STRUCT, 1)
10899
      self.amazonInventorySnapshot.write(oprot)
10900
      oprot.writeFieldEnd()
10901
    oprot.writeFieldStop()
10902
    oprot.writeStructEnd()
10903
 
10904
  def validate(self):
10905
    return
10906
 
10907
 
10908
  def __repr__(self):
10909
    L = ['%s=%r' % (key, value)
10910
      for key, value in self.__dict__.iteritems()]
10911
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10912
 
10913
  def __eq__(self, other):
10914
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10915
 
10916
  def __ne__(self, other):
10917
    return not (self == other)
10918
 
10919
class addOrUpdateAmazonInventoryForItem_result:
10920
 
10921
  thrift_spec = (
10922
  )
10923
 
10924
  def read(self, iprot):
10925
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10926
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10927
      return
10928
    iprot.readStructBegin()
10929
    while True:
10930
      (fname, ftype, fid) = iprot.readFieldBegin()
10931
      if ftype == TType.STOP:
10932
        break
10933
      else:
10934
        iprot.skip(ftype)
10935
      iprot.readFieldEnd()
10936
    iprot.readStructEnd()
10937
 
10938
  def write(self, oprot):
10939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10941
      return
10942
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_result')
10943
    oprot.writeFieldStop()
10944
    oprot.writeStructEnd()
10945
 
10946
  def validate(self):
10947
    return
10948
 
10949
 
10950
  def __repr__(self):
10951
    L = ['%s=%r' % (key, value)
10952
      for key, value in self.__dict__.iteritems()]
10953
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10954
 
10955
  def __eq__(self, other):
10956
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10957
 
10958
  def __ne__(self, other):
10959
    return not (self == other)
7972 amar.kumar 10960
 
10961
class getLastNdaySaleForItem_args:
10962
  """
10963
  Attributes:
10964
   - itemId
10965
   - numberOfDays
10966
  """
10967
 
10968
  thrift_spec = (
10969
    None, # 0
10970
    (1, TType.I64, 'itemId', None, None, ), # 1
10971
    (2, TType.I64, 'numberOfDays', None, None, ), # 2
10972
  )
10973
 
10974
  def __init__(self, itemId=None, numberOfDays=None,):
10975
    self.itemId = itemId
10976
    self.numberOfDays = numberOfDays
10977
 
10978
  def read(self, iprot):
10979
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10980
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10981
      return
10982
    iprot.readStructBegin()
10983
    while True:
10984
      (fname, ftype, fid) = iprot.readFieldBegin()
10985
      if ftype == TType.STOP:
10986
        break
10987
      if fid == 1:
10988
        if ftype == TType.I64:
10989
          self.itemId = iprot.readI64();
10990
        else:
10991
          iprot.skip(ftype)
10992
      elif fid == 2:
10993
        if ftype == TType.I64:
10994
          self.numberOfDays = iprot.readI64();
10995
        else:
10996
          iprot.skip(ftype)
10997
      else:
10998
        iprot.skip(ftype)
10999
      iprot.readFieldEnd()
11000
    iprot.readStructEnd()
11001
 
11002
  def write(self, oprot):
11003
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11004
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11005
      return
11006
    oprot.writeStructBegin('getLastNdaySaleForItem_args')
11007
    if self.itemId is not None:
11008
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11009
      oprot.writeI64(self.itemId)
11010
      oprot.writeFieldEnd()
11011
    if self.numberOfDays is not None:
11012
      oprot.writeFieldBegin('numberOfDays', TType.I64, 2)
11013
      oprot.writeI64(self.numberOfDays)
11014
      oprot.writeFieldEnd()
11015
    oprot.writeFieldStop()
11016
    oprot.writeStructEnd()
11017
 
11018
  def validate(self):
11019
    return
11020
 
11021
 
11022
  def __repr__(self):
11023
    L = ['%s=%r' % (key, value)
11024
      for key, value in self.__dict__.iteritems()]
11025
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11026
 
11027
  def __eq__(self, other):
11028
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11029
 
11030
  def __ne__(self, other):
11031
    return not (self == other)
11032
 
11033
class getLastNdaySaleForItem_result:
11034
  """
11035
  Attributes:
11036
   - success
11037
  """
11038
 
11039
  thrift_spec = (
11040
    (0, TType.STRING, 'success', None, None, ), # 0
11041
  )
11042
 
11043
  def __init__(self, success=None,):
11044
    self.success = success
11045
 
11046
  def read(self, iprot):
11047
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11048
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11049
      return
11050
    iprot.readStructBegin()
11051
    while True:
11052
      (fname, ftype, fid) = iprot.readFieldBegin()
11053
      if ftype == TType.STOP:
11054
        break
11055
      if fid == 0:
11056
        if ftype == TType.STRING:
11057
          self.success = iprot.readString();
11058
        else:
11059
          iprot.skip(ftype)
11060
      else:
11061
        iprot.skip(ftype)
11062
      iprot.readFieldEnd()
11063
    iprot.readStructEnd()
11064
 
11065
  def write(self, oprot):
11066
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11067
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11068
      return
11069
    oprot.writeStructBegin('getLastNdaySaleForItem_result')
11070
    if self.success is not None:
11071
      oprot.writeFieldBegin('success', TType.STRING, 0)
11072
      oprot.writeString(self.success)
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)
8182 amar.kumar 11091
 
8282 kshitij.so 11092
class addOrUpdateAmazonFbaInventory_args:
11093
  """
11094
  Attributes:
11095
   - amazonfbainventorysnapshot
11096
  """
11097
 
11098
  thrift_spec = (
11099
    None, # 0
11100
    (1, TType.STRUCT, 'amazonfbainventorysnapshot', (AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec), None, ), # 1
11101
  )
11102
 
11103
  def __init__(self, amazonfbainventorysnapshot=None,):
11104
    self.amazonfbainventorysnapshot = amazonfbainventorysnapshot
11105
 
11106
  def read(self, iprot):
11107
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11108
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11109
      return
11110
    iprot.readStructBegin()
11111
    while True:
11112
      (fname, ftype, fid) = iprot.readFieldBegin()
11113
      if ftype == TType.STOP:
11114
        break
11115
      if fid == 1:
11116
        if ftype == TType.STRUCT:
11117
          self.amazonfbainventorysnapshot = AmazonFbaInventorySnapshot()
11118
          self.amazonfbainventorysnapshot.read(iprot)
11119
        else:
11120
          iprot.skip(ftype)
11121
      else:
11122
        iprot.skip(ftype)
11123
      iprot.readFieldEnd()
11124
    iprot.readStructEnd()
11125
 
11126
  def write(self, oprot):
11127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11129
      return
11130
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_args')
11131
    if self.amazonfbainventorysnapshot is not None:
11132
      oprot.writeFieldBegin('amazonfbainventorysnapshot', TType.STRUCT, 1)
11133
      self.amazonfbainventorysnapshot.write(oprot)
11134
      oprot.writeFieldEnd()
11135
    oprot.writeFieldStop()
11136
    oprot.writeStructEnd()
11137
 
11138
  def validate(self):
11139
    return
11140
 
11141
 
11142
  def __repr__(self):
11143
    L = ['%s=%r' % (key, value)
11144
      for key, value in self.__dict__.iteritems()]
11145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11146
 
11147
  def __eq__(self, other):
11148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11149
 
11150
  def __ne__(self, other):
11151
    return not (self == other)
11152
 
11153
class addOrUpdateAmazonFbaInventory_result:
11154
 
11155
  thrift_spec = (
11156
  )
11157
 
11158
  def read(self, iprot):
11159
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11160
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11161
      return
11162
    iprot.readStructBegin()
11163
    while True:
11164
      (fname, ftype, fid) = iprot.readFieldBegin()
11165
      if ftype == TType.STOP:
11166
        break
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('addOrUpdateAmazonFbaInventory_result')
11177
    oprot.writeFieldStop()
11178
    oprot.writeStructEnd()
11179
 
11180
  def validate(self):
11181
    return
11182
 
11183
 
11184
  def __repr__(self):
11185
    L = ['%s=%r' % (key, value)
11186
      for key, value in self.__dict__.iteritems()]
11187
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11188
 
11189
  def __eq__(self, other):
11190
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11191
 
11192
  def __ne__(self, other):
11193
    return not (self == other)
11194
 
8182 amar.kumar 11195
class addUpdateHoldInventory_args:
11196
  """
11197
  Attributes:
11198
   - itemId
11199
   - warehouseId
11200
   - holdQuantity
11201
   - source
11202
  """
11203
 
11204
  thrift_spec = (
11205
    None, # 0
11206
    (1, TType.I64, 'itemId', None, None, ), # 1
11207
    (2, TType.I64, 'warehouseId', None, None, ), # 2
11208
    (3, TType.I64, 'holdQuantity', None, None, ), # 3
11209
    (4, TType.I64, 'source', None, None, ), # 4
11210
  )
11211
 
11212
  def __init__(self, itemId=None, warehouseId=None, holdQuantity=None, source=None,):
11213
    self.itemId = itemId
11214
    self.warehouseId = warehouseId
11215
    self.holdQuantity = holdQuantity
11216
    self.source = source
11217
 
11218
  def read(self, iprot):
11219
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11220
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11221
      return
11222
    iprot.readStructBegin()
11223
    while True:
11224
      (fname, ftype, fid) = iprot.readFieldBegin()
11225
      if ftype == TType.STOP:
11226
        break
11227
      if fid == 1:
11228
        if ftype == TType.I64:
11229
          self.itemId = iprot.readI64();
11230
        else:
11231
          iprot.skip(ftype)
11232
      elif fid == 2:
11233
        if ftype == TType.I64:
11234
          self.warehouseId = iprot.readI64();
11235
        else:
11236
          iprot.skip(ftype)
11237
      elif fid == 3:
11238
        if ftype == TType.I64:
11239
          self.holdQuantity = iprot.readI64();
11240
        else:
11241
          iprot.skip(ftype)
11242
      elif fid == 4:
11243
        if ftype == TType.I64:
11244
          self.source = iprot.readI64();
11245
        else:
11246
          iprot.skip(ftype)
11247
      else:
11248
        iprot.skip(ftype)
11249
      iprot.readFieldEnd()
11250
    iprot.readStructEnd()
11251
 
11252
  def write(self, oprot):
11253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11255
      return
11256
    oprot.writeStructBegin('addUpdateHoldInventory_args')
11257
    if self.itemId is not None:
11258
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11259
      oprot.writeI64(self.itemId)
11260
      oprot.writeFieldEnd()
11261
    if self.warehouseId is not None:
11262
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
11263
      oprot.writeI64(self.warehouseId)
11264
      oprot.writeFieldEnd()
11265
    if self.holdQuantity is not None:
11266
      oprot.writeFieldBegin('holdQuantity', TType.I64, 3)
11267
      oprot.writeI64(self.holdQuantity)
11268
      oprot.writeFieldEnd()
11269
    if self.source is not None:
11270
      oprot.writeFieldBegin('source', TType.I64, 4)
11271
      oprot.writeI64(self.source)
11272
      oprot.writeFieldEnd()
11273
    oprot.writeFieldStop()
11274
    oprot.writeStructEnd()
11275
 
11276
  def validate(self):
11277
    return
11278
 
11279
 
11280
  def __repr__(self):
11281
    L = ['%s=%r' % (key, value)
11282
      for key, value in self.__dict__.iteritems()]
11283
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11284
 
11285
  def __eq__(self, other):
11286
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11287
 
11288
  def __ne__(self, other):
11289
    return not (self == other)
11290
 
11291
class addUpdateHoldInventory_result:
11292
 
11293
  thrift_spec = (
11294
  )
11295
 
11296
  def read(self, iprot):
11297
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11298
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11299
      return
11300
    iprot.readStructBegin()
11301
    while True:
11302
      (fname, ftype, fid) = iprot.readFieldBegin()
11303
      if ftype == TType.STOP:
11304
        break
11305
      else:
11306
        iprot.skip(ftype)
11307
      iprot.readFieldEnd()
11308
    iprot.readStructEnd()
11309
 
11310
  def write(self, oprot):
11311
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11312
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11313
      return
11314
    oprot.writeStructBegin('addUpdateHoldInventory_result')
11315
    oprot.writeFieldStop()
11316
    oprot.writeStructEnd()
11317
 
11318
  def validate(self):
11319
    return
11320
 
11321
 
11322
  def __repr__(self):
11323
    L = ['%s=%r' % (key, value)
11324
      for key, value in self.__dict__.iteritems()]
11325
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11326
 
11327
  def __eq__(self, other):
11328
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11329
 
11330
  def __ne__(self, other):
11331
    return not (self == other)
8282 kshitij.so 11332
 
11333
class getAmazonFbaItemInventory_args:
11334
  """
11335
  Attributes:
11336
   - itemId
11337
  """
11338
 
11339
  thrift_spec = (
11340
    None, # 0
11341
    (1, TType.I64, 'itemId', None, None, ), # 1
11342
  )
11343
 
11344
  def __init__(self, itemId=None,):
11345
    self.itemId = itemId
11346
 
11347
  def read(self, iprot):
11348
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11349
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11350
      return
11351
    iprot.readStructBegin()
11352
    while True:
11353
      (fname, ftype, fid) = iprot.readFieldBegin()
11354
      if ftype == TType.STOP:
11355
        break
11356
      if fid == 1:
11357
        if ftype == TType.I64:
11358
          self.itemId = iprot.readI64();
11359
        else:
11360
          iprot.skip(ftype)
11361
      else:
11362
        iprot.skip(ftype)
11363
      iprot.readFieldEnd()
11364
    iprot.readStructEnd()
11365
 
11366
  def write(self, oprot):
11367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11369
      return
11370
    oprot.writeStructBegin('getAmazonFbaItemInventory_args')
11371
    if self.itemId is not None:
11372
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11373
      oprot.writeI64(self.itemId)
11374
      oprot.writeFieldEnd()
11375
    oprot.writeFieldStop()
11376
    oprot.writeStructEnd()
11377
 
11378
  def validate(self):
11379
    return
11380
 
11381
 
11382
  def __repr__(self):
11383
    L = ['%s=%r' % (key, value)
11384
      for key, value in self.__dict__.iteritems()]
11385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11386
 
11387
  def __eq__(self, other):
11388
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11389
 
11390
  def __ne__(self, other):
11391
    return not (self == other)
11392
 
11393
class getAmazonFbaItemInventory_result:
11394
  """
11395
  Attributes:
11396
   - success
11397
  """
11398
 
11399
  thrift_spec = (
11400
    (0, TType.I64, 'success', None, None, ), # 0
11401
  )
11402
 
11403
  def __init__(self, success=None,):
11404
    self.success = success
11405
 
11406
  def read(self, iprot):
11407
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11408
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11409
      return
11410
    iprot.readStructBegin()
11411
    while True:
11412
      (fname, ftype, fid) = iprot.readFieldBegin()
11413
      if ftype == TType.STOP:
11414
        break
11415
      if fid == 0:
11416
        if ftype == TType.I64:
11417
          self.success = iprot.readI64();
11418
        else:
11419
          iprot.skip(ftype)
11420
      else:
11421
        iprot.skip(ftype)
11422
      iprot.readFieldEnd()
11423
    iprot.readStructEnd()
11424
 
11425
  def write(self, oprot):
11426
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11427
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11428
      return
11429
    oprot.writeStructBegin('getAmazonFbaItemInventory_result')
11430
    if self.success is not None:
11431
      oprot.writeFieldBegin('success', TType.I64, 0)
11432
      oprot.writeI64(self.success)
11433
      oprot.writeFieldEnd()
11434
    oprot.writeFieldStop()
11435
    oprot.writeStructEnd()
11436
 
11437
  def validate(self):
11438
    return
11439
 
11440
 
11441
  def __repr__(self):
11442
    L = ['%s=%r' % (key, value)
11443
      for key, value in self.__dict__.iteritems()]
11444
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11445
 
11446
  def __eq__(self, other):
11447
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11448
 
11449
  def __ne__(self, other):
11450
    return not (self == other)
11451
 
8363 vikram.rag 11452
class getAllAmazonFbaItemInventory_args:
8282 kshitij.so 11453
 
11454
  thrift_spec = (
11455
  )
11456
 
11457
  def read(self, iprot):
11458
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11459
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11460
      return
11461
    iprot.readStructBegin()
11462
    while True:
11463
      (fname, ftype, fid) = iprot.readFieldBegin()
11464
      if ftype == TType.STOP:
11465
        break
11466
      else:
11467
        iprot.skip(ftype)
11468
      iprot.readFieldEnd()
11469
    iprot.readStructEnd()
11470
 
11471
  def write(self, oprot):
11472
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11473
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11474
      return
8363 vikram.rag 11475
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_args')
8282 kshitij.so 11476
    oprot.writeFieldStop()
11477
    oprot.writeStructEnd()
11478
 
11479
  def validate(self):
11480
    return
11481
 
11482
 
11483
  def __repr__(self):
11484
    L = ['%s=%r' % (key, value)
11485
      for key, value in self.__dict__.iteritems()]
11486
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11487
 
11488
  def __eq__(self, other):
11489
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11490
 
11491
  def __ne__(self, other):
11492
    return not (self == other)
11493
 
8363 vikram.rag 11494
class getAllAmazonFbaItemInventory_result:
8282 kshitij.so 11495
  """
11496
  Attributes:
11497
   - success
11498
  """
11499
 
11500
  thrift_spec = (
11501
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
11502
  )
11503
 
11504
  def __init__(self, success=None,):
11505
    self.success = success
11506
 
11507
  def read(self, iprot):
11508
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11509
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11510
      return
11511
    iprot.readStructBegin()
11512
    while True:
11513
      (fname, ftype, fid) = iprot.readFieldBegin()
11514
      if ftype == TType.STOP:
11515
        break
11516
      if fid == 0:
11517
        if ftype == TType.LIST:
11518
          self.success = []
11519
          (_etype233, _size230) = iprot.readListBegin()
11520
          for _i234 in xrange(_size230):
11521
            _elem235 = AmazonFbaInventorySnapshot()
11522
            _elem235.read(iprot)
11523
            self.success.append(_elem235)
11524
          iprot.readListEnd()
11525
        else:
11526
          iprot.skip(ftype)
11527
      else:
11528
        iprot.skip(ftype)
11529
      iprot.readFieldEnd()
11530
    iprot.readStructEnd()
11531
 
11532
  def write(self, oprot):
11533
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11534
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11535
      return
8363 vikram.rag 11536
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_result')
8282 kshitij.so 11537
    if self.success is not None:
11538
      oprot.writeFieldBegin('success', TType.LIST, 0)
11539
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11540
      for iter236 in self.success:
11541
        iter236.write(oprot)
11542
      oprot.writeListEnd()
11543
      oprot.writeFieldEnd()
11544
    oprot.writeFieldStop()
11545
    oprot.writeStructEnd()
11546
 
11547
  def validate(self):
11548
    return
11549
 
11550
 
11551
  def __repr__(self):
11552
    L = ['%s=%r' % (key, value)
11553
      for key, value in self.__dict__.iteritems()]
11554
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11555
 
11556
  def __eq__(self, other):
11557
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11558
 
11559
  def __ne__(self, other):
11560
    return not (self == other)
8363 vikram.rag 11561
 
11562
class getOursGoodWarehouseIdsForLocation_args:
11563
  """
11564
  Attributes:
11565
   - state_id
11566
  """
11567
 
11568
  thrift_spec = (
11569
    None, # 0
11570
    (1, TType.I64, 'state_id', None, None, ), # 1
11571
  )
11572
 
11573
  def __init__(self, state_id=None,):
11574
    self.state_id = state_id
11575
 
11576
  def read(self, iprot):
11577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11579
      return
11580
    iprot.readStructBegin()
11581
    while True:
11582
      (fname, ftype, fid) = iprot.readFieldBegin()
11583
      if ftype == TType.STOP:
11584
        break
11585
      if fid == 1:
11586
        if ftype == TType.I64:
11587
          self.state_id = iprot.readI64();
11588
        else:
11589
          iprot.skip(ftype)
11590
      else:
11591
        iprot.skip(ftype)
11592
      iprot.readFieldEnd()
11593
    iprot.readStructEnd()
11594
 
11595
  def write(self, oprot):
11596
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11597
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11598
      return
11599
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_args')
11600
    if self.state_id is not None:
11601
      oprot.writeFieldBegin('state_id', TType.I64, 1)
11602
      oprot.writeI64(self.state_id)
11603
      oprot.writeFieldEnd()
11604
    oprot.writeFieldStop()
11605
    oprot.writeStructEnd()
11606
 
11607
  def validate(self):
11608
    return
11609
 
11610
 
11611
  def __repr__(self):
11612
    L = ['%s=%r' % (key, value)
11613
      for key, value in self.__dict__.iteritems()]
11614
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11615
 
11616
  def __eq__(self, other):
11617
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11618
 
11619
  def __ne__(self, other):
11620
    return not (self == other)
11621
 
11622
class getOursGoodWarehouseIdsForLocation_result:
11623
  """
11624
  Attributes:
11625
   - success
11626
  """
11627
 
11628
  thrift_spec = (
11629
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11630
  )
11631
 
11632
  def __init__(self, success=None,):
11633
    self.success = success
11634
 
11635
  def read(self, iprot):
11636
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11637
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11638
      return
11639
    iprot.readStructBegin()
11640
    while True:
11641
      (fname, ftype, fid) = iprot.readFieldBegin()
11642
      if ftype == TType.STOP:
11643
        break
11644
      if fid == 0:
11645
        if ftype == TType.LIST:
11646
          self.success = []
11647
          (_etype240, _size237) = iprot.readListBegin()
11648
          for _i241 in xrange(_size237):
11649
            _elem242 = iprot.readI64();
11650
            self.success.append(_elem242)
11651
          iprot.readListEnd()
11652
        else:
11653
          iprot.skip(ftype)
11654
      else:
11655
        iprot.skip(ftype)
11656
      iprot.readFieldEnd()
11657
    iprot.readStructEnd()
11658
 
11659
  def write(self, oprot):
11660
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11661
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11662
      return
11663
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_result')
11664
    if self.success is not None:
11665
      oprot.writeFieldBegin('success', TType.LIST, 0)
11666
      oprot.writeListBegin(TType.I64, len(self.success))
11667
      for iter243 in self.success:
11668
        oprot.writeI64(iter243)
11669
      oprot.writeListEnd()
11670
      oprot.writeFieldEnd()
11671
    oprot.writeFieldStop()
11672
    oprot.writeStructEnd()
11673
 
11674
  def validate(self):
11675
    return
11676
 
11677
 
11678
  def __repr__(self):
11679
    L = ['%s=%r' % (key, value)
11680
      for key, value in self.__dict__.iteritems()]
11681
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11682
 
11683
  def __eq__(self, other):
11684
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11685
 
11686
  def __ne__(self, other):
11687
    return not (self == other)
8955 vikram.rag 11688
 
11689
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_args:
11690
  """
11691
  Attributes:
11692
   - id
11693
   - warehouse_id
11694
   - source
11695
  """
11696
 
11697
  thrift_spec = (
11698
    None, # 0
11699
    (1, TType.I64, 'id', None, None, ), # 1
11700
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
11701
    (3, TType.I64, 'source', None, None, ), # 3
11702
  )
11703
 
11704
  def __init__(self, id=None, warehouse_id=None, source=None,):
11705
    self.id = id
11706
    self.warehouse_id = warehouse_id
11707
    self.source = source
11708
 
11709
  def read(self, iprot):
11710
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11711
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11712
      return
11713
    iprot.readStructBegin()
11714
    while True:
11715
      (fname, ftype, fid) = iprot.readFieldBegin()
11716
      if ftype == TType.STOP:
11717
        break
11718
      if fid == 1:
11719
        if ftype == TType.I64:
11720
          self.id = iprot.readI64();
11721
        else:
11722
          iprot.skip(ftype)
11723
      elif fid == 2:
11724
        if ftype == TType.I64:
11725
          self.warehouse_id = iprot.readI64();
11726
        else:
11727
          iprot.skip(ftype)
11728
      elif fid == 3:
11729
        if ftype == TType.I64:
11730
          self.source = iprot.readI64();
11731
        else:
11732
          iprot.skip(ftype)
11733
      else:
11734
        iprot.skip(ftype)
11735
      iprot.readFieldEnd()
11736
    iprot.readStructEnd()
11737
 
11738
  def write(self, oprot):
11739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11741
      return
11742
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_args')
11743
    if self.id is not None:
11744
      oprot.writeFieldBegin('id', TType.I64, 1)
11745
      oprot.writeI64(self.id)
11746
      oprot.writeFieldEnd()
11747
    if self.warehouse_id is not None:
11748
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
11749
      oprot.writeI64(self.warehouse_id)
11750
      oprot.writeFieldEnd()
11751
    if self.source is not None:
11752
      oprot.writeFieldBegin('source', TType.I64, 3)
11753
      oprot.writeI64(self.source)
11754
      oprot.writeFieldEnd()
11755
    oprot.writeFieldStop()
11756
    oprot.writeStructEnd()
11757
 
11758
  def validate(self):
11759
    return
11760
 
11761
 
11762
  def __repr__(self):
11763
    L = ['%s=%r' % (key, value)
11764
      for key, value in self.__dict__.iteritems()]
11765
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11766
 
11767
  def __eq__(self, other):
11768
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11769
 
11770
  def __ne__(self, other):
11771
    return not (self == other)
11772
 
11773
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_result:
11774
  """
11775
  Attributes:
11776
   - success
11777
  """
11778
 
11779
  thrift_spec = (
11780
    (0, TType.I64, 'success', None, None, ), # 0
11781
  )
11782
 
11783
  def __init__(self, success=None,):
11784
    self.success = success
11785
 
11786
  def read(self, iprot):
11787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11789
      return
11790
    iprot.readStructBegin()
11791
    while True:
11792
      (fname, ftype, fid) = iprot.readFieldBegin()
11793
      if ftype == TType.STOP:
11794
        break
11795
      if fid == 0:
11796
        if ftype == TType.I64:
11797
          self.success = iprot.readI64();
11798
        else:
11799
          iprot.skip(ftype)
11800
      else:
11801
        iprot.skip(ftype)
11802
      iprot.readFieldEnd()
11803
    iprot.readStructEnd()
11804
 
11805
  def write(self, oprot):
11806
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11807
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11808
      return
11809
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_result')
11810
    if self.success is not None:
11811
      oprot.writeFieldBegin('success', TType.I64, 0)
11812
      oprot.writeI64(self.success)
11813
      oprot.writeFieldEnd()
11814
    oprot.writeFieldStop()
11815
    oprot.writeStructEnd()
11816
 
11817
  def validate(self):
11818
    return
11819
 
11820
 
11821
  def __repr__(self):
11822
    L = ['%s=%r' % (key, value)
11823
      for key, value in self.__dict__.iteritems()]
11824
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11825
 
11826
  def __eq__(self, other):
11827
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11828
 
11829
  def __ne__(self, other):
11830
    return not (self == other)
9404 vikram.rag 11831
 
11832
class getSnapdealInventoryForItem_args:
11833
  """
11834
  Attributes:
11835
   - item_id
11836
  """
11837
 
11838
  thrift_spec = (
11839
    None, # 0
11840
    (1, TType.I64, 'item_id', None, None, ), # 1
11841
  )
11842
 
11843
  def __init__(self, item_id=None,):
11844
    self.item_id = item_id
11845
 
11846
  def read(self, iprot):
11847
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11848
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11849
      return
11850
    iprot.readStructBegin()
11851
    while True:
11852
      (fname, ftype, fid) = iprot.readFieldBegin()
11853
      if ftype == TType.STOP:
11854
        break
11855
      if fid == 1:
11856
        if ftype == TType.I64:
11857
          self.item_id = iprot.readI64();
11858
        else:
11859
          iprot.skip(ftype)
11860
      else:
11861
        iprot.skip(ftype)
11862
      iprot.readFieldEnd()
11863
    iprot.readStructEnd()
11864
 
11865
  def write(self, oprot):
11866
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11867
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11868
      return
11869
    oprot.writeStructBegin('getSnapdealInventoryForItem_args')
11870
    if self.item_id is not None:
11871
      oprot.writeFieldBegin('item_id', TType.I64, 1)
11872
      oprot.writeI64(self.item_id)
11873
      oprot.writeFieldEnd()
11874
    oprot.writeFieldStop()
11875
    oprot.writeStructEnd()
11876
 
11877
  def validate(self):
11878
    return
11879
 
11880
 
11881
  def __repr__(self):
11882
    L = ['%s=%r' % (key, value)
11883
      for key, value in self.__dict__.iteritems()]
11884
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11885
 
11886
  def __eq__(self, other):
11887
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11888
 
11889
  def __ne__(self, other):
11890
    return not (self == other)
11891
 
11892
class getSnapdealInventoryForItem_result:
11893
  """
11894
  Attributes:
11895
   - success
11896
  """
11897
 
11898
  thrift_spec = (
11899
    (0, TType.STRUCT, 'success', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 0
11900
  )
11901
 
11902
  def __init__(self, success=None,):
11903
    self.success = success
11904
 
11905
  def read(self, iprot):
11906
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11907
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11908
      return
11909
    iprot.readStructBegin()
11910
    while True:
11911
      (fname, ftype, fid) = iprot.readFieldBegin()
11912
      if ftype == TType.STOP:
11913
        break
11914
      if fid == 0:
11915
        if ftype == TType.STRUCT:
11916
          self.success = SnapdealInventoryItem()
11917
          self.success.read(iprot)
11918
        else:
11919
          iprot.skip(ftype)
11920
      else:
11921
        iprot.skip(ftype)
11922
      iprot.readFieldEnd()
11923
    iprot.readStructEnd()
11924
 
11925
  def write(self, oprot):
11926
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11927
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11928
      return
11929
    oprot.writeStructBegin('getSnapdealInventoryForItem_result')
11930
    if self.success is not None:
11931
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11932
      self.success.write(oprot)
11933
      oprot.writeFieldEnd()
11934
    oprot.writeFieldStop()
11935
    oprot.writeStructEnd()
11936
 
11937
  def validate(self):
11938
    return
11939
 
11940
 
11941
  def __repr__(self):
11942
    L = ['%s=%r' % (key, value)
11943
      for key, value in self.__dict__.iteritems()]
11944
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11945
 
11946
  def __eq__(self, other):
11947
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11948
 
11949
  def __ne__(self, other):
11950
    return not (self == other)
11951
 
11952
class addOrUpdateSnapdealInventoryForItem_args:
11953
  """
11954
  Attributes:
11955
   - snapdealinventoryitem
11956
  """
11957
 
11958
  thrift_spec = (
11959
    None, # 0
11960
    (1, TType.STRUCT, 'snapdealinventoryitem', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 1
11961
  )
11962
 
11963
  def __init__(self, snapdealinventoryitem=None,):
11964
    self.snapdealinventoryitem = snapdealinventoryitem
11965
 
11966
  def read(self, iprot):
11967
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11968
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11969
      return
11970
    iprot.readStructBegin()
11971
    while True:
11972
      (fname, ftype, fid) = iprot.readFieldBegin()
11973
      if ftype == TType.STOP:
11974
        break
11975
      if fid == 1:
11976
        if ftype == TType.STRUCT:
11977
          self.snapdealinventoryitem = SnapdealInventoryItem()
11978
          self.snapdealinventoryitem.read(iprot)
11979
        else:
11980
          iprot.skip(ftype)
11981
      else:
11982
        iprot.skip(ftype)
11983
      iprot.readFieldEnd()
11984
    iprot.readStructEnd()
11985
 
11986
  def write(self, oprot):
11987
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11988
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11989
      return
11990
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_args')
11991
    if self.snapdealinventoryitem is not None:
11992
      oprot.writeFieldBegin('snapdealinventoryitem', TType.STRUCT, 1)
11993
      self.snapdealinventoryitem.write(oprot)
11994
      oprot.writeFieldEnd()
11995
    oprot.writeFieldStop()
11996
    oprot.writeStructEnd()
11997
 
11998
  def validate(self):
11999
    return
12000
 
12001
 
12002
  def __repr__(self):
12003
    L = ['%s=%r' % (key, value)
12004
      for key, value in self.__dict__.iteritems()]
12005
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12006
 
12007
  def __eq__(self, other):
12008
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12009
 
12010
  def __ne__(self, other):
12011
    return not (self == other)
12012
 
12013
class addOrUpdateSnapdealInventoryForItem_result:
12014
 
12015
  thrift_spec = (
12016
  )
12017
 
12018
  def read(self, iprot):
12019
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12020
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12021
      return
12022
    iprot.readStructBegin()
12023
    while True:
12024
      (fname, ftype, fid) = iprot.readFieldBegin()
12025
      if ftype == TType.STOP:
12026
        break
12027
      else:
12028
        iprot.skip(ftype)
12029
      iprot.readFieldEnd()
12030
    iprot.readStructEnd()
12031
 
12032
  def write(self, oprot):
12033
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12034
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12035
      return
12036
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_result')
12037
    oprot.writeFieldStop()
12038
    oprot.writeStructEnd()
12039
 
12040
  def validate(self):
12041
    return
12042
 
12043
 
12044
  def __repr__(self):
12045
    L = ['%s=%r' % (key, value)
12046
      for key, value in self.__dict__.iteritems()]
12047
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12048
 
12049
  def __eq__(self, other):
12050
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12051
 
12052
  def __ne__(self, other):
12053
    return not (self == other)
12054
 
12055
class getNlcForWarehouse_args:
12056
  """
12057
  Attributes:
12058
   - warehouse_id
12059
   - item_id
12060
  """
12061
 
12062
  thrift_spec = (
12063
    None, # 0
12064
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
12065
    (2, TType.I64, 'item_id', None, None, ), # 2
12066
  )
12067
 
12068
  def __init__(self, warehouse_id=None, item_id=None,):
12069
    self.warehouse_id = warehouse_id
12070
    self.item_id = item_id
12071
 
12072
  def read(self, iprot):
12073
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12074
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12075
      return
12076
    iprot.readStructBegin()
12077
    while True:
12078
      (fname, ftype, fid) = iprot.readFieldBegin()
12079
      if ftype == TType.STOP:
12080
        break
12081
      if fid == 1:
12082
        if ftype == TType.I64:
12083
          self.warehouse_id = iprot.readI64();
12084
        else:
12085
          iprot.skip(ftype)
12086
      elif fid == 2:
12087
        if ftype == TType.I64:
12088
          self.item_id = iprot.readI64();
12089
        else:
12090
          iprot.skip(ftype)
12091
      else:
12092
        iprot.skip(ftype)
12093
      iprot.readFieldEnd()
12094
    iprot.readStructEnd()
12095
 
12096
  def write(self, oprot):
12097
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12098
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12099
      return
12100
    oprot.writeStructBegin('getNlcForWarehouse_args')
12101
    if self.warehouse_id is not None:
12102
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
12103
      oprot.writeI64(self.warehouse_id)
12104
      oprot.writeFieldEnd()
12105
    if self.item_id is not None:
12106
      oprot.writeFieldBegin('item_id', TType.I64, 2)
12107
      oprot.writeI64(self.item_id)
12108
      oprot.writeFieldEnd()
12109
    oprot.writeFieldStop()
12110
    oprot.writeStructEnd()
12111
 
12112
  def validate(self):
12113
    return
12114
 
12115
 
12116
  def __repr__(self):
12117
    L = ['%s=%r' % (key, value)
12118
      for key, value in self.__dict__.iteritems()]
12119
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12120
 
12121
  def __eq__(self, other):
12122
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12123
 
12124
  def __ne__(self, other):
12125
    return not (self == other)
12126
 
12127
class getNlcForWarehouse_result:
12128
  """
12129
  Attributes:
12130
   - success
12131
  """
12132
 
12133
  thrift_spec = (
12134
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12135
  )
12136
 
12137
  def __init__(self, success=None,):
12138
    self.success = success
12139
 
12140
  def read(self, iprot):
12141
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12142
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12143
      return
12144
    iprot.readStructBegin()
12145
    while True:
12146
      (fname, ftype, fid) = iprot.readFieldBegin()
12147
      if ftype == TType.STOP:
12148
        break
12149
      if fid == 0:
12150
        if ftype == TType.DOUBLE:
12151
          self.success = iprot.readDouble();
12152
        else:
12153
          iprot.skip(ftype)
12154
      else:
12155
        iprot.skip(ftype)
12156
      iprot.readFieldEnd()
12157
    iprot.readStructEnd()
12158
 
12159
  def write(self, oprot):
12160
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12161
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12162
      return
12163
    oprot.writeStructBegin('getNlcForWarehouse_result')
12164
    if self.success is not None:
12165
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12166
      oprot.writeDouble(self.success)
12167
      oprot.writeFieldEnd()
12168
    oprot.writeFieldStop()
12169
    oprot.writeStructEnd()
12170
 
12171
  def validate(self):
12172
    return
12173
 
12174
 
12175
  def __repr__(self):
12176
    L = ['%s=%r' % (key, value)
12177
      for key, value in self.__dict__.iteritems()]
12178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12179
 
12180
  def __eq__(self, other):
12181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12182
 
12183
  def __ne__(self, other):
12184
    return not (self == other)
9456 vikram.rag 12185
 
9495 vikram.rag 12186
class addOrUpdateAllAmazonFbaInventory_args:
12187
  """
12188
  Attributes:
12189
   - allamazonfbainventorysnapshot
12190
  """
9456 vikram.rag 12191
 
9495 vikram.rag 12192
  thrift_spec = None
12193
  def __init__(self, allamazonfbainventorysnapshot=None,):
12194
    self.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 12195
 
12196
  def read(self, iprot):
12197
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12198
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12199
      return
12200
    iprot.readStructBegin()
12201
    while True:
12202
      (fname, ftype, fid) = iprot.readFieldBegin()
12203
      if ftype == TType.STOP:
12204
        break
9495 vikram.rag 12205
      if fid == -1:
12206
        if ftype == TType.LIST:
12207
          self.allamazonfbainventorysnapshot = []
12208
          (_etype247, _size244) = iprot.readListBegin()
12209
          for _i248 in xrange(_size244):
12210
            _elem249 = AmazonFbaInventorySnapshot()
12211
            _elem249.read(iprot)
12212
            self.allamazonfbainventorysnapshot.append(_elem249)
12213
          iprot.readListEnd()
12214
        else:
12215
          iprot.skip(ftype)
9456 vikram.rag 12216
      else:
12217
        iprot.skip(ftype)
12218
      iprot.readFieldEnd()
12219
    iprot.readStructEnd()
12220
 
12221
  def write(self, oprot):
12222
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12223
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12224
      return
9495 vikram.rag 12225
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_args')
12226
    if self.allamazonfbainventorysnapshot is not None:
12227
      oprot.writeFieldBegin('allamazonfbainventorysnapshot', TType.LIST, -1)
12228
      oprot.writeListBegin(TType.STRUCT, len(self.allamazonfbainventorysnapshot))
12229
      for iter250 in self.allamazonfbainventorysnapshot:
12230
        iter250.write(oprot)
12231
      oprot.writeListEnd()
12232
      oprot.writeFieldEnd()
9456 vikram.rag 12233
    oprot.writeFieldStop()
12234
    oprot.writeStructEnd()
12235
 
12236
  def validate(self):
12237
    return
12238
 
12239
 
12240
  def __repr__(self):
12241
    L = ['%s=%r' % (key, value)
12242
      for key, value in self.__dict__.iteritems()]
12243
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12244
 
12245
  def __eq__(self, other):
12246
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12247
 
12248
  def __ne__(self, other):
12249
    return not (self == other)
12250
 
9495 vikram.rag 12251
class addOrUpdateAllAmazonFbaInventory_result:
9456 vikram.rag 12252
 
12253
  thrift_spec = (
12254
  )
12255
 
12256
  def read(self, iprot):
12257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12259
      return
12260
    iprot.readStructBegin()
12261
    while True:
12262
      (fname, ftype, fid) = iprot.readFieldBegin()
12263
      if ftype == TType.STOP:
12264
        break
12265
      else:
12266
        iprot.skip(ftype)
12267
      iprot.readFieldEnd()
12268
    iprot.readStructEnd()
12269
 
12270
  def write(self, oprot):
12271
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12272
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12273
      return
9495 vikram.rag 12274
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_result')
9456 vikram.rag 12275
    oprot.writeFieldStop()
12276
    oprot.writeStructEnd()
12277
 
12278
  def validate(self):
12279
    return
12280
 
12281
 
12282
  def __repr__(self):
12283
    L = ['%s=%r' % (key, value)
12284
      for key, value in self.__dict__.iteritems()]
12285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12286
 
12287
  def __eq__(self, other):
12288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12289
 
12290
  def __ne__(self, other):
12291
    return not (self == other)
9482 vikram.rag 12292
 
9495 vikram.rag 12293
class addOrUpdateAllSnapdealInventory_args:
9482 vikram.rag 12294
  """
12295
  Attributes:
9495 vikram.rag 12296
   - allsnapdealinventorysnapshot
9482 vikram.rag 12297
  """
12298
 
12299
  thrift_spec = None
9495 vikram.rag 12300
  def __init__(self, allsnapdealinventorysnapshot=None,):
12301
    self.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 12302
 
12303
  def read(self, iprot):
12304
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12305
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12306
      return
12307
    iprot.readStructBegin()
12308
    while True:
12309
      (fname, ftype, fid) = iprot.readFieldBegin()
12310
      if ftype == TType.STOP:
12311
        break
12312
      if fid == -1:
12313
        if ftype == TType.LIST:
9495 vikram.rag 12314
          self.allsnapdealinventorysnapshot = []
12315
          (_etype254, _size251) = iprot.readListBegin()
12316
          for _i255 in xrange(_size251):
12317
            _elem256 = SnapdealInventoryItem()
12318
            _elem256.read(iprot)
12319
            self.allsnapdealinventorysnapshot.append(_elem256)
9482 vikram.rag 12320
          iprot.readListEnd()
12321
        else:
12322
          iprot.skip(ftype)
12323
      else:
12324
        iprot.skip(ftype)
12325
      iprot.readFieldEnd()
12326
    iprot.readStructEnd()
12327
 
12328
  def write(self, oprot):
12329
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12330
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12331
      return
9495 vikram.rag 12332
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_args')
12333
    if self.allsnapdealinventorysnapshot is not None:
12334
      oprot.writeFieldBegin('allsnapdealinventorysnapshot', TType.LIST, -1)
12335
      oprot.writeListBegin(TType.STRUCT, len(self.allsnapdealinventorysnapshot))
12336
      for iter257 in self.allsnapdealinventorysnapshot:
12337
        iter257.write(oprot)
9482 vikram.rag 12338
      oprot.writeListEnd()
12339
      oprot.writeFieldEnd()
12340
    oprot.writeFieldStop()
12341
    oprot.writeStructEnd()
12342
 
12343
  def validate(self):
12344
    return
12345
 
12346
 
12347
  def __repr__(self):
12348
    L = ['%s=%r' % (key, value)
12349
      for key, value in self.__dict__.iteritems()]
12350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12351
 
12352
  def __eq__(self, other):
12353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12354
 
12355
  def __ne__(self, other):
12356
    return not (self == other)
12357
 
9495 vikram.rag 12358
class addOrUpdateAllSnapdealInventory_result:
9482 vikram.rag 12359
 
12360
  thrift_spec = (
12361
  )
12362
 
12363
  def read(self, iprot):
12364
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12365
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12366
      return
12367
    iprot.readStructBegin()
12368
    while True:
12369
      (fname, ftype, fid) = iprot.readFieldBegin()
12370
      if ftype == TType.STOP:
12371
        break
12372
      else:
12373
        iprot.skip(ftype)
12374
      iprot.readFieldEnd()
12375
    iprot.readStructEnd()
12376
 
12377
  def write(self, oprot):
12378
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12379
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12380
      return
9495 vikram.rag 12381
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_result')
9482 vikram.rag 12382
    oprot.writeFieldStop()
12383
    oprot.writeStructEnd()
12384
 
12385
  def validate(self):
12386
    return
12387
 
12388
 
12389
  def __repr__(self):
12390
    L = ['%s=%r' % (key, value)
12391
      for key, value in self.__dict__.iteritems()]
12392
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12393
 
12394
  def __eq__(self, other):
12395
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12396
 
12397
  def __ne__(self, other):
12398
    return not (self == other)
9495 vikram.rag 12399
 
12400
class getSnapdealInventorySnapshot_args:
12401
 
12402
  thrift_spec = (
12403
  )
12404
 
12405
  def read(self, iprot):
12406
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12407
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12408
      return
12409
    iprot.readStructBegin()
12410
    while True:
12411
      (fname, ftype, fid) = iprot.readFieldBegin()
12412
      if ftype == TType.STOP:
12413
        break
12414
      else:
12415
        iprot.skip(ftype)
12416
      iprot.readFieldEnd()
12417
    iprot.readStructEnd()
12418
 
12419
  def write(self, oprot):
12420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12422
      return
12423
    oprot.writeStructBegin('getSnapdealInventorySnapshot_args')
12424
    oprot.writeFieldStop()
12425
    oprot.writeStructEnd()
12426
 
12427
  def validate(self):
12428
    return
12429
 
12430
 
12431
  def __repr__(self):
12432
    L = ['%s=%r' % (key, value)
12433
      for key, value in self.__dict__.iteritems()]
12434
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12435
 
12436
  def __eq__(self, other):
12437
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12438
 
12439
  def __ne__(self, other):
12440
    return not (self == other)
12441
 
12442
class getSnapdealInventorySnapshot_result:
12443
  """
12444
  Attributes:
12445
   - success
12446
  """
12447
 
12448
  thrift_spec = (
12449
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec)), None, ), # 0
12450
  )
12451
 
12452
  def __init__(self, success=None,):
12453
    self.success = success
12454
 
12455
  def read(self, iprot):
12456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12458
      return
12459
    iprot.readStructBegin()
12460
    while True:
12461
      (fname, ftype, fid) = iprot.readFieldBegin()
12462
      if ftype == TType.STOP:
12463
        break
12464
      if fid == 0:
12465
        if ftype == TType.LIST:
12466
          self.success = []
12467
          (_etype261, _size258) = iprot.readListBegin()
12468
          for _i262 in xrange(_size258):
12469
            _elem263 = SnapdealInventoryItem()
12470
            _elem263.read(iprot)
12471
            self.success.append(_elem263)
12472
          iprot.readListEnd()
12473
        else:
12474
          iprot.skip(ftype)
12475
      else:
12476
        iprot.skip(ftype)
12477
      iprot.readFieldEnd()
12478
    iprot.readStructEnd()
12479
 
12480
  def write(self, oprot):
12481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12483
      return
12484
    oprot.writeStructBegin('getSnapdealInventorySnapshot_result')
12485
    if self.success is not None:
12486
      oprot.writeFieldBegin('success', TType.LIST, 0)
12487
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12488
      for iter264 in self.success:
12489
        iter264.write(oprot)
12490
      oprot.writeListEnd()
12491
      oprot.writeFieldEnd()
12492
    oprot.writeFieldStop()
12493
    oprot.writeStructEnd()
12494
 
12495
  def validate(self):
12496
    return
12497
 
12498
 
12499
  def __repr__(self):
12500
    L = ['%s=%r' % (key, value)
12501
      for key, value in self.__dict__.iteritems()]
12502
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12503
 
12504
  def __eq__(self, other):
12505
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12506
 
12507
  def __ne__(self, other):
12508
    return not (self == other)