Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
5944 mandeep.dh 1
#
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def addWarehouse(self, warehouse):
21
    """
22
    Parameters:
23
     - warehouse
24
    """
25
    pass
26
 
27
  def addVendor(self, vendor):
28
    """
29
    add a new vendor
30
 
31
    Parameters:
32
     - vendor
33
    """
34
    pass
35
 
36
  def updateInventoryHistory(self, warehouse_id, timestamp, availability):
37
    """
38
    Stores the incremental warehouse updates of items.
39
 
40
    Parameters:
41
     - warehouse_id
42
     - timestamp
43
     - availability
44
    """
45
    pass
46
 
47
  def updateInventory(self, warehouse_id, timestamp, availability):
48
    """
49
    Stores the final inventory stocks of items.
50
 
51
    Parameters:
52
     - warehouse_id
53
     - timestamp
54
     - availability
55
    """
56
    pass
57
 
58
  def addInventory(self, itemId, warehouseId, quantity):
59
    """
60
    Add the inventory to existing stock.
61
 
62
    Parameters:
63
     - itemId
64
     - warehouseId
65
     - quantity
66
    """
67
    pass
68
 
69
  def retireWarehouse(self, warehouse_id):
70
    """
71
    Parameters:
72
     - warehouse_id
73
    """
74
    pass
75
 
76
  def getItemInventoryByItemId(self, item_id):
77
    """
78
    Parameters:
79
     - item_id
80
    """
81
    pass
82
 
83
  def getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
84
    """
85
    Parameters:
86
     - warehouse_id
87
     - item_id
88
    """
89
    pass
90
 
5978 rajveer 91
  def getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 92
    """
93
    Determines the warehouse that should be used to fulfil an order for the given item.
94
    It first checks all the warehouses which are in the logistics location given by the
95
    warehouse_loc parameter. If none of the warehouses there have any inventory, then the
96
    preferred warehouse for the item is used.
97
 
98
    Returns an ordered list of size 4 with following elements in the given order:
99
    1. Id of the fulfillment warehouse which was finally picked up.
100
    2. Expected delay added by the category manager.
101
    3. Id of the billing warehouse which was finally picked up.
102
 
103
    Parameters:
104
     - itemId
5978 rajveer 105
     - sourceId
5944 mandeep.dh 106
    """
107
    pass
108
 
109
  def getAllWarehouses(self, isActive):
110
    """
111
    Parameters:
112
     - isActive
113
    """
114
    pass
115
 
116
  def getWarehouse(self, warehouse_id):
117
    """
118
    Returns the warehouse with the given id.
119
 
120
    Parameters:
121
     - warehouse_id
122
    """
123
    pass
124
 
125
  def getAllItemsForWarehouse(self, warehouse_id):
126
    """
127
    Parameters:
128
     - warehouse_id
129
    """
130
    pass
131
 
5966 rajveer 132
  def isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
5944 mandeep.dh 133
    """
5966 rajveer 134
    Depending on reservation in the table, verify if we can bill this order or not.
135
 
136
    Parameters:
137
     - itemId
138
     - warehouseId
139
     - sourceId
140
     - orderId
141
    """
142
    pass
143
 
144
  def reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
145
    """
5944 mandeep.dh 146
    Increases the reservation count for an item in a warehouse. Should always succeed normally.
147
 
148
    Parameters:
149
     - itemId
150
     - warehouseId
5966 rajveer 151
     - sourceId
152
     - orderId
153
     - createdTimestamp
154
     - promisedShippingTimestamp
5944 mandeep.dh 155
     - quantity
156
    """
157
    pass
158
 
7968 amar.kumar 159
  def updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
160
    """
161
    Updates the reservation for Order
162
 
163
    Parameters:
164
     - itemId
165
     - warehouseId
166
     - sourceId
167
     - orderId
168
     - createdTimestamp
169
     - promisedShippingTimestamp
170
     - quantity
171
    """
172
    pass
173
 
5966 rajveer 174
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 175
    """
176
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
177
 
178
    Parameters:
179
     - itemId
180
     - warehouseId
5966 rajveer 181
     - sourceId
182
     - orderId
5944 mandeep.dh 183
     - quantity
184
    """
185
    pass
186
 
187
  def getItemPricing(self, itemId, vendorId):
188
    """
189
    Returns the pricing information of an item associated with the vendor of the given warehouse.
190
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
191
 
192
    Parameters:
193
     - itemId
194
     - vendorId
195
    """
196
    pass
197
 
198
  def getAllItemPricing(self, itemId):
199
    """
200
    Returns the list of vendor pricing information of an item.
201
    Raises an exception if item not found corresponding to itemId
202
 
203
    Parameters:
204
     - itemId
205
    """
206
    pass
207
 
208
  def addVendorItemPricing(self, vendorItemPricing):
209
    """
210
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
211
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
212
 
213
    Parameters:
214
     - vendorItemPricing
215
    """
216
    pass
217
 
218
  def getVendor(self, vendorId):
219
    """
220
    Returns a vendor given its id
221
 
222
    Parameters:
223
     - vendorId
224
    """
225
    pass
226
 
227
  def getAllVendors(self, ):
228
    """
229
    Return list of all vendors
230
    """
231
    pass
232
 
233
  def addVendorItemMapping(self, key, vendorItemMapping):
234
    """
235
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
236
 
237
    Parameters:
238
     - key
239
     - vendorItemMapping
240
    """
241
    pass
242
 
243
  def getVendorItemMappings(self, itemId):
244
    """
245
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
246
    Raises an exception if item not found corresponding to itemId
247
 
248
    Parameters:
249
     - itemId
250
    """
251
    pass
252
 
253
  def getPendingOrdersInventory(self, vendorid):
254
    """
255
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
256
 
257
    Parameters:
258
     - vendorid
259
    """
260
    pass
261
 
262
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
263
    """
264
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
265
    getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 3, 7, 7) would return ours warehouse with GOOD type inventory for vendor 1 for billing warehouse 7 and shipping warehouse 7
266
    getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 3, 7, 7) would return ours warehouse with GOOD type inventory for vendor 3 for billing warehouse 7 and shipping warehouse 7
267
       getWarehouses(null, null, 3, 7, 7) would return all type warehouses with all type inventory for vendor 3 for billing warehouse 7 and shipping warehouse 7
268
       getWarehouses(null, null, 0, 0, 7) would return all type warehouses with all type inventory for all vendors for all billing warehouses at shipping warehouse 7
269
 
270
    Parameters:
271
     - warehouseType
272
     - inventoryType
273
     - vendorId
274
     - billingWarehouseId
275
     - shippingWarehouseId
276
    """
277
    pass
278
 
279
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
280
    """
281
    Resets availability of an item to the quantity mentioned in a warehouse.
282
 
283
    Parameters:
284
     - itemKey
285
     - vendorId
286
     - quantity
287
     - warehouseId
288
    """
289
    pass
290
 
291
  def resetAvailabilityForWarehouse(self, warehouseId):
292
    """
293
    Resets availability of a warehouse to zero.
294
 
295
    Parameters:
296
     - warehouseId
297
    """
298
    pass
299
 
300
  def getItemKeysToBeProcessed(self, warehouseId):
301
    """
302
    Returns the list of item keys which need to be processed for a given warehouse.
303
    This is currently used by Support application to send item keys whose inventory needs
304
    to be updated from PLB
305
 
306
    Parameters:
307
     - warehouseId
308
    """
309
    pass
310
 
311
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
312
    """
313
    Marks/Deletes missed inventory updates for a given key and warehouse.
314
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
315
 
316
    Parameters:
317
     - itemKey
318
     - warehouseId
319
    """
320
    pass
321
 
322
  def getIgnoredItemKeys(self, ):
323
    """
324
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
325
    and the timestamp from where alert was raised.
326
    """
327
    pass
328
 
329
  def addBadInventory(self, itemId, warehouseId, quantity):
330
    """
331
    Add the BAD type inventory to existing stock.
332
 
333
    Parameters:
334
     - itemId
335
     - warehouseId
336
     - quantity
337
    """
338
    pass
339
 
340
  def getShippingLocations(self, ):
341
    """
342
    Returns all shipping locations
343
    """
344
    pass
345
 
346
  def getAllVendorItemMappings(self, ):
347
    """
348
    Fetches all the vendor item mappings present.
349
    """
350
    pass
351
 
352
  def getInventorySnapshot(self, warehouseId):
353
    """
354
    Gets items' inventory for a warehouse
355
    If warehouse is passed as zero, items' inventory across all warehouses is sent
356
 
357
    Parameters:
358
     - warehouseId
359
    """
360
    pass
361
 
362
  def clearItemAvailabilityCache(self, ):
363
    """
364
    Clear item availability cache.
365
    """
366
    pass
367
 
368
  def updateVendorString(self, warehouseId, vendorString):
369
    """
370
    Parameters:
371
     - warehouseId
372
     - vendorString
373
    """
374
    pass
375
 
6096 amit.gupta 376
  def clearItemAvailabilityCacheForItem(self, item_id):
377
    """
378
    Parameters:
379
     - item_id
380
    """
381
    pass
5944 mandeep.dh 382
 
7718 amar.kumar 383
  def getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 384
    """
385
    Parameters:
386
     - vendorId
7718 amar.kumar 387
     - billingWarehouseId
6467 amar.kumar 388
    """
389
    pass
6096 amit.gupta 390
 
6484 amar.kumar 391
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
392
    """
393
    Parameters:
394
     - item_ids
395
    """
396
    pass
6467 amar.kumar 397
 
6531 vikram.rag 398
  def getMonitoredWarehouseForVendors(self, vendorIds):
399
    """
400
    Parameters:
401
     - vendorIds
402
    """
403
    pass
6484 amar.kumar 404
 
6531 vikram.rag 405
  def getIgnoredWarehouseidsAndItemids(self, ):
406
    pass
407
 
408
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
409
    """
410
    Parameters:
411
     - item_id
412
     - warehouse_id
413
    """
414
    pass
415
 
416
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
417
    """
418
    Parameters:
419
     - item_id
420
     - warehouse_id
421
    """
422
    pass
423
 
424
  def getAllIgnoredInventoryupdateItemsCount(self, ):
425
    pass
426
 
427
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
428
    """
429
    Parameters:
430
     - offset
431
     - limit
432
    """
433
    pass
434
 
6821 amar.kumar 435
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
436
    """
437
    Parameters:
438
     - item_id
439
     - numOfDaysStock
440
     - minStockLevel
441
    """
442
    pass
6531 vikram.rag 443
 
6821 amar.kumar 444
  def getItemStockPurchaseParams(self, itemId):
445
    """
446
    Parameters:
447
     - itemId
448
    """
449
    pass
450
 
451
  def addOosStatusForItem(self, oosStatusMap, date):
452
    """
453
    Parameters:
454
     - oosStatusMap
455
     - date
456
    """
457
    pass
458
 
9762 amar.kumar 459
  def getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 460
    """
461
    Parameters:
462
     - itemId
9762 amar.kumar 463
     - sourceId
6832 amar.kumar 464
     - days
465
    """
466
    pass
6821 amar.kumar 467
 
6857 amar.kumar 468
  def getNonZeroItemStockPurchaseParams(self, ):
469
    pass
6832 amar.kumar 470
 
7149 amar.kumar 471
  def getBillableInventoryAndPendingOrders(self, ):
472
    """
473
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
474
    """
475
    pass
6857 amar.kumar 476
 
7281 kshitij.so 477
  def getWarehouseName(self, warehouse_id):
478
    """
479
    Parameters:
480
     - warehouse_id
481
    """
482
    pass
7149 amar.kumar 483
 
7281 kshitij.so 484
  def getAmazonInventoryForItem(self, item_id):
485
    """
486
    Parameters:
487
     - item_id
488
    """
489
    pass
490
 
491
  def getAllAmazonInventory(self, ):
492
    pass
493
 
494
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot):
495
    """
496
    Parameters:
497
     - amazonInventorySnapshot
498
    """
499
    pass
500
 
7972 amar.kumar 501
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
502
    """
503
    Parameters:
504
     - itemId
505
     - numberOfDays
506
    """
507
    pass
7281 kshitij.so 508
 
8282 kshitij.so 509
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
510
    """
511
    Parameters:
512
     - amazonfbainventorysnapshot
513
    """
514
    pass
515
 
8182 amar.kumar 516
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
517
    """
518
    Parameters:
519
     - itemId
520
     - warehouseId
521
     - holdQuantity
522
     - source
523
    """
524
    pass
7972 amar.kumar 525
 
8282 kshitij.so 526
  def getAmazonFbaItemInventory(self, itemId):
527
    """
528
    Parameters:
529
     - itemId
530
    """
531
    pass
8182 amar.kumar 532
 
8363 vikram.rag 533
  def getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 534
    pass
535
 
8363 vikram.rag 536
  def getOursGoodWarehouseIdsForLocation(self, state_id):
537
    """
538
    Parameters:
539
     - state_id
540
    """
541
    pass
8282 kshitij.so 542
 
8955 vikram.rag 543
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
544
    """
545
    Parameters:
546
     - id
547
     - warehouse_id
548
     - source
549
    """
550
    pass
8363 vikram.rag 551
 
9404 vikram.rag 552
  def getSnapdealInventoryForItem(self, item_id):
553
    """
554
    Parameters:
555
     - item_id
556
    """
557
    pass
8955 vikram.rag 558
 
9404 vikram.rag 559
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
560
    """
561
    Parameters:
562
     - snapdealinventoryitem
563
    """
564
    pass
565
 
566
  def getNlcForWarehouse(self, warehouse_id, item_id):
567
    """
568
    Parameters:
569
     - warehouse_id
570
     - item_id
571
    """
572
    pass
573
 
9640 amar.kumar 574
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
575
    """
576
    Parameters:
577
     - item_id
578
     - warehouse_id
579
    """
580
    pass
581
 
9482 vikram.rag 582
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
583
    """
584
    Parameters:
585
     - allamazonfbainventorysnapshot
586
    """
587
    pass
9456 vikram.rag 588
 
9495 vikram.rag 589
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
590
    """
591
    Parameters:
592
     - allsnapdealinventorysnapshot
593
    """
594
    pass
9482 vikram.rag 595
 
9495 vikram.rag 596
  def getSnapdealInventorySnapshot(self, ):
597
    pass
598
 
9761 amar.kumar 599
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
600
    """
601
    Parameters:
602
     - itemId
603
     - warehouseId
604
     - source
605
    """
606
    pass
9495 vikram.rag 607
 
10050 vikram.rag 608
  def addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot):
609
    """
610
    Parameters:
611
     - flipkartInventorySnapshot
612
    """
613
    pass
9761 amar.kumar 614
 
10050 vikram.rag 615
  def getFlipkartInventorySnapshot(self, ):
616
    pass
617
 
10097 kshitij.so 618
  def getFlipkartlInventoryForItem(self, item_id):
619
    """
620
    Parameters:
621
     - item_id
622
    """
623
    pass
10050 vikram.rag 624
 
10097 kshitij.so 625
 
5944 mandeep.dh 626
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
627
  def __init__(self, iprot, oprot=None):
628
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
629
 
630
  def addWarehouse(self, warehouse):
631
    """
632
    Parameters:
633
     - warehouse
634
    """
635
    self.send_addWarehouse(warehouse)
636
    return self.recv_addWarehouse()
637
 
638
  def send_addWarehouse(self, warehouse):
639
    self._oprot.writeMessageBegin('addWarehouse', TMessageType.CALL, self._seqid)
640
    args = addWarehouse_args()
641
    args.warehouse = warehouse
642
    args.write(self._oprot)
643
    self._oprot.writeMessageEnd()
644
    self._oprot.trans.flush()
645
 
646
  def recv_addWarehouse(self, ):
647
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
648
    if mtype == TMessageType.EXCEPTION:
649
      x = TApplicationException()
650
      x.read(self._iprot)
651
      self._iprot.readMessageEnd()
652
      raise x
653
    result = addWarehouse_result()
654
    result.read(self._iprot)
655
    self._iprot.readMessageEnd()
656
    if result.success is not None:
657
      return result.success
658
    if result.cex is not None:
659
      raise result.cex
660
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
661
 
662
  def addVendor(self, vendor):
663
    """
664
    add a new vendor
665
 
666
    Parameters:
667
     - vendor
668
    """
669
    self.send_addVendor(vendor)
670
    return self.recv_addVendor()
671
 
672
  def send_addVendor(self, vendor):
673
    self._oprot.writeMessageBegin('addVendor', TMessageType.CALL, self._seqid)
674
    args = addVendor_args()
675
    args.vendor = vendor
676
    args.write(self._oprot)
677
    self._oprot.writeMessageEnd()
678
    self._oprot.trans.flush()
679
 
680
  def recv_addVendor(self, ):
681
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
682
    if mtype == TMessageType.EXCEPTION:
683
      x = TApplicationException()
684
      x.read(self._iprot)
685
      self._iprot.readMessageEnd()
686
      raise x
687
    result = addVendor_result()
688
    result.read(self._iprot)
689
    self._iprot.readMessageEnd()
690
    if result.success is not None:
691
      return result.success
692
    if result.cex is not None:
693
      raise result.cex
694
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
695
 
696
  def updateInventoryHistory(self, warehouse_id, timestamp, availability):
697
    """
698
    Stores the incremental warehouse updates of items.
699
 
700
    Parameters:
701
     - warehouse_id
702
     - timestamp
703
     - availability
704
    """
705
    self.send_updateInventoryHistory(warehouse_id, timestamp, availability)
706
    self.recv_updateInventoryHistory()
707
 
708
  def send_updateInventoryHistory(self, warehouse_id, timestamp, availability):
709
    self._oprot.writeMessageBegin('updateInventoryHistory', TMessageType.CALL, self._seqid)
710
    args = updateInventoryHistory_args()
711
    args.warehouse_id = warehouse_id
712
    args.timestamp = timestamp
713
    args.availability = availability
714
    args.write(self._oprot)
715
    self._oprot.writeMessageEnd()
716
    self._oprot.trans.flush()
717
 
718
  def recv_updateInventoryHistory(self, ):
719
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
720
    if mtype == TMessageType.EXCEPTION:
721
      x = TApplicationException()
722
      x.read(self._iprot)
723
      self._iprot.readMessageEnd()
724
      raise x
725
    result = updateInventoryHistory_result()
726
    result.read(self._iprot)
727
    self._iprot.readMessageEnd()
728
    if result.cex is not None:
729
      raise result.cex
730
    return
731
 
732
  def updateInventory(self, warehouse_id, timestamp, availability):
733
    """
734
    Stores the final inventory stocks of items.
735
 
736
    Parameters:
737
     - warehouse_id
738
     - timestamp
739
     - availability
740
    """
741
    self.send_updateInventory(warehouse_id, timestamp, availability)
742
    self.recv_updateInventory()
743
 
744
  def send_updateInventory(self, warehouse_id, timestamp, availability):
745
    self._oprot.writeMessageBegin('updateInventory', TMessageType.CALL, self._seqid)
746
    args = updateInventory_args()
747
    args.warehouse_id = warehouse_id
748
    args.timestamp = timestamp
749
    args.availability = availability
750
    args.write(self._oprot)
751
    self._oprot.writeMessageEnd()
752
    self._oprot.trans.flush()
753
 
754
  def recv_updateInventory(self, ):
755
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
756
    if mtype == TMessageType.EXCEPTION:
757
      x = TApplicationException()
758
      x.read(self._iprot)
759
      self._iprot.readMessageEnd()
760
      raise x
761
    result = updateInventory_result()
762
    result.read(self._iprot)
763
    self._iprot.readMessageEnd()
764
    if result.cex is not None:
765
      raise result.cex
766
    return
767
 
768
  def addInventory(self, itemId, warehouseId, quantity):
769
    """
770
    Add the inventory to existing stock.
771
 
772
    Parameters:
773
     - itemId
774
     - warehouseId
775
     - quantity
776
    """
777
    self.send_addInventory(itemId, warehouseId, quantity)
778
    self.recv_addInventory()
779
 
780
  def send_addInventory(self, itemId, warehouseId, quantity):
781
    self._oprot.writeMessageBegin('addInventory', TMessageType.CALL, self._seqid)
782
    args = addInventory_args()
783
    args.itemId = itemId
784
    args.warehouseId = warehouseId
785
    args.quantity = quantity
786
    args.write(self._oprot)
787
    self._oprot.writeMessageEnd()
788
    self._oprot.trans.flush()
789
 
790
  def recv_addInventory(self, ):
791
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
792
    if mtype == TMessageType.EXCEPTION:
793
      x = TApplicationException()
794
      x.read(self._iprot)
795
      self._iprot.readMessageEnd()
796
      raise x
797
    result = addInventory_result()
798
    result.read(self._iprot)
799
    self._iprot.readMessageEnd()
800
    if result.cex is not None:
801
      raise result.cex
802
    return
803
 
804
  def retireWarehouse(self, warehouse_id):
805
    """
806
    Parameters:
807
     - warehouse_id
808
    """
809
    self.send_retireWarehouse(warehouse_id)
810
    self.recv_retireWarehouse()
811
 
812
  def send_retireWarehouse(self, warehouse_id):
813
    self._oprot.writeMessageBegin('retireWarehouse', TMessageType.CALL, self._seqid)
814
    args = retireWarehouse_args()
815
    args.warehouse_id = warehouse_id
816
    args.write(self._oprot)
817
    self._oprot.writeMessageEnd()
818
    self._oprot.trans.flush()
819
 
820
  def recv_retireWarehouse(self, ):
821
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
822
    if mtype == TMessageType.EXCEPTION:
823
      x = TApplicationException()
824
      x.read(self._iprot)
825
      self._iprot.readMessageEnd()
826
      raise x
827
    result = retireWarehouse_result()
828
    result.read(self._iprot)
829
    self._iprot.readMessageEnd()
830
    if result.cex is not None:
831
      raise result.cex
832
    return
833
 
834
  def getItemInventoryByItemId(self, item_id):
835
    """
836
    Parameters:
837
     - item_id
838
    """
839
    self.send_getItemInventoryByItemId(item_id)
840
    return self.recv_getItemInventoryByItemId()
841
 
842
  def send_getItemInventoryByItemId(self, item_id):
843
    self._oprot.writeMessageBegin('getItemInventoryByItemId', TMessageType.CALL, self._seqid)
844
    args = getItemInventoryByItemId_args()
845
    args.item_id = item_id
846
    args.write(self._oprot)
847
    self._oprot.writeMessageEnd()
848
    self._oprot.trans.flush()
849
 
850
  def recv_getItemInventoryByItemId(self, ):
851
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
852
    if mtype == TMessageType.EXCEPTION:
853
      x = TApplicationException()
854
      x.read(self._iprot)
855
      self._iprot.readMessageEnd()
856
      raise x
857
    result = getItemInventoryByItemId_result()
858
    result.read(self._iprot)
859
    self._iprot.readMessageEnd()
860
    if result.success is not None:
861
      return result.success
862
    if result.cex is not None:
863
      raise result.cex
864
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
865
 
866
  def getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
867
    """
868
    Parameters:
869
     - warehouse_id
870
     - item_id
871
    """
872
    self.send_getItemAvailibilityAtWarehouse(warehouse_id, item_id)
873
    return self.recv_getItemAvailibilityAtWarehouse()
874
 
875
  def send_getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
876
    self._oprot.writeMessageBegin('getItemAvailibilityAtWarehouse', TMessageType.CALL, self._seqid)
877
    args = getItemAvailibilityAtWarehouse_args()
878
    args.warehouse_id = warehouse_id
879
    args.item_id = item_id
880
    args.write(self._oprot)
881
    self._oprot.writeMessageEnd()
882
    self._oprot.trans.flush()
883
 
884
  def recv_getItemAvailibilityAtWarehouse(self, ):
885
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
886
    if mtype == TMessageType.EXCEPTION:
887
      x = TApplicationException()
888
      x.read(self._iprot)
889
      self._iprot.readMessageEnd()
890
      raise x
891
    result = getItemAvailibilityAtWarehouse_result()
892
    result.read(self._iprot)
893
    self._iprot.readMessageEnd()
894
    if result.success is not None:
895
      return result.success
896
    if result.cex is not None:
897
      raise result.cex
898
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
899
 
5978 rajveer 900
  def getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 901
    """
902
    Determines the warehouse that should be used to fulfil an order for the given item.
903
    It first checks all the warehouses which are in the logistics location given by the
904
    warehouse_loc parameter. If none of the warehouses there have any inventory, then the
905
    preferred warehouse for the item is used.
906
 
907
    Returns an ordered list of size 4 with following elements in the given order:
908
    1. Id of the fulfillment warehouse which was finally picked up.
909
    2. Expected delay added by the category manager.
910
    3. Id of the billing warehouse which was finally picked up.
911
 
912
    Parameters:
913
     - itemId
5978 rajveer 914
     - sourceId
5944 mandeep.dh 915
    """
5978 rajveer 916
    self.send_getItemAvailabilityAtLocation(itemId, sourceId)
5944 mandeep.dh 917
    return self.recv_getItemAvailabilityAtLocation()
918
 
5978 rajveer 919
  def send_getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 920
    self._oprot.writeMessageBegin('getItemAvailabilityAtLocation', TMessageType.CALL, self._seqid)
921
    args = getItemAvailabilityAtLocation_args()
922
    args.itemId = itemId
5978 rajveer 923
    args.sourceId = sourceId
5944 mandeep.dh 924
    args.write(self._oprot)
925
    self._oprot.writeMessageEnd()
926
    self._oprot.trans.flush()
927
 
928
  def recv_getItemAvailabilityAtLocation(self, ):
929
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
930
    if mtype == TMessageType.EXCEPTION:
931
      x = TApplicationException()
932
      x.read(self._iprot)
933
      self._iprot.readMessageEnd()
934
      raise x
935
    result = getItemAvailabilityAtLocation_result()
936
    result.read(self._iprot)
937
    self._iprot.readMessageEnd()
938
    if result.success is not None:
939
      return result.success
940
    if result.isex is not None:
941
      raise result.isex
942
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
943
 
944
  def getAllWarehouses(self, isActive):
945
    """
946
    Parameters:
947
     - isActive
948
    """
949
    self.send_getAllWarehouses(isActive)
950
    return self.recv_getAllWarehouses()
951
 
952
  def send_getAllWarehouses(self, isActive):
953
    self._oprot.writeMessageBegin('getAllWarehouses', TMessageType.CALL, self._seqid)
954
    args = getAllWarehouses_args()
955
    args.isActive = isActive
956
    args.write(self._oprot)
957
    self._oprot.writeMessageEnd()
958
    self._oprot.trans.flush()
959
 
960
  def recv_getAllWarehouses(self, ):
961
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
962
    if mtype == TMessageType.EXCEPTION:
963
      x = TApplicationException()
964
      x.read(self._iprot)
965
      self._iprot.readMessageEnd()
966
      raise x
967
    result = getAllWarehouses_result()
968
    result.read(self._iprot)
969
    self._iprot.readMessageEnd()
970
    if result.success is not None:
971
      return result.success
972
    if result.cex is not None:
973
      raise result.cex
974
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
975
 
976
  def getWarehouse(self, warehouse_id):
977
    """
978
    Returns the warehouse with the given id.
979
 
980
    Parameters:
981
     - warehouse_id
982
    """
983
    self.send_getWarehouse(warehouse_id)
984
    return self.recv_getWarehouse()
985
 
986
  def send_getWarehouse(self, warehouse_id):
987
    self._oprot.writeMessageBegin('getWarehouse', TMessageType.CALL, self._seqid)
988
    args = getWarehouse_args()
989
    args.warehouse_id = warehouse_id
990
    args.write(self._oprot)
991
    self._oprot.writeMessageEnd()
992
    self._oprot.trans.flush()
993
 
994
  def recv_getWarehouse(self, ):
995
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
996
    if mtype == TMessageType.EXCEPTION:
997
      x = TApplicationException()
998
      x.read(self._iprot)
999
      self._iprot.readMessageEnd()
1000
      raise x
1001
    result = getWarehouse_result()
1002
    result.read(self._iprot)
1003
    self._iprot.readMessageEnd()
1004
    if result.success is not None:
1005
      return result.success
1006
    if result.cex is not None:
1007
      raise result.cex
1008
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
1009
 
1010
  def getAllItemsForWarehouse(self, warehouse_id):
1011
    """
1012
    Parameters:
1013
     - warehouse_id
1014
    """
1015
    self.send_getAllItemsForWarehouse(warehouse_id)
1016
    return self.recv_getAllItemsForWarehouse()
1017
 
1018
  def send_getAllItemsForWarehouse(self, warehouse_id):
1019
    self._oprot.writeMessageBegin('getAllItemsForWarehouse', TMessageType.CALL, self._seqid)
1020
    args = getAllItemsForWarehouse_args()
1021
    args.warehouse_id = warehouse_id
1022
    args.write(self._oprot)
1023
    self._oprot.writeMessageEnd()
1024
    self._oprot.trans.flush()
1025
 
1026
  def recv_getAllItemsForWarehouse(self, ):
1027
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1028
    if mtype == TMessageType.EXCEPTION:
1029
      x = TApplicationException()
1030
      x.read(self._iprot)
1031
      self._iprot.readMessageEnd()
1032
      raise x
1033
    result = getAllItemsForWarehouse_result()
1034
    result.read(self._iprot)
1035
    self._iprot.readMessageEnd()
1036
    if result.success is not None:
1037
      return result.success
1038
    if result.cex is not None:
1039
      raise result.cex
1040
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
1041
 
5966 rajveer 1042
  def isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
5944 mandeep.dh 1043
    """
5978 rajveer 1044
    Depending on reservation in the table, verify if we can bill this order or not.
5966 rajveer 1045
 
1046
    Parameters:
1047
     - itemId
1048
     - warehouseId
1049
     - sourceId
1050
     - orderId
1051
    """
1052
    self.send_isOrderBillable(itemId, warehouseId, sourceId, orderId)
1053
    return self.recv_isOrderBillable()
1054
 
1055
  def send_isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
1056
    self._oprot.writeMessageBegin('isOrderBillable', TMessageType.CALL, self._seqid)
1057
    args = isOrderBillable_args()
1058
    args.itemId = itemId
1059
    args.warehouseId = warehouseId
1060
    args.sourceId = sourceId
1061
    args.orderId = orderId
1062
    args.write(self._oprot)
1063
    self._oprot.writeMessageEnd()
1064
    self._oprot.trans.flush()
1065
 
1066
  def recv_isOrderBillable(self, ):
1067
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1068
    if mtype == TMessageType.EXCEPTION:
1069
      x = TApplicationException()
1070
      x.read(self._iprot)
1071
      self._iprot.readMessageEnd()
1072
      raise x
1073
    result = isOrderBillable_result()
1074
    result.read(self._iprot)
1075
    self._iprot.readMessageEnd()
1076
    if result.success is not None:
1077
      return result.success
1078
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
1079
 
1080
  def reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1081
    """
5944 mandeep.dh 1082
    Increases the reservation count for an item in a warehouse. Should always succeed normally.
1083
 
1084
    Parameters:
1085
     - itemId
1086
     - warehouseId
5966 rajveer 1087
     - sourceId
1088
     - orderId
1089
     - createdTimestamp
1090
     - promisedShippingTimestamp
5944 mandeep.dh 1091
     - quantity
1092
    """
5966 rajveer 1093
    self.send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
5944 mandeep.dh 1094
    return self.recv_reserveItemInWarehouse()
1095
 
5966 rajveer 1096
  def send_reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
5944 mandeep.dh 1097
    self._oprot.writeMessageBegin('reserveItemInWarehouse', TMessageType.CALL, self._seqid)
1098
    args = reserveItemInWarehouse_args()
1099
    args.itemId = itemId
1100
    args.warehouseId = warehouseId
5966 rajveer 1101
    args.sourceId = sourceId
1102
    args.orderId = orderId
1103
    args.createdTimestamp = createdTimestamp
1104
    args.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 1105
    args.quantity = quantity
1106
    args.write(self._oprot)
1107
    self._oprot.writeMessageEnd()
1108
    self._oprot.trans.flush()
1109
 
1110
  def recv_reserveItemInWarehouse(self, ):
1111
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1112
    if mtype == TMessageType.EXCEPTION:
1113
      x = TApplicationException()
1114
      x.read(self._iprot)
1115
      self._iprot.readMessageEnd()
1116
      raise x
1117
    result = reserveItemInWarehouse_result()
1118
    result.read(self._iprot)
1119
    self._iprot.readMessageEnd()
1120
    if result.success is not None:
1121
      return result.success
1122
    if result.cex is not None:
1123
      raise result.cex
1124
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
1125
 
7968 amar.kumar 1126
  def updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1127
    """
1128
    Updates the reservation for Order
1129
 
1130
    Parameters:
1131
     - itemId
1132
     - warehouseId
1133
     - sourceId
1134
     - orderId
1135
     - createdTimestamp
1136
     - promisedShippingTimestamp
1137
     - quantity
1138
    """
1139
    self.send_updateReservationForOrder(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
1140
    return self.recv_updateReservationForOrder()
1141
 
1142
  def send_updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1143
    self._oprot.writeMessageBegin('updateReservationForOrder', TMessageType.CALL, self._seqid)
1144
    args = updateReservationForOrder_args()
1145
    args.itemId = itemId
1146
    args.warehouseId = warehouseId
1147
    args.sourceId = sourceId
1148
    args.orderId = orderId
1149
    args.createdTimestamp = createdTimestamp
1150
    args.promisedShippingTimestamp = promisedShippingTimestamp
1151
    args.quantity = quantity
1152
    args.write(self._oprot)
1153
    self._oprot.writeMessageEnd()
1154
    self._oprot.trans.flush()
1155
 
1156
  def recv_updateReservationForOrder(self, ):
1157
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1158
    if mtype == TMessageType.EXCEPTION:
1159
      x = TApplicationException()
1160
      x.read(self._iprot)
1161
      self._iprot.readMessageEnd()
1162
      raise x
1163
    result = updateReservationForOrder_result()
1164
    result.read(self._iprot)
1165
    self._iprot.readMessageEnd()
1166
    if result.success is not None:
1167
      return result.success
1168
    if result.cex is not None:
1169
      raise result.cex
1170
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateReservationForOrder failed: unknown result");
1171
 
5966 rajveer 1172
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1173
    """
1174
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
1175
 
1176
    Parameters:
1177
     - itemId
1178
     - warehouseId
5966 rajveer 1179
     - sourceId
1180
     - orderId
5944 mandeep.dh 1181
     - quantity
1182
    """
5966 rajveer 1183
    self.send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity)
5944 mandeep.dh 1184
    return self.recv_reduceReservationCount()
1185
 
5966 rajveer 1186
  def send_reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1187
    self._oprot.writeMessageBegin('reduceReservationCount', TMessageType.CALL, self._seqid)
1188
    args = reduceReservationCount_args()
1189
    args.itemId = itemId
1190
    args.warehouseId = warehouseId
5966 rajveer 1191
    args.sourceId = sourceId
1192
    args.orderId = orderId
5944 mandeep.dh 1193
    args.quantity = quantity
1194
    args.write(self._oprot)
1195
    self._oprot.writeMessageEnd()
1196
    self._oprot.trans.flush()
1197
 
1198
  def recv_reduceReservationCount(self, ):
1199
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1200
    if mtype == TMessageType.EXCEPTION:
1201
      x = TApplicationException()
1202
      x.read(self._iprot)
1203
      self._iprot.readMessageEnd()
1204
      raise x
1205
    result = reduceReservationCount_result()
1206
    result.read(self._iprot)
1207
    self._iprot.readMessageEnd()
1208
    if result.success is not None:
1209
      return result.success
1210
    if result.cex is not None:
1211
      raise result.cex
1212
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
1213
 
1214
  def getItemPricing(self, itemId, vendorId):
1215
    """
1216
    Returns the pricing information of an item associated with the vendor of the given warehouse.
1217
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
1218
 
1219
    Parameters:
1220
     - itemId
1221
     - vendorId
1222
    """
1223
    self.send_getItemPricing(itemId, vendorId)
1224
    return self.recv_getItemPricing()
1225
 
1226
  def send_getItemPricing(self, itemId, vendorId):
1227
    self._oprot.writeMessageBegin('getItemPricing', TMessageType.CALL, self._seqid)
1228
    args = getItemPricing_args()
1229
    args.itemId = itemId
1230
    args.vendorId = vendorId
1231
    args.write(self._oprot)
1232
    self._oprot.writeMessageEnd()
1233
    self._oprot.trans.flush()
1234
 
1235
  def recv_getItemPricing(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 = getItemPricing_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, "getItemPricing failed: unknown result");
1250
 
1251
  def getAllItemPricing(self, itemId):
1252
    """
1253
    Returns the list of vendor pricing information of an item.
1254
    Raises an exception if item not found corresponding to itemId
1255
 
1256
    Parameters:
1257
     - itemId
1258
    """
1259
    self.send_getAllItemPricing(itemId)
1260
    return self.recv_getAllItemPricing()
1261
 
1262
  def send_getAllItemPricing(self, itemId):
1263
    self._oprot.writeMessageBegin('getAllItemPricing', TMessageType.CALL, self._seqid)
1264
    args = getAllItemPricing_args()
1265
    args.itemId = itemId
1266
    args.write(self._oprot)
1267
    self._oprot.writeMessageEnd()
1268
    self._oprot.trans.flush()
1269
 
1270
  def recv_getAllItemPricing(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 = getAllItemPricing_result()
1278
    result.read(self._iprot)
1279
    self._iprot.readMessageEnd()
1280
    if result.success is not None:
1281
      return result.success
1282
    if result.cex is not None:
1283
      raise result.cex
1284
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
1285
 
1286
  def addVendorItemPricing(self, vendorItemPricing):
1287
    """
1288
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
1289
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
1290
 
1291
    Parameters:
1292
     - vendorItemPricing
1293
    """
1294
    self.send_addVendorItemPricing(vendorItemPricing)
1295
    self.recv_addVendorItemPricing()
1296
 
1297
  def send_addVendorItemPricing(self, vendorItemPricing):
1298
    self._oprot.writeMessageBegin('addVendorItemPricing', TMessageType.CALL, self._seqid)
1299
    args = addVendorItemPricing_args()
1300
    args.vendorItemPricing = vendorItemPricing
1301
    args.write(self._oprot)
1302
    self._oprot.writeMessageEnd()
1303
    self._oprot.trans.flush()
1304
 
1305
  def recv_addVendorItemPricing(self, ):
1306
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1307
    if mtype == TMessageType.EXCEPTION:
1308
      x = TApplicationException()
1309
      x.read(self._iprot)
1310
      self._iprot.readMessageEnd()
1311
      raise x
1312
    result = addVendorItemPricing_result()
1313
    result.read(self._iprot)
1314
    self._iprot.readMessageEnd()
1315
    if result.cex is not None:
1316
      raise result.cex
1317
    return
1318
 
1319
  def getVendor(self, vendorId):
1320
    """
1321
    Returns a vendor given its id
1322
 
1323
    Parameters:
1324
     - vendorId
1325
    """
1326
    self.send_getVendor(vendorId)
1327
    return self.recv_getVendor()
1328
 
1329
  def send_getVendor(self, vendorId):
1330
    self._oprot.writeMessageBegin('getVendor', TMessageType.CALL, self._seqid)
1331
    args = getVendor_args()
1332
    args.vendorId = vendorId
1333
    args.write(self._oprot)
1334
    self._oprot.writeMessageEnd()
1335
    self._oprot.trans.flush()
1336
 
1337
  def recv_getVendor(self, ):
1338
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1339
    if mtype == TMessageType.EXCEPTION:
1340
      x = TApplicationException()
1341
      x.read(self._iprot)
1342
      self._iprot.readMessageEnd()
1343
      raise x
1344
    result = getVendor_result()
1345
    result.read(self._iprot)
1346
    self._iprot.readMessageEnd()
1347
    if result.success is not None:
1348
      return result.success
1349
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
1350
 
1351
  def getAllVendors(self, ):
1352
    """
1353
    Return list of all vendors
1354
    """
1355
    self.send_getAllVendors()
1356
    return self.recv_getAllVendors()
1357
 
1358
  def send_getAllVendors(self, ):
1359
    self._oprot.writeMessageBegin('getAllVendors', TMessageType.CALL, self._seqid)
1360
    args = getAllVendors_args()
1361
    args.write(self._oprot)
1362
    self._oprot.writeMessageEnd()
1363
    self._oprot.trans.flush()
1364
 
1365
  def recv_getAllVendors(self, ):
1366
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1367
    if mtype == TMessageType.EXCEPTION:
1368
      x = TApplicationException()
1369
      x.read(self._iprot)
1370
      self._iprot.readMessageEnd()
1371
      raise x
1372
    result = getAllVendors_result()
1373
    result.read(self._iprot)
1374
    self._iprot.readMessageEnd()
1375
    if result.success is not None:
1376
      return result.success
1377
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1378
 
1379
  def addVendorItemMapping(self, key, vendorItemMapping):
1380
    """
1381
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
1382
 
1383
    Parameters:
1384
     - key
1385
     - vendorItemMapping
1386
    """
1387
    self.send_addVendorItemMapping(key, vendorItemMapping)
1388
    self.recv_addVendorItemMapping()
1389
 
1390
  def send_addVendorItemMapping(self, key, vendorItemMapping):
1391
    self._oprot.writeMessageBegin('addVendorItemMapping', TMessageType.CALL, self._seqid)
1392
    args = addVendorItemMapping_args()
1393
    args.key = key
1394
    args.vendorItemMapping = vendorItemMapping
1395
    args.write(self._oprot)
1396
    self._oprot.writeMessageEnd()
1397
    self._oprot.trans.flush()
1398
 
1399
  def recv_addVendorItemMapping(self, ):
1400
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1401
    if mtype == TMessageType.EXCEPTION:
1402
      x = TApplicationException()
1403
      x.read(self._iprot)
1404
      self._iprot.readMessageEnd()
1405
      raise x
1406
    result = addVendorItemMapping_result()
1407
    result.read(self._iprot)
1408
    self._iprot.readMessageEnd()
1409
    if result.cex is not None:
1410
      raise result.cex
1411
    return
1412
 
1413
  def getVendorItemMappings(self, itemId):
1414
    """
1415
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
1416
    Raises an exception if item not found corresponding to itemId
1417
 
1418
    Parameters:
1419
     - itemId
1420
    """
1421
    self.send_getVendorItemMappings(itemId)
1422
    return self.recv_getVendorItemMappings()
1423
 
1424
  def send_getVendorItemMappings(self, itemId):
1425
    self._oprot.writeMessageBegin('getVendorItemMappings', TMessageType.CALL, self._seqid)
1426
    args = getVendorItemMappings_args()
1427
    args.itemId = itemId
1428
    args.write(self._oprot)
1429
    self._oprot.writeMessageEnd()
1430
    self._oprot.trans.flush()
1431
 
1432
  def recv_getVendorItemMappings(self, ):
1433
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1434
    if mtype == TMessageType.EXCEPTION:
1435
      x = TApplicationException()
1436
      x.read(self._iprot)
1437
      self._iprot.readMessageEnd()
1438
      raise x
1439
    result = getVendorItemMappings_result()
1440
    result.read(self._iprot)
1441
    self._iprot.readMessageEnd()
1442
    if result.success is not None:
1443
      return result.success
1444
    if result.cex is not None:
1445
      raise result.cex
1446
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
1447
 
1448
  def getPendingOrdersInventory(self, vendorid):
1449
    """
1450
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
1451
 
1452
    Parameters:
1453
     - vendorid
1454
    """
1455
    self.send_getPendingOrdersInventory(vendorid)
1456
    return self.recv_getPendingOrdersInventory()
1457
 
1458
  def send_getPendingOrdersInventory(self, vendorid):
1459
    self._oprot.writeMessageBegin('getPendingOrdersInventory', TMessageType.CALL, self._seqid)
1460
    args = getPendingOrdersInventory_args()
1461
    args.vendorid = vendorid
1462
    args.write(self._oprot)
1463
    self._oprot.writeMessageEnd()
1464
    self._oprot.trans.flush()
1465
 
1466
  def recv_getPendingOrdersInventory(self, ):
1467
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1468
    if mtype == TMessageType.EXCEPTION:
1469
      x = TApplicationException()
1470
      x.read(self._iprot)
1471
      self._iprot.readMessageEnd()
1472
      raise x
1473
    result = getPendingOrdersInventory_result()
1474
    result.read(self._iprot)
1475
    self._iprot.readMessageEnd()
1476
    if result.success is not None:
1477
      return result.success
1478
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1479
 
1480
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1481
    """
1482
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
1483
    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
1484
    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
1485
       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
1486
       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
1487
 
1488
    Parameters:
1489
     - warehouseType
1490
     - inventoryType
1491
     - vendorId
1492
     - billingWarehouseId
1493
     - shippingWarehouseId
1494
    """
1495
    self.send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId)
1496
    return self.recv_getWarehouses()
1497
 
1498
  def send_getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1499
    self._oprot.writeMessageBegin('getWarehouses', TMessageType.CALL, self._seqid)
1500
    args = getWarehouses_args()
1501
    args.warehouseType = warehouseType
1502
    args.inventoryType = inventoryType
1503
    args.vendorId = vendorId
1504
    args.billingWarehouseId = billingWarehouseId
1505
    args.shippingWarehouseId = shippingWarehouseId
1506
    args.write(self._oprot)
1507
    self._oprot.writeMessageEnd()
1508
    self._oprot.trans.flush()
1509
 
1510
  def recv_getWarehouses(self, ):
1511
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1512
    if mtype == TMessageType.EXCEPTION:
1513
      x = TApplicationException()
1514
      x.read(self._iprot)
1515
      self._iprot.readMessageEnd()
1516
      raise x
1517
    result = getWarehouses_result()
1518
    result.read(self._iprot)
1519
    self._iprot.readMessageEnd()
1520
    if result.success is not None:
1521
      return result.success
1522
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1523
 
1524
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1525
    """
1526
    Resets availability of an item to the quantity mentioned in a warehouse.
1527
 
1528
    Parameters:
1529
     - itemKey
1530
     - vendorId
1531
     - quantity
1532
     - warehouseId
1533
    """
1534
    self.send_resetAvailability(itemKey, vendorId, quantity, warehouseId)
1535
    self.recv_resetAvailability()
1536
 
1537
  def send_resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1538
    self._oprot.writeMessageBegin('resetAvailability', TMessageType.CALL, self._seqid)
1539
    args = resetAvailability_args()
1540
    args.itemKey = itemKey
1541
    args.vendorId = vendorId
1542
    args.quantity = quantity
1543
    args.warehouseId = warehouseId
1544
    args.write(self._oprot)
1545
    self._oprot.writeMessageEnd()
1546
    self._oprot.trans.flush()
1547
 
1548
  def recv_resetAvailability(self, ):
1549
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1550
    if mtype == TMessageType.EXCEPTION:
1551
      x = TApplicationException()
1552
      x.read(self._iprot)
1553
      self._iprot.readMessageEnd()
1554
      raise x
1555
    result = resetAvailability_result()
1556
    result.read(self._iprot)
1557
    self._iprot.readMessageEnd()
1558
    if result.cex is not None:
1559
      raise result.cex
1560
    return
1561
 
1562
  def resetAvailabilityForWarehouse(self, warehouseId):
1563
    """
1564
    Resets availability of a warehouse to zero.
1565
 
1566
    Parameters:
1567
     - warehouseId
1568
    """
1569
    self.send_resetAvailabilityForWarehouse(warehouseId)
1570
    self.recv_resetAvailabilityForWarehouse()
1571
 
1572
  def send_resetAvailabilityForWarehouse(self, warehouseId):
1573
    self._oprot.writeMessageBegin('resetAvailabilityForWarehouse', TMessageType.CALL, self._seqid)
1574
    args = resetAvailabilityForWarehouse_args()
1575
    args.warehouseId = warehouseId
1576
    args.write(self._oprot)
1577
    self._oprot.writeMessageEnd()
1578
    self._oprot.trans.flush()
1579
 
1580
  def recv_resetAvailabilityForWarehouse(self, ):
1581
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1582
    if mtype == TMessageType.EXCEPTION:
1583
      x = TApplicationException()
1584
      x.read(self._iprot)
1585
      self._iprot.readMessageEnd()
1586
      raise x
1587
    result = resetAvailabilityForWarehouse_result()
1588
    result.read(self._iprot)
1589
    self._iprot.readMessageEnd()
1590
    if result.cex is not None:
1591
      raise result.cex
1592
    return
1593
 
1594
  def getItemKeysToBeProcessed(self, warehouseId):
1595
    """
1596
    Returns the list of item keys which need to be processed for a given warehouse.
1597
    This is currently used by Support application to send item keys whose inventory needs
1598
    to be updated from PLB
1599
 
1600
    Parameters:
1601
     - warehouseId
1602
    """
1603
    self.send_getItemKeysToBeProcessed(warehouseId)
1604
    return self.recv_getItemKeysToBeProcessed()
1605
 
1606
  def send_getItemKeysToBeProcessed(self, warehouseId):
1607
    self._oprot.writeMessageBegin('getItemKeysToBeProcessed', TMessageType.CALL, self._seqid)
1608
    args = getItemKeysToBeProcessed_args()
1609
    args.warehouseId = warehouseId
1610
    args.write(self._oprot)
1611
    self._oprot.writeMessageEnd()
1612
    self._oprot.trans.flush()
1613
 
1614
  def recv_getItemKeysToBeProcessed(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 = getItemKeysToBeProcessed_result()
1622
    result.read(self._iprot)
1623
    self._iprot.readMessageEnd()
1624
    if result.success is not None:
1625
      return result.success
1626
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1627
 
1628
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1629
    """
1630
    Marks/Deletes missed inventory updates for a given key and warehouse.
1631
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
1632
 
1633
    Parameters:
1634
     - itemKey
1635
     - warehouseId
1636
    """
1637
    self.send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId)
1638
    self.recv_markMissedInventoryUpdatesAsProcessed()
1639
 
1640
  def send_markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1641
    self._oprot.writeMessageBegin('markMissedInventoryUpdatesAsProcessed', TMessageType.CALL, self._seqid)
1642
    args = markMissedInventoryUpdatesAsProcessed_args()
1643
    args.itemKey = itemKey
1644
    args.warehouseId = warehouseId
1645
    args.write(self._oprot)
1646
    self._oprot.writeMessageEnd()
1647
    self._oprot.trans.flush()
1648
 
1649
  def recv_markMissedInventoryUpdatesAsProcessed(self, ):
1650
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1651
    if mtype == TMessageType.EXCEPTION:
1652
      x = TApplicationException()
1653
      x.read(self._iprot)
1654
      self._iprot.readMessageEnd()
1655
      raise x
1656
    result = markMissedInventoryUpdatesAsProcessed_result()
1657
    result.read(self._iprot)
1658
    self._iprot.readMessageEnd()
1659
    return
1660
 
1661
  def getIgnoredItemKeys(self, ):
1662
    """
1663
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
1664
    and the timestamp from where alert was raised.
1665
    """
1666
    self.send_getIgnoredItemKeys()
1667
    return self.recv_getIgnoredItemKeys()
1668
 
1669
  def send_getIgnoredItemKeys(self, ):
1670
    self._oprot.writeMessageBegin('getIgnoredItemKeys', TMessageType.CALL, self._seqid)
1671
    args = getIgnoredItemKeys_args()
1672
    args.write(self._oprot)
1673
    self._oprot.writeMessageEnd()
1674
    self._oprot.trans.flush()
1675
 
1676
  def recv_getIgnoredItemKeys(self, ):
1677
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1678
    if mtype == TMessageType.EXCEPTION:
1679
      x = TApplicationException()
1680
      x.read(self._iprot)
1681
      self._iprot.readMessageEnd()
1682
      raise x
1683
    result = getIgnoredItemKeys_result()
1684
    result.read(self._iprot)
1685
    self._iprot.readMessageEnd()
1686
    if result.success is not None:
1687
      return result.success
1688
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1689
 
1690
  def addBadInventory(self, itemId, warehouseId, quantity):
1691
    """
1692
    Add the BAD type inventory to existing stock.
1693
 
1694
    Parameters:
1695
     - itemId
1696
     - warehouseId
1697
     - quantity
1698
    """
1699
    self.send_addBadInventory(itemId, warehouseId, quantity)
1700
    self.recv_addBadInventory()
1701
 
1702
  def send_addBadInventory(self, itemId, warehouseId, quantity):
1703
    self._oprot.writeMessageBegin('addBadInventory', TMessageType.CALL, self._seqid)
1704
    args = addBadInventory_args()
1705
    args.itemId = itemId
1706
    args.warehouseId = warehouseId
1707
    args.quantity = quantity
1708
    args.write(self._oprot)
1709
    self._oprot.writeMessageEnd()
1710
    self._oprot.trans.flush()
1711
 
1712
  def recv_addBadInventory(self, ):
1713
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1714
    if mtype == TMessageType.EXCEPTION:
1715
      x = TApplicationException()
1716
      x.read(self._iprot)
1717
      self._iprot.readMessageEnd()
1718
      raise x
1719
    result = addBadInventory_result()
1720
    result.read(self._iprot)
1721
    self._iprot.readMessageEnd()
1722
    if result.cex is not None:
1723
      raise result.cex
1724
    return
1725
 
1726
  def getShippingLocations(self, ):
1727
    """
1728
    Returns all shipping locations
1729
    """
1730
    self.send_getShippingLocations()
1731
    return self.recv_getShippingLocations()
1732
 
1733
  def send_getShippingLocations(self, ):
1734
    self._oprot.writeMessageBegin('getShippingLocations', TMessageType.CALL, self._seqid)
1735
    args = getShippingLocations_args()
1736
    args.write(self._oprot)
1737
    self._oprot.writeMessageEnd()
1738
    self._oprot.trans.flush()
1739
 
1740
  def recv_getShippingLocations(self, ):
1741
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1742
    if mtype == TMessageType.EXCEPTION:
1743
      x = TApplicationException()
1744
      x.read(self._iprot)
1745
      self._iprot.readMessageEnd()
1746
      raise x
1747
    result = getShippingLocations_result()
1748
    result.read(self._iprot)
1749
    self._iprot.readMessageEnd()
1750
    if result.success is not None:
1751
      return result.success
1752
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1753
 
1754
  def getAllVendorItemMappings(self, ):
1755
    """
1756
    Fetches all the vendor item mappings present.
1757
    """
1758
    self.send_getAllVendorItemMappings()
1759
    return self.recv_getAllVendorItemMappings()
1760
 
1761
  def send_getAllVendorItemMappings(self, ):
1762
    self._oprot.writeMessageBegin('getAllVendorItemMappings', TMessageType.CALL, self._seqid)
1763
    args = getAllVendorItemMappings_args()
1764
    args.write(self._oprot)
1765
    self._oprot.writeMessageEnd()
1766
    self._oprot.trans.flush()
1767
 
1768
  def recv_getAllVendorItemMappings(self, ):
1769
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1770
    if mtype == TMessageType.EXCEPTION:
1771
      x = TApplicationException()
1772
      x.read(self._iprot)
1773
      self._iprot.readMessageEnd()
1774
      raise x
1775
    result = getAllVendorItemMappings_result()
1776
    result.read(self._iprot)
1777
    self._iprot.readMessageEnd()
1778
    if result.success is not None:
1779
      return result.success
1780
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1781
 
1782
  def getInventorySnapshot(self, warehouseId):
1783
    """
1784
    Gets items' inventory for a warehouse
1785
    If warehouse is passed as zero, items' inventory across all warehouses is sent
1786
 
1787
    Parameters:
1788
     - warehouseId
1789
    """
1790
    self.send_getInventorySnapshot(warehouseId)
1791
    return self.recv_getInventorySnapshot()
1792
 
1793
  def send_getInventorySnapshot(self, warehouseId):
1794
    self._oprot.writeMessageBegin('getInventorySnapshot', TMessageType.CALL, self._seqid)
1795
    args = getInventorySnapshot_args()
1796
    args.warehouseId = warehouseId
1797
    args.write(self._oprot)
1798
    self._oprot.writeMessageEnd()
1799
    self._oprot.trans.flush()
1800
 
1801
  def recv_getInventorySnapshot(self, ):
1802
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1803
    if mtype == TMessageType.EXCEPTION:
1804
      x = TApplicationException()
1805
      x.read(self._iprot)
1806
      self._iprot.readMessageEnd()
1807
      raise x
1808
    result = getInventorySnapshot_result()
1809
    result.read(self._iprot)
1810
    self._iprot.readMessageEnd()
1811
    if result.success is not None:
1812
      return result.success
1813
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1814
 
1815
  def clearItemAvailabilityCache(self, ):
1816
    """
1817
    Clear item availability cache.
1818
    """
1819
    self.send_clearItemAvailabilityCache()
1820
    self.recv_clearItemAvailabilityCache()
1821
 
1822
  def send_clearItemAvailabilityCache(self, ):
1823
    self._oprot.writeMessageBegin('clearItemAvailabilityCache', TMessageType.CALL, self._seqid)
1824
    args = clearItemAvailabilityCache_args()
1825
    args.write(self._oprot)
1826
    self._oprot.writeMessageEnd()
1827
    self._oprot.trans.flush()
1828
 
1829
  def recv_clearItemAvailabilityCache(self, ):
1830
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1831
    if mtype == TMessageType.EXCEPTION:
1832
      x = TApplicationException()
1833
      x.read(self._iprot)
1834
      self._iprot.readMessageEnd()
1835
      raise x
1836
    result = clearItemAvailabilityCache_result()
1837
    result.read(self._iprot)
1838
    self._iprot.readMessageEnd()
1839
    return
1840
 
1841
  def updateVendorString(self, warehouseId, vendorString):
1842
    """
1843
    Parameters:
1844
     - warehouseId
1845
     - vendorString
1846
    """
1847
    self.send_updateVendorString(warehouseId, vendorString)
1848
    self.recv_updateVendorString()
1849
 
1850
  def send_updateVendorString(self, warehouseId, vendorString):
1851
    self._oprot.writeMessageBegin('updateVendorString', TMessageType.CALL, self._seqid)
1852
    args = updateVendorString_args()
1853
    args.warehouseId = warehouseId
1854
    args.vendorString = vendorString
1855
    args.write(self._oprot)
1856
    self._oprot.writeMessageEnd()
1857
    self._oprot.trans.flush()
1858
 
1859
  def recv_updateVendorString(self, ):
1860
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1861
    if mtype == TMessageType.EXCEPTION:
1862
      x = TApplicationException()
1863
      x.read(self._iprot)
1864
      self._iprot.readMessageEnd()
1865
      raise x
1866
    result = updateVendorString_result()
1867
    result.read(self._iprot)
1868
    self._iprot.readMessageEnd()
1869
    return
1870
 
6096 amit.gupta 1871
  def clearItemAvailabilityCacheForItem(self, item_id):
1872
    """
1873
    Parameters:
1874
     - item_id
1875
    """
1876
    self.send_clearItemAvailabilityCacheForItem(item_id)
1877
    self.recv_clearItemAvailabilityCacheForItem()
5944 mandeep.dh 1878
 
6096 amit.gupta 1879
  def send_clearItemAvailabilityCacheForItem(self, item_id):
1880
    self._oprot.writeMessageBegin('clearItemAvailabilityCacheForItem', TMessageType.CALL, self._seqid)
1881
    args = clearItemAvailabilityCacheForItem_args()
1882
    args.item_id = item_id
1883
    args.write(self._oprot)
1884
    self._oprot.writeMessageEnd()
1885
    self._oprot.trans.flush()
1886
 
1887
  def recv_clearItemAvailabilityCacheForItem(self, ):
1888
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1889
    if mtype == TMessageType.EXCEPTION:
1890
      x = TApplicationException()
1891
      x.read(self._iprot)
1892
      self._iprot.readMessageEnd()
1893
      raise x
1894
    result = clearItemAvailabilityCacheForItem_result()
1895
    result.read(self._iprot)
1896
    self._iprot.readMessageEnd()
1897
    return
1898
 
7718 amar.kumar 1899
  def getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1900
    """
1901
    Parameters:
1902
     - vendorId
7718 amar.kumar 1903
     - billingWarehouseId
6467 amar.kumar 1904
    """
7718 amar.kumar 1905
    self.send_getOurWarehouseIdForVendor(vendorId, billingWarehouseId)
6467 amar.kumar 1906
    return self.recv_getOurWarehouseIdForVendor()
6096 amit.gupta 1907
 
7718 amar.kumar 1908
  def send_getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1909
    self._oprot.writeMessageBegin('getOurWarehouseIdForVendor', TMessageType.CALL, self._seqid)
1910
    args = getOurWarehouseIdForVendor_args()
1911
    args.vendorId = vendorId
7718 amar.kumar 1912
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 1913
    args.write(self._oprot)
1914
    self._oprot.writeMessageEnd()
1915
    self._oprot.trans.flush()
1916
 
1917
  def recv_getOurWarehouseIdForVendor(self, ):
1918
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1919
    if mtype == TMessageType.EXCEPTION:
1920
      x = TApplicationException()
1921
      x.read(self._iprot)
1922
      self._iprot.readMessageEnd()
1923
      raise x
1924
    result = getOurWarehouseIdForVendor_result()
1925
    result.read(self._iprot)
1926
    self._iprot.readMessageEnd()
1927
    if result.success is not None:
1928
      return result.success
1929
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1930
 
6484 amar.kumar 1931
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1932
    """
1933
    Parameters:
1934
     - item_ids
1935
    """
1936
    self.send_getItemAvailabilitiesAtOurWarehouses(item_ids)
1937
    return self.recv_getItemAvailabilitiesAtOurWarehouses()
6467 amar.kumar 1938
 
6484 amar.kumar 1939
  def send_getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1940
    self._oprot.writeMessageBegin('getItemAvailabilitiesAtOurWarehouses', TMessageType.CALL, self._seqid)
1941
    args = getItemAvailabilitiesAtOurWarehouses_args()
1942
    args.item_ids = item_ids
1943
    args.write(self._oprot)
1944
    self._oprot.writeMessageEnd()
1945
    self._oprot.trans.flush()
1946
 
1947
  def recv_getItemAvailabilitiesAtOurWarehouses(self, ):
1948
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1949
    if mtype == TMessageType.EXCEPTION:
1950
      x = TApplicationException()
1951
      x.read(self._iprot)
1952
      self._iprot.readMessageEnd()
1953
      raise x
1954
    result = getItemAvailabilitiesAtOurWarehouses_result()
1955
    result.read(self._iprot)
1956
    self._iprot.readMessageEnd()
1957
    if result.success is not None:
1958
      return result.success
1959
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
1960
 
6531 vikram.rag 1961
  def getMonitoredWarehouseForVendors(self, vendorIds):
1962
    """
1963
    Parameters:
1964
     - vendorIds
1965
    """
1966
    self.send_getMonitoredWarehouseForVendors(vendorIds)
1967
    return self.recv_getMonitoredWarehouseForVendors()
6484 amar.kumar 1968
 
6531 vikram.rag 1969
  def send_getMonitoredWarehouseForVendors(self, vendorIds):
1970
    self._oprot.writeMessageBegin('getMonitoredWarehouseForVendors', TMessageType.CALL, self._seqid)
1971
    args = getMonitoredWarehouseForVendors_args()
1972
    args.vendorIds = vendorIds
1973
    args.write(self._oprot)
1974
    self._oprot.writeMessageEnd()
1975
    self._oprot.trans.flush()
1976
 
1977
  def recv_getMonitoredWarehouseForVendors(self, ):
1978
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1979
    if mtype == TMessageType.EXCEPTION:
1980
      x = TApplicationException()
1981
      x.read(self._iprot)
1982
      self._iprot.readMessageEnd()
1983
      raise x
1984
    result = getMonitoredWarehouseForVendors_result()
1985
    result.read(self._iprot)
1986
    self._iprot.readMessageEnd()
1987
    if result.success is not None:
1988
      return result.success
1989
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
1990
 
1991
  def getIgnoredWarehouseidsAndItemids(self, ):
1992
    self.send_getIgnoredWarehouseidsAndItemids()
1993
    return self.recv_getIgnoredWarehouseidsAndItemids()
1994
 
1995
  def send_getIgnoredWarehouseidsAndItemids(self, ):
1996
    self._oprot.writeMessageBegin('getIgnoredWarehouseidsAndItemids', TMessageType.CALL, self._seqid)
1997
    args = getIgnoredWarehouseidsAndItemids_args()
1998
    args.write(self._oprot)
1999
    self._oprot.writeMessageEnd()
2000
    self._oprot.trans.flush()
2001
 
2002
  def recv_getIgnoredWarehouseidsAndItemids(self, ):
2003
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2004
    if mtype == TMessageType.EXCEPTION:
2005
      x = TApplicationException()
2006
      x.read(self._iprot)
2007
      self._iprot.readMessageEnd()
2008
      raise x
2009
    result = getIgnoredWarehouseidsAndItemids_result()
2010
    result.read(self._iprot)
2011
    self._iprot.readMessageEnd()
2012
    if result.success is not None:
2013
      return result.success
2014
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
2015
 
2016
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2017
    """
2018
    Parameters:
2019
     - item_id
2020
     - warehouse_id
2021
    """
2022
    self.send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id)
2023
    return self.recv_insertItemtoIgnoreInventoryUpdatelist()
2024
 
2025
  def send_insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2026
    self._oprot.writeMessageBegin('insertItemtoIgnoreInventoryUpdatelist', TMessageType.CALL, self._seqid)
2027
    args = insertItemtoIgnoreInventoryUpdatelist_args()
2028
    args.item_id = item_id
2029
    args.warehouse_id = warehouse_id
2030
    args.write(self._oprot)
2031
    self._oprot.writeMessageEnd()
2032
    self._oprot.trans.flush()
2033
 
2034
  def recv_insertItemtoIgnoreInventoryUpdatelist(self, ):
2035
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2036
    if mtype == TMessageType.EXCEPTION:
2037
      x = TApplicationException()
2038
      x.read(self._iprot)
2039
      self._iprot.readMessageEnd()
2040
      raise x
2041
    result = insertItemtoIgnoreInventoryUpdatelist_result()
2042
    result.read(self._iprot)
2043
    self._iprot.readMessageEnd()
2044
    if result.success is not None:
2045
      return result.success
2046
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
2047
 
2048
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2049
    """
2050
    Parameters:
2051
     - item_id
2052
     - warehouse_id
2053
    """
2054
    self.send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id)
2055
    return self.recv_deleteItemFromIgnoredInventoryUpdateList()
2056
 
2057
  def send_deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2058
    self._oprot.writeMessageBegin('deleteItemFromIgnoredInventoryUpdateList', TMessageType.CALL, self._seqid)
2059
    args = deleteItemFromIgnoredInventoryUpdateList_args()
2060
    args.item_id = item_id
2061
    args.warehouse_id = warehouse_id
2062
    args.write(self._oprot)
2063
    self._oprot.writeMessageEnd()
2064
    self._oprot.trans.flush()
2065
 
2066
  def recv_deleteItemFromIgnoredInventoryUpdateList(self, ):
2067
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2068
    if mtype == TMessageType.EXCEPTION:
2069
      x = TApplicationException()
2070
      x.read(self._iprot)
2071
      self._iprot.readMessageEnd()
2072
      raise x
2073
    result = deleteItemFromIgnoredInventoryUpdateList_result()
2074
    result.read(self._iprot)
2075
    self._iprot.readMessageEnd()
2076
    if result.success is not None:
2077
      return result.success
2078
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
2079
 
2080
  def getAllIgnoredInventoryupdateItemsCount(self, ):
2081
    self.send_getAllIgnoredInventoryupdateItemsCount()
2082
    return self.recv_getAllIgnoredInventoryupdateItemsCount()
2083
 
2084
  def send_getAllIgnoredInventoryupdateItemsCount(self, ):
2085
    self._oprot.writeMessageBegin('getAllIgnoredInventoryupdateItemsCount', TMessageType.CALL, self._seqid)
2086
    args = getAllIgnoredInventoryupdateItemsCount_args()
2087
    args.write(self._oprot)
2088
    self._oprot.writeMessageEnd()
2089
    self._oprot.trans.flush()
2090
 
2091
  def recv_getAllIgnoredInventoryupdateItemsCount(self, ):
2092
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2093
    if mtype == TMessageType.EXCEPTION:
2094
      x = TApplicationException()
2095
      x.read(self._iprot)
2096
      self._iprot.readMessageEnd()
2097
      raise x
2098
    result = getAllIgnoredInventoryupdateItemsCount_result()
2099
    result.read(self._iprot)
2100
    self._iprot.readMessageEnd()
2101
    if result.success is not None:
2102
      return result.success
2103
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
2104
 
2105
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
2106
    """
2107
    Parameters:
2108
     - offset
2109
     - limit
2110
    """
2111
    self.send_getIgnoredInventoryUpdateItemids(offset, limit)
2112
    return self.recv_getIgnoredInventoryUpdateItemids()
2113
 
2114
  def send_getIgnoredInventoryUpdateItemids(self, offset, limit):
2115
    self._oprot.writeMessageBegin('getIgnoredInventoryUpdateItemids', TMessageType.CALL, self._seqid)
2116
    args = getIgnoredInventoryUpdateItemids_args()
2117
    args.offset = offset
2118
    args.limit = limit
2119
    args.write(self._oprot)
2120
    self._oprot.writeMessageEnd()
2121
    self._oprot.trans.flush()
2122
 
2123
  def recv_getIgnoredInventoryUpdateItemids(self, ):
2124
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2125
    if mtype == TMessageType.EXCEPTION:
2126
      x = TApplicationException()
2127
      x.read(self._iprot)
2128
      self._iprot.readMessageEnd()
2129
      raise x
2130
    result = getIgnoredInventoryUpdateItemids_result()
2131
    result.read(self._iprot)
2132
    self._iprot.readMessageEnd()
2133
    if result.success is not None:
2134
      return result.success
2135
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
2136
 
6821 amar.kumar 2137
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2138
    """
2139
    Parameters:
2140
     - item_id
2141
     - numOfDaysStock
2142
     - minStockLevel
2143
    """
2144
    self.send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel)
2145
    self.recv_updateItemStockPurchaseParams()
6531 vikram.rag 2146
 
6821 amar.kumar 2147
  def send_updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2148
    self._oprot.writeMessageBegin('updateItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2149
    args = updateItemStockPurchaseParams_args()
2150
    args.item_id = item_id
2151
    args.numOfDaysStock = numOfDaysStock
2152
    args.minStockLevel = minStockLevel
2153
    args.write(self._oprot)
2154
    self._oprot.writeMessageEnd()
2155
    self._oprot.trans.flush()
2156
 
2157
  def recv_updateItemStockPurchaseParams(self, ):
2158
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2159
    if mtype == TMessageType.EXCEPTION:
2160
      x = TApplicationException()
2161
      x.read(self._iprot)
2162
      self._iprot.readMessageEnd()
2163
      raise x
2164
    result = updateItemStockPurchaseParams_result()
2165
    result.read(self._iprot)
2166
    self._iprot.readMessageEnd()
2167
    return
2168
 
2169
  def getItemStockPurchaseParams(self, itemId):
2170
    """
2171
    Parameters:
2172
     - itemId
2173
    """
2174
    self.send_getItemStockPurchaseParams(itemId)
2175
    return self.recv_getItemStockPurchaseParams()
2176
 
2177
  def send_getItemStockPurchaseParams(self, itemId):
2178
    self._oprot.writeMessageBegin('getItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2179
    args = getItemStockPurchaseParams_args()
2180
    args.itemId = itemId
2181
    args.write(self._oprot)
2182
    self._oprot.writeMessageEnd()
2183
    self._oprot.trans.flush()
2184
 
2185
  def recv_getItemStockPurchaseParams(self, ):
2186
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2187
    if mtype == TMessageType.EXCEPTION:
2188
      x = TApplicationException()
2189
      x.read(self._iprot)
2190
      self._iprot.readMessageEnd()
2191
      raise x
2192
    result = getItemStockPurchaseParams_result()
2193
    result.read(self._iprot)
2194
    self._iprot.readMessageEnd()
2195
    if result.success is not None:
2196
      return result.success
2197
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
2198
 
2199
  def addOosStatusForItem(self, oosStatusMap, date):
2200
    """
2201
    Parameters:
2202
     - oosStatusMap
2203
     - date
2204
    """
2205
    self.send_addOosStatusForItem(oosStatusMap, date)
2206
    self.recv_addOosStatusForItem()
2207
 
2208
  def send_addOosStatusForItem(self, oosStatusMap, date):
2209
    self._oprot.writeMessageBegin('addOosStatusForItem', TMessageType.CALL, self._seqid)
2210
    args = addOosStatusForItem_args()
2211
    args.oosStatusMap = oosStatusMap
2212
    args.date = date
2213
    args.write(self._oprot)
2214
    self._oprot.writeMessageEnd()
2215
    self._oprot.trans.flush()
2216
 
2217
  def recv_addOosStatusForItem(self, ):
2218
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2219
    if mtype == TMessageType.EXCEPTION:
2220
      x = TApplicationException()
2221
      x.read(self._iprot)
2222
      self._iprot.readMessageEnd()
2223
      raise x
2224
    result = addOosStatusForItem_result()
2225
    result.read(self._iprot)
2226
    self._iprot.readMessageEnd()
2227
    return
2228
 
9762 amar.kumar 2229
  def getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2230
    """
2231
    Parameters:
2232
     - itemId
9762 amar.kumar 2233
     - sourceId
6832 amar.kumar 2234
     - days
2235
    """
9762 amar.kumar 2236
    self.send_getOosStatusesForXDaysForItem(itemId, sourceId, days)
6832 amar.kumar 2237
    return self.recv_getOosStatusesForXDaysForItem()
6821 amar.kumar 2238
 
9762 amar.kumar 2239
  def send_getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2240
    self._oprot.writeMessageBegin('getOosStatusesForXDaysForItem', TMessageType.CALL, self._seqid)
2241
    args = getOosStatusesForXDaysForItem_args()
2242
    args.itemId = itemId
9762 amar.kumar 2243
    args.sourceId = sourceId
6832 amar.kumar 2244
    args.days = days
2245
    args.write(self._oprot)
2246
    self._oprot.writeMessageEnd()
2247
    self._oprot.trans.flush()
2248
 
2249
  def recv_getOosStatusesForXDaysForItem(self, ):
2250
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2251
    if mtype == TMessageType.EXCEPTION:
2252
      x = TApplicationException()
2253
      x.read(self._iprot)
2254
      self._iprot.readMessageEnd()
2255
      raise x
2256
    result = getOosStatusesForXDaysForItem_result()
2257
    result.read(self._iprot)
2258
    self._iprot.readMessageEnd()
2259
    if result.success is not None:
2260
      return result.success
2261
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
2262
 
6857 amar.kumar 2263
  def getNonZeroItemStockPurchaseParams(self, ):
2264
    self.send_getNonZeroItemStockPurchaseParams()
2265
    return self.recv_getNonZeroItemStockPurchaseParams()
6832 amar.kumar 2266
 
6857 amar.kumar 2267
  def send_getNonZeroItemStockPurchaseParams(self, ):
2268
    self._oprot.writeMessageBegin('getNonZeroItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2269
    args = getNonZeroItemStockPurchaseParams_args()
2270
    args.write(self._oprot)
2271
    self._oprot.writeMessageEnd()
2272
    self._oprot.trans.flush()
2273
 
2274
  def recv_getNonZeroItemStockPurchaseParams(self, ):
2275
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2276
    if mtype == TMessageType.EXCEPTION:
2277
      x = TApplicationException()
2278
      x.read(self._iprot)
2279
      self._iprot.readMessageEnd()
2280
      raise x
2281
    result = getNonZeroItemStockPurchaseParams_result()
2282
    result.read(self._iprot)
2283
    self._iprot.readMessageEnd()
2284
    if result.success is not None:
2285
      return result.success
2286
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
2287
 
7149 amar.kumar 2288
  def getBillableInventoryAndPendingOrders(self, ):
2289
    """
2290
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
2291
    """
2292
    self.send_getBillableInventoryAndPendingOrders()
2293
    return self.recv_getBillableInventoryAndPendingOrders()
6857 amar.kumar 2294
 
7149 amar.kumar 2295
  def send_getBillableInventoryAndPendingOrders(self, ):
2296
    self._oprot.writeMessageBegin('getBillableInventoryAndPendingOrders', TMessageType.CALL, self._seqid)
2297
    args = getBillableInventoryAndPendingOrders_args()
2298
    args.write(self._oprot)
2299
    self._oprot.writeMessageEnd()
2300
    self._oprot.trans.flush()
2301
 
2302
  def recv_getBillableInventoryAndPendingOrders(self, ):
2303
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2304
    if mtype == TMessageType.EXCEPTION:
2305
      x = TApplicationException()
2306
      x.read(self._iprot)
2307
      self._iprot.readMessageEnd()
2308
      raise x
2309
    result = getBillableInventoryAndPendingOrders_result()
2310
    result.read(self._iprot)
2311
    self._iprot.readMessageEnd()
2312
    if result.success is not None:
2313
      return result.success
2314
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
2315
 
7281 kshitij.so 2316
  def getWarehouseName(self, warehouse_id):
2317
    """
2318
    Parameters:
2319
     - warehouse_id
2320
    """
2321
    self.send_getWarehouseName(warehouse_id)
2322
    return self.recv_getWarehouseName()
7149 amar.kumar 2323
 
7281 kshitij.so 2324
  def send_getWarehouseName(self, warehouse_id):
2325
    self._oprot.writeMessageBegin('getWarehouseName', TMessageType.CALL, self._seqid)
2326
    args = getWarehouseName_args()
2327
    args.warehouse_id = warehouse_id
2328
    args.write(self._oprot)
2329
    self._oprot.writeMessageEnd()
2330
    self._oprot.trans.flush()
2331
 
2332
  def recv_getWarehouseName(self, ):
2333
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2334
    if mtype == TMessageType.EXCEPTION:
2335
      x = TApplicationException()
2336
      x.read(self._iprot)
2337
      self._iprot.readMessageEnd()
2338
      raise x
2339
    result = getWarehouseName_result()
2340
    result.read(self._iprot)
2341
    self._iprot.readMessageEnd()
2342
    if result.success is not None:
2343
      return result.success
2344
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseName failed: unknown result");
2345
 
2346
  def getAmazonInventoryForItem(self, item_id):
2347
    """
2348
    Parameters:
2349
     - item_id
2350
    """
2351
    self.send_getAmazonInventoryForItem(item_id)
2352
    return self.recv_getAmazonInventoryForItem()
2353
 
2354
  def send_getAmazonInventoryForItem(self, item_id):
2355
    self._oprot.writeMessageBegin('getAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2356
    args = getAmazonInventoryForItem_args()
2357
    args.item_id = item_id
2358
    args.write(self._oprot)
2359
    self._oprot.writeMessageEnd()
2360
    self._oprot.trans.flush()
2361
 
2362
  def recv_getAmazonInventoryForItem(self, ):
2363
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2364
    if mtype == TMessageType.EXCEPTION:
2365
      x = TApplicationException()
2366
      x.read(self._iprot)
2367
      self._iprot.readMessageEnd()
2368
      raise x
2369
    result = getAmazonInventoryForItem_result()
2370
    result.read(self._iprot)
2371
    self._iprot.readMessageEnd()
2372
    if result.success is not None:
2373
      return result.success
2374
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonInventoryForItem failed: unknown result");
2375
 
2376
  def getAllAmazonInventory(self, ):
2377
    self.send_getAllAmazonInventory()
2378
    return self.recv_getAllAmazonInventory()
2379
 
2380
  def send_getAllAmazonInventory(self, ):
2381
    self._oprot.writeMessageBegin('getAllAmazonInventory', TMessageType.CALL, self._seqid)
2382
    args = getAllAmazonInventory_args()
2383
    args.write(self._oprot)
2384
    self._oprot.writeMessageEnd()
2385
    self._oprot.trans.flush()
2386
 
2387
  def recv_getAllAmazonInventory(self, ):
2388
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2389
    if mtype == TMessageType.EXCEPTION:
2390
      x = TApplicationException()
2391
      x.read(self._iprot)
2392
      self._iprot.readMessageEnd()
2393
      raise x
2394
    result = getAllAmazonInventory_result()
2395
    result.read(self._iprot)
2396
    self._iprot.readMessageEnd()
2397
    if result.success is not None:
2398
      return result.success
2399
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonInventory failed: unknown result");
2400
 
2401
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot):
2402
    """
2403
    Parameters:
2404
     - amazonInventorySnapshot
2405
    """
2406
    self.send_addOrUpdateAmazonInventoryForItem(amazonInventorySnapshot)
2407
    self.recv_addOrUpdateAmazonInventoryForItem()
2408
 
2409
  def send_addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot):
2410
    self._oprot.writeMessageBegin('addOrUpdateAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2411
    args = addOrUpdateAmazonInventoryForItem_args()
2412
    args.amazonInventorySnapshot = amazonInventorySnapshot
2413
    args.write(self._oprot)
2414
    self._oprot.writeMessageEnd()
2415
    self._oprot.trans.flush()
2416
 
2417
  def recv_addOrUpdateAmazonInventoryForItem(self, ):
2418
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2419
    if mtype == TMessageType.EXCEPTION:
2420
      x = TApplicationException()
2421
      x.read(self._iprot)
2422
      self._iprot.readMessageEnd()
2423
      raise x
2424
    result = addOrUpdateAmazonInventoryForItem_result()
2425
    result.read(self._iprot)
2426
    self._iprot.readMessageEnd()
2427
    return
2428
 
7972 amar.kumar 2429
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
2430
    """
2431
    Parameters:
2432
     - itemId
2433
     - numberOfDays
2434
    """
2435
    self.send_getLastNdaySaleForItem(itemId, numberOfDays)
2436
    return self.recv_getLastNdaySaleForItem()
7281 kshitij.so 2437
 
7972 amar.kumar 2438
  def send_getLastNdaySaleForItem(self, itemId, numberOfDays):
2439
    self._oprot.writeMessageBegin('getLastNdaySaleForItem', TMessageType.CALL, self._seqid)
2440
    args = getLastNdaySaleForItem_args()
2441
    args.itemId = itemId
2442
    args.numberOfDays = numberOfDays
2443
    args.write(self._oprot)
2444
    self._oprot.writeMessageEnd()
2445
    self._oprot.trans.flush()
2446
 
2447
  def recv_getLastNdaySaleForItem(self, ):
2448
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2449
    if mtype == TMessageType.EXCEPTION:
2450
      x = TApplicationException()
2451
      x.read(self._iprot)
2452
      self._iprot.readMessageEnd()
2453
      raise x
2454
    result = getLastNdaySaleForItem_result()
2455
    result.read(self._iprot)
2456
    self._iprot.readMessageEnd()
2457
    if result.success is not None:
2458
      return result.success
2459
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastNdaySaleForItem failed: unknown result");
2460
 
8282 kshitij.so 2461
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2462
    """
2463
    Parameters:
2464
     - amazonfbainventorysnapshot
2465
    """
2466
    self.send_addOrUpdateAmazonFbaInventory(amazonfbainventorysnapshot)
2467
    self.recv_addOrUpdateAmazonFbaInventory()
2468
 
2469
  def send_addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2470
    self._oprot.writeMessageBegin('addOrUpdateAmazonFbaInventory', TMessageType.CALL, self._seqid)
2471
    args = addOrUpdateAmazonFbaInventory_args()
2472
    args.amazonfbainventorysnapshot = amazonfbainventorysnapshot
2473
    args.write(self._oprot)
2474
    self._oprot.writeMessageEnd()
2475
    self._oprot.trans.flush()
2476
 
2477
  def recv_addOrUpdateAmazonFbaInventory(self, ):
2478
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2479
    if mtype == TMessageType.EXCEPTION:
2480
      x = TApplicationException()
2481
      x.read(self._iprot)
2482
      self._iprot.readMessageEnd()
2483
      raise x
2484
    result = addOrUpdateAmazonFbaInventory_result()
2485
    result.read(self._iprot)
2486
    self._iprot.readMessageEnd()
2487
    return
2488
 
8182 amar.kumar 2489
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2490
    """
2491
    Parameters:
2492
     - itemId
2493
     - warehouseId
2494
     - holdQuantity
2495
     - source
2496
    """
2497
    self.send_addUpdateHoldInventory(itemId, warehouseId, holdQuantity, source)
2498
    self.recv_addUpdateHoldInventory()
7972 amar.kumar 2499
 
8182 amar.kumar 2500
  def send_addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2501
    self._oprot.writeMessageBegin('addUpdateHoldInventory', TMessageType.CALL, self._seqid)
2502
    args = addUpdateHoldInventory_args()
2503
    args.itemId = itemId
2504
    args.warehouseId = warehouseId
2505
    args.holdQuantity = holdQuantity
2506
    args.source = source
2507
    args.write(self._oprot)
2508
    self._oprot.writeMessageEnd()
2509
    self._oprot.trans.flush()
2510
 
2511
  def recv_addUpdateHoldInventory(self, ):
2512
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2513
    if mtype == TMessageType.EXCEPTION:
2514
      x = TApplicationException()
2515
      x.read(self._iprot)
2516
      self._iprot.readMessageEnd()
2517
      raise x
2518
    result = addUpdateHoldInventory_result()
2519
    result.read(self._iprot)
2520
    self._iprot.readMessageEnd()
9762 amar.kumar 2521
    if result.cex is not None:
2522
      raise result.cex
8182 amar.kumar 2523
    return
2524
 
8282 kshitij.so 2525
  def getAmazonFbaItemInventory(self, itemId):
2526
    """
2527
    Parameters:
2528
     - itemId
2529
    """
2530
    self.send_getAmazonFbaItemInventory(itemId)
2531
    return self.recv_getAmazonFbaItemInventory()
8182 amar.kumar 2532
 
8282 kshitij.so 2533
  def send_getAmazonFbaItemInventory(self, itemId):
2534
    self._oprot.writeMessageBegin('getAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2535
    args = getAmazonFbaItemInventory_args()
2536
    args.itemId = itemId
2537
    args.write(self._oprot)
2538
    self._oprot.writeMessageEnd()
2539
    self._oprot.trans.flush()
2540
 
2541
  def recv_getAmazonFbaItemInventory(self, ):
2542
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2543
    if mtype == TMessageType.EXCEPTION:
2544
      x = TApplicationException()
2545
      x.read(self._iprot)
2546
      self._iprot.readMessageEnd()
2547
      raise x
2548
    result = getAmazonFbaItemInventory_result()
2549
    result.read(self._iprot)
2550
    self._iprot.readMessageEnd()
2551
    if result.success is not None:
2552
      return result.success
2553
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonFbaItemInventory failed: unknown result");
2554
 
8363 vikram.rag 2555
  def getAllAmazonFbaItemInventory(self, ):
2556
    self.send_getAllAmazonFbaItemInventory()
2557
    return self.recv_getAllAmazonFbaItemInventory()
8282 kshitij.so 2558
 
8363 vikram.rag 2559
  def send_getAllAmazonFbaItemInventory(self, ):
2560
    self._oprot.writeMessageBegin('getAllAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2561
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 2562
    args.write(self._oprot)
2563
    self._oprot.writeMessageEnd()
2564
    self._oprot.trans.flush()
2565
 
8363 vikram.rag 2566
  def recv_getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 2567
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2568
    if mtype == TMessageType.EXCEPTION:
2569
      x = TApplicationException()
2570
      x.read(self._iprot)
2571
      self._iprot.readMessageEnd()
2572
      raise x
8363 vikram.rag 2573
    result = getAllAmazonFbaItemInventory_result()
8282 kshitij.so 2574
    result.read(self._iprot)
2575
    self._iprot.readMessageEnd()
2576
    if result.success is not None:
2577
      return result.success
8363 vikram.rag 2578
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonFbaItemInventory failed: unknown result");
8282 kshitij.so 2579
 
8363 vikram.rag 2580
  def getOursGoodWarehouseIdsForLocation(self, state_id):
2581
    """
2582
    Parameters:
2583
     - state_id
2584
    """
2585
    self.send_getOursGoodWarehouseIdsForLocation(state_id)
2586
    return self.recv_getOursGoodWarehouseIdsForLocation()
8282 kshitij.so 2587
 
8363 vikram.rag 2588
  def send_getOursGoodWarehouseIdsForLocation(self, state_id):
2589
    self._oprot.writeMessageBegin('getOursGoodWarehouseIdsForLocation', TMessageType.CALL, self._seqid)
2590
    args = getOursGoodWarehouseIdsForLocation_args()
2591
    args.state_id = state_id
2592
    args.write(self._oprot)
2593
    self._oprot.writeMessageEnd()
2594
    self._oprot.trans.flush()
2595
 
2596
  def recv_getOursGoodWarehouseIdsForLocation(self, ):
2597
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2598
    if mtype == TMessageType.EXCEPTION:
2599
      x = TApplicationException()
2600
      x.read(self._iprot)
2601
      self._iprot.readMessageEnd()
2602
      raise x
2603
    result = getOursGoodWarehouseIdsForLocation_result()
2604
    result.read(self._iprot)
2605
    self._iprot.readMessageEnd()
2606
    if result.success is not None:
2607
      return result.success
2608
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOursGoodWarehouseIdsForLocation failed: unknown result");
2609
 
8955 vikram.rag 2610
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2611
    """
2612
    Parameters:
2613
     - id
2614
     - warehouse_id
2615
     - source
2616
    """
2617
    self.send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(id, warehouse_id, source)
2618
    return self.recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource()
8363 vikram.rag 2619
 
8955 vikram.rag 2620
  def send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2621
    self._oprot.writeMessageBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource', TMessageType.CALL, self._seqid)
2622
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
2623
    args.id = id
2624
    args.warehouse_id = warehouse_id
2625
    args.source = source
2626
    args.write(self._oprot)
2627
    self._oprot.writeMessageEnd()
2628
    self._oprot.trans.flush()
2629
 
2630
  def recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, ):
2631
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2632
    if mtype == TMessageType.EXCEPTION:
2633
      x = TApplicationException()
2634
      x.read(self._iprot)
2635
      self._iprot.readMessageEnd()
2636
      raise x
2637
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
2638
    result.read(self._iprot)
2639
    self._iprot.readMessageEnd()
2640
    if result.success is not None:
2641
      return result.success
2642
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetailForItemForWarehouseIdExceptSource failed: unknown result");
2643
 
9404 vikram.rag 2644
  def getSnapdealInventoryForItem(self, item_id):
2645
    """
2646
    Parameters:
2647
     - item_id
2648
    """
2649
    self.send_getSnapdealInventoryForItem(item_id)
2650
    return self.recv_getSnapdealInventoryForItem()
8955 vikram.rag 2651
 
9404 vikram.rag 2652
  def send_getSnapdealInventoryForItem(self, item_id):
2653
    self._oprot.writeMessageBegin('getSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2654
    args = getSnapdealInventoryForItem_args()
2655
    args.item_id = item_id
2656
    args.write(self._oprot)
2657
    self._oprot.writeMessageEnd()
2658
    self._oprot.trans.flush()
2659
 
2660
  def recv_getSnapdealInventoryForItem(self, ):
2661
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2662
    if mtype == TMessageType.EXCEPTION:
2663
      x = TApplicationException()
2664
      x.read(self._iprot)
2665
      self._iprot.readMessageEnd()
2666
      raise x
2667
    result = getSnapdealInventoryForItem_result()
2668
    result.read(self._iprot)
2669
    self._iprot.readMessageEnd()
2670
    if result.success is not None:
2671
      return result.success
2672
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventoryForItem failed: unknown result");
2673
 
2674
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2675
    """
2676
    Parameters:
2677
     - snapdealinventoryitem
2678
    """
2679
    self.send_addOrUpdateSnapdealInventoryForItem(snapdealinventoryitem)
2680
    self.recv_addOrUpdateSnapdealInventoryForItem()
2681
 
2682
  def send_addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2683
    self._oprot.writeMessageBegin('addOrUpdateSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2684
    args = addOrUpdateSnapdealInventoryForItem_args()
2685
    args.snapdealinventoryitem = snapdealinventoryitem
2686
    args.write(self._oprot)
2687
    self._oprot.writeMessageEnd()
2688
    self._oprot.trans.flush()
2689
 
2690
  def recv_addOrUpdateSnapdealInventoryForItem(self, ):
2691
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2692
    if mtype == TMessageType.EXCEPTION:
2693
      x = TApplicationException()
2694
      x.read(self._iprot)
2695
      self._iprot.readMessageEnd()
2696
      raise x
2697
    result = addOrUpdateSnapdealInventoryForItem_result()
2698
    result.read(self._iprot)
2699
    self._iprot.readMessageEnd()
2700
    return
2701
 
2702
  def getNlcForWarehouse(self, warehouse_id, item_id):
2703
    """
2704
    Parameters:
2705
     - warehouse_id
2706
     - item_id
2707
    """
2708
    self.send_getNlcForWarehouse(warehouse_id, item_id)
2709
    return self.recv_getNlcForWarehouse()
2710
 
2711
  def send_getNlcForWarehouse(self, warehouse_id, item_id):
2712
    self._oprot.writeMessageBegin('getNlcForWarehouse', TMessageType.CALL, self._seqid)
2713
    args = getNlcForWarehouse_args()
2714
    args.warehouse_id = warehouse_id
2715
    args.item_id = item_id
2716
    args.write(self._oprot)
2717
    self._oprot.writeMessageEnd()
2718
    self._oprot.trans.flush()
2719
 
2720
  def recv_getNlcForWarehouse(self, ):
2721
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2722
    if mtype == TMessageType.EXCEPTION:
2723
      x = TApplicationException()
2724
      x.read(self._iprot)
2725
      self._iprot.readMessageEnd()
2726
      raise x
2727
    result = getNlcForWarehouse_result()
2728
    result.read(self._iprot)
2729
    self._iprot.readMessageEnd()
2730
    if result.success is not None:
2731
      return result.success
2732
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
2733
 
9640 amar.kumar 2734
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
2735
    """
2736
    Parameters:
2737
     - item_id
2738
     - warehouse_id
2739
    """
2740
    self.send_getHeldInventoryMapForItem(item_id, warehouse_id)
2741
    return self.recv_getHeldInventoryMapForItem()
2742
 
2743
  def send_getHeldInventoryMapForItem(self, item_id, warehouse_id):
2744
    self._oprot.writeMessageBegin('getHeldInventoryMapForItem', TMessageType.CALL, self._seqid)
2745
    args = getHeldInventoryMapForItem_args()
2746
    args.item_id = item_id
2747
    args.warehouse_id = warehouse_id
2748
    args.write(self._oprot)
2749
    self._oprot.writeMessageEnd()
2750
    self._oprot.trans.flush()
2751
 
2752
  def recv_getHeldInventoryMapForItem(self, ):
2753
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2754
    if mtype == TMessageType.EXCEPTION:
2755
      x = TApplicationException()
2756
      x.read(self._iprot)
2757
      self._iprot.readMessageEnd()
2758
      raise x
2759
    result = getHeldInventoryMapForItem_result()
2760
    result.read(self._iprot)
2761
    self._iprot.readMessageEnd()
2762
    if result.success is not None:
2763
      return result.success
2764
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHeldInventoryMapForItem failed: unknown result");
2765
 
9495 vikram.rag 2766
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2767
    """
2768
    Parameters:
2769
     - allamazonfbainventorysnapshot
2770
    """
2771
    self.send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot)
2772
    self.recv_addOrUpdateAllAmazonFbaInventory()
9404 vikram.rag 2773
 
9495 vikram.rag 2774
  def send_addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2775
    self._oprot.writeMessageBegin('addOrUpdateAllAmazonFbaInventory', TMessageType.CALL, self._seqid)
2776
    args = addOrUpdateAllAmazonFbaInventory_args()
2777
    args.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 2778
    args.write(self._oprot)
2779
    self._oprot.writeMessageEnd()
2780
    self._oprot.trans.flush()
2781
 
9495 vikram.rag 2782
  def recv_addOrUpdateAllAmazonFbaInventory(self, ):
9456 vikram.rag 2783
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2784
    if mtype == TMessageType.EXCEPTION:
2785
      x = TApplicationException()
2786
      x.read(self._iprot)
2787
      self._iprot.readMessageEnd()
2788
      raise x
9495 vikram.rag 2789
    result = addOrUpdateAllAmazonFbaInventory_result()
9456 vikram.rag 2790
    result.read(self._iprot)
2791
    self._iprot.readMessageEnd()
9495 vikram.rag 2792
    return
9456 vikram.rag 2793
 
9495 vikram.rag 2794
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
9482 vikram.rag 2795
    """
2796
    Parameters:
9495 vikram.rag 2797
     - allsnapdealinventorysnapshot
9482 vikram.rag 2798
    """
9495 vikram.rag 2799
    self.send_addOrUpdateAllSnapdealInventory(allsnapdealinventorysnapshot)
2800
    self.recv_addOrUpdateAllSnapdealInventory()
9456 vikram.rag 2801
 
9495 vikram.rag 2802
  def send_addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
2803
    self._oprot.writeMessageBegin('addOrUpdateAllSnapdealInventory', TMessageType.CALL, self._seqid)
2804
    args = addOrUpdateAllSnapdealInventory_args()
2805
    args.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 2806
    args.write(self._oprot)
2807
    self._oprot.writeMessageEnd()
2808
    self._oprot.trans.flush()
2809
 
9495 vikram.rag 2810
  def recv_addOrUpdateAllSnapdealInventory(self, ):
9482 vikram.rag 2811
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2812
    if mtype == TMessageType.EXCEPTION:
2813
      x = TApplicationException()
2814
      x.read(self._iprot)
2815
      self._iprot.readMessageEnd()
2816
      raise x
9495 vikram.rag 2817
    result = addOrUpdateAllSnapdealInventory_result()
9482 vikram.rag 2818
    result.read(self._iprot)
2819
    self._iprot.readMessageEnd()
2820
    return
2821
 
9495 vikram.rag 2822
  def getSnapdealInventorySnapshot(self, ):
2823
    self.send_getSnapdealInventorySnapshot()
2824
    return self.recv_getSnapdealInventorySnapshot()
9482 vikram.rag 2825
 
9495 vikram.rag 2826
  def send_getSnapdealInventorySnapshot(self, ):
2827
    self._oprot.writeMessageBegin('getSnapdealInventorySnapshot', TMessageType.CALL, self._seqid)
2828
    args = getSnapdealInventorySnapshot_args()
2829
    args.write(self._oprot)
2830
    self._oprot.writeMessageEnd()
2831
    self._oprot.trans.flush()
2832
 
2833
  def recv_getSnapdealInventorySnapshot(self, ):
2834
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2835
    if mtype == TMessageType.EXCEPTION:
2836
      x = TApplicationException()
2837
      x.read(self._iprot)
2838
      self._iprot.readMessageEnd()
2839
      raise x
2840
    result = getSnapdealInventorySnapshot_result()
2841
    result.read(self._iprot)
2842
    self._iprot.readMessageEnd()
2843
    if result.success is not None:
2844
      return result.success
2845
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventorySnapshot failed: unknown result");
2846
 
9761 amar.kumar 2847
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
2848
    """
2849
    Parameters:
2850
     - itemId
2851
     - warehouseId
2852
     - source
2853
    """
2854
    self.send_getHoldInventoryDetails(itemId, warehouseId, source)
2855
    return self.recv_getHoldInventoryDetails()
9495 vikram.rag 2856
 
9761 amar.kumar 2857
  def send_getHoldInventoryDetails(self, itemId, warehouseId, source):
2858
    self._oprot.writeMessageBegin('getHoldInventoryDetails', TMessageType.CALL, self._seqid)
2859
    args = getHoldInventoryDetails_args()
2860
    args.itemId = itemId
2861
    args.warehouseId = warehouseId
2862
    args.source = source
2863
    args.write(self._oprot)
2864
    self._oprot.writeMessageEnd()
2865
    self._oprot.trans.flush()
2866
 
2867
  def recv_getHoldInventoryDetails(self, ):
2868
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2869
    if mtype == TMessageType.EXCEPTION:
2870
      x = TApplicationException()
2871
      x.read(self._iprot)
2872
      self._iprot.readMessageEnd()
2873
      raise x
2874
    result = getHoldInventoryDetails_result()
2875
    result.read(self._iprot)
2876
    self._iprot.readMessageEnd()
2877
    if result.success is not None:
2878
      return result.success
2879
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetails failed: unknown result");
2880
 
10050 vikram.rag 2881
  def addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot):
2882
    """
2883
    Parameters:
2884
     - flipkartInventorySnapshot
2885
    """
2886
    self.send_addOrUpdateFlipkartInventorySnapshot(flipkartInventorySnapshot)
2887
    self.recv_addOrUpdateFlipkartInventorySnapshot()
9761 amar.kumar 2888
 
10050 vikram.rag 2889
  def send_addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot):
2890
    self._oprot.writeMessageBegin('addOrUpdateFlipkartInventorySnapshot', TMessageType.CALL, self._seqid)
2891
    args = addOrUpdateFlipkartInventorySnapshot_args()
2892
    args.flipkartInventorySnapshot = flipkartInventorySnapshot
2893
    args.write(self._oprot)
2894
    self._oprot.writeMessageEnd()
2895
    self._oprot.trans.flush()
2896
 
2897
  def recv_addOrUpdateFlipkartInventorySnapshot(self, ):
2898
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2899
    if mtype == TMessageType.EXCEPTION:
2900
      x = TApplicationException()
2901
      x.read(self._iprot)
2902
      self._iprot.readMessageEnd()
2903
      raise x
2904
    result = addOrUpdateFlipkartInventorySnapshot_result()
2905
    result.read(self._iprot)
2906
    self._iprot.readMessageEnd()
2907
    return
2908
 
2909
  def getFlipkartInventorySnapshot(self, ):
2910
    self.send_getFlipkartInventorySnapshot()
2911
    return self.recv_getFlipkartInventorySnapshot()
2912
 
2913
  def send_getFlipkartInventorySnapshot(self, ):
2914
    self._oprot.writeMessageBegin('getFlipkartInventorySnapshot', TMessageType.CALL, self._seqid)
2915
    args = getFlipkartInventorySnapshot_args()
2916
    args.write(self._oprot)
2917
    self._oprot.writeMessageEnd()
2918
    self._oprot.trans.flush()
2919
 
2920
  def recv_getFlipkartInventorySnapshot(self, ):
2921
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2922
    if mtype == TMessageType.EXCEPTION:
2923
      x = TApplicationException()
2924
      x.read(self._iprot)
2925
      self._iprot.readMessageEnd()
2926
      raise x
2927
    result = getFlipkartInventorySnapshot_result()
2928
    result.read(self._iprot)
2929
    self._iprot.readMessageEnd()
2930
    if result.success is not None:
2931
      return result.success
2932
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartInventorySnapshot failed: unknown result");
2933
 
10097 kshitij.so 2934
  def getFlipkartlInventoryForItem(self, item_id):
2935
    """
2936
    Parameters:
2937
     - item_id
2938
    """
2939
    self.send_getFlipkartlInventoryForItem(item_id)
2940
    return self.recv_getFlipkartlInventoryForItem()
10050 vikram.rag 2941
 
10097 kshitij.so 2942
  def send_getFlipkartlInventoryForItem(self, item_id):
2943
    self._oprot.writeMessageBegin('getFlipkartlInventoryForItem', TMessageType.CALL, self._seqid)
2944
    args = getFlipkartlInventoryForItem_args()
2945
    args.item_id = item_id
2946
    args.write(self._oprot)
2947
    self._oprot.writeMessageEnd()
2948
    self._oprot.trans.flush()
2949
 
2950
  def recv_getFlipkartlInventoryForItem(self, ):
2951
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2952
    if mtype == TMessageType.EXCEPTION:
2953
      x = TApplicationException()
2954
      x.read(self._iprot)
2955
      self._iprot.readMessageEnd()
2956
      raise x
2957
    result = getFlipkartlInventoryForItem_result()
2958
    result.read(self._iprot)
2959
    self._iprot.readMessageEnd()
2960
    if result.success is not None:
2961
      return result.success
2962
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartlInventoryForItem failed: unknown result");
2963
 
2964
 
5944 mandeep.dh 2965
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2966
  def __init__(self, handler):
2967
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2968
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
2969
    self._processMap["addVendor"] = Processor.process_addVendor
2970
    self._processMap["updateInventoryHistory"] = Processor.process_updateInventoryHistory
2971
    self._processMap["updateInventory"] = Processor.process_updateInventory
2972
    self._processMap["addInventory"] = Processor.process_addInventory
2973
    self._processMap["retireWarehouse"] = Processor.process_retireWarehouse
2974
    self._processMap["getItemInventoryByItemId"] = Processor.process_getItemInventoryByItemId
2975
    self._processMap["getItemAvailibilityAtWarehouse"] = Processor.process_getItemAvailibilityAtWarehouse
2976
    self._processMap["getItemAvailabilityAtLocation"] = Processor.process_getItemAvailabilityAtLocation
2977
    self._processMap["getAllWarehouses"] = Processor.process_getAllWarehouses
2978
    self._processMap["getWarehouse"] = Processor.process_getWarehouse
2979
    self._processMap["getAllItemsForWarehouse"] = Processor.process_getAllItemsForWarehouse
5966 rajveer 2980
    self._processMap["isOrderBillable"] = Processor.process_isOrderBillable
5944 mandeep.dh 2981
    self._processMap["reserveItemInWarehouse"] = Processor.process_reserveItemInWarehouse
7968 amar.kumar 2982
    self._processMap["updateReservationForOrder"] = Processor.process_updateReservationForOrder
5944 mandeep.dh 2983
    self._processMap["reduceReservationCount"] = Processor.process_reduceReservationCount
2984
    self._processMap["getItemPricing"] = Processor.process_getItemPricing
2985
    self._processMap["getAllItemPricing"] = Processor.process_getAllItemPricing
2986
    self._processMap["addVendorItemPricing"] = Processor.process_addVendorItemPricing
2987
    self._processMap["getVendor"] = Processor.process_getVendor
2988
    self._processMap["getAllVendors"] = Processor.process_getAllVendors
2989
    self._processMap["addVendorItemMapping"] = Processor.process_addVendorItemMapping
2990
    self._processMap["getVendorItemMappings"] = Processor.process_getVendorItemMappings
2991
    self._processMap["getPendingOrdersInventory"] = Processor.process_getPendingOrdersInventory
2992
    self._processMap["getWarehouses"] = Processor.process_getWarehouses
2993
    self._processMap["resetAvailability"] = Processor.process_resetAvailability
2994
    self._processMap["resetAvailabilityForWarehouse"] = Processor.process_resetAvailabilityForWarehouse
2995
    self._processMap["getItemKeysToBeProcessed"] = Processor.process_getItemKeysToBeProcessed
2996
    self._processMap["markMissedInventoryUpdatesAsProcessed"] = Processor.process_markMissedInventoryUpdatesAsProcessed
2997
    self._processMap["getIgnoredItemKeys"] = Processor.process_getIgnoredItemKeys
2998
    self._processMap["addBadInventory"] = Processor.process_addBadInventory
2999
    self._processMap["getShippingLocations"] = Processor.process_getShippingLocations
3000
    self._processMap["getAllVendorItemMappings"] = Processor.process_getAllVendorItemMappings
3001
    self._processMap["getInventorySnapshot"] = Processor.process_getInventorySnapshot
3002
    self._processMap["clearItemAvailabilityCache"] = Processor.process_clearItemAvailabilityCache
3003
    self._processMap["updateVendorString"] = Processor.process_updateVendorString
6096 amit.gupta 3004
    self._processMap["clearItemAvailabilityCacheForItem"] = Processor.process_clearItemAvailabilityCacheForItem
6467 amar.kumar 3005
    self._processMap["getOurWarehouseIdForVendor"] = Processor.process_getOurWarehouseIdForVendor
6484 amar.kumar 3006
    self._processMap["getItemAvailabilitiesAtOurWarehouses"] = Processor.process_getItemAvailabilitiesAtOurWarehouses
6531 vikram.rag 3007
    self._processMap["getMonitoredWarehouseForVendors"] = Processor.process_getMonitoredWarehouseForVendors
3008
    self._processMap["getIgnoredWarehouseidsAndItemids"] = Processor.process_getIgnoredWarehouseidsAndItemids
3009
    self._processMap["insertItemtoIgnoreInventoryUpdatelist"] = Processor.process_insertItemtoIgnoreInventoryUpdatelist
3010
    self._processMap["deleteItemFromIgnoredInventoryUpdateList"] = Processor.process_deleteItemFromIgnoredInventoryUpdateList
3011
    self._processMap["getAllIgnoredInventoryupdateItemsCount"] = Processor.process_getAllIgnoredInventoryupdateItemsCount
3012
    self._processMap["getIgnoredInventoryUpdateItemids"] = Processor.process_getIgnoredInventoryUpdateItemids
6821 amar.kumar 3013
    self._processMap["updateItemStockPurchaseParams"] = Processor.process_updateItemStockPurchaseParams
3014
    self._processMap["getItemStockPurchaseParams"] = Processor.process_getItemStockPurchaseParams
3015
    self._processMap["addOosStatusForItem"] = Processor.process_addOosStatusForItem
6832 amar.kumar 3016
    self._processMap["getOosStatusesForXDaysForItem"] = Processor.process_getOosStatusesForXDaysForItem
6857 amar.kumar 3017
    self._processMap["getNonZeroItemStockPurchaseParams"] = Processor.process_getNonZeroItemStockPurchaseParams
7149 amar.kumar 3018
    self._processMap["getBillableInventoryAndPendingOrders"] = Processor.process_getBillableInventoryAndPendingOrders
7281 kshitij.so 3019
    self._processMap["getWarehouseName"] = Processor.process_getWarehouseName
3020
    self._processMap["getAmazonInventoryForItem"] = Processor.process_getAmazonInventoryForItem
3021
    self._processMap["getAllAmazonInventory"] = Processor.process_getAllAmazonInventory
3022
    self._processMap["addOrUpdateAmazonInventoryForItem"] = Processor.process_addOrUpdateAmazonInventoryForItem
7972 amar.kumar 3023
    self._processMap["getLastNdaySaleForItem"] = Processor.process_getLastNdaySaleForItem
8282 kshitij.so 3024
    self._processMap["addOrUpdateAmazonFbaInventory"] = Processor.process_addOrUpdateAmazonFbaInventory
8182 amar.kumar 3025
    self._processMap["addUpdateHoldInventory"] = Processor.process_addUpdateHoldInventory
8282 kshitij.so 3026
    self._processMap["getAmazonFbaItemInventory"] = Processor.process_getAmazonFbaItemInventory
8363 vikram.rag 3027
    self._processMap["getAllAmazonFbaItemInventory"] = Processor.process_getAllAmazonFbaItemInventory
3028
    self._processMap["getOursGoodWarehouseIdsForLocation"] = Processor.process_getOursGoodWarehouseIdsForLocation
8955 vikram.rag 3029
    self._processMap["getHoldInventoryDetailForItemForWarehouseIdExceptSource"] = Processor.process_getHoldInventoryDetailForItemForWarehouseIdExceptSource
9404 vikram.rag 3030
    self._processMap["getSnapdealInventoryForItem"] = Processor.process_getSnapdealInventoryForItem
3031
    self._processMap["addOrUpdateSnapdealInventoryForItem"] = Processor.process_addOrUpdateSnapdealInventoryForItem
3032
    self._processMap["getNlcForWarehouse"] = Processor.process_getNlcForWarehouse
9640 amar.kumar 3033
    self._processMap["getHeldInventoryMapForItem"] = Processor.process_getHeldInventoryMapForItem
9482 vikram.rag 3034
    self._processMap["addOrUpdateAllAmazonFbaInventory"] = Processor.process_addOrUpdateAllAmazonFbaInventory
9495 vikram.rag 3035
    self._processMap["addOrUpdateAllSnapdealInventory"] = Processor.process_addOrUpdateAllSnapdealInventory
3036
    self._processMap["getSnapdealInventorySnapshot"] = Processor.process_getSnapdealInventorySnapshot
9761 amar.kumar 3037
    self._processMap["getHoldInventoryDetails"] = Processor.process_getHoldInventoryDetails
10050 vikram.rag 3038
    self._processMap["addOrUpdateFlipkartInventorySnapshot"] = Processor.process_addOrUpdateFlipkartInventorySnapshot
3039
    self._processMap["getFlipkartInventorySnapshot"] = Processor.process_getFlipkartInventorySnapshot
10097 kshitij.so 3040
    self._processMap["getFlipkartlInventoryForItem"] = Processor.process_getFlipkartlInventoryForItem
5944 mandeep.dh 3041
 
3042
  def process(self, iprot, oprot):
3043
    (name, type, seqid) = iprot.readMessageBegin()
3044
    if name not in self._processMap:
3045
      iprot.skip(TType.STRUCT)
3046
      iprot.readMessageEnd()
3047
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3048
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3049
      x.write(oprot)
3050
      oprot.writeMessageEnd()
3051
      oprot.trans.flush()
3052
      return
3053
    else:
3054
      self._processMap[name](self, seqid, iprot, oprot)
3055
    return True
3056
 
3057
  def process_addWarehouse(self, seqid, iprot, oprot):
3058
    args = addWarehouse_args()
3059
    args.read(iprot)
3060
    iprot.readMessageEnd()
3061
    result = addWarehouse_result()
3062
    try:
3063
      result.success = self._handler.addWarehouse(args.warehouse)
3064
    except InventoryServiceException, cex:
3065
      result.cex = cex
3066
    oprot.writeMessageBegin("addWarehouse", TMessageType.REPLY, seqid)
3067
    result.write(oprot)
3068
    oprot.writeMessageEnd()
3069
    oprot.trans.flush()
3070
 
3071
  def process_addVendor(self, seqid, iprot, oprot):
3072
    args = addVendor_args()
3073
    args.read(iprot)
3074
    iprot.readMessageEnd()
3075
    result = addVendor_result()
3076
    try:
3077
      result.success = self._handler.addVendor(args.vendor)
3078
    except InventoryServiceException, cex:
3079
      result.cex = cex
3080
    oprot.writeMessageBegin("addVendor", TMessageType.REPLY, seqid)
3081
    result.write(oprot)
3082
    oprot.writeMessageEnd()
3083
    oprot.trans.flush()
3084
 
3085
  def process_updateInventoryHistory(self, seqid, iprot, oprot):
3086
    args = updateInventoryHistory_args()
3087
    args.read(iprot)
3088
    iprot.readMessageEnd()
3089
    result = updateInventoryHistory_result()
3090
    try:
3091
      self._handler.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability)
3092
    except InventoryServiceException, cex:
3093
      result.cex = cex
3094
    oprot.writeMessageBegin("updateInventoryHistory", TMessageType.REPLY, seqid)
3095
    result.write(oprot)
3096
    oprot.writeMessageEnd()
3097
    oprot.trans.flush()
3098
 
3099
  def process_updateInventory(self, seqid, iprot, oprot):
3100
    args = updateInventory_args()
3101
    args.read(iprot)
3102
    iprot.readMessageEnd()
3103
    result = updateInventory_result()
3104
    try:
3105
      self._handler.updateInventory(args.warehouse_id, args.timestamp, args.availability)
3106
    except InventoryServiceException, cex:
3107
      result.cex = cex
3108
    oprot.writeMessageBegin("updateInventory", TMessageType.REPLY, seqid)
3109
    result.write(oprot)
3110
    oprot.writeMessageEnd()
3111
    oprot.trans.flush()
3112
 
3113
  def process_addInventory(self, seqid, iprot, oprot):
3114
    args = addInventory_args()
3115
    args.read(iprot)
3116
    iprot.readMessageEnd()
3117
    result = addInventory_result()
3118
    try:
3119
      self._handler.addInventory(args.itemId, args.warehouseId, args.quantity)
3120
    except InventoryServiceException, cex:
3121
      result.cex = cex
3122
    oprot.writeMessageBegin("addInventory", TMessageType.REPLY, seqid)
3123
    result.write(oprot)
3124
    oprot.writeMessageEnd()
3125
    oprot.trans.flush()
3126
 
3127
  def process_retireWarehouse(self, seqid, iprot, oprot):
3128
    args = retireWarehouse_args()
3129
    args.read(iprot)
3130
    iprot.readMessageEnd()
3131
    result = retireWarehouse_result()
3132
    try:
3133
      self._handler.retireWarehouse(args.warehouse_id)
3134
    except InventoryServiceException, cex:
3135
      result.cex = cex
3136
    oprot.writeMessageBegin("retireWarehouse", TMessageType.REPLY, seqid)
3137
    result.write(oprot)
3138
    oprot.writeMessageEnd()
3139
    oprot.trans.flush()
3140
 
3141
  def process_getItemInventoryByItemId(self, seqid, iprot, oprot):
3142
    args = getItemInventoryByItemId_args()
3143
    args.read(iprot)
3144
    iprot.readMessageEnd()
3145
    result = getItemInventoryByItemId_result()
3146
    try:
3147
      result.success = self._handler.getItemInventoryByItemId(args.item_id)
3148
    except InventoryServiceException, cex:
3149
      result.cex = cex
3150
    oprot.writeMessageBegin("getItemInventoryByItemId", TMessageType.REPLY, seqid)
3151
    result.write(oprot)
3152
    oprot.writeMessageEnd()
3153
    oprot.trans.flush()
3154
 
3155
  def process_getItemAvailibilityAtWarehouse(self, seqid, iprot, oprot):
3156
    args = getItemAvailibilityAtWarehouse_args()
3157
    args.read(iprot)
3158
    iprot.readMessageEnd()
3159
    result = getItemAvailibilityAtWarehouse_result()
3160
    try:
3161
      result.success = self._handler.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id)
3162
    except InventoryServiceException, cex:
3163
      result.cex = cex
3164
    oprot.writeMessageBegin("getItemAvailibilityAtWarehouse", TMessageType.REPLY, seqid)
3165
    result.write(oprot)
3166
    oprot.writeMessageEnd()
3167
    oprot.trans.flush()
3168
 
3169
  def process_getItemAvailabilityAtLocation(self, seqid, iprot, oprot):
3170
    args = getItemAvailabilityAtLocation_args()
3171
    args.read(iprot)
3172
    iprot.readMessageEnd()
3173
    result = getItemAvailabilityAtLocation_result()
3174
    try:
5978 rajveer 3175
      result.success = self._handler.getItemAvailabilityAtLocation(args.itemId, args.sourceId)
5944 mandeep.dh 3176
    except InventoryServiceException, isex:
3177
      result.isex = isex
3178
    oprot.writeMessageBegin("getItemAvailabilityAtLocation", TMessageType.REPLY, seqid)
3179
    result.write(oprot)
3180
    oprot.writeMessageEnd()
3181
    oprot.trans.flush()
3182
 
3183
  def process_getAllWarehouses(self, seqid, iprot, oprot):
3184
    args = getAllWarehouses_args()
3185
    args.read(iprot)
3186
    iprot.readMessageEnd()
3187
    result = getAllWarehouses_result()
3188
    try:
3189
      result.success = self._handler.getAllWarehouses(args.isActive)
3190
    except InventoryServiceException, cex:
3191
      result.cex = cex
3192
    oprot.writeMessageBegin("getAllWarehouses", TMessageType.REPLY, seqid)
3193
    result.write(oprot)
3194
    oprot.writeMessageEnd()
3195
    oprot.trans.flush()
3196
 
3197
  def process_getWarehouse(self, seqid, iprot, oprot):
3198
    args = getWarehouse_args()
3199
    args.read(iprot)
3200
    iprot.readMessageEnd()
3201
    result = getWarehouse_result()
3202
    try:
3203
      result.success = self._handler.getWarehouse(args.warehouse_id)
3204
    except InventoryServiceException, cex:
3205
      result.cex = cex
3206
    oprot.writeMessageBegin("getWarehouse", TMessageType.REPLY, seqid)
3207
    result.write(oprot)
3208
    oprot.writeMessageEnd()
3209
    oprot.trans.flush()
3210
 
3211
  def process_getAllItemsForWarehouse(self, seqid, iprot, oprot):
3212
    args = getAllItemsForWarehouse_args()
3213
    args.read(iprot)
3214
    iprot.readMessageEnd()
3215
    result = getAllItemsForWarehouse_result()
3216
    try:
3217
      result.success = self._handler.getAllItemsForWarehouse(args.warehouse_id)
3218
    except InventoryServiceException, cex:
3219
      result.cex = cex
3220
    oprot.writeMessageBegin("getAllItemsForWarehouse", TMessageType.REPLY, seqid)
3221
    result.write(oprot)
3222
    oprot.writeMessageEnd()
3223
    oprot.trans.flush()
3224
 
5966 rajveer 3225
  def process_isOrderBillable(self, seqid, iprot, oprot):
3226
    args = isOrderBillable_args()
3227
    args.read(iprot)
3228
    iprot.readMessageEnd()
3229
    result = isOrderBillable_result()
3230
    result.success = self._handler.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId)
3231
    oprot.writeMessageBegin("isOrderBillable", TMessageType.REPLY, seqid)
3232
    result.write(oprot)
3233
    oprot.writeMessageEnd()
3234
    oprot.trans.flush()
3235
 
5944 mandeep.dh 3236
  def process_reserveItemInWarehouse(self, seqid, iprot, oprot):
3237
    args = reserveItemInWarehouse_args()
3238
    args.read(iprot)
3239
    iprot.readMessageEnd()
3240
    result = reserveItemInWarehouse_result()
3241
    try:
5966 rajveer 3242
      result.success = self._handler.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
5944 mandeep.dh 3243
    except InventoryServiceException, cex:
3244
      result.cex = cex
3245
    oprot.writeMessageBegin("reserveItemInWarehouse", TMessageType.REPLY, seqid)
3246
    result.write(oprot)
3247
    oprot.writeMessageEnd()
3248
    oprot.trans.flush()
3249
 
7968 amar.kumar 3250
  def process_updateReservationForOrder(self, seqid, iprot, oprot):
3251
    args = updateReservationForOrder_args()
3252
    args.read(iprot)
3253
    iprot.readMessageEnd()
3254
    result = updateReservationForOrder_result()
3255
    try:
3256
      result.success = self._handler.updateReservationForOrder(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
3257
    except InventoryServiceException, cex:
3258
      result.cex = cex
3259
    oprot.writeMessageBegin("updateReservationForOrder", TMessageType.REPLY, seqid)
3260
    result.write(oprot)
3261
    oprot.writeMessageEnd()
3262
    oprot.trans.flush()
3263
 
5944 mandeep.dh 3264
  def process_reduceReservationCount(self, seqid, iprot, oprot):
3265
    args = reduceReservationCount_args()
3266
    args.read(iprot)
3267
    iprot.readMessageEnd()
3268
    result = reduceReservationCount_result()
3269
    try:
5966 rajveer 3270
      result.success = self._handler.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity)
5944 mandeep.dh 3271
    except InventoryServiceException, cex:
3272
      result.cex = cex
3273
    oprot.writeMessageBegin("reduceReservationCount", TMessageType.REPLY, seqid)
3274
    result.write(oprot)
3275
    oprot.writeMessageEnd()
3276
    oprot.trans.flush()
3277
 
3278
  def process_getItemPricing(self, seqid, iprot, oprot):
3279
    args = getItemPricing_args()
3280
    args.read(iprot)
3281
    iprot.readMessageEnd()
3282
    result = getItemPricing_result()
3283
    try:
3284
      result.success = self._handler.getItemPricing(args.itemId, args.vendorId)
3285
    except InventoryServiceException, cex:
3286
      result.cex = cex
3287
    oprot.writeMessageBegin("getItemPricing", TMessageType.REPLY, seqid)
3288
    result.write(oprot)
3289
    oprot.writeMessageEnd()
3290
    oprot.trans.flush()
3291
 
3292
  def process_getAllItemPricing(self, seqid, iprot, oprot):
3293
    args = getAllItemPricing_args()
3294
    args.read(iprot)
3295
    iprot.readMessageEnd()
3296
    result = getAllItemPricing_result()
3297
    try:
3298
      result.success = self._handler.getAllItemPricing(args.itemId)
3299
    except InventoryServiceException, cex:
3300
      result.cex = cex
3301
    oprot.writeMessageBegin("getAllItemPricing", TMessageType.REPLY, seqid)
3302
    result.write(oprot)
3303
    oprot.writeMessageEnd()
3304
    oprot.trans.flush()
3305
 
3306
  def process_addVendorItemPricing(self, seqid, iprot, oprot):
3307
    args = addVendorItemPricing_args()
3308
    args.read(iprot)
3309
    iprot.readMessageEnd()
3310
    result = addVendorItemPricing_result()
3311
    try:
3312
      self._handler.addVendorItemPricing(args.vendorItemPricing)
3313
    except InventoryServiceException, cex:
3314
      result.cex = cex
3315
    oprot.writeMessageBegin("addVendorItemPricing", TMessageType.REPLY, seqid)
3316
    result.write(oprot)
3317
    oprot.writeMessageEnd()
3318
    oprot.trans.flush()
3319
 
3320
  def process_getVendor(self, seqid, iprot, oprot):
3321
    args = getVendor_args()
3322
    args.read(iprot)
3323
    iprot.readMessageEnd()
3324
    result = getVendor_result()
3325
    result.success = self._handler.getVendor(args.vendorId)
3326
    oprot.writeMessageBegin("getVendor", TMessageType.REPLY, seqid)
3327
    result.write(oprot)
3328
    oprot.writeMessageEnd()
3329
    oprot.trans.flush()
3330
 
3331
  def process_getAllVendors(self, seqid, iprot, oprot):
3332
    args = getAllVendors_args()
3333
    args.read(iprot)
3334
    iprot.readMessageEnd()
3335
    result = getAllVendors_result()
3336
    result.success = self._handler.getAllVendors()
3337
    oprot.writeMessageBegin("getAllVendors", TMessageType.REPLY, seqid)
3338
    result.write(oprot)
3339
    oprot.writeMessageEnd()
3340
    oprot.trans.flush()
3341
 
3342
  def process_addVendorItemMapping(self, seqid, iprot, oprot):
3343
    args = addVendorItemMapping_args()
3344
    args.read(iprot)
3345
    iprot.readMessageEnd()
3346
    result = addVendorItemMapping_result()
3347
    try:
3348
      self._handler.addVendorItemMapping(args.key, args.vendorItemMapping)
3349
    except InventoryServiceException, cex:
3350
      result.cex = cex
3351
    oprot.writeMessageBegin("addVendorItemMapping", TMessageType.REPLY, seqid)
3352
    result.write(oprot)
3353
    oprot.writeMessageEnd()
3354
    oprot.trans.flush()
3355
 
3356
  def process_getVendorItemMappings(self, seqid, iprot, oprot):
3357
    args = getVendorItemMappings_args()
3358
    args.read(iprot)
3359
    iprot.readMessageEnd()
3360
    result = getVendorItemMappings_result()
3361
    try:
3362
      result.success = self._handler.getVendorItemMappings(args.itemId)
3363
    except InventoryServiceException, cex:
3364
      result.cex = cex
3365
    oprot.writeMessageBegin("getVendorItemMappings", TMessageType.REPLY, seqid)
3366
    result.write(oprot)
3367
    oprot.writeMessageEnd()
3368
    oprot.trans.flush()
3369
 
3370
  def process_getPendingOrdersInventory(self, seqid, iprot, oprot):
3371
    args = getPendingOrdersInventory_args()
3372
    args.read(iprot)
3373
    iprot.readMessageEnd()
3374
    result = getPendingOrdersInventory_result()
3375
    result.success = self._handler.getPendingOrdersInventory(args.vendorid)
3376
    oprot.writeMessageBegin("getPendingOrdersInventory", TMessageType.REPLY, seqid)
3377
    result.write(oprot)
3378
    oprot.writeMessageEnd()
3379
    oprot.trans.flush()
3380
 
3381
  def process_getWarehouses(self, seqid, iprot, oprot):
3382
    args = getWarehouses_args()
3383
    args.read(iprot)
3384
    iprot.readMessageEnd()
3385
    result = getWarehouses_result()
3386
    result.success = self._handler.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId)
3387
    oprot.writeMessageBegin("getWarehouses", TMessageType.REPLY, seqid)
3388
    result.write(oprot)
3389
    oprot.writeMessageEnd()
3390
    oprot.trans.flush()
3391
 
3392
  def process_resetAvailability(self, seqid, iprot, oprot):
3393
    args = resetAvailability_args()
3394
    args.read(iprot)
3395
    iprot.readMessageEnd()
3396
    result = resetAvailability_result()
3397
    try:
3398
      self._handler.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId)
3399
    except InventoryServiceException, cex:
3400
      result.cex = cex
3401
    oprot.writeMessageBegin("resetAvailability", TMessageType.REPLY, seqid)
3402
    result.write(oprot)
3403
    oprot.writeMessageEnd()
3404
    oprot.trans.flush()
3405
 
3406
  def process_resetAvailabilityForWarehouse(self, seqid, iprot, oprot):
3407
    args = resetAvailabilityForWarehouse_args()
3408
    args.read(iprot)
3409
    iprot.readMessageEnd()
3410
    result = resetAvailabilityForWarehouse_result()
3411
    try:
3412
      self._handler.resetAvailabilityForWarehouse(args.warehouseId)
3413
    except InventoryServiceException, cex:
3414
      result.cex = cex
3415
    oprot.writeMessageBegin("resetAvailabilityForWarehouse", TMessageType.REPLY, seqid)
3416
    result.write(oprot)
3417
    oprot.writeMessageEnd()
3418
    oprot.trans.flush()
3419
 
3420
  def process_getItemKeysToBeProcessed(self, seqid, iprot, oprot):
3421
    args = getItemKeysToBeProcessed_args()
3422
    args.read(iprot)
3423
    iprot.readMessageEnd()
3424
    result = getItemKeysToBeProcessed_result()
3425
    result.success = self._handler.getItemKeysToBeProcessed(args.warehouseId)
3426
    oprot.writeMessageBegin("getItemKeysToBeProcessed", TMessageType.REPLY, seqid)
3427
    result.write(oprot)
3428
    oprot.writeMessageEnd()
3429
    oprot.trans.flush()
3430
 
3431
  def process_markMissedInventoryUpdatesAsProcessed(self, seqid, iprot, oprot):
3432
    args = markMissedInventoryUpdatesAsProcessed_args()
3433
    args.read(iprot)
3434
    iprot.readMessageEnd()
3435
    result = markMissedInventoryUpdatesAsProcessed_result()
3436
    self._handler.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId)
3437
    oprot.writeMessageBegin("markMissedInventoryUpdatesAsProcessed", TMessageType.REPLY, seqid)
3438
    result.write(oprot)
3439
    oprot.writeMessageEnd()
3440
    oprot.trans.flush()
3441
 
3442
  def process_getIgnoredItemKeys(self, seqid, iprot, oprot):
3443
    args = getIgnoredItemKeys_args()
3444
    args.read(iprot)
3445
    iprot.readMessageEnd()
3446
    result = getIgnoredItemKeys_result()
3447
    result.success = self._handler.getIgnoredItemKeys()
3448
    oprot.writeMessageBegin("getIgnoredItemKeys", TMessageType.REPLY, seqid)
3449
    result.write(oprot)
3450
    oprot.writeMessageEnd()
3451
    oprot.trans.flush()
3452
 
3453
  def process_addBadInventory(self, seqid, iprot, oprot):
3454
    args = addBadInventory_args()
3455
    args.read(iprot)
3456
    iprot.readMessageEnd()
3457
    result = addBadInventory_result()
3458
    try:
3459
      self._handler.addBadInventory(args.itemId, args.warehouseId, args.quantity)
3460
    except InventoryServiceException, cex:
3461
      result.cex = cex
3462
    oprot.writeMessageBegin("addBadInventory", TMessageType.REPLY, seqid)
3463
    result.write(oprot)
3464
    oprot.writeMessageEnd()
3465
    oprot.trans.flush()
3466
 
3467
  def process_getShippingLocations(self, seqid, iprot, oprot):
3468
    args = getShippingLocations_args()
3469
    args.read(iprot)
3470
    iprot.readMessageEnd()
3471
    result = getShippingLocations_result()
3472
    result.success = self._handler.getShippingLocations()
3473
    oprot.writeMessageBegin("getShippingLocations", TMessageType.REPLY, seqid)
3474
    result.write(oprot)
3475
    oprot.writeMessageEnd()
3476
    oprot.trans.flush()
3477
 
3478
  def process_getAllVendorItemMappings(self, seqid, iprot, oprot):
3479
    args = getAllVendorItemMappings_args()
3480
    args.read(iprot)
3481
    iprot.readMessageEnd()
3482
    result = getAllVendorItemMappings_result()
3483
    result.success = self._handler.getAllVendorItemMappings()
3484
    oprot.writeMessageBegin("getAllVendorItemMappings", TMessageType.REPLY, seqid)
3485
    result.write(oprot)
3486
    oprot.writeMessageEnd()
3487
    oprot.trans.flush()
3488
 
3489
  def process_getInventorySnapshot(self, seqid, iprot, oprot):
3490
    args = getInventorySnapshot_args()
3491
    args.read(iprot)
3492
    iprot.readMessageEnd()
3493
    result = getInventorySnapshot_result()
3494
    result.success = self._handler.getInventorySnapshot(args.warehouseId)
3495
    oprot.writeMessageBegin("getInventorySnapshot", TMessageType.REPLY, seqid)
3496
    result.write(oprot)
3497
    oprot.writeMessageEnd()
3498
    oprot.trans.flush()
3499
 
3500
  def process_clearItemAvailabilityCache(self, seqid, iprot, oprot):
3501
    args = clearItemAvailabilityCache_args()
3502
    args.read(iprot)
3503
    iprot.readMessageEnd()
3504
    result = clearItemAvailabilityCache_result()
3505
    self._handler.clearItemAvailabilityCache()
3506
    oprot.writeMessageBegin("clearItemAvailabilityCache", TMessageType.REPLY, seqid)
3507
    result.write(oprot)
3508
    oprot.writeMessageEnd()
3509
    oprot.trans.flush()
3510
 
3511
  def process_updateVendorString(self, seqid, iprot, oprot):
3512
    args = updateVendorString_args()
3513
    args.read(iprot)
3514
    iprot.readMessageEnd()
3515
    result = updateVendorString_result()
3516
    self._handler.updateVendorString(args.warehouseId, args.vendorString)
3517
    oprot.writeMessageBegin("updateVendorString", TMessageType.REPLY, seqid)
3518
    result.write(oprot)
3519
    oprot.writeMessageEnd()
3520
    oprot.trans.flush()
3521
 
6096 amit.gupta 3522
  def process_clearItemAvailabilityCacheForItem(self, seqid, iprot, oprot):
3523
    args = clearItemAvailabilityCacheForItem_args()
3524
    args.read(iprot)
3525
    iprot.readMessageEnd()
3526
    result = clearItemAvailabilityCacheForItem_result()
3527
    self._handler.clearItemAvailabilityCacheForItem(args.item_id)
3528
    oprot.writeMessageBegin("clearItemAvailabilityCacheForItem", TMessageType.REPLY, seqid)
3529
    result.write(oprot)
3530
    oprot.writeMessageEnd()
3531
    oprot.trans.flush()
5944 mandeep.dh 3532
 
6467 amar.kumar 3533
  def process_getOurWarehouseIdForVendor(self, seqid, iprot, oprot):
3534
    args = getOurWarehouseIdForVendor_args()
3535
    args.read(iprot)
3536
    iprot.readMessageEnd()
3537
    result = getOurWarehouseIdForVendor_result()
7718 amar.kumar 3538
    result.success = self._handler.getOurWarehouseIdForVendor(args.vendorId, args.billingWarehouseId)
6467 amar.kumar 3539
    oprot.writeMessageBegin("getOurWarehouseIdForVendor", TMessageType.REPLY, seqid)
3540
    result.write(oprot)
3541
    oprot.writeMessageEnd()
3542
    oprot.trans.flush()
6096 amit.gupta 3543
 
6484 amar.kumar 3544
  def process_getItemAvailabilitiesAtOurWarehouses(self, seqid, iprot, oprot):
3545
    args = getItemAvailabilitiesAtOurWarehouses_args()
3546
    args.read(iprot)
3547
    iprot.readMessageEnd()
3548
    result = getItemAvailabilitiesAtOurWarehouses_result()
3549
    result.success = self._handler.getItemAvailabilitiesAtOurWarehouses(args.item_ids)
3550
    oprot.writeMessageBegin("getItemAvailabilitiesAtOurWarehouses", TMessageType.REPLY, seqid)
3551
    result.write(oprot)
3552
    oprot.writeMessageEnd()
3553
    oprot.trans.flush()
6467 amar.kumar 3554
 
6531 vikram.rag 3555
  def process_getMonitoredWarehouseForVendors(self, seqid, iprot, oprot):
3556
    args = getMonitoredWarehouseForVendors_args()
3557
    args.read(iprot)
3558
    iprot.readMessageEnd()
3559
    result = getMonitoredWarehouseForVendors_result()
3560
    result.success = self._handler.getMonitoredWarehouseForVendors(args.vendorIds)
3561
    oprot.writeMessageBegin("getMonitoredWarehouseForVendors", TMessageType.REPLY, seqid)
3562
    result.write(oprot)
3563
    oprot.writeMessageEnd()
3564
    oprot.trans.flush()
6484 amar.kumar 3565
 
6531 vikram.rag 3566
  def process_getIgnoredWarehouseidsAndItemids(self, seqid, iprot, oprot):
3567
    args = getIgnoredWarehouseidsAndItemids_args()
3568
    args.read(iprot)
3569
    iprot.readMessageEnd()
3570
    result = getIgnoredWarehouseidsAndItemids_result()
3571
    result.success = self._handler.getIgnoredWarehouseidsAndItemids()
3572
    oprot.writeMessageBegin("getIgnoredWarehouseidsAndItemids", TMessageType.REPLY, seqid)
3573
    result.write(oprot)
3574
    oprot.writeMessageEnd()
3575
    oprot.trans.flush()
3576
 
3577
  def process_insertItemtoIgnoreInventoryUpdatelist(self, seqid, iprot, oprot):
3578
    args = insertItemtoIgnoreInventoryUpdatelist_args()
3579
    args.read(iprot)
3580
    iprot.readMessageEnd()
3581
    result = insertItemtoIgnoreInventoryUpdatelist_result()
3582
    result.success = self._handler.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id)
3583
    oprot.writeMessageBegin("insertItemtoIgnoreInventoryUpdatelist", TMessageType.REPLY, seqid)
3584
    result.write(oprot)
3585
    oprot.writeMessageEnd()
3586
    oprot.trans.flush()
3587
 
3588
  def process_deleteItemFromIgnoredInventoryUpdateList(self, seqid, iprot, oprot):
3589
    args = deleteItemFromIgnoredInventoryUpdateList_args()
3590
    args.read(iprot)
3591
    iprot.readMessageEnd()
3592
    result = deleteItemFromIgnoredInventoryUpdateList_result()
3593
    result.success = self._handler.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id)
3594
    oprot.writeMessageBegin("deleteItemFromIgnoredInventoryUpdateList", TMessageType.REPLY, seqid)
3595
    result.write(oprot)
3596
    oprot.writeMessageEnd()
3597
    oprot.trans.flush()
3598
 
3599
  def process_getAllIgnoredInventoryupdateItemsCount(self, seqid, iprot, oprot):
3600
    args = getAllIgnoredInventoryupdateItemsCount_args()
3601
    args.read(iprot)
3602
    iprot.readMessageEnd()
3603
    result = getAllIgnoredInventoryupdateItemsCount_result()
3604
    result.success = self._handler.getAllIgnoredInventoryupdateItemsCount()
3605
    oprot.writeMessageBegin("getAllIgnoredInventoryupdateItemsCount", TMessageType.REPLY, seqid)
3606
    result.write(oprot)
3607
    oprot.writeMessageEnd()
3608
    oprot.trans.flush()
3609
 
3610
  def process_getIgnoredInventoryUpdateItemids(self, seqid, iprot, oprot):
3611
    args = getIgnoredInventoryUpdateItemids_args()
3612
    args.read(iprot)
3613
    iprot.readMessageEnd()
3614
    result = getIgnoredInventoryUpdateItemids_result()
3615
    result.success = self._handler.getIgnoredInventoryUpdateItemids(args.offset, args.limit)
3616
    oprot.writeMessageBegin("getIgnoredInventoryUpdateItemids", TMessageType.REPLY, seqid)
3617
    result.write(oprot)
3618
    oprot.writeMessageEnd()
3619
    oprot.trans.flush()
3620
 
6821 amar.kumar 3621
  def process_updateItemStockPurchaseParams(self, seqid, iprot, oprot):
3622
    args = updateItemStockPurchaseParams_args()
3623
    args.read(iprot)
3624
    iprot.readMessageEnd()
3625
    result = updateItemStockPurchaseParams_result()
3626
    self._handler.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel)
3627
    oprot.writeMessageBegin("updateItemStockPurchaseParams", TMessageType.REPLY, seqid)
3628
    result.write(oprot)
3629
    oprot.writeMessageEnd()
3630
    oprot.trans.flush()
6531 vikram.rag 3631
 
6821 amar.kumar 3632
  def process_getItemStockPurchaseParams(self, seqid, iprot, oprot):
3633
    args = getItemStockPurchaseParams_args()
3634
    args.read(iprot)
3635
    iprot.readMessageEnd()
3636
    result = getItemStockPurchaseParams_result()
3637
    result.success = self._handler.getItemStockPurchaseParams(args.itemId)
3638
    oprot.writeMessageBegin("getItemStockPurchaseParams", TMessageType.REPLY, seqid)
3639
    result.write(oprot)
3640
    oprot.writeMessageEnd()
3641
    oprot.trans.flush()
3642
 
3643
  def process_addOosStatusForItem(self, seqid, iprot, oprot):
3644
    args = addOosStatusForItem_args()
3645
    args.read(iprot)
3646
    iprot.readMessageEnd()
3647
    result = addOosStatusForItem_result()
3648
    self._handler.addOosStatusForItem(args.oosStatusMap, args.date)
3649
    oprot.writeMessageBegin("addOosStatusForItem", TMessageType.REPLY, seqid)
3650
    result.write(oprot)
3651
    oprot.writeMessageEnd()
3652
    oprot.trans.flush()
3653
 
6832 amar.kumar 3654
  def process_getOosStatusesForXDaysForItem(self, seqid, iprot, oprot):
3655
    args = getOosStatusesForXDaysForItem_args()
3656
    args.read(iprot)
3657
    iprot.readMessageEnd()
3658
    result = getOosStatusesForXDaysForItem_result()
9762 amar.kumar 3659
    result.success = self._handler.getOosStatusesForXDaysForItem(args.itemId, args.sourceId, args.days)
6832 amar.kumar 3660
    oprot.writeMessageBegin("getOosStatusesForXDaysForItem", TMessageType.REPLY, seqid)
3661
    result.write(oprot)
3662
    oprot.writeMessageEnd()
3663
    oprot.trans.flush()
6821 amar.kumar 3664
 
6857 amar.kumar 3665
  def process_getNonZeroItemStockPurchaseParams(self, seqid, iprot, oprot):
3666
    args = getNonZeroItemStockPurchaseParams_args()
3667
    args.read(iprot)
3668
    iprot.readMessageEnd()
3669
    result = getNonZeroItemStockPurchaseParams_result()
3670
    result.success = self._handler.getNonZeroItemStockPurchaseParams()
3671
    oprot.writeMessageBegin("getNonZeroItemStockPurchaseParams", TMessageType.REPLY, seqid)
3672
    result.write(oprot)
3673
    oprot.writeMessageEnd()
3674
    oprot.trans.flush()
6832 amar.kumar 3675
 
7149 amar.kumar 3676
  def process_getBillableInventoryAndPendingOrders(self, seqid, iprot, oprot):
3677
    args = getBillableInventoryAndPendingOrders_args()
3678
    args.read(iprot)
3679
    iprot.readMessageEnd()
3680
    result = getBillableInventoryAndPendingOrders_result()
3681
    result.success = self._handler.getBillableInventoryAndPendingOrders()
3682
    oprot.writeMessageBegin("getBillableInventoryAndPendingOrders", TMessageType.REPLY, seqid)
3683
    result.write(oprot)
3684
    oprot.writeMessageEnd()
3685
    oprot.trans.flush()
6857 amar.kumar 3686
 
7281 kshitij.so 3687
  def process_getWarehouseName(self, seqid, iprot, oprot):
3688
    args = getWarehouseName_args()
3689
    args.read(iprot)
3690
    iprot.readMessageEnd()
3691
    result = getWarehouseName_result()
3692
    result.success = self._handler.getWarehouseName(args.warehouse_id)
3693
    oprot.writeMessageBegin("getWarehouseName", TMessageType.REPLY, seqid)
3694
    result.write(oprot)
3695
    oprot.writeMessageEnd()
3696
    oprot.trans.flush()
7149 amar.kumar 3697
 
7281 kshitij.so 3698
  def process_getAmazonInventoryForItem(self, seqid, iprot, oprot):
3699
    args = getAmazonInventoryForItem_args()
3700
    args.read(iprot)
3701
    iprot.readMessageEnd()
3702
    result = getAmazonInventoryForItem_result()
3703
    result.success = self._handler.getAmazonInventoryForItem(args.item_id)
3704
    oprot.writeMessageBegin("getAmazonInventoryForItem", TMessageType.REPLY, seqid)
3705
    result.write(oprot)
3706
    oprot.writeMessageEnd()
3707
    oprot.trans.flush()
3708
 
3709
  def process_getAllAmazonInventory(self, seqid, iprot, oprot):
3710
    args = getAllAmazonInventory_args()
3711
    args.read(iprot)
3712
    iprot.readMessageEnd()
3713
    result = getAllAmazonInventory_result()
3714
    result.success = self._handler.getAllAmazonInventory()
3715
    oprot.writeMessageBegin("getAllAmazonInventory", TMessageType.REPLY, seqid)
3716
    result.write(oprot)
3717
    oprot.writeMessageEnd()
3718
    oprot.trans.flush()
3719
 
3720
  def process_addOrUpdateAmazonInventoryForItem(self, seqid, iprot, oprot):
3721
    args = addOrUpdateAmazonInventoryForItem_args()
3722
    args.read(iprot)
3723
    iprot.readMessageEnd()
3724
    result = addOrUpdateAmazonInventoryForItem_result()
3725
    self._handler.addOrUpdateAmazonInventoryForItem(args.amazonInventorySnapshot)
3726
    oprot.writeMessageBegin("addOrUpdateAmazonInventoryForItem", TMessageType.REPLY, seqid)
3727
    result.write(oprot)
3728
    oprot.writeMessageEnd()
3729
    oprot.trans.flush()
3730
 
7972 amar.kumar 3731
  def process_getLastNdaySaleForItem(self, seqid, iprot, oprot):
3732
    args = getLastNdaySaleForItem_args()
3733
    args.read(iprot)
3734
    iprot.readMessageEnd()
3735
    result = getLastNdaySaleForItem_result()
3736
    result.success = self._handler.getLastNdaySaleForItem(args.itemId, args.numberOfDays)
3737
    oprot.writeMessageBegin("getLastNdaySaleForItem", TMessageType.REPLY, seqid)
3738
    result.write(oprot)
3739
    oprot.writeMessageEnd()
3740
    oprot.trans.flush()
7281 kshitij.so 3741
 
8282 kshitij.so 3742
  def process_addOrUpdateAmazonFbaInventory(self, seqid, iprot, oprot):
3743
    args = addOrUpdateAmazonFbaInventory_args()
3744
    args.read(iprot)
3745
    iprot.readMessageEnd()
3746
    result = addOrUpdateAmazonFbaInventory_result()
3747
    self._handler.addOrUpdateAmazonFbaInventory(args.amazonfbainventorysnapshot)
3748
    oprot.writeMessageBegin("addOrUpdateAmazonFbaInventory", TMessageType.REPLY, seqid)
3749
    result.write(oprot)
3750
    oprot.writeMessageEnd()
3751
    oprot.trans.flush()
3752
 
8182 amar.kumar 3753
  def process_addUpdateHoldInventory(self, seqid, iprot, oprot):
3754
    args = addUpdateHoldInventory_args()
3755
    args.read(iprot)
3756
    iprot.readMessageEnd()
3757
    result = addUpdateHoldInventory_result()
9762 amar.kumar 3758
    try:
3759
      self._handler.addUpdateHoldInventory(args.itemId, args.warehouseId, args.holdQuantity, args.source)
3760
    except InventoryServiceException, cex:
3761
      result.cex = cex
8182 amar.kumar 3762
    oprot.writeMessageBegin("addUpdateHoldInventory", TMessageType.REPLY, seqid)
3763
    result.write(oprot)
3764
    oprot.writeMessageEnd()
3765
    oprot.trans.flush()
7972 amar.kumar 3766
 
8282 kshitij.so 3767
  def process_getAmazonFbaItemInventory(self, seqid, iprot, oprot):
3768
    args = getAmazonFbaItemInventory_args()
3769
    args.read(iprot)
3770
    iprot.readMessageEnd()
3771
    result = getAmazonFbaItemInventory_result()
3772
    result.success = self._handler.getAmazonFbaItemInventory(args.itemId)
3773
    oprot.writeMessageBegin("getAmazonFbaItemInventory", TMessageType.REPLY, seqid)
3774
    result.write(oprot)
3775
    oprot.writeMessageEnd()
3776
    oprot.trans.flush()
8182 amar.kumar 3777
 
8363 vikram.rag 3778
  def process_getAllAmazonFbaItemInventory(self, seqid, iprot, oprot):
3779
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 3780
    args.read(iprot)
3781
    iprot.readMessageEnd()
8363 vikram.rag 3782
    result = getAllAmazonFbaItemInventory_result()
3783
    result.success = self._handler.getAllAmazonFbaItemInventory()
3784
    oprot.writeMessageBegin("getAllAmazonFbaItemInventory", TMessageType.REPLY, seqid)
8282 kshitij.so 3785
    result.write(oprot)
3786
    oprot.writeMessageEnd()
3787
    oprot.trans.flush()
3788
 
8363 vikram.rag 3789
  def process_getOursGoodWarehouseIdsForLocation(self, seqid, iprot, oprot):
3790
    args = getOursGoodWarehouseIdsForLocation_args()
3791
    args.read(iprot)
3792
    iprot.readMessageEnd()
3793
    result = getOursGoodWarehouseIdsForLocation_result()
3794
    result.success = self._handler.getOursGoodWarehouseIdsForLocation(args.state_id)
3795
    oprot.writeMessageBegin("getOursGoodWarehouseIdsForLocation", TMessageType.REPLY, seqid)
3796
    result.write(oprot)
3797
    oprot.writeMessageEnd()
3798
    oprot.trans.flush()
8282 kshitij.so 3799
 
8955 vikram.rag 3800
  def process_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, seqid, iprot, oprot):
3801
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
3802
    args.read(iprot)
3803
    iprot.readMessageEnd()
3804
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
3805
    result.success = self._handler.getHoldInventoryDetailForItemForWarehouseIdExceptSource(args.id, args.warehouse_id, args.source)
3806
    oprot.writeMessageBegin("getHoldInventoryDetailForItemForWarehouseIdExceptSource", TMessageType.REPLY, seqid)
3807
    result.write(oprot)
3808
    oprot.writeMessageEnd()
3809
    oprot.trans.flush()
8363 vikram.rag 3810
 
9404 vikram.rag 3811
  def process_getSnapdealInventoryForItem(self, seqid, iprot, oprot):
3812
    args = getSnapdealInventoryForItem_args()
3813
    args.read(iprot)
3814
    iprot.readMessageEnd()
3815
    result = getSnapdealInventoryForItem_result()
3816
    result.success = self._handler.getSnapdealInventoryForItem(args.item_id)
3817
    oprot.writeMessageBegin("getSnapdealInventoryForItem", TMessageType.REPLY, seqid)
3818
    result.write(oprot)
3819
    oprot.writeMessageEnd()
3820
    oprot.trans.flush()
8955 vikram.rag 3821
 
9404 vikram.rag 3822
  def process_addOrUpdateSnapdealInventoryForItem(self, seqid, iprot, oprot):
3823
    args = addOrUpdateSnapdealInventoryForItem_args()
3824
    args.read(iprot)
3825
    iprot.readMessageEnd()
3826
    result = addOrUpdateSnapdealInventoryForItem_result()
3827
    self._handler.addOrUpdateSnapdealInventoryForItem(args.snapdealinventoryitem)
3828
    oprot.writeMessageBegin("addOrUpdateSnapdealInventoryForItem", TMessageType.REPLY, seqid)
3829
    result.write(oprot)
3830
    oprot.writeMessageEnd()
3831
    oprot.trans.flush()
3832
 
3833
  def process_getNlcForWarehouse(self, seqid, iprot, oprot):
3834
    args = getNlcForWarehouse_args()
3835
    args.read(iprot)
3836
    iprot.readMessageEnd()
3837
    result = getNlcForWarehouse_result()
3838
    result.success = self._handler.getNlcForWarehouse(args.warehouse_id, args.item_id)
3839
    oprot.writeMessageBegin("getNlcForWarehouse", TMessageType.REPLY, seqid)
3840
    result.write(oprot)
3841
    oprot.writeMessageEnd()
3842
    oprot.trans.flush()
3843
 
9640 amar.kumar 3844
  def process_getHeldInventoryMapForItem(self, seqid, iprot, oprot):
3845
    args = getHeldInventoryMapForItem_args()
3846
    args.read(iprot)
3847
    iprot.readMessageEnd()
3848
    result = getHeldInventoryMapForItem_result()
3849
    result.success = self._handler.getHeldInventoryMapForItem(args.item_id, args.warehouse_id)
3850
    oprot.writeMessageBegin("getHeldInventoryMapForItem", TMessageType.REPLY, seqid)
3851
    result.write(oprot)
3852
    oprot.writeMessageEnd()
3853
    oprot.trans.flush()
3854
 
9495 vikram.rag 3855
  def process_addOrUpdateAllAmazonFbaInventory(self, seqid, iprot, oprot):
3856
    args = addOrUpdateAllAmazonFbaInventory_args()
9456 vikram.rag 3857
    args.read(iprot)
3858
    iprot.readMessageEnd()
9495 vikram.rag 3859
    result = addOrUpdateAllAmazonFbaInventory_result()
3860
    self._handler.addOrUpdateAllAmazonFbaInventory(args.allamazonfbainventorysnapshot)
3861
    oprot.writeMessageBegin("addOrUpdateAllAmazonFbaInventory", TMessageType.REPLY, seqid)
9456 vikram.rag 3862
    result.write(oprot)
3863
    oprot.writeMessageEnd()
3864
    oprot.trans.flush()
9404 vikram.rag 3865
 
9495 vikram.rag 3866
  def process_addOrUpdateAllSnapdealInventory(self, seqid, iprot, oprot):
3867
    args = addOrUpdateAllSnapdealInventory_args()
9482 vikram.rag 3868
    args.read(iprot)
3869
    iprot.readMessageEnd()
9495 vikram.rag 3870
    result = addOrUpdateAllSnapdealInventory_result()
3871
    self._handler.addOrUpdateAllSnapdealInventory(args.allsnapdealinventorysnapshot)
3872
    oprot.writeMessageBegin("addOrUpdateAllSnapdealInventory", TMessageType.REPLY, seqid)
9482 vikram.rag 3873
    result.write(oprot)
3874
    oprot.writeMessageEnd()
3875
    oprot.trans.flush()
9456 vikram.rag 3876
 
9495 vikram.rag 3877
  def process_getSnapdealInventorySnapshot(self, seqid, iprot, oprot):
3878
    args = getSnapdealInventorySnapshot_args()
3879
    args.read(iprot)
3880
    iprot.readMessageEnd()
3881
    result = getSnapdealInventorySnapshot_result()
3882
    result.success = self._handler.getSnapdealInventorySnapshot()
3883
    oprot.writeMessageBegin("getSnapdealInventorySnapshot", TMessageType.REPLY, seqid)
3884
    result.write(oprot)
3885
    oprot.writeMessageEnd()
3886
    oprot.trans.flush()
9482 vikram.rag 3887
 
9761 amar.kumar 3888
  def process_getHoldInventoryDetails(self, seqid, iprot, oprot):
3889
    args = getHoldInventoryDetails_args()
3890
    args.read(iprot)
3891
    iprot.readMessageEnd()
3892
    result = getHoldInventoryDetails_result()
3893
    result.success = self._handler.getHoldInventoryDetails(args.itemId, args.warehouseId, args.source)
3894
    oprot.writeMessageBegin("getHoldInventoryDetails", TMessageType.REPLY, seqid)
3895
    result.write(oprot)
3896
    oprot.writeMessageEnd()
3897
    oprot.trans.flush()
9495 vikram.rag 3898
 
10050 vikram.rag 3899
  def process_addOrUpdateFlipkartInventorySnapshot(self, seqid, iprot, oprot):
3900
    args = addOrUpdateFlipkartInventorySnapshot_args()
3901
    args.read(iprot)
3902
    iprot.readMessageEnd()
3903
    result = addOrUpdateFlipkartInventorySnapshot_result()
3904
    self._handler.addOrUpdateFlipkartInventorySnapshot(args.flipkartInventorySnapshot)
3905
    oprot.writeMessageBegin("addOrUpdateFlipkartInventorySnapshot", TMessageType.REPLY, seqid)
3906
    result.write(oprot)
3907
    oprot.writeMessageEnd()
3908
    oprot.trans.flush()
9761 amar.kumar 3909
 
10050 vikram.rag 3910
  def process_getFlipkartInventorySnapshot(self, seqid, iprot, oprot):
3911
    args = getFlipkartInventorySnapshot_args()
3912
    args.read(iprot)
3913
    iprot.readMessageEnd()
3914
    result = getFlipkartInventorySnapshot_result()
3915
    result.success = self._handler.getFlipkartInventorySnapshot()
3916
    oprot.writeMessageBegin("getFlipkartInventorySnapshot", TMessageType.REPLY, seqid)
3917
    result.write(oprot)
3918
    oprot.writeMessageEnd()
3919
    oprot.trans.flush()
3920
 
10097 kshitij.so 3921
  def process_getFlipkartlInventoryForItem(self, seqid, iprot, oprot):
3922
    args = getFlipkartlInventoryForItem_args()
3923
    args.read(iprot)
3924
    iprot.readMessageEnd()
3925
    result = getFlipkartlInventoryForItem_result()
3926
    result.success = self._handler.getFlipkartlInventoryForItem(args.item_id)
3927
    oprot.writeMessageBegin("getFlipkartlInventoryForItem", TMessageType.REPLY, seqid)
3928
    result.write(oprot)
3929
    oprot.writeMessageEnd()
3930
    oprot.trans.flush()
10050 vikram.rag 3931
 
10097 kshitij.so 3932
 
5944 mandeep.dh 3933
# HELPER FUNCTIONS AND STRUCTURES
3934
 
3935
class addWarehouse_args:
3936
  """
3937
  Attributes:
3938
   - warehouse
3939
  """
3940
 
3941
  thrift_spec = (
3942
    None, # 0
3943
    (1, TType.STRUCT, 'warehouse', (Warehouse, Warehouse.thrift_spec), None, ), # 1
3944
  )
3945
 
3946
  def __init__(self, warehouse=None,):
3947
    self.warehouse = warehouse
3948
 
3949
  def read(self, iprot):
3950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3952
      return
3953
    iprot.readStructBegin()
3954
    while True:
3955
      (fname, ftype, fid) = iprot.readFieldBegin()
3956
      if ftype == TType.STOP:
3957
        break
3958
      if fid == 1:
3959
        if ftype == TType.STRUCT:
3960
          self.warehouse = Warehouse()
3961
          self.warehouse.read(iprot)
3962
        else:
3963
          iprot.skip(ftype)
3964
      else:
3965
        iprot.skip(ftype)
3966
      iprot.readFieldEnd()
3967
    iprot.readStructEnd()
3968
 
3969
  def write(self, oprot):
3970
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3971
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3972
      return
3973
    oprot.writeStructBegin('addWarehouse_args')
3974
    if self.warehouse is not None:
3975
      oprot.writeFieldBegin('warehouse', TType.STRUCT, 1)
3976
      self.warehouse.write(oprot)
3977
      oprot.writeFieldEnd()
3978
    oprot.writeFieldStop()
3979
    oprot.writeStructEnd()
3980
 
3981
  def validate(self):
3982
    return
3983
 
3984
 
3985
  def __repr__(self):
3986
    L = ['%s=%r' % (key, value)
3987
      for key, value in self.__dict__.iteritems()]
3988
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3989
 
3990
  def __eq__(self, other):
3991
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3992
 
3993
  def __ne__(self, other):
3994
    return not (self == other)
3995
 
3996
class addWarehouse_result:
3997
  """
3998
  Attributes:
3999
   - success
4000
   - cex
4001
  """
4002
 
4003
  thrift_spec = (
4004
    (0, TType.I64, 'success', None, None, ), # 0
4005
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4006
  )
4007
 
4008
  def __init__(self, success=None, cex=None,):
4009
    self.success = success
4010
    self.cex = cex
4011
 
4012
  def read(self, iprot):
4013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4015
      return
4016
    iprot.readStructBegin()
4017
    while True:
4018
      (fname, ftype, fid) = iprot.readFieldBegin()
4019
      if ftype == TType.STOP:
4020
        break
4021
      if fid == 0:
4022
        if ftype == TType.I64:
4023
          self.success = iprot.readI64();
4024
        else:
4025
          iprot.skip(ftype)
4026
      elif fid == 1:
4027
        if ftype == TType.STRUCT:
4028
          self.cex = InventoryServiceException()
4029
          self.cex.read(iprot)
4030
        else:
4031
          iprot.skip(ftype)
4032
      else:
4033
        iprot.skip(ftype)
4034
      iprot.readFieldEnd()
4035
    iprot.readStructEnd()
4036
 
4037
  def write(self, oprot):
4038
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4039
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4040
      return
4041
    oprot.writeStructBegin('addWarehouse_result')
4042
    if self.success is not None:
4043
      oprot.writeFieldBegin('success', TType.I64, 0)
4044
      oprot.writeI64(self.success)
4045
      oprot.writeFieldEnd()
4046
    if self.cex is not None:
4047
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4048
      self.cex.write(oprot)
4049
      oprot.writeFieldEnd()
4050
    oprot.writeFieldStop()
4051
    oprot.writeStructEnd()
4052
 
4053
  def validate(self):
4054
    return
4055
 
4056
 
4057
  def __repr__(self):
4058
    L = ['%s=%r' % (key, value)
4059
      for key, value in self.__dict__.iteritems()]
4060
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4061
 
4062
  def __eq__(self, other):
4063
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4064
 
4065
  def __ne__(self, other):
4066
    return not (self == other)
4067
 
4068
class addVendor_args:
4069
  """
4070
  Attributes:
4071
   - vendor
4072
  """
4073
 
4074
  thrift_spec = (
4075
    None, # 0
4076
    (1, TType.STRUCT, 'vendor', (Vendor, Vendor.thrift_spec), None, ), # 1
4077
  )
4078
 
4079
  def __init__(self, vendor=None,):
4080
    self.vendor = vendor
4081
 
4082
  def read(self, iprot):
4083
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4084
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4085
      return
4086
    iprot.readStructBegin()
4087
    while True:
4088
      (fname, ftype, fid) = iprot.readFieldBegin()
4089
      if ftype == TType.STOP:
4090
        break
4091
      if fid == 1:
4092
        if ftype == TType.STRUCT:
4093
          self.vendor = Vendor()
4094
          self.vendor.read(iprot)
4095
        else:
4096
          iprot.skip(ftype)
4097
      else:
4098
        iprot.skip(ftype)
4099
      iprot.readFieldEnd()
4100
    iprot.readStructEnd()
4101
 
4102
  def write(self, oprot):
4103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4105
      return
4106
    oprot.writeStructBegin('addVendor_args')
4107
    if self.vendor is not None:
4108
      oprot.writeFieldBegin('vendor', TType.STRUCT, 1)
4109
      self.vendor.write(oprot)
4110
      oprot.writeFieldEnd()
4111
    oprot.writeFieldStop()
4112
    oprot.writeStructEnd()
4113
 
4114
  def validate(self):
4115
    return
4116
 
4117
 
4118
  def __repr__(self):
4119
    L = ['%s=%r' % (key, value)
4120
      for key, value in self.__dict__.iteritems()]
4121
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4122
 
4123
  def __eq__(self, other):
4124
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4125
 
4126
  def __ne__(self, other):
4127
    return not (self == other)
4128
 
4129
class addVendor_result:
4130
  """
4131
  Attributes:
4132
   - success
4133
   - cex
4134
  """
4135
 
4136
  thrift_spec = (
4137
    (0, TType.I64, 'success', None, None, ), # 0
4138
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4139
  )
4140
 
4141
  def __init__(self, success=None, cex=None,):
4142
    self.success = success
4143
    self.cex = cex
4144
 
4145
  def read(self, iprot):
4146
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4147
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4148
      return
4149
    iprot.readStructBegin()
4150
    while True:
4151
      (fname, ftype, fid) = iprot.readFieldBegin()
4152
      if ftype == TType.STOP:
4153
        break
4154
      if fid == 0:
4155
        if ftype == TType.I64:
4156
          self.success = iprot.readI64();
4157
        else:
4158
          iprot.skip(ftype)
4159
      elif fid == 1:
4160
        if ftype == TType.STRUCT:
4161
          self.cex = InventoryServiceException()
4162
          self.cex.read(iprot)
4163
        else:
4164
          iprot.skip(ftype)
4165
      else:
4166
        iprot.skip(ftype)
4167
      iprot.readFieldEnd()
4168
    iprot.readStructEnd()
4169
 
4170
  def write(self, oprot):
4171
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4172
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4173
      return
4174
    oprot.writeStructBegin('addVendor_result')
4175
    if self.success is not None:
4176
      oprot.writeFieldBegin('success', TType.I64, 0)
4177
      oprot.writeI64(self.success)
4178
      oprot.writeFieldEnd()
4179
    if self.cex is not None:
4180
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4181
      self.cex.write(oprot)
4182
      oprot.writeFieldEnd()
4183
    oprot.writeFieldStop()
4184
    oprot.writeStructEnd()
4185
 
4186
  def validate(self):
4187
    return
4188
 
4189
 
4190
  def __repr__(self):
4191
    L = ['%s=%r' % (key, value)
4192
      for key, value in self.__dict__.iteritems()]
4193
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4194
 
4195
  def __eq__(self, other):
4196
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4197
 
4198
  def __ne__(self, other):
4199
    return not (self == other)
4200
 
4201
class updateInventoryHistory_args:
4202
  """
4203
  Attributes:
4204
   - warehouse_id
4205
   - timestamp
4206
   - availability
4207
  """
4208
 
4209
  thrift_spec = (
4210
    None, # 0
4211
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4212
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4213
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4214
  )
4215
 
4216
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4217
    self.warehouse_id = warehouse_id
4218
    self.timestamp = timestamp
4219
    self.availability = availability
4220
 
4221
  def read(self, iprot):
4222
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4223
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4224
      return
4225
    iprot.readStructBegin()
4226
    while True:
4227
      (fname, ftype, fid) = iprot.readFieldBegin()
4228
      if ftype == TType.STOP:
4229
        break
4230
      if fid == 1:
4231
        if ftype == TType.I64:
4232
          self.warehouse_id = iprot.readI64();
4233
        else:
4234
          iprot.skip(ftype)
4235
      elif fid == 2:
4236
        if ftype == TType.STRING:
4237
          self.timestamp = iprot.readString();
4238
        else:
4239
          iprot.skip(ftype)
4240
      elif fid == 3:
4241
        if ftype == TType.MAP:
4242
          self.availability = {}
8182 amar.kumar 4243
          (_ktype28, _vtype29, _size27 ) = iprot.readMapBegin() 
4244
          for _i31 in xrange(_size27):
4245
            _key32 = iprot.readString();
4246
            _val33 = iprot.readI64();
4247
            self.availability[_key32] = _val33
5944 mandeep.dh 4248
          iprot.readMapEnd()
4249
        else:
4250
          iprot.skip(ftype)
4251
      else:
4252
        iprot.skip(ftype)
4253
      iprot.readFieldEnd()
4254
    iprot.readStructEnd()
4255
 
4256
  def write(self, oprot):
4257
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4258
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4259
      return
4260
    oprot.writeStructBegin('updateInventoryHistory_args')
4261
    if self.warehouse_id is not None:
4262
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4263
      oprot.writeI64(self.warehouse_id)
4264
      oprot.writeFieldEnd()
4265
    if self.timestamp is not None:
4266
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4267
      oprot.writeString(self.timestamp)
4268
      oprot.writeFieldEnd()
4269
    if self.availability is not None:
4270
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4271
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4272
      for kiter34,viter35 in self.availability.items():
4273
        oprot.writeString(kiter34)
4274
        oprot.writeI64(viter35)
5944 mandeep.dh 4275
      oprot.writeMapEnd()
4276
      oprot.writeFieldEnd()
4277
    oprot.writeFieldStop()
4278
    oprot.writeStructEnd()
4279
 
4280
  def validate(self):
4281
    return
4282
 
4283
 
4284
  def __repr__(self):
4285
    L = ['%s=%r' % (key, value)
4286
      for key, value in self.__dict__.iteritems()]
4287
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4288
 
4289
  def __eq__(self, other):
4290
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4291
 
4292
  def __ne__(self, other):
4293
    return not (self == other)
4294
 
4295
class updateInventoryHistory_result:
4296
  """
4297
  Attributes:
4298
   - cex
4299
  """
4300
 
4301
  thrift_spec = (
4302
    None, # 0
4303
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4304
  )
4305
 
4306
  def __init__(self, cex=None,):
4307
    self.cex = cex
4308
 
4309
  def read(self, iprot):
4310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4312
      return
4313
    iprot.readStructBegin()
4314
    while True:
4315
      (fname, ftype, fid) = iprot.readFieldBegin()
4316
      if ftype == TType.STOP:
4317
        break
4318
      if fid == 1:
4319
        if ftype == TType.STRUCT:
4320
          self.cex = InventoryServiceException()
4321
          self.cex.read(iprot)
4322
        else:
4323
          iprot.skip(ftype)
4324
      else:
4325
        iprot.skip(ftype)
4326
      iprot.readFieldEnd()
4327
    iprot.readStructEnd()
4328
 
4329
  def write(self, oprot):
4330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4332
      return
4333
    oprot.writeStructBegin('updateInventoryHistory_result')
4334
    if self.cex is not None:
4335
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4336
      self.cex.write(oprot)
4337
      oprot.writeFieldEnd()
4338
    oprot.writeFieldStop()
4339
    oprot.writeStructEnd()
4340
 
4341
  def validate(self):
4342
    return
4343
 
4344
 
4345
  def __repr__(self):
4346
    L = ['%s=%r' % (key, value)
4347
      for key, value in self.__dict__.iteritems()]
4348
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4349
 
4350
  def __eq__(self, other):
4351
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4352
 
4353
  def __ne__(self, other):
4354
    return not (self == other)
4355
 
4356
class updateInventory_args:
4357
  """
4358
  Attributes:
4359
   - warehouse_id
4360
   - timestamp
4361
   - availability
4362
  """
4363
 
4364
  thrift_spec = (
4365
    None, # 0
4366
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4367
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4368
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4369
  )
4370
 
4371
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4372
    self.warehouse_id = warehouse_id
4373
    self.timestamp = timestamp
4374
    self.availability = availability
4375
 
4376
  def read(self, iprot):
4377
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4378
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4379
      return
4380
    iprot.readStructBegin()
4381
    while True:
4382
      (fname, ftype, fid) = iprot.readFieldBegin()
4383
      if ftype == TType.STOP:
4384
        break
4385
      if fid == 1:
4386
        if ftype == TType.I64:
4387
          self.warehouse_id = iprot.readI64();
4388
        else:
4389
          iprot.skip(ftype)
4390
      elif fid == 2:
4391
        if ftype == TType.STRING:
4392
          self.timestamp = iprot.readString();
4393
        else:
4394
          iprot.skip(ftype)
4395
      elif fid == 3:
4396
        if ftype == TType.MAP:
4397
          self.availability = {}
8182 amar.kumar 4398
          (_ktype37, _vtype38, _size36 ) = iprot.readMapBegin() 
4399
          for _i40 in xrange(_size36):
4400
            _key41 = iprot.readString();
4401
            _val42 = iprot.readI64();
4402
            self.availability[_key41] = _val42
5944 mandeep.dh 4403
          iprot.readMapEnd()
4404
        else:
4405
          iprot.skip(ftype)
4406
      else:
4407
        iprot.skip(ftype)
4408
      iprot.readFieldEnd()
4409
    iprot.readStructEnd()
4410
 
4411
  def write(self, oprot):
4412
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4413
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4414
      return
4415
    oprot.writeStructBegin('updateInventory_args')
4416
    if self.warehouse_id is not None:
4417
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4418
      oprot.writeI64(self.warehouse_id)
4419
      oprot.writeFieldEnd()
4420
    if self.timestamp is not None:
4421
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4422
      oprot.writeString(self.timestamp)
4423
      oprot.writeFieldEnd()
4424
    if self.availability is not None:
4425
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4426
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4427
      for kiter43,viter44 in self.availability.items():
4428
        oprot.writeString(kiter43)
4429
        oprot.writeI64(viter44)
5944 mandeep.dh 4430
      oprot.writeMapEnd()
4431
      oprot.writeFieldEnd()
4432
    oprot.writeFieldStop()
4433
    oprot.writeStructEnd()
4434
 
4435
  def validate(self):
4436
    return
4437
 
4438
 
4439
  def __repr__(self):
4440
    L = ['%s=%r' % (key, value)
4441
      for key, value in self.__dict__.iteritems()]
4442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4443
 
4444
  def __eq__(self, other):
4445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4446
 
4447
  def __ne__(self, other):
4448
    return not (self == other)
4449
 
4450
class updateInventory_result:
4451
  """
4452
  Attributes:
4453
   - cex
4454
  """
4455
 
4456
  thrift_spec = (
4457
    None, # 0
4458
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4459
  )
4460
 
4461
  def __init__(self, cex=None,):
4462
    self.cex = cex
4463
 
4464
  def read(self, iprot):
4465
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4466
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4467
      return
4468
    iprot.readStructBegin()
4469
    while True:
4470
      (fname, ftype, fid) = iprot.readFieldBegin()
4471
      if ftype == TType.STOP:
4472
        break
4473
      if fid == 1:
4474
        if ftype == TType.STRUCT:
4475
          self.cex = InventoryServiceException()
4476
          self.cex.read(iprot)
4477
        else:
4478
          iprot.skip(ftype)
4479
      else:
4480
        iprot.skip(ftype)
4481
      iprot.readFieldEnd()
4482
    iprot.readStructEnd()
4483
 
4484
  def write(self, oprot):
4485
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4486
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4487
      return
4488
    oprot.writeStructBegin('updateInventory_result')
4489
    if self.cex is not None:
4490
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4491
      self.cex.write(oprot)
4492
      oprot.writeFieldEnd()
4493
    oprot.writeFieldStop()
4494
    oprot.writeStructEnd()
4495
 
4496
  def validate(self):
4497
    return
4498
 
4499
 
4500
  def __repr__(self):
4501
    L = ['%s=%r' % (key, value)
4502
      for key, value in self.__dict__.iteritems()]
4503
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4504
 
4505
  def __eq__(self, other):
4506
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4507
 
4508
  def __ne__(self, other):
4509
    return not (self == other)
4510
 
4511
class addInventory_args:
4512
  """
4513
  Attributes:
4514
   - itemId
4515
   - warehouseId
4516
   - quantity
4517
  """
4518
 
4519
  thrift_spec = (
4520
    None, # 0
4521
    (1, TType.I64, 'itemId', None, None, ), # 1
4522
    (2, TType.I64, 'warehouseId', None, None, ), # 2
4523
    (3, TType.I64, 'quantity', None, None, ), # 3
4524
  )
4525
 
4526
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
4527
    self.itemId = itemId
4528
    self.warehouseId = warehouseId
4529
    self.quantity = quantity
4530
 
4531
  def read(self, iprot):
4532
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4533
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4534
      return
4535
    iprot.readStructBegin()
4536
    while True:
4537
      (fname, ftype, fid) = iprot.readFieldBegin()
4538
      if ftype == TType.STOP:
4539
        break
4540
      if fid == 1:
4541
        if ftype == TType.I64:
4542
          self.itemId = iprot.readI64();
4543
        else:
4544
          iprot.skip(ftype)
4545
      elif fid == 2:
4546
        if ftype == TType.I64:
4547
          self.warehouseId = iprot.readI64();
4548
        else:
4549
          iprot.skip(ftype)
4550
      elif fid == 3:
4551
        if ftype == TType.I64:
4552
          self.quantity = iprot.readI64();
4553
        else:
4554
          iprot.skip(ftype)
4555
      else:
4556
        iprot.skip(ftype)
4557
      iprot.readFieldEnd()
4558
    iprot.readStructEnd()
4559
 
4560
  def write(self, oprot):
4561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4563
      return
4564
    oprot.writeStructBegin('addInventory_args')
4565
    if self.itemId is not None:
4566
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4567
      oprot.writeI64(self.itemId)
4568
      oprot.writeFieldEnd()
4569
    if self.warehouseId is not None:
4570
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
4571
      oprot.writeI64(self.warehouseId)
4572
      oprot.writeFieldEnd()
4573
    if self.quantity is not None:
4574
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4575
      oprot.writeI64(self.quantity)
4576
      oprot.writeFieldEnd()
4577
    oprot.writeFieldStop()
4578
    oprot.writeStructEnd()
4579
 
4580
  def validate(self):
4581
    return
4582
 
4583
 
4584
  def __repr__(self):
4585
    L = ['%s=%r' % (key, value)
4586
      for key, value in self.__dict__.iteritems()]
4587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4588
 
4589
  def __eq__(self, other):
4590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4591
 
4592
  def __ne__(self, other):
4593
    return not (self == other)
4594
 
4595
class addInventory_result:
4596
  """
4597
  Attributes:
4598
   - cex
4599
  """
4600
 
4601
  thrift_spec = (
4602
    None, # 0
4603
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4604
  )
4605
 
4606
  def __init__(self, cex=None,):
4607
    self.cex = cex
4608
 
4609
  def read(self, iprot):
4610
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4611
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4612
      return
4613
    iprot.readStructBegin()
4614
    while True:
4615
      (fname, ftype, fid) = iprot.readFieldBegin()
4616
      if ftype == TType.STOP:
4617
        break
4618
      if fid == 1:
4619
        if ftype == TType.STRUCT:
4620
          self.cex = InventoryServiceException()
4621
          self.cex.read(iprot)
4622
        else:
4623
          iprot.skip(ftype)
4624
      else:
4625
        iprot.skip(ftype)
4626
      iprot.readFieldEnd()
4627
    iprot.readStructEnd()
4628
 
4629
  def write(self, oprot):
4630
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4631
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4632
      return
4633
    oprot.writeStructBegin('addInventory_result')
4634
    if self.cex is not None:
4635
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4636
      self.cex.write(oprot)
4637
      oprot.writeFieldEnd()
4638
    oprot.writeFieldStop()
4639
    oprot.writeStructEnd()
4640
 
4641
  def validate(self):
4642
    return
4643
 
4644
 
4645
  def __repr__(self):
4646
    L = ['%s=%r' % (key, value)
4647
      for key, value in self.__dict__.iteritems()]
4648
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4649
 
4650
  def __eq__(self, other):
4651
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4652
 
4653
  def __ne__(self, other):
4654
    return not (self == other)
4655
 
4656
class retireWarehouse_args:
4657
  """
4658
  Attributes:
4659
   - warehouse_id
4660
  """
4661
 
4662
  thrift_spec = (
4663
    None, # 0
4664
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4665
  )
4666
 
4667
  def __init__(self, warehouse_id=None,):
4668
    self.warehouse_id = warehouse_id
4669
 
4670
  def read(self, iprot):
4671
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4672
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4673
      return
4674
    iprot.readStructBegin()
4675
    while True:
4676
      (fname, ftype, fid) = iprot.readFieldBegin()
4677
      if ftype == TType.STOP:
4678
        break
4679
      if fid == 1:
4680
        if ftype == TType.I64:
4681
          self.warehouse_id = iprot.readI64();
4682
        else:
4683
          iprot.skip(ftype)
4684
      else:
4685
        iprot.skip(ftype)
4686
      iprot.readFieldEnd()
4687
    iprot.readStructEnd()
4688
 
4689
  def write(self, oprot):
4690
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4691
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4692
      return
4693
    oprot.writeStructBegin('retireWarehouse_args')
4694
    if self.warehouse_id is not None:
4695
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4696
      oprot.writeI64(self.warehouse_id)
4697
      oprot.writeFieldEnd()
4698
    oprot.writeFieldStop()
4699
    oprot.writeStructEnd()
4700
 
4701
  def validate(self):
4702
    return
4703
 
4704
 
4705
  def __repr__(self):
4706
    L = ['%s=%r' % (key, value)
4707
      for key, value in self.__dict__.iteritems()]
4708
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4709
 
4710
  def __eq__(self, other):
4711
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4712
 
4713
  def __ne__(self, other):
4714
    return not (self == other)
4715
 
4716
class retireWarehouse_result:
4717
  """
4718
  Attributes:
4719
   - cex
4720
  """
4721
 
4722
  thrift_spec = (
4723
    None, # 0
4724
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4725
  )
4726
 
4727
  def __init__(self, cex=None,):
4728
    self.cex = cex
4729
 
4730
  def read(self, iprot):
4731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4733
      return
4734
    iprot.readStructBegin()
4735
    while True:
4736
      (fname, ftype, fid) = iprot.readFieldBegin()
4737
      if ftype == TType.STOP:
4738
        break
4739
      if fid == 1:
4740
        if ftype == TType.STRUCT:
4741
          self.cex = InventoryServiceException()
4742
          self.cex.read(iprot)
4743
        else:
4744
          iprot.skip(ftype)
4745
      else:
4746
        iprot.skip(ftype)
4747
      iprot.readFieldEnd()
4748
    iprot.readStructEnd()
4749
 
4750
  def write(self, oprot):
4751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4753
      return
4754
    oprot.writeStructBegin('retireWarehouse_result')
4755
    if self.cex is not None:
4756
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4757
      self.cex.write(oprot)
4758
      oprot.writeFieldEnd()
4759
    oprot.writeFieldStop()
4760
    oprot.writeStructEnd()
4761
 
4762
  def validate(self):
4763
    return
4764
 
4765
 
4766
  def __repr__(self):
4767
    L = ['%s=%r' % (key, value)
4768
      for key, value in self.__dict__.iteritems()]
4769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4770
 
4771
  def __eq__(self, other):
4772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4773
 
4774
  def __ne__(self, other):
4775
    return not (self == other)
4776
 
4777
class getItemInventoryByItemId_args:
4778
  """
4779
  Attributes:
4780
   - item_id
4781
  """
4782
 
4783
  thrift_spec = (
4784
    None, # 0
4785
    (1, TType.I64, 'item_id', None, None, ), # 1
4786
  )
4787
 
4788
  def __init__(self, item_id=None,):
4789
    self.item_id = item_id
4790
 
4791
  def read(self, iprot):
4792
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4793
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4794
      return
4795
    iprot.readStructBegin()
4796
    while True:
4797
      (fname, ftype, fid) = iprot.readFieldBegin()
4798
      if ftype == TType.STOP:
4799
        break
4800
      if fid == 1:
4801
        if ftype == TType.I64:
4802
          self.item_id = iprot.readI64();
4803
        else:
4804
          iprot.skip(ftype)
4805
      else:
4806
        iprot.skip(ftype)
4807
      iprot.readFieldEnd()
4808
    iprot.readStructEnd()
4809
 
4810
  def write(self, oprot):
4811
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4812
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4813
      return
4814
    oprot.writeStructBegin('getItemInventoryByItemId_args')
4815
    if self.item_id is not None:
4816
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4817
      oprot.writeI64(self.item_id)
4818
      oprot.writeFieldEnd()
4819
    oprot.writeFieldStop()
4820
    oprot.writeStructEnd()
4821
 
4822
  def validate(self):
4823
    return
4824
 
4825
 
4826
  def __repr__(self):
4827
    L = ['%s=%r' % (key, value)
4828
      for key, value in self.__dict__.iteritems()]
4829
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4830
 
4831
  def __eq__(self, other):
4832
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4833
 
4834
  def __ne__(self, other):
4835
    return not (self == other)
4836
 
4837
class getItemInventoryByItemId_result:
4838
  """
4839
  Attributes:
4840
   - success
4841
   - cex
4842
  """
4843
 
4844
  thrift_spec = (
4845
    (0, TType.STRUCT, 'success', (ItemInventory, ItemInventory.thrift_spec), None, ), # 0
4846
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4847
  )
4848
 
4849
  def __init__(self, success=None, cex=None,):
4850
    self.success = success
4851
    self.cex = cex
4852
 
4853
  def read(self, iprot):
4854
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4855
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4856
      return
4857
    iprot.readStructBegin()
4858
    while True:
4859
      (fname, ftype, fid) = iprot.readFieldBegin()
4860
      if ftype == TType.STOP:
4861
        break
4862
      if fid == 0:
4863
        if ftype == TType.STRUCT:
4864
          self.success = ItemInventory()
4865
          self.success.read(iprot)
4866
        else:
4867
          iprot.skip(ftype)
4868
      elif fid == 1:
4869
        if ftype == TType.STRUCT:
4870
          self.cex = InventoryServiceException()
4871
          self.cex.read(iprot)
4872
        else:
4873
          iprot.skip(ftype)
4874
      else:
4875
        iprot.skip(ftype)
4876
      iprot.readFieldEnd()
4877
    iprot.readStructEnd()
4878
 
4879
  def write(self, oprot):
4880
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4881
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4882
      return
4883
    oprot.writeStructBegin('getItemInventoryByItemId_result')
4884
    if self.success is not None:
4885
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4886
      self.success.write(oprot)
4887
      oprot.writeFieldEnd()
4888
    if self.cex is not None:
4889
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4890
      self.cex.write(oprot)
4891
      oprot.writeFieldEnd()
4892
    oprot.writeFieldStop()
4893
    oprot.writeStructEnd()
4894
 
4895
  def validate(self):
4896
    return
4897
 
4898
 
4899
  def __repr__(self):
4900
    L = ['%s=%r' % (key, value)
4901
      for key, value in self.__dict__.iteritems()]
4902
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4903
 
4904
  def __eq__(self, other):
4905
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4906
 
4907
  def __ne__(self, other):
4908
    return not (self == other)
4909
 
4910
class getItemAvailibilityAtWarehouse_args:
4911
  """
4912
  Attributes:
4913
   - warehouse_id
4914
   - item_id
4915
  """
4916
 
4917
  thrift_spec = (
4918
    None, # 0
4919
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4920
    (2, TType.I64, 'item_id', None, None, ), # 2
4921
  )
4922
 
4923
  def __init__(self, warehouse_id=None, item_id=None,):
4924
    self.warehouse_id = warehouse_id
4925
    self.item_id = item_id
4926
 
4927
  def read(self, iprot):
4928
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4929
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4930
      return
4931
    iprot.readStructBegin()
4932
    while True:
4933
      (fname, ftype, fid) = iprot.readFieldBegin()
4934
      if ftype == TType.STOP:
4935
        break
4936
      if fid == 1:
4937
        if ftype == TType.I64:
4938
          self.warehouse_id = iprot.readI64();
4939
        else:
4940
          iprot.skip(ftype)
4941
      elif fid == 2:
4942
        if ftype == TType.I64:
4943
          self.item_id = iprot.readI64();
4944
        else:
4945
          iprot.skip(ftype)
4946
      else:
4947
        iprot.skip(ftype)
4948
      iprot.readFieldEnd()
4949
    iprot.readStructEnd()
4950
 
4951
  def write(self, oprot):
4952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4954
      return
4955
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_args')
4956
    if self.warehouse_id is not None:
4957
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4958
      oprot.writeI64(self.warehouse_id)
4959
      oprot.writeFieldEnd()
4960
    if self.item_id is not None:
4961
      oprot.writeFieldBegin('item_id', TType.I64, 2)
4962
      oprot.writeI64(self.item_id)
4963
      oprot.writeFieldEnd()
4964
    oprot.writeFieldStop()
4965
    oprot.writeStructEnd()
4966
 
4967
  def validate(self):
4968
    return
4969
 
4970
 
4971
  def __repr__(self):
4972
    L = ['%s=%r' % (key, value)
4973
      for key, value in self.__dict__.iteritems()]
4974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4975
 
4976
  def __eq__(self, other):
4977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4978
 
4979
  def __ne__(self, other):
4980
    return not (self == other)
4981
 
4982
class getItemAvailibilityAtWarehouse_result:
4983
  """
4984
  Attributes:
4985
   - success
4986
   - cex
4987
  """
4988
 
4989
  thrift_spec = (
4990
    (0, TType.I64, 'success', None, None, ), # 0
4991
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4992
  )
4993
 
4994
  def __init__(self, success=None, cex=None,):
4995
    self.success = success
4996
    self.cex = cex
4997
 
4998
  def read(self, iprot):
4999
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5000
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5001
      return
5002
    iprot.readStructBegin()
5003
    while True:
5004
      (fname, ftype, fid) = iprot.readFieldBegin()
5005
      if ftype == TType.STOP:
5006
        break
5007
      if fid == 0:
5008
        if ftype == TType.I64:
5009
          self.success = iprot.readI64();
5010
        else:
5011
          iprot.skip(ftype)
5012
      elif fid == 1:
5013
        if ftype == TType.STRUCT:
5014
          self.cex = InventoryServiceException()
5015
          self.cex.read(iprot)
5016
        else:
5017
          iprot.skip(ftype)
5018
      else:
5019
        iprot.skip(ftype)
5020
      iprot.readFieldEnd()
5021
    iprot.readStructEnd()
5022
 
5023
  def write(self, oprot):
5024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5026
      return
5027
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_result')
5028
    if self.success is not None:
5029
      oprot.writeFieldBegin('success', TType.I64, 0)
5030
      oprot.writeI64(self.success)
5031
      oprot.writeFieldEnd()
5032
    if self.cex is not None:
5033
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5034
      self.cex.write(oprot)
5035
      oprot.writeFieldEnd()
5036
    oprot.writeFieldStop()
5037
    oprot.writeStructEnd()
5038
 
5039
  def validate(self):
5040
    return
5041
 
5042
 
5043
  def __repr__(self):
5044
    L = ['%s=%r' % (key, value)
5045
      for key, value in self.__dict__.iteritems()]
5046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5047
 
5048
  def __eq__(self, other):
5049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5050
 
5051
  def __ne__(self, other):
5052
    return not (self == other)
5053
 
5054
class getItemAvailabilityAtLocation_args:
5055
  """
5056
  Attributes:
5057
   - itemId
5978 rajveer 5058
   - sourceId
5944 mandeep.dh 5059
  """
5060
 
5061
  thrift_spec = (
5062
    None, # 0
5063
    (1, TType.I64, 'itemId', None, None, ), # 1
5978 rajveer 5064
    (2, TType.I64, 'sourceId', None, None, ), # 2
5944 mandeep.dh 5065
  )
5066
 
5978 rajveer 5067
  def __init__(self, itemId=None, sourceId=None,):
5944 mandeep.dh 5068
    self.itemId = itemId
5978 rajveer 5069
    self.sourceId = sourceId
5944 mandeep.dh 5070
 
5071
  def read(self, iprot):
5072
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5073
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5074
      return
5075
    iprot.readStructBegin()
5076
    while True:
5077
      (fname, ftype, fid) = iprot.readFieldBegin()
5078
      if ftype == TType.STOP:
5079
        break
5080
      if fid == 1:
5081
        if ftype == TType.I64:
5082
          self.itemId = iprot.readI64();
5083
        else:
5084
          iprot.skip(ftype)
5978 rajveer 5085
      elif fid == 2:
5086
        if ftype == TType.I64:
5087
          self.sourceId = iprot.readI64();
5088
        else:
5089
          iprot.skip(ftype)
5944 mandeep.dh 5090
      else:
5091
        iprot.skip(ftype)
5092
      iprot.readFieldEnd()
5093
    iprot.readStructEnd()
5094
 
5095
  def write(self, oprot):
5096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5098
      return
5099
    oprot.writeStructBegin('getItemAvailabilityAtLocation_args')
5100
    if self.itemId is not None:
5101
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5102
      oprot.writeI64(self.itemId)
5103
      oprot.writeFieldEnd()
5978 rajveer 5104
    if self.sourceId is not None:
5105
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
5106
      oprot.writeI64(self.sourceId)
5107
      oprot.writeFieldEnd()
5944 mandeep.dh 5108
    oprot.writeFieldStop()
5109
    oprot.writeStructEnd()
5110
 
5111
  def validate(self):
5112
    return
5113
 
5114
 
5115
  def __repr__(self):
5116
    L = ['%s=%r' % (key, value)
5117
      for key, value in self.__dict__.iteritems()]
5118
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5119
 
5120
  def __eq__(self, other):
5121
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5122
 
5123
  def __ne__(self, other):
5124
    return not (self == other)
5125
 
5126
class getItemAvailabilityAtLocation_result:
5127
  """
5128
  Attributes:
5129
   - success
5130
   - isex
5131
  """
5132
 
5133
  thrift_spec = (
5134
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5135
    (1, TType.STRUCT, 'isex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5136
  )
5137
 
5138
  def __init__(self, success=None, isex=None,):
5139
    self.success = success
5140
    self.isex = isex
5141
 
5142
  def read(self, iprot):
5143
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5144
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5145
      return
5146
    iprot.readStructBegin()
5147
    while True:
5148
      (fname, ftype, fid) = iprot.readFieldBegin()
5149
      if ftype == TType.STOP:
5150
        break
5151
      if fid == 0:
5152
        if ftype == TType.LIST:
5153
          self.success = []
8182 amar.kumar 5154
          (_etype48, _size45) = iprot.readListBegin()
5155
          for _i49 in xrange(_size45):
5156
            _elem50 = iprot.readI64();
5157
            self.success.append(_elem50)
5944 mandeep.dh 5158
          iprot.readListEnd()
5159
        else:
5160
          iprot.skip(ftype)
5161
      elif fid == 1:
5162
        if ftype == TType.STRUCT:
5163
          self.isex = InventoryServiceException()
5164
          self.isex.read(iprot)
5165
        else:
5166
          iprot.skip(ftype)
5167
      else:
5168
        iprot.skip(ftype)
5169
      iprot.readFieldEnd()
5170
    iprot.readStructEnd()
5171
 
5172
  def write(self, oprot):
5173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5175
      return
5176
    oprot.writeStructBegin('getItemAvailabilityAtLocation_result')
5177
    if self.success is not None:
5178
      oprot.writeFieldBegin('success', TType.LIST, 0)
5179
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5180
      for iter51 in self.success:
5181
        oprot.writeI64(iter51)
5944 mandeep.dh 5182
      oprot.writeListEnd()
5183
      oprot.writeFieldEnd()
5184
    if self.isex is not None:
5185
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
5186
      self.isex.write(oprot)
5187
      oprot.writeFieldEnd()
5188
    oprot.writeFieldStop()
5189
    oprot.writeStructEnd()
5190
 
5191
  def validate(self):
5192
    return
5193
 
5194
 
5195
  def __repr__(self):
5196
    L = ['%s=%r' % (key, value)
5197
      for key, value in self.__dict__.iteritems()]
5198
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5199
 
5200
  def __eq__(self, other):
5201
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5202
 
5203
  def __ne__(self, other):
5204
    return not (self == other)
5205
 
5206
class getAllWarehouses_args:
5207
  """
5208
  Attributes:
5209
   - isActive
5210
  """
5211
 
5212
  thrift_spec = (
5213
    None, # 0
5214
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5215
  )
5216
 
5217
  def __init__(self, isActive=None,):
5218
    self.isActive = isActive
5219
 
5220
  def read(self, iprot):
5221
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5222
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5223
      return
5224
    iprot.readStructBegin()
5225
    while True:
5226
      (fname, ftype, fid) = iprot.readFieldBegin()
5227
      if ftype == TType.STOP:
5228
        break
5229
      if fid == 1:
5230
        if ftype == TType.BOOL:
5231
          self.isActive = iprot.readBool();
5232
        else:
5233
          iprot.skip(ftype)
5234
      else:
5235
        iprot.skip(ftype)
5236
      iprot.readFieldEnd()
5237
    iprot.readStructEnd()
5238
 
5239
  def write(self, oprot):
5240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5242
      return
5243
    oprot.writeStructBegin('getAllWarehouses_args')
5244
    if self.isActive is not None:
5245
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5246
      oprot.writeBool(self.isActive)
5247
      oprot.writeFieldEnd()
5248
    oprot.writeFieldStop()
5249
    oprot.writeStructEnd()
5250
 
5251
  def validate(self):
5252
    return
5253
 
5254
 
5255
  def __repr__(self):
5256
    L = ['%s=%r' % (key, value)
5257
      for key, value in self.__dict__.iteritems()]
5258
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5259
 
5260
  def __eq__(self, other):
5261
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5262
 
5263
  def __ne__(self, other):
5264
    return not (self == other)
5265
 
5266
class getAllWarehouses_result:
5267
  """
5268
  Attributes:
5269
   - success
5270
   - cex
5271
  """
5272
 
5273
  thrift_spec = (
5274
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
5275
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5276
  )
5277
 
5278
  def __init__(self, success=None, cex=None,):
5279
    self.success = success
5280
    self.cex = cex
5281
 
5282
  def read(self, iprot):
5283
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5284
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5285
      return
5286
    iprot.readStructBegin()
5287
    while True:
5288
      (fname, ftype, fid) = iprot.readFieldBegin()
5289
      if ftype == TType.STOP:
5290
        break
5291
      if fid == 0:
5292
        if ftype == TType.LIST:
5293
          self.success = []
8182 amar.kumar 5294
          (_etype55, _size52) = iprot.readListBegin()
5295
          for _i56 in xrange(_size52):
5296
            _elem57 = Warehouse()
5297
            _elem57.read(iprot)
5298
            self.success.append(_elem57)
5944 mandeep.dh 5299
          iprot.readListEnd()
5300
        else:
5301
          iprot.skip(ftype)
5302
      elif fid == 1:
5303
        if ftype == TType.STRUCT:
5304
          self.cex = InventoryServiceException()
5305
          self.cex.read(iprot)
5306
        else:
5307
          iprot.skip(ftype)
5308
      else:
5309
        iprot.skip(ftype)
5310
      iprot.readFieldEnd()
5311
    iprot.readStructEnd()
5312
 
5313
  def write(self, oprot):
5314
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5315
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5316
      return
5317
    oprot.writeStructBegin('getAllWarehouses_result')
5318
    if self.success is not None:
5319
      oprot.writeFieldBegin('success', TType.LIST, 0)
5320
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 5321
      for iter58 in self.success:
5322
        iter58.write(oprot)
5944 mandeep.dh 5323
      oprot.writeListEnd()
5324
      oprot.writeFieldEnd()
5325
    if self.cex is not None:
5326
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5327
      self.cex.write(oprot)
5328
      oprot.writeFieldEnd()
5329
    oprot.writeFieldStop()
5330
    oprot.writeStructEnd()
5331
 
5332
  def validate(self):
5333
    return
5334
 
5335
 
5336
  def __repr__(self):
5337
    L = ['%s=%r' % (key, value)
5338
      for key, value in self.__dict__.iteritems()]
5339
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5340
 
5341
  def __eq__(self, other):
5342
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5343
 
5344
  def __ne__(self, other):
5345
    return not (self == other)
5346
 
5347
class getWarehouse_args:
5348
  """
5349
  Attributes:
5350
   - warehouse_id
5351
  """
5352
 
5353
  thrift_spec = (
5354
    None, # 0
5355
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5356
  )
5357
 
5358
  def __init__(self, warehouse_id=None,):
5359
    self.warehouse_id = warehouse_id
5360
 
5361
  def read(self, iprot):
5362
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5363
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5364
      return
5365
    iprot.readStructBegin()
5366
    while True:
5367
      (fname, ftype, fid) = iprot.readFieldBegin()
5368
      if ftype == TType.STOP:
5369
        break
5370
      if fid == 1:
5371
        if ftype == TType.I64:
5372
          self.warehouse_id = iprot.readI64();
5373
        else:
5374
          iprot.skip(ftype)
5375
      else:
5376
        iprot.skip(ftype)
5377
      iprot.readFieldEnd()
5378
    iprot.readStructEnd()
5379
 
5380
  def write(self, oprot):
5381
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5382
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5383
      return
5384
    oprot.writeStructBegin('getWarehouse_args')
5385
    if self.warehouse_id is not None:
5386
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5387
      oprot.writeI64(self.warehouse_id)
5388
      oprot.writeFieldEnd()
5389
    oprot.writeFieldStop()
5390
    oprot.writeStructEnd()
5391
 
5392
  def validate(self):
5393
    return
5394
 
5395
 
5396
  def __repr__(self):
5397
    L = ['%s=%r' % (key, value)
5398
      for key, value in self.__dict__.iteritems()]
5399
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5400
 
5401
  def __eq__(self, other):
5402
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5403
 
5404
  def __ne__(self, other):
5405
    return not (self == other)
5406
 
5407
class getWarehouse_result:
5408
  """
5409
  Attributes:
5410
   - success
5411
   - cex
5412
  """
5413
 
5414
  thrift_spec = (
5415
    (0, TType.STRUCT, 'success', (Warehouse, Warehouse.thrift_spec), None, ), # 0
5416
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5417
  )
5418
 
5419
  def __init__(self, success=None, cex=None,):
5420
    self.success = success
5421
    self.cex = cex
5422
 
5423
  def read(self, iprot):
5424
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5425
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5426
      return
5427
    iprot.readStructBegin()
5428
    while True:
5429
      (fname, ftype, fid) = iprot.readFieldBegin()
5430
      if ftype == TType.STOP:
5431
        break
5432
      if fid == 0:
5433
        if ftype == TType.STRUCT:
5434
          self.success = Warehouse()
5435
          self.success.read(iprot)
5436
        else:
5437
          iprot.skip(ftype)
5438
      elif fid == 1:
5439
        if ftype == TType.STRUCT:
5440
          self.cex = InventoryServiceException()
5441
          self.cex.read(iprot)
5442
        else:
5443
          iprot.skip(ftype)
5444
      else:
5445
        iprot.skip(ftype)
5446
      iprot.readFieldEnd()
5447
    iprot.readStructEnd()
5448
 
5449
  def write(self, oprot):
5450
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5451
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5452
      return
5453
    oprot.writeStructBegin('getWarehouse_result')
5454
    if self.success is not None:
5455
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5456
      self.success.write(oprot)
5457
      oprot.writeFieldEnd()
5458
    if self.cex is not None:
5459
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5460
      self.cex.write(oprot)
5461
      oprot.writeFieldEnd()
5462
    oprot.writeFieldStop()
5463
    oprot.writeStructEnd()
5464
 
5465
  def validate(self):
5466
    return
5467
 
5468
 
5469
  def __repr__(self):
5470
    L = ['%s=%r' % (key, value)
5471
      for key, value in self.__dict__.iteritems()]
5472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5473
 
5474
  def __eq__(self, other):
5475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5476
 
5477
  def __ne__(self, other):
5478
    return not (self == other)
5479
 
5480
class getAllItemsForWarehouse_args:
5481
  """
5482
  Attributes:
5483
   - warehouse_id
5484
  """
5485
 
5486
  thrift_spec = (
5487
    None, # 0
5488
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5489
  )
5490
 
5491
  def __init__(self, warehouse_id=None,):
5492
    self.warehouse_id = warehouse_id
5493
 
5494
  def read(self, iprot):
5495
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5496
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5497
      return
5498
    iprot.readStructBegin()
5499
    while True:
5500
      (fname, ftype, fid) = iprot.readFieldBegin()
5501
      if ftype == TType.STOP:
5502
        break
5503
      if fid == 1:
5504
        if ftype == TType.I64:
5505
          self.warehouse_id = iprot.readI64();
5506
        else:
5507
          iprot.skip(ftype)
5508
      else:
5509
        iprot.skip(ftype)
5510
      iprot.readFieldEnd()
5511
    iprot.readStructEnd()
5512
 
5513
  def write(self, oprot):
5514
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5515
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5516
      return
5517
    oprot.writeStructBegin('getAllItemsForWarehouse_args')
5518
    if self.warehouse_id is not None:
5519
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5520
      oprot.writeI64(self.warehouse_id)
5521
      oprot.writeFieldEnd()
5522
    oprot.writeFieldStop()
5523
    oprot.writeStructEnd()
5524
 
5525
  def validate(self):
5526
    return
5527
 
5528
 
5529
  def __repr__(self):
5530
    L = ['%s=%r' % (key, value)
5531
      for key, value in self.__dict__.iteritems()]
5532
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5533
 
5534
  def __eq__(self, other):
5535
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5536
 
5537
  def __ne__(self, other):
5538
    return not (self == other)
5539
 
5540
class getAllItemsForWarehouse_result:
5541
  """
5542
  Attributes:
5543
   - success
5544
   - cex
5545
  """
5546
 
5547
  thrift_spec = (
5548
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5549
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5550
  )
5551
 
5552
  def __init__(self, success=None, cex=None,):
5553
    self.success = success
5554
    self.cex = cex
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 == 0:
5566
        if ftype == TType.LIST:
5567
          self.success = []
8182 amar.kumar 5568
          (_etype62, _size59) = iprot.readListBegin()
5569
          for _i63 in xrange(_size59):
5570
            _elem64 = iprot.readI64();
5571
            self.success.append(_elem64)
5944 mandeep.dh 5572
          iprot.readListEnd()
5573
        else:
5574
          iprot.skip(ftype)
5575
      elif fid == 1:
5576
        if ftype == TType.STRUCT:
5577
          self.cex = InventoryServiceException()
5578
          self.cex.read(iprot)
5579
        else:
5580
          iprot.skip(ftype)
5581
      else:
5582
        iprot.skip(ftype)
5583
      iprot.readFieldEnd()
5584
    iprot.readStructEnd()
5585
 
5586
  def write(self, oprot):
5587
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5588
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5589
      return
5590
    oprot.writeStructBegin('getAllItemsForWarehouse_result')
5591
    if self.success is not None:
5592
      oprot.writeFieldBegin('success', TType.LIST, 0)
5593
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5594
      for iter65 in self.success:
5595
        oprot.writeI64(iter65)
5944 mandeep.dh 5596
      oprot.writeListEnd()
5597
      oprot.writeFieldEnd()
5598
    if self.cex is not None:
5599
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5600
      self.cex.write(oprot)
5601
      oprot.writeFieldEnd()
5602
    oprot.writeFieldStop()
5603
    oprot.writeStructEnd()
5604
 
5605
  def validate(self):
5606
    return
5607
 
5608
 
5609
  def __repr__(self):
5610
    L = ['%s=%r' % (key, value)
5611
      for key, value in self.__dict__.iteritems()]
5612
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5613
 
5614
  def __eq__(self, other):
5615
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5616
 
5617
  def __ne__(self, other):
5618
    return not (self == other)
5619
 
5966 rajveer 5620
class isOrderBillable_args:
5621
  """
5622
  Attributes:
5623
   - itemId
5624
   - warehouseId
5625
   - sourceId
5626
   - orderId
5627
  """
5628
 
5629
  thrift_spec = (
5630
    None, # 0
5631
    (1, TType.I64, 'itemId', None, None, ), # 1
5632
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5633
    (3, TType.I64, 'sourceId', None, None, ), # 3
5634
    (4, TType.I64, 'orderId', None, None, ), # 4
5635
  )
5636
 
5637
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None,):
5638
    self.itemId = itemId
5639
    self.warehouseId = warehouseId
5640
    self.sourceId = sourceId
5641
    self.orderId = orderId
5642
 
5643
  def read(self, iprot):
5644
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5645
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5646
      return
5647
    iprot.readStructBegin()
5648
    while True:
5649
      (fname, ftype, fid) = iprot.readFieldBegin()
5650
      if ftype == TType.STOP:
5651
        break
5652
      if fid == 1:
5653
        if ftype == TType.I64:
5654
          self.itemId = iprot.readI64();
5655
        else:
5656
          iprot.skip(ftype)
5657
      elif fid == 2:
5658
        if ftype == TType.I64:
5659
          self.warehouseId = iprot.readI64();
5660
        else:
5661
          iprot.skip(ftype)
5662
      elif fid == 3:
5663
        if ftype == TType.I64:
5664
          self.sourceId = iprot.readI64();
5665
        else:
5666
          iprot.skip(ftype)
5667
      elif fid == 4:
5668
        if ftype == TType.I64:
5669
          self.orderId = iprot.readI64();
5670
        else:
5671
          iprot.skip(ftype)
5672
      else:
5673
        iprot.skip(ftype)
5674
      iprot.readFieldEnd()
5675
    iprot.readStructEnd()
5676
 
5677
  def write(self, oprot):
5678
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5679
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5680
      return
5681
    oprot.writeStructBegin('isOrderBillable_args')
5682
    if self.itemId is not None:
5683
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5684
      oprot.writeI64(self.itemId)
5685
      oprot.writeFieldEnd()
5686
    if self.warehouseId is not None:
5687
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5688
      oprot.writeI64(self.warehouseId)
5689
      oprot.writeFieldEnd()
5690
    if self.sourceId is not None:
5691
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
5692
      oprot.writeI64(self.sourceId)
5693
      oprot.writeFieldEnd()
5694
    if self.orderId is not None:
5695
      oprot.writeFieldBegin('orderId', TType.I64, 4)
5696
      oprot.writeI64(self.orderId)
5697
      oprot.writeFieldEnd()
5698
    oprot.writeFieldStop()
5699
    oprot.writeStructEnd()
5700
 
5701
  def validate(self):
5702
    return
5703
 
5704
 
5705
  def __repr__(self):
5706
    L = ['%s=%r' % (key, value)
5707
      for key, value in self.__dict__.iteritems()]
5708
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5709
 
5710
  def __eq__(self, other):
5711
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5712
 
5713
  def __ne__(self, other):
5714
    return not (self == other)
5715
 
5716
class isOrderBillable_result:
5717
  """
5718
  Attributes:
5719
   - success
5720
  """
5721
 
5722
  thrift_spec = (
5723
    (0, TType.BOOL, 'success', None, None, ), # 0
5724
  )
5725
 
5726
  def __init__(self, success=None,):
5727
    self.success = success
5728
 
5729
  def read(self, iprot):
5730
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5731
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5732
      return
5733
    iprot.readStructBegin()
5734
    while True:
5735
      (fname, ftype, fid) = iprot.readFieldBegin()
5736
      if ftype == TType.STOP:
5737
        break
5738
      if fid == 0:
5739
        if ftype == TType.BOOL:
5740
          self.success = iprot.readBool();
5741
        else:
5742
          iprot.skip(ftype)
5743
      else:
5744
        iprot.skip(ftype)
5745
      iprot.readFieldEnd()
5746
    iprot.readStructEnd()
5747
 
5748
  def write(self, oprot):
5749
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5750
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5751
      return
5752
    oprot.writeStructBegin('isOrderBillable_result')
5753
    if self.success is not None:
5754
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5755
      oprot.writeBool(self.success)
5756
      oprot.writeFieldEnd()
5757
    oprot.writeFieldStop()
5758
    oprot.writeStructEnd()
5759
 
5760
  def validate(self):
5761
    return
5762
 
5763
 
5764
  def __repr__(self):
5765
    L = ['%s=%r' % (key, value)
5766
      for key, value in self.__dict__.iteritems()]
5767
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5768
 
5769
  def __eq__(self, other):
5770
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5771
 
5772
  def __ne__(self, other):
5773
    return not (self == other)
5774
 
5944 mandeep.dh 5775
class reserveItemInWarehouse_args:
5776
  """
5777
  Attributes:
5778
   - itemId
5779
   - warehouseId
5966 rajveer 5780
   - sourceId
5781
   - orderId
5782
   - createdTimestamp
5783
   - promisedShippingTimestamp
5944 mandeep.dh 5784
   - quantity
5785
  """
5786
 
5787
  thrift_spec = (
5788
    None, # 0
5789
    (1, TType.I64, 'itemId', None, None, ), # 1
5790
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 5791
    (3, TType.I64, 'sourceId', None, None, ), # 3
5792
    (4, TType.I64, 'orderId', None, None, ), # 4
5793
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
5794
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
5795
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
5944 mandeep.dh 5796
  )
5797
 
5966 rajveer 5798
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
5944 mandeep.dh 5799
    self.itemId = itemId
5800
    self.warehouseId = warehouseId
5966 rajveer 5801
    self.sourceId = sourceId
5802
    self.orderId = orderId
5803
    self.createdTimestamp = createdTimestamp
5804
    self.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 5805
    self.quantity = quantity
5806
 
5807
  def read(self, iprot):
5808
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5809
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5810
      return
5811
    iprot.readStructBegin()
5812
    while True:
5813
      (fname, ftype, fid) = iprot.readFieldBegin()
5814
      if ftype == TType.STOP:
5815
        break
5816
      if fid == 1:
5817
        if ftype == TType.I64:
5818
          self.itemId = iprot.readI64();
5819
        else:
5820
          iprot.skip(ftype)
5821
      elif fid == 2:
5822
        if ftype == TType.I64:
5823
          self.warehouseId = iprot.readI64();
5824
        else:
5825
          iprot.skip(ftype)
5826
      elif fid == 3:
5966 rajveer 5827
        if ftype == TType.I64:
5828
          self.sourceId = iprot.readI64();
5829
        else:
5830
          iprot.skip(ftype)
5831
      elif fid == 4:
5832
        if ftype == TType.I64:
5833
          self.orderId = iprot.readI64();
5834
        else:
5835
          iprot.skip(ftype)
5836
      elif fid == 5:
5837
        if ftype == TType.I64:
5838
          self.createdTimestamp = iprot.readI64();
5839
        else:
5840
          iprot.skip(ftype)
5841
      elif fid == 6:
5842
        if ftype == TType.I64:
5843
          self.promisedShippingTimestamp = iprot.readI64();
5844
        else:
5845
          iprot.skip(ftype)
5846
      elif fid == 7:
5944 mandeep.dh 5847
        if ftype == TType.DOUBLE:
5848
          self.quantity = iprot.readDouble();
5849
        else:
5850
          iprot.skip(ftype)
5851
      else:
5852
        iprot.skip(ftype)
5853
      iprot.readFieldEnd()
5854
    iprot.readStructEnd()
5855
 
5856
  def write(self, oprot):
5857
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5858
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5859
      return
5860
    oprot.writeStructBegin('reserveItemInWarehouse_args')
5861
    if self.itemId is not None:
5862
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5863
      oprot.writeI64(self.itemId)
5864
      oprot.writeFieldEnd()
5865
    if self.warehouseId is not None:
5866
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5867
      oprot.writeI64(self.warehouseId)
5868
      oprot.writeFieldEnd()
5966 rajveer 5869
    if self.sourceId is not None:
5870
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
5871
      oprot.writeI64(self.sourceId)
5872
      oprot.writeFieldEnd()
5873
    if self.orderId is not None:
5874
      oprot.writeFieldBegin('orderId', TType.I64, 4)
5875
      oprot.writeI64(self.orderId)
5876
      oprot.writeFieldEnd()
5877
    if self.createdTimestamp is not None:
5878
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
5879
      oprot.writeI64(self.createdTimestamp)
5880
      oprot.writeFieldEnd()
5881
    if self.promisedShippingTimestamp is not None:
5882
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
5883
      oprot.writeI64(self.promisedShippingTimestamp)
5884
      oprot.writeFieldEnd()
5944 mandeep.dh 5885
    if self.quantity is not None:
5966 rajveer 5886
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
5944 mandeep.dh 5887
      oprot.writeDouble(self.quantity)
5888
      oprot.writeFieldEnd()
5889
    oprot.writeFieldStop()
5890
    oprot.writeStructEnd()
5891
 
5892
  def validate(self):
5893
    return
5894
 
5895
 
5896
  def __repr__(self):
5897
    L = ['%s=%r' % (key, value)
5898
      for key, value in self.__dict__.iteritems()]
5899
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5900
 
5901
  def __eq__(self, other):
5902
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5903
 
5904
  def __ne__(self, other):
5905
    return not (self == other)
5906
 
5907
class reserveItemInWarehouse_result:
5908
  """
5909
  Attributes:
5910
   - success
5911
   - cex
5912
  """
5913
 
5914
  thrift_spec = (
5915
    (0, TType.BOOL, 'success', None, None, ), # 0
5916
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5917
  )
5918
 
5919
  def __init__(self, success=None, cex=None,):
5920
    self.success = success
5921
    self.cex = cex
5922
 
5923
  def read(self, iprot):
5924
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5925
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5926
      return
5927
    iprot.readStructBegin()
5928
    while True:
5929
      (fname, ftype, fid) = iprot.readFieldBegin()
5930
      if ftype == TType.STOP:
5931
        break
5932
      if fid == 0:
5933
        if ftype == TType.BOOL:
5934
          self.success = iprot.readBool();
5935
        else:
5936
          iprot.skip(ftype)
5937
      elif fid == 1:
5938
        if ftype == TType.STRUCT:
5939
          self.cex = InventoryServiceException()
5940
          self.cex.read(iprot)
5941
        else:
5942
          iprot.skip(ftype)
5943
      else:
5944
        iprot.skip(ftype)
5945
      iprot.readFieldEnd()
5946
    iprot.readStructEnd()
5947
 
5948
  def write(self, oprot):
5949
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5950
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5951
      return
5952
    oprot.writeStructBegin('reserveItemInWarehouse_result')
5953
    if self.success is not None:
5954
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5955
      oprot.writeBool(self.success)
5956
      oprot.writeFieldEnd()
5957
    if self.cex is not None:
5958
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5959
      self.cex.write(oprot)
5960
      oprot.writeFieldEnd()
5961
    oprot.writeFieldStop()
5962
    oprot.writeStructEnd()
5963
 
5964
  def validate(self):
5965
    return
5966
 
5967
 
5968
  def __repr__(self):
5969
    L = ['%s=%r' % (key, value)
5970
      for key, value in self.__dict__.iteritems()]
5971
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5972
 
5973
  def __eq__(self, other):
5974
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5975
 
5976
  def __ne__(self, other):
5977
    return not (self == other)
5978
 
7968 amar.kumar 5979
class updateReservationForOrder_args:
5980
  """
5981
  Attributes:
5982
   - itemId
5983
   - warehouseId
5984
   - sourceId
5985
   - orderId
5986
   - createdTimestamp
5987
   - promisedShippingTimestamp
5988
   - quantity
5989
  """
5990
 
5991
  thrift_spec = (
5992
    None, # 0
5993
    (1, TType.I64, 'itemId', None, None, ), # 1
5994
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5995
    (3, TType.I64, 'sourceId', None, None, ), # 3
5996
    (4, TType.I64, 'orderId', None, None, ), # 4
5997
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
5998
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
5999
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
6000
  )
6001
 
6002
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
6003
    self.itemId = itemId
6004
    self.warehouseId = warehouseId
6005
    self.sourceId = sourceId
6006
    self.orderId = orderId
6007
    self.createdTimestamp = createdTimestamp
6008
    self.promisedShippingTimestamp = promisedShippingTimestamp
6009
    self.quantity = quantity
6010
 
6011
  def read(self, iprot):
6012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6014
      return
6015
    iprot.readStructBegin()
6016
    while True:
6017
      (fname, ftype, fid) = iprot.readFieldBegin()
6018
      if ftype == TType.STOP:
6019
        break
6020
      if fid == 1:
6021
        if ftype == TType.I64:
6022
          self.itemId = iprot.readI64();
6023
        else:
6024
          iprot.skip(ftype)
6025
      elif fid == 2:
6026
        if ftype == TType.I64:
6027
          self.warehouseId = iprot.readI64();
6028
        else:
6029
          iprot.skip(ftype)
6030
      elif fid == 3:
6031
        if ftype == TType.I64:
6032
          self.sourceId = iprot.readI64();
6033
        else:
6034
          iprot.skip(ftype)
6035
      elif fid == 4:
6036
        if ftype == TType.I64:
6037
          self.orderId = iprot.readI64();
6038
        else:
6039
          iprot.skip(ftype)
6040
      elif fid == 5:
6041
        if ftype == TType.I64:
6042
          self.createdTimestamp = iprot.readI64();
6043
        else:
6044
          iprot.skip(ftype)
6045
      elif fid == 6:
6046
        if ftype == TType.I64:
6047
          self.promisedShippingTimestamp = iprot.readI64();
6048
        else:
6049
          iprot.skip(ftype)
6050
      elif fid == 7:
6051
        if ftype == TType.DOUBLE:
6052
          self.quantity = iprot.readDouble();
6053
        else:
6054
          iprot.skip(ftype)
6055
      else:
6056
        iprot.skip(ftype)
6057
      iprot.readFieldEnd()
6058
    iprot.readStructEnd()
6059
 
6060
  def write(self, oprot):
6061
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6062
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6063
      return
6064
    oprot.writeStructBegin('updateReservationForOrder_args')
6065
    if self.itemId is not None:
6066
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6067
      oprot.writeI64(self.itemId)
6068
      oprot.writeFieldEnd()
6069
    if self.warehouseId is not None:
6070
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6071
      oprot.writeI64(self.warehouseId)
6072
      oprot.writeFieldEnd()
6073
    if self.sourceId is not None:
6074
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6075
      oprot.writeI64(self.sourceId)
6076
      oprot.writeFieldEnd()
6077
    if self.orderId is not None:
6078
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6079
      oprot.writeI64(self.orderId)
6080
      oprot.writeFieldEnd()
6081
    if self.createdTimestamp is not None:
6082
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
6083
      oprot.writeI64(self.createdTimestamp)
6084
      oprot.writeFieldEnd()
6085
    if self.promisedShippingTimestamp is not None:
6086
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
6087
      oprot.writeI64(self.promisedShippingTimestamp)
6088
      oprot.writeFieldEnd()
6089
    if self.quantity is not None:
6090
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
6091
      oprot.writeDouble(self.quantity)
6092
      oprot.writeFieldEnd()
6093
    oprot.writeFieldStop()
6094
    oprot.writeStructEnd()
6095
 
6096
  def validate(self):
6097
    return
6098
 
6099
 
6100
  def __repr__(self):
6101
    L = ['%s=%r' % (key, value)
6102
      for key, value in self.__dict__.iteritems()]
6103
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6104
 
6105
  def __eq__(self, other):
6106
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6107
 
6108
  def __ne__(self, other):
6109
    return not (self == other)
6110
 
6111
class updateReservationForOrder_result:
6112
  """
6113
  Attributes:
6114
   - success
6115
   - cex
6116
  """
6117
 
6118
  thrift_spec = (
6119
    (0, TType.BOOL, 'success', None, None, ), # 0
6120
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6121
  )
6122
 
6123
  def __init__(self, success=None, cex=None,):
6124
    self.success = success
6125
    self.cex = cex
6126
 
6127
  def read(self, iprot):
6128
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6129
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6130
      return
6131
    iprot.readStructBegin()
6132
    while True:
6133
      (fname, ftype, fid) = iprot.readFieldBegin()
6134
      if ftype == TType.STOP:
6135
        break
6136
      if fid == 0:
6137
        if ftype == TType.BOOL:
6138
          self.success = iprot.readBool();
6139
        else:
6140
          iprot.skip(ftype)
6141
      elif fid == 1:
6142
        if ftype == TType.STRUCT:
6143
          self.cex = InventoryServiceException()
6144
          self.cex.read(iprot)
6145
        else:
6146
          iprot.skip(ftype)
6147
      else:
6148
        iprot.skip(ftype)
6149
      iprot.readFieldEnd()
6150
    iprot.readStructEnd()
6151
 
6152
  def write(self, oprot):
6153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6155
      return
6156
    oprot.writeStructBegin('updateReservationForOrder_result')
6157
    if self.success is not None:
6158
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6159
      oprot.writeBool(self.success)
6160
      oprot.writeFieldEnd()
6161
    if self.cex is not None:
6162
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6163
      self.cex.write(oprot)
6164
      oprot.writeFieldEnd()
6165
    oprot.writeFieldStop()
6166
    oprot.writeStructEnd()
6167
 
6168
  def validate(self):
6169
    return
6170
 
6171
 
6172
  def __repr__(self):
6173
    L = ['%s=%r' % (key, value)
6174
      for key, value in self.__dict__.iteritems()]
6175
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6176
 
6177
  def __eq__(self, other):
6178
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6179
 
6180
  def __ne__(self, other):
6181
    return not (self == other)
6182
 
5944 mandeep.dh 6183
class reduceReservationCount_args:
6184
  """
6185
  Attributes:
6186
   - itemId
6187
   - warehouseId
5966 rajveer 6188
   - sourceId
6189
   - orderId
5944 mandeep.dh 6190
   - quantity
6191
  """
6192
 
6193
  thrift_spec = (
6194
    None, # 0
6195
    (1, TType.I64, 'itemId', None, None, ), # 1
6196
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 6197
    (3, TType.I64, 'sourceId', None, None, ), # 3
6198
    (4, TType.I64, 'orderId', None, None, ), # 4
6199
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
5944 mandeep.dh 6200
  )
6201
 
5966 rajveer 6202
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, quantity=None,):
5944 mandeep.dh 6203
    self.itemId = itemId
6204
    self.warehouseId = warehouseId
5966 rajveer 6205
    self.sourceId = sourceId
6206
    self.orderId = orderId
5944 mandeep.dh 6207
    self.quantity = quantity
6208
 
6209
  def read(self, iprot):
6210
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6211
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6212
      return
6213
    iprot.readStructBegin()
6214
    while True:
6215
      (fname, ftype, fid) = iprot.readFieldBegin()
6216
      if ftype == TType.STOP:
6217
        break
6218
      if fid == 1:
6219
        if ftype == TType.I64:
6220
          self.itemId = iprot.readI64();
6221
        else:
6222
          iprot.skip(ftype)
6223
      elif fid == 2:
6224
        if ftype == TType.I64:
6225
          self.warehouseId = iprot.readI64();
6226
        else:
6227
          iprot.skip(ftype)
6228
      elif fid == 3:
5966 rajveer 6229
        if ftype == TType.I64:
6230
          self.sourceId = iprot.readI64();
6231
        else:
6232
          iprot.skip(ftype)
6233
      elif fid == 4:
6234
        if ftype == TType.I64:
6235
          self.orderId = iprot.readI64();
6236
        else:
6237
          iprot.skip(ftype)
6238
      elif fid == 5:
5944 mandeep.dh 6239
        if ftype == TType.DOUBLE:
6240
          self.quantity = iprot.readDouble();
6241
        else:
6242
          iprot.skip(ftype)
6243
      else:
6244
        iprot.skip(ftype)
6245
      iprot.readFieldEnd()
6246
    iprot.readStructEnd()
6247
 
6248
  def write(self, oprot):
6249
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6250
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6251
      return
6252
    oprot.writeStructBegin('reduceReservationCount_args')
6253
    if self.itemId is not None:
6254
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6255
      oprot.writeI64(self.itemId)
6256
      oprot.writeFieldEnd()
6257
    if self.warehouseId is not None:
6258
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6259
      oprot.writeI64(self.warehouseId)
6260
      oprot.writeFieldEnd()
5966 rajveer 6261
    if self.sourceId is not None:
6262
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6263
      oprot.writeI64(self.sourceId)
6264
      oprot.writeFieldEnd()
6265
    if self.orderId is not None:
6266
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6267
      oprot.writeI64(self.orderId)
6268
      oprot.writeFieldEnd()
5944 mandeep.dh 6269
    if self.quantity is not None:
5966 rajveer 6270
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
5944 mandeep.dh 6271
      oprot.writeDouble(self.quantity)
6272
      oprot.writeFieldEnd()
6273
    oprot.writeFieldStop()
6274
    oprot.writeStructEnd()
6275
 
6276
  def validate(self):
6277
    return
6278
 
6279
 
6280
  def __repr__(self):
6281
    L = ['%s=%r' % (key, value)
6282
      for key, value in self.__dict__.iteritems()]
6283
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6284
 
6285
  def __eq__(self, other):
6286
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6287
 
6288
  def __ne__(self, other):
6289
    return not (self == other)
6290
 
6291
class reduceReservationCount_result:
6292
  """
6293
  Attributes:
6294
   - success
6295
   - cex
6296
  """
6297
 
6298
  thrift_spec = (
6299
    (0, TType.BOOL, 'success', None, None, ), # 0
6300
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6301
  )
6302
 
6303
  def __init__(self, success=None, cex=None,):
6304
    self.success = success
6305
    self.cex = cex
6306
 
6307
  def read(self, iprot):
6308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6310
      return
6311
    iprot.readStructBegin()
6312
    while True:
6313
      (fname, ftype, fid) = iprot.readFieldBegin()
6314
      if ftype == TType.STOP:
6315
        break
6316
      if fid == 0:
6317
        if ftype == TType.BOOL:
6318
          self.success = iprot.readBool();
6319
        else:
6320
          iprot.skip(ftype)
6321
      elif fid == 1:
6322
        if ftype == TType.STRUCT:
6323
          self.cex = InventoryServiceException()
6324
          self.cex.read(iprot)
6325
        else:
6326
          iprot.skip(ftype)
6327
      else:
6328
        iprot.skip(ftype)
6329
      iprot.readFieldEnd()
6330
    iprot.readStructEnd()
6331
 
6332
  def write(self, oprot):
6333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6335
      return
6336
    oprot.writeStructBegin('reduceReservationCount_result')
6337
    if self.success is not None:
6338
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6339
      oprot.writeBool(self.success)
6340
      oprot.writeFieldEnd()
6341
    if self.cex is not None:
6342
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6343
      self.cex.write(oprot)
6344
      oprot.writeFieldEnd()
6345
    oprot.writeFieldStop()
6346
    oprot.writeStructEnd()
6347
 
6348
  def validate(self):
6349
    return
6350
 
6351
 
6352
  def __repr__(self):
6353
    L = ['%s=%r' % (key, value)
6354
      for key, value in self.__dict__.iteritems()]
6355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6356
 
6357
  def __eq__(self, other):
6358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6359
 
6360
  def __ne__(self, other):
6361
    return not (self == other)
6362
 
6363
class getItemPricing_args:
6364
  """
6365
  Attributes:
6366
   - itemId
6367
   - vendorId
6368
  """
6369
 
6370
  thrift_spec = (
6371
    None, # 0
6372
    (1, TType.I64, 'itemId', None, None, ), # 1
6373
    (2, TType.I64, 'vendorId', None, None, ), # 2
6374
  )
6375
 
6376
  def __init__(self, itemId=None, vendorId=None,):
6377
    self.itemId = itemId
6378
    self.vendorId = vendorId
6379
 
6380
  def read(self, iprot):
6381
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6382
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6383
      return
6384
    iprot.readStructBegin()
6385
    while True:
6386
      (fname, ftype, fid) = iprot.readFieldBegin()
6387
      if ftype == TType.STOP:
6388
        break
6389
      if fid == 1:
6390
        if ftype == TType.I64:
6391
          self.itemId = iprot.readI64();
6392
        else:
6393
          iprot.skip(ftype)
6394
      elif fid == 2:
6395
        if ftype == TType.I64:
6396
          self.vendorId = iprot.readI64();
6397
        else:
6398
          iprot.skip(ftype)
6399
      else:
6400
        iprot.skip(ftype)
6401
      iprot.readFieldEnd()
6402
    iprot.readStructEnd()
6403
 
6404
  def write(self, oprot):
6405
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6406
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6407
      return
6408
    oprot.writeStructBegin('getItemPricing_args')
6409
    if self.itemId is not None:
6410
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6411
      oprot.writeI64(self.itemId)
6412
      oprot.writeFieldEnd()
6413
    if self.vendorId is not None:
6414
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6415
      oprot.writeI64(self.vendorId)
6416
      oprot.writeFieldEnd()
6417
    oprot.writeFieldStop()
6418
    oprot.writeStructEnd()
6419
 
6420
  def validate(self):
6421
    return
6422
 
6423
 
6424
  def __repr__(self):
6425
    L = ['%s=%r' % (key, value)
6426
      for key, value in self.__dict__.iteritems()]
6427
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6428
 
6429
  def __eq__(self, other):
6430
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6431
 
6432
  def __ne__(self, other):
6433
    return not (self == other)
6434
 
6435
class getItemPricing_result:
6436
  """
6437
  Attributes:
6438
   - success
6439
   - cex
6440
  """
6441
 
6442
  thrift_spec = (
6443
    (0, TType.STRUCT, 'success', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 0
6444
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6445
  )
6446
 
6447
  def __init__(self, success=None, cex=None,):
6448
    self.success = success
6449
    self.cex = cex
6450
 
6451
  def read(self, iprot):
6452
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6453
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6454
      return
6455
    iprot.readStructBegin()
6456
    while True:
6457
      (fname, ftype, fid) = iprot.readFieldBegin()
6458
      if ftype == TType.STOP:
6459
        break
6460
      if fid == 0:
6461
        if ftype == TType.STRUCT:
6462
          self.success = VendorItemPricing()
6463
          self.success.read(iprot)
6464
        else:
6465
          iprot.skip(ftype)
6466
      elif fid == 1:
6467
        if ftype == TType.STRUCT:
6468
          self.cex = InventoryServiceException()
6469
          self.cex.read(iprot)
6470
        else:
6471
          iprot.skip(ftype)
6472
      else:
6473
        iprot.skip(ftype)
6474
      iprot.readFieldEnd()
6475
    iprot.readStructEnd()
6476
 
6477
  def write(self, oprot):
6478
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6479
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6480
      return
6481
    oprot.writeStructBegin('getItemPricing_result')
6482
    if self.success is not None:
6483
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6484
      self.success.write(oprot)
6485
      oprot.writeFieldEnd()
6486
    if self.cex is not None:
6487
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6488
      self.cex.write(oprot)
6489
      oprot.writeFieldEnd()
6490
    oprot.writeFieldStop()
6491
    oprot.writeStructEnd()
6492
 
6493
  def validate(self):
6494
    return
6495
 
6496
 
6497
  def __repr__(self):
6498
    L = ['%s=%r' % (key, value)
6499
      for key, value in self.__dict__.iteritems()]
6500
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6501
 
6502
  def __eq__(self, other):
6503
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6504
 
6505
  def __ne__(self, other):
6506
    return not (self == other)
6507
 
6508
class getAllItemPricing_args:
6509
  """
6510
  Attributes:
6511
   - itemId
6512
  """
6513
 
6514
  thrift_spec = (
6515
    None, # 0
6516
    (1, TType.I64, 'itemId', None, None, ), # 1
6517
  )
6518
 
6519
  def __init__(self, itemId=None,):
6520
    self.itemId = itemId
6521
 
6522
  def read(self, iprot):
6523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6525
      return
6526
    iprot.readStructBegin()
6527
    while True:
6528
      (fname, ftype, fid) = iprot.readFieldBegin()
6529
      if ftype == TType.STOP:
6530
        break
6531
      if fid == 1:
6532
        if ftype == TType.I64:
6533
          self.itemId = iprot.readI64();
6534
        else:
6535
          iprot.skip(ftype)
6536
      else:
6537
        iprot.skip(ftype)
6538
      iprot.readFieldEnd()
6539
    iprot.readStructEnd()
6540
 
6541
  def write(self, oprot):
6542
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6543
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6544
      return
6545
    oprot.writeStructBegin('getAllItemPricing_args')
6546
    if self.itemId is not None:
6547
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6548
      oprot.writeI64(self.itemId)
6549
      oprot.writeFieldEnd()
6550
    oprot.writeFieldStop()
6551
    oprot.writeStructEnd()
6552
 
6553
  def validate(self):
6554
    return
6555
 
6556
 
6557
  def __repr__(self):
6558
    L = ['%s=%r' % (key, value)
6559
      for key, value in self.__dict__.iteritems()]
6560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6561
 
6562
  def __eq__(self, other):
6563
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6564
 
6565
  def __ne__(self, other):
6566
    return not (self == other)
6567
 
6568
class getAllItemPricing_result:
6569
  """
6570
  Attributes:
6571
   - success
6572
   - cex
6573
  """
6574
 
6575
  thrift_spec = (
6576
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
6577
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6578
  )
6579
 
6580
  def __init__(self, success=None, cex=None,):
6581
    self.success = success
6582
    self.cex = cex
6583
 
6584
  def read(self, iprot):
6585
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6586
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6587
      return
6588
    iprot.readStructBegin()
6589
    while True:
6590
      (fname, ftype, fid) = iprot.readFieldBegin()
6591
      if ftype == TType.STOP:
6592
        break
6593
      if fid == 0:
6594
        if ftype == TType.LIST:
6595
          self.success = []
8182 amar.kumar 6596
          (_etype69, _size66) = iprot.readListBegin()
6597
          for _i70 in xrange(_size66):
6598
            _elem71 = VendorItemPricing()
6599
            _elem71.read(iprot)
6600
            self.success.append(_elem71)
5944 mandeep.dh 6601
          iprot.readListEnd()
6602
        else:
6603
          iprot.skip(ftype)
6604
      elif fid == 1:
6605
        if ftype == TType.STRUCT:
6606
          self.cex = InventoryServiceException()
6607
          self.cex.read(iprot)
6608
        else:
6609
          iprot.skip(ftype)
6610
      else:
6611
        iprot.skip(ftype)
6612
      iprot.readFieldEnd()
6613
    iprot.readStructEnd()
6614
 
6615
  def write(self, oprot):
6616
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6617
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6618
      return
6619
    oprot.writeStructBegin('getAllItemPricing_result')
6620
    if self.success is not None:
6621
      oprot.writeFieldBegin('success', TType.LIST, 0)
6622
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 6623
      for iter72 in self.success:
6624
        iter72.write(oprot)
5944 mandeep.dh 6625
      oprot.writeListEnd()
6626
      oprot.writeFieldEnd()
6627
    if self.cex is not None:
6628
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6629
      self.cex.write(oprot)
6630
      oprot.writeFieldEnd()
6631
    oprot.writeFieldStop()
6632
    oprot.writeStructEnd()
6633
 
6634
  def validate(self):
6635
    return
6636
 
6637
 
6638
  def __repr__(self):
6639
    L = ['%s=%r' % (key, value)
6640
      for key, value in self.__dict__.iteritems()]
6641
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6642
 
6643
  def __eq__(self, other):
6644
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6645
 
6646
  def __ne__(self, other):
6647
    return not (self == other)
6648
 
6649
class addVendorItemPricing_args:
6650
  """
6651
  Attributes:
6652
   - vendorItemPricing
6653
  """
6654
 
6655
  thrift_spec = (
6656
    None, # 0
6657
    (1, TType.STRUCT, 'vendorItemPricing', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 1
6658
  )
6659
 
6660
  def __init__(self, vendorItemPricing=None,):
6661
    self.vendorItemPricing = vendorItemPricing
6662
 
6663
  def read(self, iprot):
6664
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6665
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6666
      return
6667
    iprot.readStructBegin()
6668
    while True:
6669
      (fname, ftype, fid) = iprot.readFieldBegin()
6670
      if ftype == TType.STOP:
6671
        break
6672
      if fid == 1:
6673
        if ftype == TType.STRUCT:
6674
          self.vendorItemPricing = VendorItemPricing()
6675
          self.vendorItemPricing.read(iprot)
6676
        else:
6677
          iprot.skip(ftype)
6678
      else:
6679
        iprot.skip(ftype)
6680
      iprot.readFieldEnd()
6681
    iprot.readStructEnd()
6682
 
6683
  def write(self, oprot):
6684
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6685
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6686
      return
6687
    oprot.writeStructBegin('addVendorItemPricing_args')
6688
    if self.vendorItemPricing is not None:
6689
      oprot.writeFieldBegin('vendorItemPricing', TType.STRUCT, 1)
6690
      self.vendorItemPricing.write(oprot)
6691
      oprot.writeFieldEnd()
6692
    oprot.writeFieldStop()
6693
    oprot.writeStructEnd()
6694
 
6695
  def validate(self):
6696
    return
6697
 
6698
 
6699
  def __repr__(self):
6700
    L = ['%s=%r' % (key, value)
6701
      for key, value in self.__dict__.iteritems()]
6702
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6703
 
6704
  def __eq__(self, other):
6705
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6706
 
6707
  def __ne__(self, other):
6708
    return not (self == other)
6709
 
6710
class addVendorItemPricing_result:
6711
  """
6712
  Attributes:
6713
   - cex
6714
  """
6715
 
6716
  thrift_spec = (
6717
    None, # 0
6718
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6719
  )
6720
 
6721
  def __init__(self, cex=None,):
6722
    self.cex = cex
6723
 
6724
  def read(self, iprot):
6725
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6726
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6727
      return
6728
    iprot.readStructBegin()
6729
    while True:
6730
      (fname, ftype, fid) = iprot.readFieldBegin()
6731
      if ftype == TType.STOP:
6732
        break
6733
      if fid == 1:
6734
        if ftype == TType.STRUCT:
6735
          self.cex = InventoryServiceException()
6736
          self.cex.read(iprot)
6737
        else:
6738
          iprot.skip(ftype)
6739
      else:
6740
        iprot.skip(ftype)
6741
      iprot.readFieldEnd()
6742
    iprot.readStructEnd()
6743
 
6744
  def write(self, oprot):
6745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6747
      return
6748
    oprot.writeStructBegin('addVendorItemPricing_result')
6749
    if self.cex is not None:
6750
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6751
      self.cex.write(oprot)
6752
      oprot.writeFieldEnd()
6753
    oprot.writeFieldStop()
6754
    oprot.writeStructEnd()
6755
 
6756
  def validate(self):
6757
    return
6758
 
6759
 
6760
  def __repr__(self):
6761
    L = ['%s=%r' % (key, value)
6762
      for key, value in self.__dict__.iteritems()]
6763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6764
 
6765
  def __eq__(self, other):
6766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6767
 
6768
  def __ne__(self, other):
6769
    return not (self == other)
6770
 
6771
class getVendor_args:
6772
  """
6773
  Attributes:
6774
   - vendorId
6775
  """
6776
 
6777
  thrift_spec = (
6778
    None, # 0
6779
    (1, TType.I64, 'vendorId', None, None, ), # 1
6780
  )
6781
 
6782
  def __init__(self, vendorId=None,):
6783
    self.vendorId = vendorId
6784
 
6785
  def read(self, iprot):
6786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6788
      return
6789
    iprot.readStructBegin()
6790
    while True:
6791
      (fname, ftype, fid) = iprot.readFieldBegin()
6792
      if ftype == TType.STOP:
6793
        break
6794
      if fid == 1:
6795
        if ftype == TType.I64:
6796
          self.vendorId = iprot.readI64();
6797
        else:
6798
          iprot.skip(ftype)
6799
      else:
6800
        iprot.skip(ftype)
6801
      iprot.readFieldEnd()
6802
    iprot.readStructEnd()
6803
 
6804
  def write(self, oprot):
6805
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6806
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6807
      return
6808
    oprot.writeStructBegin('getVendor_args')
6809
    if self.vendorId is not None:
6810
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
6811
      oprot.writeI64(self.vendorId)
6812
      oprot.writeFieldEnd()
6813
    oprot.writeFieldStop()
6814
    oprot.writeStructEnd()
6815
 
6816
  def validate(self):
6817
    return
6818
 
6819
 
6820
  def __repr__(self):
6821
    L = ['%s=%r' % (key, value)
6822
      for key, value in self.__dict__.iteritems()]
6823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6824
 
6825
  def __eq__(self, other):
6826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6827
 
6828
  def __ne__(self, other):
6829
    return not (self == other)
6830
 
6831
class getVendor_result:
6832
  """
6833
  Attributes:
6834
   - success
6835
  """
6836
 
6837
  thrift_spec = (
6838
    (0, TType.STRUCT, 'success', (Vendor, Vendor.thrift_spec), None, ), # 0
6839
  )
6840
 
6841
  def __init__(self, success=None,):
6842
    self.success = success
6843
 
6844
  def read(self, iprot):
6845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6847
      return
6848
    iprot.readStructBegin()
6849
    while True:
6850
      (fname, ftype, fid) = iprot.readFieldBegin()
6851
      if ftype == TType.STOP:
6852
        break
6853
      if fid == 0:
6854
        if ftype == TType.STRUCT:
6855
          self.success = Vendor()
6856
          self.success.read(iprot)
6857
        else:
6858
          iprot.skip(ftype)
6859
      else:
6860
        iprot.skip(ftype)
6861
      iprot.readFieldEnd()
6862
    iprot.readStructEnd()
6863
 
6864
  def write(self, oprot):
6865
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6866
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6867
      return
6868
    oprot.writeStructBegin('getVendor_result')
6869
    if self.success is not None:
6870
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6871
      self.success.write(oprot)
6872
      oprot.writeFieldEnd()
6873
    oprot.writeFieldStop()
6874
    oprot.writeStructEnd()
6875
 
6876
  def validate(self):
6877
    return
6878
 
6879
 
6880
  def __repr__(self):
6881
    L = ['%s=%r' % (key, value)
6882
      for key, value in self.__dict__.iteritems()]
6883
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6884
 
6885
  def __eq__(self, other):
6886
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6887
 
6888
  def __ne__(self, other):
6889
    return not (self == other)
6890
 
6891
class getAllVendors_args:
6892
 
6893
  thrift_spec = (
6894
  )
6895
 
6896
  def read(self, iprot):
6897
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6898
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6899
      return
6900
    iprot.readStructBegin()
6901
    while True:
6902
      (fname, ftype, fid) = iprot.readFieldBegin()
6903
      if ftype == TType.STOP:
6904
        break
6905
      else:
6906
        iprot.skip(ftype)
6907
      iprot.readFieldEnd()
6908
    iprot.readStructEnd()
6909
 
6910
  def write(self, oprot):
6911
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6912
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6913
      return
6914
    oprot.writeStructBegin('getAllVendors_args')
6915
    oprot.writeFieldStop()
6916
    oprot.writeStructEnd()
6917
 
6918
  def validate(self):
6919
    return
6920
 
6921
 
6922
  def __repr__(self):
6923
    L = ['%s=%r' % (key, value)
6924
      for key, value in self.__dict__.iteritems()]
6925
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6926
 
6927
  def __eq__(self, other):
6928
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6929
 
6930
  def __ne__(self, other):
6931
    return not (self == other)
6932
 
6933
class getAllVendors_result:
6934
  """
6935
  Attributes:
6936
   - success
6937
  """
6938
 
6939
  thrift_spec = (
6940
    (0, TType.LIST, 'success', (TType.STRUCT,(Vendor, Vendor.thrift_spec)), None, ), # 0
6941
  )
6942
 
6943
  def __init__(self, success=None,):
6944
    self.success = success
6945
 
6946
  def read(self, iprot):
6947
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6948
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6949
      return
6950
    iprot.readStructBegin()
6951
    while True:
6952
      (fname, ftype, fid) = iprot.readFieldBegin()
6953
      if ftype == TType.STOP:
6954
        break
6955
      if fid == 0:
6956
        if ftype == TType.LIST:
6957
          self.success = []
8182 amar.kumar 6958
          (_etype76, _size73) = iprot.readListBegin()
6959
          for _i77 in xrange(_size73):
6960
            _elem78 = Vendor()
6961
            _elem78.read(iprot)
6962
            self.success.append(_elem78)
5944 mandeep.dh 6963
          iprot.readListEnd()
6964
        else:
6965
          iprot.skip(ftype)
6966
      else:
6967
        iprot.skip(ftype)
6968
      iprot.readFieldEnd()
6969
    iprot.readStructEnd()
6970
 
6971
  def write(self, oprot):
6972
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6973
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6974
      return
6975
    oprot.writeStructBegin('getAllVendors_result')
6976
    if self.success is not None:
6977
      oprot.writeFieldBegin('success', TType.LIST, 0)
6978
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 6979
      for iter79 in self.success:
6980
        iter79.write(oprot)
5944 mandeep.dh 6981
      oprot.writeListEnd()
6982
      oprot.writeFieldEnd()
6983
    oprot.writeFieldStop()
6984
    oprot.writeStructEnd()
6985
 
6986
  def validate(self):
6987
    return
6988
 
6989
 
6990
  def __repr__(self):
6991
    L = ['%s=%r' % (key, value)
6992
      for key, value in self.__dict__.iteritems()]
6993
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6994
 
6995
  def __eq__(self, other):
6996
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6997
 
6998
  def __ne__(self, other):
6999
    return not (self == other)
7000
 
7001
class addVendorItemMapping_args:
7002
  """
7003
  Attributes:
7004
   - key
7005
   - vendorItemMapping
7006
  """
7007
 
7008
  thrift_spec = (
7009
    None, # 0
7010
    (1, TType.STRING, 'key', None, None, ), # 1
7011
    (2, TType.STRUCT, 'vendorItemMapping', (VendorItemMapping, VendorItemMapping.thrift_spec), None, ), # 2
7012
  )
7013
 
7014
  def __init__(self, key=None, vendorItemMapping=None,):
7015
    self.key = key
7016
    self.vendorItemMapping = vendorItemMapping
7017
 
7018
  def read(self, iprot):
7019
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7020
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7021
      return
7022
    iprot.readStructBegin()
7023
    while True:
7024
      (fname, ftype, fid) = iprot.readFieldBegin()
7025
      if ftype == TType.STOP:
7026
        break
7027
      if fid == 1:
7028
        if ftype == TType.STRING:
7029
          self.key = iprot.readString();
7030
        else:
7031
          iprot.skip(ftype)
7032
      elif fid == 2:
7033
        if ftype == TType.STRUCT:
7034
          self.vendorItemMapping = VendorItemMapping()
7035
          self.vendorItemMapping.read(iprot)
7036
        else:
7037
          iprot.skip(ftype)
7038
      else:
7039
        iprot.skip(ftype)
7040
      iprot.readFieldEnd()
7041
    iprot.readStructEnd()
7042
 
7043
  def write(self, oprot):
7044
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7045
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7046
      return
7047
    oprot.writeStructBegin('addVendorItemMapping_args')
7048
    if self.key is not None:
7049
      oprot.writeFieldBegin('key', TType.STRING, 1)
7050
      oprot.writeString(self.key)
7051
      oprot.writeFieldEnd()
7052
    if self.vendorItemMapping is not None:
7053
      oprot.writeFieldBegin('vendorItemMapping', TType.STRUCT, 2)
7054
      self.vendorItemMapping.write(oprot)
7055
      oprot.writeFieldEnd()
7056
    oprot.writeFieldStop()
7057
    oprot.writeStructEnd()
7058
 
7059
  def validate(self):
7060
    return
7061
 
7062
 
7063
  def __repr__(self):
7064
    L = ['%s=%r' % (key, value)
7065
      for key, value in self.__dict__.iteritems()]
7066
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7067
 
7068
  def __eq__(self, other):
7069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7070
 
7071
  def __ne__(self, other):
7072
    return not (self == other)
7073
 
7074
class addVendorItemMapping_result:
7075
  """
7076
  Attributes:
7077
   - cex
7078
  """
7079
 
7080
  thrift_spec = (
7081
    None, # 0
7082
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7083
  )
7084
 
7085
  def __init__(self, cex=None,):
7086
    self.cex = cex
7087
 
7088
  def read(self, iprot):
7089
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7090
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7091
      return
7092
    iprot.readStructBegin()
7093
    while True:
7094
      (fname, ftype, fid) = iprot.readFieldBegin()
7095
      if ftype == TType.STOP:
7096
        break
7097
      if fid == 1:
7098
        if ftype == TType.STRUCT:
7099
          self.cex = InventoryServiceException()
7100
          self.cex.read(iprot)
7101
        else:
7102
          iprot.skip(ftype)
7103
      else:
7104
        iprot.skip(ftype)
7105
      iprot.readFieldEnd()
7106
    iprot.readStructEnd()
7107
 
7108
  def write(self, oprot):
7109
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7110
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7111
      return
7112
    oprot.writeStructBegin('addVendorItemMapping_result')
7113
    if self.cex is not None:
7114
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7115
      self.cex.write(oprot)
7116
      oprot.writeFieldEnd()
7117
    oprot.writeFieldStop()
7118
    oprot.writeStructEnd()
7119
 
7120
  def validate(self):
7121
    return
7122
 
7123
 
7124
  def __repr__(self):
7125
    L = ['%s=%r' % (key, value)
7126
      for key, value in self.__dict__.iteritems()]
7127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7128
 
7129
  def __eq__(self, other):
7130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7131
 
7132
  def __ne__(self, other):
7133
    return not (self == other)
7134
 
7135
class getVendorItemMappings_args:
7136
  """
7137
  Attributes:
7138
   - itemId
7139
  """
7140
 
7141
  thrift_spec = (
7142
    None, # 0
7143
    (1, TType.I64, 'itemId', None, None, ), # 1
7144
  )
7145
 
7146
  def __init__(self, itemId=None,):
7147
    self.itemId = itemId
7148
 
7149
  def read(self, iprot):
7150
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7151
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7152
      return
7153
    iprot.readStructBegin()
7154
    while True:
7155
      (fname, ftype, fid) = iprot.readFieldBegin()
7156
      if ftype == TType.STOP:
7157
        break
7158
      if fid == 1:
7159
        if ftype == TType.I64:
7160
          self.itemId = iprot.readI64();
7161
        else:
7162
          iprot.skip(ftype)
7163
      else:
7164
        iprot.skip(ftype)
7165
      iprot.readFieldEnd()
7166
    iprot.readStructEnd()
7167
 
7168
  def write(self, oprot):
7169
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7170
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7171
      return
7172
    oprot.writeStructBegin('getVendorItemMappings_args')
7173
    if self.itemId is not None:
7174
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7175
      oprot.writeI64(self.itemId)
7176
      oprot.writeFieldEnd()
7177
    oprot.writeFieldStop()
7178
    oprot.writeStructEnd()
7179
 
7180
  def validate(self):
7181
    return
7182
 
7183
 
7184
  def __repr__(self):
7185
    L = ['%s=%r' % (key, value)
7186
      for key, value in self.__dict__.iteritems()]
7187
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7188
 
7189
  def __eq__(self, other):
7190
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7191
 
7192
  def __ne__(self, other):
7193
    return not (self == other)
7194
 
7195
class getVendorItemMappings_result:
7196
  """
7197
  Attributes:
7198
   - success
7199
   - cex
7200
  """
7201
 
7202
  thrift_spec = (
7203
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
7204
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7205
  )
7206
 
7207
  def __init__(self, success=None, cex=None,):
7208
    self.success = success
7209
    self.cex = cex
7210
 
7211
  def read(self, iprot):
7212
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7213
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7214
      return
7215
    iprot.readStructBegin()
7216
    while True:
7217
      (fname, ftype, fid) = iprot.readFieldBegin()
7218
      if ftype == TType.STOP:
7219
        break
7220
      if fid == 0:
7221
        if ftype == TType.LIST:
7222
          self.success = []
8182 amar.kumar 7223
          (_etype83, _size80) = iprot.readListBegin()
7224
          for _i84 in xrange(_size80):
7225
            _elem85 = VendorItemMapping()
7226
            _elem85.read(iprot)
7227
            self.success.append(_elem85)
5944 mandeep.dh 7228
          iprot.readListEnd()
7229
        else:
7230
          iprot.skip(ftype)
7231
      elif fid == 1:
7232
        if ftype == TType.STRUCT:
7233
          self.cex = InventoryServiceException()
7234
          self.cex.read(iprot)
7235
        else:
7236
          iprot.skip(ftype)
7237
      else:
7238
        iprot.skip(ftype)
7239
      iprot.readFieldEnd()
7240
    iprot.readStructEnd()
7241
 
7242
  def write(self, oprot):
7243
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7244
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7245
      return
7246
    oprot.writeStructBegin('getVendorItemMappings_result')
7247
    if self.success is not None:
7248
      oprot.writeFieldBegin('success', TType.LIST, 0)
7249
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7250
      for iter86 in self.success:
7251
        iter86.write(oprot)
5944 mandeep.dh 7252
      oprot.writeListEnd()
7253
      oprot.writeFieldEnd()
7254
    if self.cex is not None:
7255
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7256
      self.cex.write(oprot)
7257
      oprot.writeFieldEnd()
7258
    oprot.writeFieldStop()
7259
    oprot.writeStructEnd()
7260
 
7261
  def validate(self):
7262
    return
7263
 
7264
 
7265
  def __repr__(self):
7266
    L = ['%s=%r' % (key, value)
7267
      for key, value in self.__dict__.iteritems()]
7268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7269
 
7270
  def __eq__(self, other):
7271
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7272
 
7273
  def __ne__(self, other):
7274
    return not (self == other)
7275
 
7276
class getPendingOrdersInventory_args:
7277
  """
7278
  Attributes:
7279
   - vendorid
7280
  """
7281
 
7282
  thrift_spec = (
7283
    None, # 0
7284
    (1, TType.I64, 'vendorid', None, None, ), # 1
7285
  )
7286
 
7287
  def __init__(self, vendorid=None,):
7288
    self.vendorid = vendorid
7289
 
7290
  def read(self, iprot):
7291
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7292
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7293
      return
7294
    iprot.readStructBegin()
7295
    while True:
7296
      (fname, ftype, fid) = iprot.readFieldBegin()
7297
      if ftype == TType.STOP:
7298
        break
7299
      if fid == 1:
7300
        if ftype == TType.I64:
7301
          self.vendorid = iprot.readI64();
7302
        else:
7303
          iprot.skip(ftype)
7304
      else:
7305
        iprot.skip(ftype)
7306
      iprot.readFieldEnd()
7307
    iprot.readStructEnd()
7308
 
7309
  def write(self, oprot):
7310
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7311
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7312
      return
7313
    oprot.writeStructBegin('getPendingOrdersInventory_args')
7314
    if self.vendorid is not None:
7315
      oprot.writeFieldBegin('vendorid', TType.I64, 1)
7316
      oprot.writeI64(self.vendorid)
7317
      oprot.writeFieldEnd()
7318
    oprot.writeFieldStop()
7319
    oprot.writeStructEnd()
7320
 
7321
  def validate(self):
7322
    return
7323
 
7324
 
7325
  def __repr__(self):
7326
    L = ['%s=%r' % (key, value)
7327
      for key, value in self.__dict__.iteritems()]
7328
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7329
 
7330
  def __eq__(self, other):
7331
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7332
 
7333
  def __ne__(self, other):
7334
    return not (self == other)
7335
 
7336
class getPendingOrdersInventory_result:
7337
  """
7338
  Attributes:
7339
   - success
7340
  """
7341
 
7342
  thrift_spec = (
7343
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
7344
  )
7345
 
7346
  def __init__(self, success=None,):
7347
    self.success = success
7348
 
7349
  def read(self, iprot):
7350
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7351
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7352
      return
7353
    iprot.readStructBegin()
7354
    while True:
7355
      (fname, ftype, fid) = iprot.readFieldBegin()
7356
      if ftype == TType.STOP:
7357
        break
7358
      if fid == 0:
7359
        if ftype == TType.LIST:
7360
          self.success = []
8182 amar.kumar 7361
          (_etype90, _size87) = iprot.readListBegin()
7362
          for _i91 in xrange(_size87):
7363
            _elem92 = AvailableAndReservedStock()
7364
            _elem92.read(iprot)
7365
            self.success.append(_elem92)
5944 mandeep.dh 7366
          iprot.readListEnd()
7367
        else:
7368
          iprot.skip(ftype)
7369
      else:
7370
        iprot.skip(ftype)
7371
      iprot.readFieldEnd()
7372
    iprot.readStructEnd()
7373
 
7374
  def write(self, oprot):
7375
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7376
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7377
      return
7378
    oprot.writeStructBegin('getPendingOrdersInventory_result')
7379
    if self.success is not None:
7380
      oprot.writeFieldBegin('success', TType.LIST, 0)
7381
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7382
      for iter93 in self.success:
7383
        iter93.write(oprot)
5944 mandeep.dh 7384
      oprot.writeListEnd()
7385
      oprot.writeFieldEnd()
7386
    oprot.writeFieldStop()
7387
    oprot.writeStructEnd()
7388
 
7389
  def validate(self):
7390
    return
7391
 
7392
 
7393
  def __repr__(self):
7394
    L = ['%s=%r' % (key, value)
7395
      for key, value in self.__dict__.iteritems()]
7396
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7397
 
7398
  def __eq__(self, other):
7399
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7400
 
7401
  def __ne__(self, other):
7402
    return not (self == other)
7403
 
7404
class getWarehouses_args:
7405
  """
7406
  Attributes:
7407
   - warehouseType
7408
   - inventoryType
7409
   - vendorId
7410
   - billingWarehouseId
7411
   - shippingWarehouseId
7412
  """
7413
 
7414
  thrift_spec = (
7415
    None, # 0
7416
    (1, TType.I32, 'warehouseType', None, None, ), # 1
7417
    (2, TType.I32, 'inventoryType', None, None, ), # 2
7418
    (3, TType.I64, 'vendorId', None, None, ), # 3
7419
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
7420
    (5, TType.I64, 'shippingWarehouseId', None, None, ), # 5
7421
  )
7422
 
7423
  def __init__(self, warehouseType=None, inventoryType=None, vendorId=None, billingWarehouseId=None, shippingWarehouseId=None,):
7424
    self.warehouseType = warehouseType
7425
    self.inventoryType = inventoryType
7426
    self.vendorId = vendorId
7427
    self.billingWarehouseId = billingWarehouseId
7428
    self.shippingWarehouseId = shippingWarehouseId
7429
 
7430
  def read(self, iprot):
7431
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7432
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7433
      return
7434
    iprot.readStructBegin()
7435
    while True:
7436
      (fname, ftype, fid) = iprot.readFieldBegin()
7437
      if ftype == TType.STOP:
7438
        break
7439
      if fid == 1:
7440
        if ftype == TType.I32:
7441
          self.warehouseType = iprot.readI32();
7442
        else:
7443
          iprot.skip(ftype)
7444
      elif fid == 2:
7445
        if ftype == TType.I32:
7446
          self.inventoryType = iprot.readI32();
7447
        else:
7448
          iprot.skip(ftype)
7449
      elif fid == 3:
7450
        if ftype == TType.I64:
7451
          self.vendorId = iprot.readI64();
7452
        else:
7453
          iprot.skip(ftype)
7454
      elif fid == 4:
7455
        if ftype == TType.I64:
7456
          self.billingWarehouseId = iprot.readI64();
7457
        else:
7458
          iprot.skip(ftype)
7459
      elif fid == 5:
7460
        if ftype == TType.I64:
7461
          self.shippingWarehouseId = iprot.readI64();
7462
        else:
7463
          iprot.skip(ftype)
7464
      else:
7465
        iprot.skip(ftype)
7466
      iprot.readFieldEnd()
7467
    iprot.readStructEnd()
7468
 
7469
  def write(self, oprot):
7470
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7471
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7472
      return
7473
    oprot.writeStructBegin('getWarehouses_args')
7474
    if self.warehouseType is not None:
7475
      oprot.writeFieldBegin('warehouseType', TType.I32, 1)
7476
      oprot.writeI32(self.warehouseType)
7477
      oprot.writeFieldEnd()
7478
    if self.inventoryType is not None:
7479
      oprot.writeFieldBegin('inventoryType', TType.I32, 2)
7480
      oprot.writeI32(self.inventoryType)
7481
      oprot.writeFieldEnd()
7482
    if self.vendorId is not None:
7483
      oprot.writeFieldBegin('vendorId', TType.I64, 3)
7484
      oprot.writeI64(self.vendorId)
7485
      oprot.writeFieldEnd()
7486
    if self.billingWarehouseId is not None:
7487
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
7488
      oprot.writeI64(self.billingWarehouseId)
7489
      oprot.writeFieldEnd()
7490
    if self.shippingWarehouseId is not None:
7491
      oprot.writeFieldBegin('shippingWarehouseId', TType.I64, 5)
7492
      oprot.writeI64(self.shippingWarehouseId)
7493
      oprot.writeFieldEnd()
7494
    oprot.writeFieldStop()
7495
    oprot.writeStructEnd()
7496
 
7497
  def validate(self):
7498
    return
7499
 
7500
 
7501
  def __repr__(self):
7502
    L = ['%s=%r' % (key, value)
7503
      for key, value in self.__dict__.iteritems()]
7504
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7505
 
7506
  def __eq__(self, other):
7507
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7508
 
7509
  def __ne__(self, other):
7510
    return not (self == other)
7511
 
7512
class getWarehouses_result:
7513
  """
7514
  Attributes:
7515
   - success
7516
  """
7517
 
7518
  thrift_spec = (
7519
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
7520
  )
7521
 
7522
  def __init__(self, success=None,):
7523
    self.success = success
7524
 
7525
  def read(self, iprot):
7526
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7527
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7528
      return
7529
    iprot.readStructBegin()
7530
    while True:
7531
      (fname, ftype, fid) = iprot.readFieldBegin()
7532
      if ftype == TType.STOP:
7533
        break
7534
      if fid == 0:
7535
        if ftype == TType.LIST:
7536
          self.success = []
8182 amar.kumar 7537
          (_etype97, _size94) = iprot.readListBegin()
7538
          for _i98 in xrange(_size94):
7539
            _elem99 = Warehouse()
7540
            _elem99.read(iprot)
7541
            self.success.append(_elem99)
5944 mandeep.dh 7542
          iprot.readListEnd()
7543
        else:
7544
          iprot.skip(ftype)
7545
      else:
7546
        iprot.skip(ftype)
7547
      iprot.readFieldEnd()
7548
    iprot.readStructEnd()
7549
 
7550
  def write(self, oprot):
7551
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7552
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7553
      return
7554
    oprot.writeStructBegin('getWarehouses_result')
7555
    if self.success is not None:
7556
      oprot.writeFieldBegin('success', TType.LIST, 0)
7557
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7558
      for iter100 in self.success:
7559
        iter100.write(oprot)
5944 mandeep.dh 7560
      oprot.writeListEnd()
7561
      oprot.writeFieldEnd()
7562
    oprot.writeFieldStop()
7563
    oprot.writeStructEnd()
7564
 
7565
  def validate(self):
7566
    return
7567
 
7568
 
7569
  def __repr__(self):
7570
    L = ['%s=%r' % (key, value)
7571
      for key, value in self.__dict__.iteritems()]
7572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7573
 
7574
  def __eq__(self, other):
7575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7576
 
7577
  def __ne__(self, other):
7578
    return not (self == other)
7579
 
7580
class resetAvailability_args:
7581
  """
7582
  Attributes:
7583
   - itemKey
7584
   - vendorId
7585
   - quantity
7586
   - warehouseId
7587
  """
7588
 
7589
  thrift_spec = (
7590
    None, # 0
7591
    (1, TType.STRING, 'itemKey', None, None, ), # 1
7592
    (2, TType.I64, 'vendorId', None, None, ), # 2
7593
    (3, TType.I64, 'quantity', None, None, ), # 3
7594
    (4, TType.I64, 'warehouseId', None, None, ), # 4
7595
  )
7596
 
7597
  def __init__(self, itemKey=None, vendorId=None, quantity=None, warehouseId=None,):
7598
    self.itemKey = itemKey
7599
    self.vendorId = vendorId
7600
    self.quantity = quantity
7601
    self.warehouseId = warehouseId
7602
 
7603
  def read(self, iprot):
7604
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7605
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7606
      return
7607
    iprot.readStructBegin()
7608
    while True:
7609
      (fname, ftype, fid) = iprot.readFieldBegin()
7610
      if ftype == TType.STOP:
7611
        break
7612
      if fid == 1:
7613
        if ftype == TType.STRING:
7614
          self.itemKey = iprot.readString();
7615
        else:
7616
          iprot.skip(ftype)
7617
      elif fid == 2:
7618
        if ftype == TType.I64:
7619
          self.vendorId = iprot.readI64();
7620
        else:
7621
          iprot.skip(ftype)
7622
      elif fid == 3:
7623
        if ftype == TType.I64:
7624
          self.quantity = iprot.readI64();
7625
        else:
7626
          iprot.skip(ftype)
7627
      elif fid == 4:
7628
        if ftype == TType.I64:
7629
          self.warehouseId = iprot.readI64();
7630
        else:
7631
          iprot.skip(ftype)
7632
      else:
7633
        iprot.skip(ftype)
7634
      iprot.readFieldEnd()
7635
    iprot.readStructEnd()
7636
 
7637
  def write(self, oprot):
7638
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7639
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7640
      return
7641
    oprot.writeStructBegin('resetAvailability_args')
7642
    if self.itemKey is not None:
7643
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
7644
      oprot.writeString(self.itemKey)
7645
      oprot.writeFieldEnd()
7646
    if self.vendorId is not None:
7647
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
7648
      oprot.writeI64(self.vendorId)
7649
      oprot.writeFieldEnd()
7650
    if self.quantity is not None:
7651
      oprot.writeFieldBegin('quantity', TType.I64, 3)
7652
      oprot.writeI64(self.quantity)
7653
      oprot.writeFieldEnd()
7654
    if self.warehouseId is not None:
7655
      oprot.writeFieldBegin('warehouseId', TType.I64, 4)
7656
      oprot.writeI64(self.warehouseId)
7657
      oprot.writeFieldEnd()
7658
    oprot.writeFieldStop()
7659
    oprot.writeStructEnd()
7660
 
7661
  def validate(self):
7662
    return
7663
 
7664
 
7665
  def __repr__(self):
7666
    L = ['%s=%r' % (key, value)
7667
      for key, value in self.__dict__.iteritems()]
7668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7669
 
7670
  def __eq__(self, other):
7671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7672
 
7673
  def __ne__(self, other):
7674
    return not (self == other)
7675
 
7676
class resetAvailability_result:
7677
  """
7678
  Attributes:
7679
   - cex
7680
  """
7681
 
7682
  thrift_spec = (
7683
    None, # 0
7684
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7685
  )
7686
 
7687
  def __init__(self, cex=None,):
7688
    self.cex = cex
7689
 
7690
  def read(self, iprot):
7691
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7692
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7693
      return
7694
    iprot.readStructBegin()
7695
    while True:
7696
      (fname, ftype, fid) = iprot.readFieldBegin()
7697
      if ftype == TType.STOP:
7698
        break
7699
      if fid == 1:
7700
        if ftype == TType.STRUCT:
7701
          self.cex = InventoryServiceException()
7702
          self.cex.read(iprot)
7703
        else:
7704
          iprot.skip(ftype)
7705
      else:
7706
        iprot.skip(ftype)
7707
      iprot.readFieldEnd()
7708
    iprot.readStructEnd()
7709
 
7710
  def write(self, oprot):
7711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7713
      return
7714
    oprot.writeStructBegin('resetAvailability_result')
7715
    if self.cex is not None:
7716
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7717
      self.cex.write(oprot)
7718
      oprot.writeFieldEnd()
7719
    oprot.writeFieldStop()
7720
    oprot.writeStructEnd()
7721
 
7722
  def validate(self):
7723
    return
7724
 
7725
 
7726
  def __repr__(self):
7727
    L = ['%s=%r' % (key, value)
7728
      for key, value in self.__dict__.iteritems()]
7729
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7730
 
7731
  def __eq__(self, other):
7732
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7733
 
7734
  def __ne__(self, other):
7735
    return not (self == other)
7736
 
7737
class resetAvailabilityForWarehouse_args:
7738
  """
7739
  Attributes:
7740
   - warehouseId
7741
  """
7742
 
7743
  thrift_spec = (
7744
    None, # 0
7745
    (1, TType.I64, 'warehouseId', None, None, ), # 1
7746
  )
7747
 
7748
  def __init__(self, warehouseId=None,):
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.I64:
7762
          self.warehouseId = iprot.readI64();
7763
        else:
7764
          iprot.skip(ftype)
7765
      else:
7766
        iprot.skip(ftype)
7767
      iprot.readFieldEnd()
7768
    iprot.readStructEnd()
7769
 
7770
  def write(self, oprot):
7771
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7772
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7773
      return
7774
    oprot.writeStructBegin('resetAvailabilityForWarehouse_args')
7775
    if self.warehouseId is not None:
7776
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
7777
      oprot.writeI64(self.warehouseId)
7778
      oprot.writeFieldEnd()
7779
    oprot.writeFieldStop()
7780
    oprot.writeStructEnd()
7781
 
7782
  def validate(self):
7783
    return
7784
 
7785
 
7786
  def __repr__(self):
7787
    L = ['%s=%r' % (key, value)
7788
      for key, value in self.__dict__.iteritems()]
7789
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7790
 
7791
  def __eq__(self, other):
7792
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7793
 
7794
  def __ne__(self, other):
7795
    return not (self == other)
7796
 
7797
class resetAvailabilityForWarehouse_result:
7798
  """
7799
  Attributes:
7800
   - cex
7801
  """
7802
 
7803
  thrift_spec = (
7804
    None, # 0
7805
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7806
  )
7807
 
7808
  def __init__(self, cex=None,):
7809
    self.cex = cex
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
      if fid == 1:
7821
        if ftype == TType.STRUCT:
7822
          self.cex = InventoryServiceException()
7823
          self.cex.read(iprot)
7824
        else:
7825
          iprot.skip(ftype)
7826
      else:
7827
        iprot.skip(ftype)
7828
      iprot.readFieldEnd()
7829
    iprot.readStructEnd()
7830
 
7831
  def write(self, oprot):
7832
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7833
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7834
      return
7835
    oprot.writeStructBegin('resetAvailabilityForWarehouse_result')
7836
    if self.cex is not None:
7837
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7838
      self.cex.write(oprot)
7839
      oprot.writeFieldEnd()
7840
    oprot.writeFieldStop()
7841
    oprot.writeStructEnd()
7842
 
7843
  def validate(self):
7844
    return
7845
 
7846
 
7847
  def __repr__(self):
7848
    L = ['%s=%r' % (key, value)
7849
      for key, value in self.__dict__.iteritems()]
7850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7851
 
7852
  def __eq__(self, other):
7853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7854
 
7855
  def __ne__(self, other):
7856
    return not (self == other)
7857
 
7858
class getItemKeysToBeProcessed_args:
7859
  """
7860
  Attributes:
7861
   - warehouseId
7862
  """
7863
 
7864
  thrift_spec = (
7865
    None, # 0
7866
    (1, TType.I64, 'warehouseId', None, None, ), # 1
7867
  )
7868
 
7869
  def __init__(self, warehouseId=None,):
7870
    self.warehouseId = warehouseId
7871
 
7872
  def read(self, iprot):
7873
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7874
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7875
      return
7876
    iprot.readStructBegin()
7877
    while True:
7878
      (fname, ftype, fid) = iprot.readFieldBegin()
7879
      if ftype == TType.STOP:
7880
        break
7881
      if fid == 1:
7882
        if ftype == TType.I64:
7883
          self.warehouseId = iprot.readI64();
7884
        else:
7885
          iprot.skip(ftype)
7886
      else:
7887
        iprot.skip(ftype)
7888
      iprot.readFieldEnd()
7889
    iprot.readStructEnd()
7890
 
7891
  def write(self, oprot):
7892
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7893
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7894
      return
7895
    oprot.writeStructBegin('getItemKeysToBeProcessed_args')
7896
    if self.warehouseId is not None:
7897
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
7898
      oprot.writeI64(self.warehouseId)
7899
      oprot.writeFieldEnd()
7900
    oprot.writeFieldStop()
7901
    oprot.writeStructEnd()
7902
 
7903
  def validate(self):
7904
    return
7905
 
7906
 
7907
  def __repr__(self):
7908
    L = ['%s=%r' % (key, value)
7909
      for key, value in self.__dict__.iteritems()]
7910
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7911
 
7912
  def __eq__(self, other):
7913
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7914
 
7915
  def __ne__(self, other):
7916
    return not (self == other)
7917
 
7918
class getItemKeysToBeProcessed_result:
7919
  """
7920
  Attributes:
7921
   - success
7922
  """
7923
 
7924
  thrift_spec = (
7925
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
7926
  )
7927
 
7928
  def __init__(self, success=None,):
7929
    self.success = success
7930
 
7931
  def read(self, iprot):
7932
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7933
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7934
      return
7935
    iprot.readStructBegin()
7936
    while True:
7937
      (fname, ftype, fid) = iprot.readFieldBegin()
7938
      if ftype == TType.STOP:
7939
        break
7940
      if fid == 0:
7941
        if ftype == TType.LIST:
7942
          self.success = []
8182 amar.kumar 7943
          (_etype104, _size101) = iprot.readListBegin()
7944
          for _i105 in xrange(_size101):
7945
            _elem106 = iprot.readString();
7946
            self.success.append(_elem106)
5944 mandeep.dh 7947
          iprot.readListEnd()
7948
        else:
7949
          iprot.skip(ftype)
7950
      else:
7951
        iprot.skip(ftype)
7952
      iprot.readFieldEnd()
7953
    iprot.readStructEnd()
7954
 
7955
  def write(self, oprot):
7956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7958
      return
7959
    oprot.writeStructBegin('getItemKeysToBeProcessed_result')
7960
    if self.success is not None:
7961
      oprot.writeFieldBegin('success', TType.LIST, 0)
7962
      oprot.writeListBegin(TType.STRING, len(self.success))
8182 amar.kumar 7963
      for iter107 in self.success:
7964
        oprot.writeString(iter107)
5944 mandeep.dh 7965
      oprot.writeListEnd()
7966
      oprot.writeFieldEnd()
7967
    oprot.writeFieldStop()
7968
    oprot.writeStructEnd()
7969
 
7970
  def validate(self):
7971
    return
7972
 
7973
 
7974
  def __repr__(self):
7975
    L = ['%s=%r' % (key, value)
7976
      for key, value in self.__dict__.iteritems()]
7977
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7978
 
7979
  def __eq__(self, other):
7980
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7981
 
7982
  def __ne__(self, other):
7983
    return not (self == other)
7984
 
7985
class markMissedInventoryUpdatesAsProcessed_args:
7986
  """
7987
  Attributes:
7988
   - itemKey
7989
   - warehouseId
7990
  """
7991
 
7992
  thrift_spec = (
7993
    None, # 0
7994
    (1, TType.STRING, 'itemKey', None, None, ), # 1
7995
    (2, TType.I64, 'warehouseId', None, None, ), # 2
7996
  )
7997
 
7998
  def __init__(self, itemKey=None, warehouseId=None,):
7999
    self.itemKey = itemKey
8000
    self.warehouseId = warehouseId
8001
 
8002
  def read(self, iprot):
8003
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8004
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8005
      return
8006
    iprot.readStructBegin()
8007
    while True:
8008
      (fname, ftype, fid) = iprot.readFieldBegin()
8009
      if ftype == TType.STOP:
8010
        break
8011
      if fid == 1:
8012
        if ftype == TType.STRING:
8013
          self.itemKey = iprot.readString();
8014
        else:
8015
          iprot.skip(ftype)
8016
      elif fid == 2:
8017
        if ftype == TType.I64:
8018
          self.warehouseId = iprot.readI64();
8019
        else:
8020
          iprot.skip(ftype)
8021
      else:
8022
        iprot.skip(ftype)
8023
      iprot.readFieldEnd()
8024
    iprot.readStructEnd()
8025
 
8026
  def write(self, oprot):
8027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8029
      return
8030
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_args')
8031
    if self.itemKey is not None:
8032
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
8033
      oprot.writeString(self.itemKey)
8034
      oprot.writeFieldEnd()
8035
    if self.warehouseId is not None:
8036
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8037
      oprot.writeI64(self.warehouseId)
8038
      oprot.writeFieldEnd()
8039
    oprot.writeFieldStop()
8040
    oprot.writeStructEnd()
8041
 
8042
  def validate(self):
8043
    return
8044
 
8045
 
8046
  def __repr__(self):
8047
    L = ['%s=%r' % (key, value)
8048
      for key, value in self.__dict__.iteritems()]
8049
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8050
 
8051
  def __eq__(self, other):
8052
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8053
 
8054
  def __ne__(self, other):
8055
    return not (self == other)
8056
 
8057
class markMissedInventoryUpdatesAsProcessed_result:
8058
 
8059
  thrift_spec = (
8060
  )
8061
 
8062
  def read(self, iprot):
8063
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8064
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8065
      return
8066
    iprot.readStructBegin()
8067
    while True:
8068
      (fname, ftype, fid) = iprot.readFieldBegin()
8069
      if ftype == TType.STOP:
8070
        break
8071
      else:
8072
        iprot.skip(ftype)
8073
      iprot.readFieldEnd()
8074
    iprot.readStructEnd()
8075
 
8076
  def write(self, oprot):
8077
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8078
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8079
      return
8080
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_result')
8081
    oprot.writeFieldStop()
8082
    oprot.writeStructEnd()
8083
 
8084
  def validate(self):
8085
    return
8086
 
8087
 
8088
  def __repr__(self):
8089
    L = ['%s=%r' % (key, value)
8090
      for key, value in self.__dict__.iteritems()]
8091
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8092
 
8093
  def __eq__(self, other):
8094
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8095
 
8096
  def __ne__(self, other):
8097
    return not (self == other)
8098
 
8099
class getIgnoredItemKeys_args:
8100
 
8101
  thrift_spec = (
8102
  )
8103
 
8104
  def read(self, iprot):
8105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8107
      return
8108
    iprot.readStructBegin()
8109
    while True:
8110
      (fname, ftype, fid) = iprot.readFieldBegin()
8111
      if ftype == TType.STOP:
8112
        break
8113
      else:
8114
        iprot.skip(ftype)
8115
      iprot.readFieldEnd()
8116
    iprot.readStructEnd()
8117
 
8118
  def write(self, oprot):
8119
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8120
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8121
      return
8122
    oprot.writeStructBegin('getIgnoredItemKeys_args')
8123
    oprot.writeFieldStop()
8124
    oprot.writeStructEnd()
8125
 
8126
  def validate(self):
8127
    return
8128
 
8129
 
8130
  def __repr__(self):
8131
    L = ['%s=%r' % (key, value)
8132
      for key, value in self.__dict__.iteritems()]
8133
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8134
 
8135
  def __eq__(self, other):
8136
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8137
 
8138
  def __ne__(self, other):
8139
    return not (self == other)
8140
 
8141
class getIgnoredItemKeys_result:
8142
  """
8143
  Attributes:
8144
   - success
8145
  """
8146
 
8147
  thrift_spec = (
8148
    (0, TType.MAP, 'success', (TType.STRING,None,TType.MAP,(TType.I64,None,TType.I64,None)), None, ), # 0
8149
  )
8150
 
8151
  def __init__(self, success=None,):
8152
    self.success = success
8153
 
8154
  def read(self, iprot):
8155
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8156
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8157
      return
8158
    iprot.readStructBegin()
8159
    while True:
8160
      (fname, ftype, fid) = iprot.readFieldBegin()
8161
      if ftype == TType.STOP:
8162
        break
8163
      if fid == 0:
8164
        if ftype == TType.MAP:
8165
          self.success = {}
8182 amar.kumar 8166
          (_ktype109, _vtype110, _size108 ) = iprot.readMapBegin() 
8167
          for _i112 in xrange(_size108):
8168
            _key113 = iprot.readString();
8169
            _val114 = {}
8170
            (_ktype116, _vtype117, _size115 ) = iprot.readMapBegin() 
8171
            for _i119 in xrange(_size115):
8172
              _key120 = iprot.readI64();
8173
              _val121 = iprot.readI64();
8174
              _val114[_key120] = _val121
5944 mandeep.dh 8175
            iprot.readMapEnd()
8182 amar.kumar 8176
            self.success[_key113] = _val114
5944 mandeep.dh 8177
          iprot.readMapEnd()
8178
        else:
8179
          iprot.skip(ftype)
8180
      else:
8181
        iprot.skip(ftype)
8182
      iprot.readFieldEnd()
8183
    iprot.readStructEnd()
8184
 
8185
  def write(self, oprot):
8186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8188
      return
8189
    oprot.writeStructBegin('getIgnoredItemKeys_result')
8190
    if self.success is not None:
8191
      oprot.writeFieldBegin('success', TType.MAP, 0)
8192
      oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.success))
8182 amar.kumar 8193
      for kiter122,viter123 in self.success.items():
8194
        oprot.writeString(kiter122)
8195
        oprot.writeMapBegin(TType.I64, TType.I64, len(viter123))
8196
        for kiter124,viter125 in viter123.items():
8197
          oprot.writeI64(kiter124)
8198
          oprot.writeI64(viter125)
5944 mandeep.dh 8199
        oprot.writeMapEnd()
8200
      oprot.writeMapEnd()
8201
      oprot.writeFieldEnd()
8202
    oprot.writeFieldStop()
8203
    oprot.writeStructEnd()
8204
 
8205
  def validate(self):
8206
    return
8207
 
8208
 
8209
  def __repr__(self):
8210
    L = ['%s=%r' % (key, value)
8211
      for key, value in self.__dict__.iteritems()]
8212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8213
 
8214
  def __eq__(self, other):
8215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8216
 
8217
  def __ne__(self, other):
8218
    return not (self == other)
8219
 
8220
class addBadInventory_args:
8221
  """
8222
  Attributes:
8223
   - itemId
8224
   - warehouseId
8225
   - quantity
8226
  """
8227
 
8228
  thrift_spec = (
8229
    None, # 0
8230
    (1, TType.I64, 'itemId', None, None, ), # 1
8231
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8232
    (3, TType.I64, 'quantity', None, None, ), # 3
8233
  )
8234
 
8235
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
8236
    self.itemId = itemId
8237
    self.warehouseId = warehouseId
8238
    self.quantity = quantity
8239
 
8240
  def read(self, iprot):
8241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8243
      return
8244
    iprot.readStructBegin()
8245
    while True:
8246
      (fname, ftype, fid) = iprot.readFieldBegin()
8247
      if ftype == TType.STOP:
8248
        break
8249
      if fid == 1:
8250
        if ftype == TType.I64:
8251
          self.itemId = iprot.readI64();
8252
        else:
8253
          iprot.skip(ftype)
8254
      elif fid == 2:
8255
        if ftype == TType.I64:
8256
          self.warehouseId = iprot.readI64();
8257
        else:
8258
          iprot.skip(ftype)
8259
      elif fid == 3:
8260
        if ftype == TType.I64:
8261
          self.quantity = iprot.readI64();
8262
        else:
8263
          iprot.skip(ftype)
8264
      else:
8265
        iprot.skip(ftype)
8266
      iprot.readFieldEnd()
8267
    iprot.readStructEnd()
8268
 
8269
  def write(self, oprot):
8270
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8271
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8272
      return
8273
    oprot.writeStructBegin('addBadInventory_args')
8274
    if self.itemId is not None:
8275
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8276
      oprot.writeI64(self.itemId)
8277
      oprot.writeFieldEnd()
8278
    if self.warehouseId is not None:
8279
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8280
      oprot.writeI64(self.warehouseId)
8281
      oprot.writeFieldEnd()
8282
    if self.quantity is not None:
8283
      oprot.writeFieldBegin('quantity', TType.I64, 3)
8284
      oprot.writeI64(self.quantity)
8285
      oprot.writeFieldEnd()
8286
    oprot.writeFieldStop()
8287
    oprot.writeStructEnd()
8288
 
8289
  def validate(self):
8290
    return
8291
 
8292
 
8293
  def __repr__(self):
8294
    L = ['%s=%r' % (key, value)
8295
      for key, value in self.__dict__.iteritems()]
8296
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8297
 
8298
  def __eq__(self, other):
8299
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8300
 
8301
  def __ne__(self, other):
8302
    return not (self == other)
8303
 
8304
class addBadInventory_result:
8305
  """
8306
  Attributes:
8307
   - cex
8308
  """
8309
 
8310
  thrift_spec = (
8311
    None, # 0
8312
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8313
  )
8314
 
8315
  def __init__(self, cex=None,):
8316
    self.cex = cex
8317
 
8318
  def read(self, iprot):
8319
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8320
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8321
      return
8322
    iprot.readStructBegin()
8323
    while True:
8324
      (fname, ftype, fid) = iprot.readFieldBegin()
8325
      if ftype == TType.STOP:
8326
        break
8327
      if fid == 1:
8328
        if ftype == TType.STRUCT:
8329
          self.cex = InventoryServiceException()
8330
          self.cex.read(iprot)
8331
        else:
8332
          iprot.skip(ftype)
8333
      else:
8334
        iprot.skip(ftype)
8335
      iprot.readFieldEnd()
8336
    iprot.readStructEnd()
8337
 
8338
  def write(self, oprot):
8339
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8340
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8341
      return
8342
    oprot.writeStructBegin('addBadInventory_result')
8343
    if self.cex is not None:
8344
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8345
      self.cex.write(oprot)
8346
      oprot.writeFieldEnd()
8347
    oprot.writeFieldStop()
8348
    oprot.writeStructEnd()
8349
 
8350
  def validate(self):
8351
    return
8352
 
8353
 
8354
  def __repr__(self):
8355
    L = ['%s=%r' % (key, value)
8356
      for key, value in self.__dict__.iteritems()]
8357
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8358
 
8359
  def __eq__(self, other):
8360
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8361
 
8362
  def __ne__(self, other):
8363
    return not (self == other)
8364
 
8365
class getShippingLocations_args:
8366
 
8367
  thrift_spec = (
8368
  )
8369
 
8370
  def read(self, iprot):
8371
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8372
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8373
      return
8374
    iprot.readStructBegin()
8375
    while True:
8376
      (fname, ftype, fid) = iprot.readFieldBegin()
8377
      if ftype == TType.STOP:
8378
        break
8379
      else:
8380
        iprot.skip(ftype)
8381
      iprot.readFieldEnd()
8382
    iprot.readStructEnd()
8383
 
8384
  def write(self, oprot):
8385
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8386
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8387
      return
8388
    oprot.writeStructBegin('getShippingLocations_args')
8389
    oprot.writeFieldStop()
8390
    oprot.writeStructEnd()
8391
 
8392
  def validate(self):
8393
    return
8394
 
8395
 
8396
  def __repr__(self):
8397
    L = ['%s=%r' % (key, value)
8398
      for key, value in self.__dict__.iteritems()]
8399
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8400
 
8401
  def __eq__(self, other):
8402
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8403
 
8404
  def __ne__(self, other):
8405
    return not (self == other)
8406
 
8407
class getShippingLocations_result:
8408
  """
8409
  Attributes:
8410
   - success
8411
  """
8412
 
8413
  thrift_spec = (
8414
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
8415
  )
8416
 
8417
  def __init__(self, success=None,):
8418
    self.success = success
8419
 
8420
  def read(self, iprot):
8421
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8422
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8423
      return
8424
    iprot.readStructBegin()
8425
    while True:
8426
      (fname, ftype, fid) = iprot.readFieldBegin()
8427
      if ftype == TType.STOP:
8428
        break
8429
      if fid == 0:
8430
        if ftype == TType.LIST:
8431
          self.success = []
8182 amar.kumar 8432
          (_etype129, _size126) = iprot.readListBegin()
8433
          for _i130 in xrange(_size126):
8434
            _elem131 = Warehouse()
8435
            _elem131.read(iprot)
8436
            self.success.append(_elem131)
5944 mandeep.dh 8437
          iprot.readListEnd()
8438
        else:
8439
          iprot.skip(ftype)
8440
      else:
8441
        iprot.skip(ftype)
8442
      iprot.readFieldEnd()
8443
    iprot.readStructEnd()
8444
 
8445
  def write(self, oprot):
8446
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8447
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8448
      return
8449
    oprot.writeStructBegin('getShippingLocations_result')
8450
    if self.success is not None:
8451
      oprot.writeFieldBegin('success', TType.LIST, 0)
8452
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8453
      for iter132 in self.success:
8454
        iter132.write(oprot)
5944 mandeep.dh 8455
      oprot.writeListEnd()
8456
      oprot.writeFieldEnd()
8457
    oprot.writeFieldStop()
8458
    oprot.writeStructEnd()
8459
 
8460
  def validate(self):
8461
    return
8462
 
8463
 
8464
  def __repr__(self):
8465
    L = ['%s=%r' % (key, value)
8466
      for key, value in self.__dict__.iteritems()]
8467
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8468
 
8469
  def __eq__(self, other):
8470
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8471
 
8472
  def __ne__(self, other):
8473
    return not (self == other)
8474
 
8475
class getAllVendorItemMappings_args:
8476
 
8477
  thrift_spec = (
8478
  )
8479
 
8480
  def read(self, iprot):
8481
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8482
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8483
      return
8484
    iprot.readStructBegin()
8485
    while True:
8486
      (fname, ftype, fid) = iprot.readFieldBegin()
8487
      if ftype == TType.STOP:
8488
        break
8489
      else:
8490
        iprot.skip(ftype)
8491
      iprot.readFieldEnd()
8492
    iprot.readStructEnd()
8493
 
8494
  def write(self, oprot):
8495
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8496
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8497
      return
8498
    oprot.writeStructBegin('getAllVendorItemMappings_args')
8499
    oprot.writeFieldStop()
8500
    oprot.writeStructEnd()
8501
 
8502
  def validate(self):
8503
    return
8504
 
8505
 
8506
  def __repr__(self):
8507
    L = ['%s=%r' % (key, value)
8508
      for key, value in self.__dict__.iteritems()]
8509
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8510
 
8511
  def __eq__(self, other):
8512
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8513
 
8514
  def __ne__(self, other):
8515
    return not (self == other)
8516
 
8517
class getAllVendorItemMappings_result:
8518
  """
8519
  Attributes:
8520
   - success
8521
  """
8522
 
8523
  thrift_spec = (
8524
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
8525
  )
8526
 
8527
  def __init__(self, success=None,):
8528
    self.success = success
8529
 
8530
  def read(self, iprot):
8531
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8532
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8533
      return
8534
    iprot.readStructBegin()
8535
    while True:
8536
      (fname, ftype, fid) = iprot.readFieldBegin()
8537
      if ftype == TType.STOP:
8538
        break
8539
      if fid == 0:
8540
        if ftype == TType.LIST:
8541
          self.success = []
8182 amar.kumar 8542
          (_etype136, _size133) = iprot.readListBegin()
8543
          for _i137 in xrange(_size133):
8544
            _elem138 = VendorItemMapping()
8545
            _elem138.read(iprot)
8546
            self.success.append(_elem138)
5944 mandeep.dh 8547
          iprot.readListEnd()
8548
        else:
8549
          iprot.skip(ftype)
8550
      else:
8551
        iprot.skip(ftype)
8552
      iprot.readFieldEnd()
8553
    iprot.readStructEnd()
8554
 
8555
  def write(self, oprot):
8556
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8557
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8558
      return
8559
    oprot.writeStructBegin('getAllVendorItemMappings_result')
8560
    if self.success is not None:
8561
      oprot.writeFieldBegin('success', TType.LIST, 0)
8562
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8563
      for iter139 in self.success:
8564
        iter139.write(oprot)
5944 mandeep.dh 8565
      oprot.writeListEnd()
8566
      oprot.writeFieldEnd()
8567
    oprot.writeFieldStop()
8568
    oprot.writeStructEnd()
8569
 
8570
  def validate(self):
8571
    return
8572
 
8573
 
8574
  def __repr__(self):
8575
    L = ['%s=%r' % (key, value)
8576
      for key, value in self.__dict__.iteritems()]
8577
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8578
 
8579
  def __eq__(self, other):
8580
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8581
 
8582
  def __ne__(self, other):
8583
    return not (self == other)
8584
 
8585
class getInventorySnapshot_args:
8586
  """
8587
  Attributes:
8588
   - warehouseId
8589
  """
8590
 
8591
  thrift_spec = (
8592
    None, # 0
8593
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8594
  )
8595
 
8596
  def __init__(self, warehouseId=None,):
8597
    self.warehouseId = warehouseId
8598
 
8599
  def read(self, iprot):
8600
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8601
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8602
      return
8603
    iprot.readStructBegin()
8604
    while True:
8605
      (fname, ftype, fid) = iprot.readFieldBegin()
8606
      if ftype == TType.STOP:
8607
        break
8608
      if fid == 1:
8609
        if ftype == TType.I64:
8610
          self.warehouseId = iprot.readI64();
8611
        else:
8612
          iprot.skip(ftype)
8613
      else:
8614
        iprot.skip(ftype)
8615
      iprot.readFieldEnd()
8616
    iprot.readStructEnd()
8617
 
8618
  def write(self, oprot):
8619
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8620
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8621
      return
8622
    oprot.writeStructBegin('getInventorySnapshot_args')
8623
    if self.warehouseId is not None:
8624
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8625
      oprot.writeI64(self.warehouseId)
8626
      oprot.writeFieldEnd()
8627
    oprot.writeFieldStop()
8628
    oprot.writeStructEnd()
8629
 
8630
  def validate(self):
8631
    return
8632
 
8633
 
8634
  def __repr__(self):
8635
    L = ['%s=%r' % (key, value)
8636
      for key, value in self.__dict__.iteritems()]
8637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8638
 
8639
  def __eq__(self, other):
8640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8641
 
8642
  def __ne__(self, other):
8643
    return not (self == other)
8644
 
8645
class getInventorySnapshot_result:
8646
  """
8647
  Attributes:
8648
   - success
8649
  """
8650
 
8651
  thrift_spec = (
8652
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ItemInventory, ItemInventory.thrift_spec)), None, ), # 0
8653
  )
8654
 
8655
  def __init__(self, success=None,):
8656
    self.success = success
8657
 
8658
  def read(self, iprot):
8659
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8660
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8661
      return
8662
    iprot.readStructBegin()
8663
    while True:
8664
      (fname, ftype, fid) = iprot.readFieldBegin()
8665
      if ftype == TType.STOP:
8666
        break
8667
      if fid == 0:
8668
        if ftype == TType.MAP:
8669
          self.success = {}
8182 amar.kumar 8670
          (_ktype141, _vtype142, _size140 ) = iprot.readMapBegin() 
8671
          for _i144 in xrange(_size140):
8672
            _key145 = iprot.readI64();
8673
            _val146 = ItemInventory()
8674
            _val146.read(iprot)
8675
            self.success[_key145] = _val146
5944 mandeep.dh 8676
          iprot.readMapEnd()
8677
        else:
8678
          iprot.skip(ftype)
8679
      else:
8680
        iprot.skip(ftype)
8681
      iprot.readFieldEnd()
8682
    iprot.readStructEnd()
8683
 
8684
  def write(self, oprot):
8685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8687
      return
8688
    oprot.writeStructBegin('getInventorySnapshot_result')
8689
    if self.success is not None:
8690
      oprot.writeFieldBegin('success', TType.MAP, 0)
8691
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
8182 amar.kumar 8692
      for kiter147,viter148 in self.success.items():
8693
        oprot.writeI64(kiter147)
8694
        viter148.write(oprot)
5944 mandeep.dh 8695
      oprot.writeMapEnd()
8696
      oprot.writeFieldEnd()
8697
    oprot.writeFieldStop()
8698
    oprot.writeStructEnd()
8699
 
8700
  def validate(self):
8701
    return
8702
 
8703
 
8704
  def __repr__(self):
8705
    L = ['%s=%r' % (key, value)
8706
      for key, value in self.__dict__.iteritems()]
8707
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8708
 
8709
  def __eq__(self, other):
8710
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8711
 
8712
  def __ne__(self, other):
8713
    return not (self == other)
8714
 
8715
class clearItemAvailabilityCache_args:
8716
 
8717
  thrift_spec = (
8718
  )
8719
 
8720
  def read(self, iprot):
8721
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8722
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8723
      return
8724
    iprot.readStructBegin()
8725
    while True:
8726
      (fname, ftype, fid) = iprot.readFieldBegin()
8727
      if ftype == TType.STOP:
8728
        break
8729
      else:
8730
        iprot.skip(ftype)
8731
      iprot.readFieldEnd()
8732
    iprot.readStructEnd()
8733
 
8734
  def write(self, oprot):
8735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8737
      return
8738
    oprot.writeStructBegin('clearItemAvailabilityCache_args')
8739
    oprot.writeFieldStop()
8740
    oprot.writeStructEnd()
8741
 
8742
  def validate(self):
8743
    return
8744
 
8745
 
8746
  def __repr__(self):
8747
    L = ['%s=%r' % (key, value)
8748
      for key, value in self.__dict__.iteritems()]
8749
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8750
 
8751
  def __eq__(self, other):
8752
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8753
 
8754
  def __ne__(self, other):
8755
    return not (self == other)
8756
 
8757
class clearItemAvailabilityCache_result:
8758
 
8759
  thrift_spec = (
8760
  )
8761
 
8762
  def read(self, iprot):
8763
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8764
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8765
      return
8766
    iprot.readStructBegin()
8767
    while True:
8768
      (fname, ftype, fid) = iprot.readFieldBegin()
8769
      if ftype == TType.STOP:
8770
        break
8771
      else:
8772
        iprot.skip(ftype)
8773
      iprot.readFieldEnd()
8774
    iprot.readStructEnd()
8775
 
8776
  def write(self, oprot):
8777
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8778
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8779
      return
8780
    oprot.writeStructBegin('clearItemAvailabilityCache_result')
8781
    oprot.writeFieldStop()
8782
    oprot.writeStructEnd()
8783
 
8784
  def validate(self):
8785
    return
8786
 
8787
 
8788
  def __repr__(self):
8789
    L = ['%s=%r' % (key, value)
8790
      for key, value in self.__dict__.iteritems()]
8791
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8792
 
8793
  def __eq__(self, other):
8794
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8795
 
8796
  def __ne__(self, other):
8797
    return not (self == other)
8798
 
8799
class updateVendorString_args:
8800
  """
8801
  Attributes:
8802
   - warehouseId
8803
   - vendorString
8804
  """
8805
 
8806
  thrift_spec = (
8807
    None, # 0
8808
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8809
    (2, TType.STRING, 'vendorString', None, None, ), # 2
8810
  )
8811
 
8812
  def __init__(self, warehouseId=None, vendorString=None,):
8813
    self.warehouseId = warehouseId
8814
    self.vendorString = vendorString
8815
 
8816
  def read(self, iprot):
8817
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8818
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8819
      return
8820
    iprot.readStructBegin()
8821
    while True:
8822
      (fname, ftype, fid) = iprot.readFieldBegin()
8823
      if ftype == TType.STOP:
8824
        break
8825
      if fid == 1:
8826
        if ftype == TType.I64:
8827
          self.warehouseId = iprot.readI64();
8828
        else:
8829
          iprot.skip(ftype)
8830
      elif fid == 2:
8831
        if ftype == TType.STRING:
8832
          self.vendorString = iprot.readString();
8833
        else:
8834
          iprot.skip(ftype)
8835
      else:
8836
        iprot.skip(ftype)
8837
      iprot.readFieldEnd()
8838
    iprot.readStructEnd()
8839
 
8840
  def write(self, oprot):
8841
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8842
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8843
      return
8844
    oprot.writeStructBegin('updateVendorString_args')
8845
    if self.warehouseId is not None:
8846
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8847
      oprot.writeI64(self.warehouseId)
8848
      oprot.writeFieldEnd()
8849
    if self.vendorString is not None:
8850
      oprot.writeFieldBegin('vendorString', TType.STRING, 2)
8851
      oprot.writeString(self.vendorString)
8852
      oprot.writeFieldEnd()
8853
    oprot.writeFieldStop()
8854
    oprot.writeStructEnd()
8855
 
8856
  def validate(self):
8857
    return
8858
 
8859
 
8860
  def __repr__(self):
8861
    L = ['%s=%r' % (key, value)
8862
      for key, value in self.__dict__.iteritems()]
8863
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8864
 
8865
  def __eq__(self, other):
8866
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8867
 
8868
  def __ne__(self, other):
8869
    return not (self == other)
8870
 
8871
class updateVendorString_result:
8872
 
8873
  thrift_spec = (
8874
  )
8875
 
8876
  def read(self, iprot):
8877
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8878
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8879
      return
8880
    iprot.readStructBegin()
8881
    while True:
8882
      (fname, ftype, fid) = iprot.readFieldBegin()
8883
      if ftype == TType.STOP:
8884
        break
8885
      else:
8886
        iprot.skip(ftype)
8887
      iprot.readFieldEnd()
8888
    iprot.readStructEnd()
8889
 
8890
  def write(self, oprot):
8891
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8892
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8893
      return
8894
    oprot.writeStructBegin('updateVendorString_result')
8895
    oprot.writeFieldStop()
8896
    oprot.writeStructEnd()
8897
 
8898
  def validate(self):
8899
    return
8900
 
8901
 
8902
  def __repr__(self):
8903
    L = ['%s=%r' % (key, value)
8904
      for key, value in self.__dict__.iteritems()]
8905
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8906
 
8907
  def __eq__(self, other):
8908
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8909
 
8910
  def __ne__(self, other):
8911
    return not (self == other)
6096 amit.gupta 8912
 
8913
class clearItemAvailabilityCacheForItem_args:
8914
  """
8915
  Attributes:
8916
   - item_id
8917
  """
8918
 
8919
  thrift_spec = (
8920
    None, # 0
8921
    (1, TType.I64, 'item_id', None, None, ), # 1
8922
  )
8923
 
8924
  def __init__(self, item_id=None,):
8925
    self.item_id = item_id
8926
 
8927
  def read(self, iprot):
8928
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8929
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8930
      return
8931
    iprot.readStructBegin()
8932
    while True:
8933
      (fname, ftype, fid) = iprot.readFieldBegin()
8934
      if ftype == TType.STOP:
8935
        break
8936
      if fid == 1:
8937
        if ftype == TType.I64:
8938
          self.item_id = iprot.readI64();
8939
        else:
8940
          iprot.skip(ftype)
8941
      else:
8942
        iprot.skip(ftype)
8943
      iprot.readFieldEnd()
8944
    iprot.readStructEnd()
8945
 
8946
  def write(self, oprot):
8947
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8948
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8949
      return
8950
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_args')
8951
    if self.item_id is not None:
8952
      oprot.writeFieldBegin('item_id', TType.I64, 1)
8953
      oprot.writeI64(self.item_id)
8954
      oprot.writeFieldEnd()
8955
    oprot.writeFieldStop()
8956
    oprot.writeStructEnd()
8957
 
8958
  def validate(self):
8959
    return
8960
 
8961
 
8962
  def __repr__(self):
8963
    L = ['%s=%r' % (key, value)
8964
      for key, value in self.__dict__.iteritems()]
8965
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8966
 
8967
  def __eq__(self, other):
8968
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8969
 
8970
  def __ne__(self, other):
8971
    return not (self == other)
8972
 
8973
class clearItemAvailabilityCacheForItem_result:
8974
 
8975
  thrift_spec = (
8976
  )
8977
 
8978
  def read(self, iprot):
8979
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8980
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8981
      return
8982
    iprot.readStructBegin()
8983
    while True:
8984
      (fname, ftype, fid) = iprot.readFieldBegin()
8985
      if ftype == TType.STOP:
8986
        break
8987
      else:
8988
        iprot.skip(ftype)
8989
      iprot.readFieldEnd()
8990
    iprot.readStructEnd()
8991
 
8992
  def write(self, oprot):
8993
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8994
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8995
      return
8996
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_result')
8997
    oprot.writeFieldStop()
8998
    oprot.writeStructEnd()
8999
 
9000
  def validate(self):
9001
    return
9002
 
9003
 
9004
  def __repr__(self):
9005
    L = ['%s=%r' % (key, value)
9006
      for key, value in self.__dict__.iteritems()]
9007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9008
 
9009
  def __eq__(self, other):
9010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9011
 
9012
  def __ne__(self, other):
9013
    return not (self == other)
6467 amar.kumar 9014
 
9015
class getOurWarehouseIdForVendor_args:
9016
  """
9017
  Attributes:
9018
   - vendorId
7718 amar.kumar 9019
   - billingWarehouseId
6467 amar.kumar 9020
  """
9021
 
9022
  thrift_spec = (
9023
    None, # 0
9024
    (1, TType.I64, 'vendorId', None, None, ), # 1
7718 amar.kumar 9025
    (2, TType.I64, 'billingWarehouseId', None, None, ), # 2
6467 amar.kumar 9026
  )
9027
 
7718 amar.kumar 9028
  def __init__(self, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 9029
    self.vendorId = vendorId
7718 amar.kumar 9030
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 9031
 
9032
  def read(self, iprot):
9033
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9034
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9035
      return
9036
    iprot.readStructBegin()
9037
    while True:
9038
      (fname, ftype, fid) = iprot.readFieldBegin()
9039
      if ftype == TType.STOP:
9040
        break
9041
      if fid == 1:
9042
        if ftype == TType.I64:
9043
          self.vendorId = iprot.readI64();
9044
        else:
9045
          iprot.skip(ftype)
7718 amar.kumar 9046
      elif fid == 2:
9047
        if ftype == TType.I64:
9048
          self.billingWarehouseId = iprot.readI64();
9049
        else:
9050
          iprot.skip(ftype)
6467 amar.kumar 9051
      else:
9052
        iprot.skip(ftype)
9053
      iprot.readFieldEnd()
9054
    iprot.readStructEnd()
9055
 
9056
  def write(self, oprot):
9057
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9058
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9059
      return
9060
    oprot.writeStructBegin('getOurWarehouseIdForVendor_args')
9061
    if self.vendorId is not None:
9062
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
9063
      oprot.writeI64(self.vendorId)
9064
      oprot.writeFieldEnd()
7718 amar.kumar 9065
    if self.billingWarehouseId is not None:
9066
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 2)
9067
      oprot.writeI64(self.billingWarehouseId)
9068
      oprot.writeFieldEnd()
6467 amar.kumar 9069
    oprot.writeFieldStop()
9070
    oprot.writeStructEnd()
9071
 
9072
  def validate(self):
9073
    return
9074
 
9075
 
9076
  def __repr__(self):
9077
    L = ['%s=%r' % (key, value)
9078
      for key, value in self.__dict__.iteritems()]
9079
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9080
 
9081
  def __eq__(self, other):
9082
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9083
 
9084
  def __ne__(self, other):
9085
    return not (self == other)
9086
 
9087
class getOurWarehouseIdForVendor_result:
9088
  """
9089
  Attributes:
9090
   - success
9091
  """
9092
 
9093
  thrift_spec = (
9094
    (0, TType.I64, 'success', None, None, ), # 0
9095
  )
9096
 
9097
  def __init__(self, success=None,):
9098
    self.success = success
9099
 
9100
  def read(self, iprot):
9101
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9102
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9103
      return
9104
    iprot.readStructBegin()
9105
    while True:
9106
      (fname, ftype, fid) = iprot.readFieldBegin()
9107
      if ftype == TType.STOP:
9108
        break
9109
      if fid == 0:
9110
        if ftype == TType.I64:
9111
          self.success = iprot.readI64();
9112
        else:
9113
          iprot.skip(ftype)
9114
      else:
9115
        iprot.skip(ftype)
9116
      iprot.readFieldEnd()
9117
    iprot.readStructEnd()
9118
 
9119
  def write(self, oprot):
9120
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9121
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9122
      return
9123
    oprot.writeStructBegin('getOurWarehouseIdForVendor_result')
9124
    if self.success is not None:
9125
      oprot.writeFieldBegin('success', TType.I64, 0)
9126
      oprot.writeI64(self.success)
9127
      oprot.writeFieldEnd()
9128
    oprot.writeFieldStop()
9129
    oprot.writeStructEnd()
9130
 
9131
  def validate(self):
9132
    return
9133
 
9134
 
9135
  def __repr__(self):
9136
    L = ['%s=%r' % (key, value)
9137
      for key, value in self.__dict__.iteritems()]
9138
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9139
 
9140
  def __eq__(self, other):
9141
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9142
 
9143
  def __ne__(self, other):
9144
    return not (self == other)
6484 amar.kumar 9145
 
9146
class getItemAvailabilitiesAtOurWarehouses_args:
9147
  """
9148
  Attributes:
9149
   - item_ids
9150
  """
9151
 
9152
  thrift_spec = (
9153
    None, # 0
9154
    (1, TType.LIST, 'item_ids', (TType.I64,None), None, ), # 1
9155
  )
9156
 
9157
  def __init__(self, item_ids=None,):
9158
    self.item_ids = item_ids
9159
 
9160
  def read(self, iprot):
9161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9163
      return
9164
    iprot.readStructBegin()
9165
    while True:
9166
      (fname, ftype, fid) = iprot.readFieldBegin()
9167
      if ftype == TType.STOP:
9168
        break
9169
      if fid == 1:
9170
        if ftype == TType.LIST:
9171
          self.item_ids = []
8182 amar.kumar 9172
          (_etype152, _size149) = iprot.readListBegin()
9173
          for _i153 in xrange(_size149):
9174
            _elem154 = iprot.readI64();
9175
            self.item_ids.append(_elem154)
6484 amar.kumar 9176
          iprot.readListEnd()
9177
        else:
9178
          iprot.skip(ftype)
9179
      else:
9180
        iprot.skip(ftype)
9181
      iprot.readFieldEnd()
9182
    iprot.readStructEnd()
9183
 
9184
  def write(self, oprot):
9185
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9186
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9187
      return
9188
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_args')
9189
    if self.item_ids is not None:
9190
      oprot.writeFieldBegin('item_ids', TType.LIST, 1)
9191
      oprot.writeListBegin(TType.I64, len(self.item_ids))
8182 amar.kumar 9192
      for iter155 in self.item_ids:
9193
        oprot.writeI64(iter155)
6484 amar.kumar 9194
      oprot.writeListEnd()
9195
      oprot.writeFieldEnd()
9196
    oprot.writeFieldStop()
9197
    oprot.writeStructEnd()
9198
 
9199
  def validate(self):
9200
    return
9201
 
9202
 
9203
  def __repr__(self):
9204
    L = ['%s=%r' % (key, value)
9205
      for key, value in self.__dict__.iteritems()]
9206
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9207
 
9208
  def __eq__(self, other):
9209
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9210
 
9211
  def __ne__(self, other):
9212
    return not (self == other)
9213
 
9214
class getItemAvailabilitiesAtOurWarehouses_result:
9215
  """
9216
  Attributes:
9217
   - success
9218
  """
9219
 
9220
  thrift_spec = (
9221
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
9222
  )
9223
 
9224
  def __init__(self, success=None,):
9225
    self.success = success
9226
 
9227
  def read(self, iprot):
9228
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9229
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9230
      return
9231
    iprot.readStructBegin()
9232
    while True:
9233
      (fname, ftype, fid) = iprot.readFieldBegin()
9234
      if ftype == TType.STOP:
9235
        break
9236
      if fid == 0:
9237
        if ftype == TType.MAP:
9238
          self.success = {}
8182 amar.kumar 9239
          (_ktype157, _vtype158, _size156 ) = iprot.readMapBegin() 
9240
          for _i160 in xrange(_size156):
9241
            _key161 = iprot.readI64();
9242
            _val162 = iprot.readI64();
9243
            self.success[_key161] = _val162
6484 amar.kumar 9244
          iprot.readMapEnd()
9245
        else:
9246
          iprot.skip(ftype)
9247
      else:
9248
        iprot.skip(ftype)
9249
      iprot.readFieldEnd()
9250
    iprot.readStructEnd()
9251
 
9252
  def write(self, oprot):
9253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9255
      return
9256
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_result')
9257
    if self.success is not None:
9258
      oprot.writeFieldBegin('success', TType.MAP, 0)
9259
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
8182 amar.kumar 9260
      for kiter163,viter164 in self.success.items():
9261
        oprot.writeI64(kiter163)
9262
        oprot.writeI64(viter164)
6484 amar.kumar 9263
      oprot.writeMapEnd()
9264
      oprot.writeFieldEnd()
9265
    oprot.writeFieldStop()
9266
    oprot.writeStructEnd()
9267
 
9268
  def validate(self):
9269
    return
9270
 
9271
 
9272
  def __repr__(self):
9273
    L = ['%s=%r' % (key, value)
9274
      for key, value in self.__dict__.iteritems()]
9275
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9276
 
9277
  def __eq__(self, other):
9278
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9279
 
9280
  def __ne__(self, other):
9281
    return not (self == other)
6531 vikram.rag 9282
 
9283
class getMonitoredWarehouseForVendors_args:
9284
  """
9285
  Attributes:
9286
   - vendorIds
9287
  """
9288
 
9289
  thrift_spec = (
9290
    None, # 0
9291
    (1, TType.LIST, 'vendorIds', (TType.I64,None), None, ), # 1
9292
  )
9293
 
9294
  def __init__(self, vendorIds=None,):
9295
    self.vendorIds = vendorIds
9296
 
9297
  def read(self, iprot):
9298
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9299
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9300
      return
9301
    iprot.readStructBegin()
9302
    while True:
9303
      (fname, ftype, fid) = iprot.readFieldBegin()
9304
      if ftype == TType.STOP:
9305
        break
9306
      if fid == 1:
9307
        if ftype == TType.LIST:
9308
          self.vendorIds = []
8182 amar.kumar 9309
          (_etype168, _size165) = iprot.readListBegin()
9310
          for _i169 in xrange(_size165):
9311
            _elem170 = iprot.readI64();
9312
            self.vendorIds.append(_elem170)
6531 vikram.rag 9313
          iprot.readListEnd()
9314
        else:
9315
          iprot.skip(ftype)
9316
      else:
9317
        iprot.skip(ftype)
9318
      iprot.readFieldEnd()
9319
    iprot.readStructEnd()
9320
 
9321
  def write(self, oprot):
9322
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9323
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9324
      return
9325
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_args')
9326
    if self.vendorIds is not None:
9327
      oprot.writeFieldBegin('vendorIds', TType.LIST, 1)
9328
      oprot.writeListBegin(TType.I64, len(self.vendorIds))
8182 amar.kumar 9329
      for iter171 in self.vendorIds:
9330
        oprot.writeI64(iter171)
6531 vikram.rag 9331
      oprot.writeListEnd()
9332
      oprot.writeFieldEnd()
9333
    oprot.writeFieldStop()
9334
    oprot.writeStructEnd()
9335
 
9336
  def validate(self):
9337
    return
9338
 
9339
 
9340
  def __repr__(self):
9341
    L = ['%s=%r' % (key, value)
9342
      for key, value in self.__dict__.iteritems()]
9343
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9344
 
9345
  def __eq__(self, other):
9346
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9347
 
9348
  def __ne__(self, other):
9349
    return not (self == other)
9350
 
9351
class getMonitoredWarehouseForVendors_result:
9352
  """
9353
  Attributes:
9354
   - success
9355
  """
9356
 
9357
  thrift_spec = (
9358
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9359
  )
9360
 
9361
  def __init__(self, success=None,):
9362
    self.success = success
9363
 
9364
  def read(self, iprot):
9365
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9366
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9367
      return
9368
    iprot.readStructBegin()
9369
    while True:
9370
      (fname, ftype, fid) = iprot.readFieldBegin()
9371
      if ftype == TType.STOP:
9372
        break
9373
      if fid == 0:
9374
        if ftype == TType.LIST:
9375
          self.success = []
8182 amar.kumar 9376
          (_etype175, _size172) = iprot.readListBegin()
9377
          for _i176 in xrange(_size172):
9378
            _elem177 = iprot.readI64();
9379
            self.success.append(_elem177)
6531 vikram.rag 9380
          iprot.readListEnd()
9381
        else:
9382
          iprot.skip(ftype)
9383
      else:
9384
        iprot.skip(ftype)
9385
      iprot.readFieldEnd()
9386
    iprot.readStructEnd()
9387
 
9388
  def write(self, oprot):
9389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9391
      return
9392
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_result')
9393
    if self.success is not None:
9394
      oprot.writeFieldBegin('success', TType.LIST, 0)
9395
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 9396
      for iter178 in self.success:
9397
        oprot.writeI64(iter178)
6531 vikram.rag 9398
      oprot.writeListEnd()
9399
      oprot.writeFieldEnd()
9400
    oprot.writeFieldStop()
9401
    oprot.writeStructEnd()
9402
 
9403
  def validate(self):
9404
    return
9405
 
9406
 
9407
  def __repr__(self):
9408
    L = ['%s=%r' % (key, value)
9409
      for key, value in self.__dict__.iteritems()]
9410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9411
 
9412
  def __eq__(self, other):
9413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9414
 
9415
  def __ne__(self, other):
9416
    return not (self == other)
9417
 
9418
class getIgnoredWarehouseidsAndItemids_args:
9419
 
9420
  thrift_spec = (
9421
  )
9422
 
9423
  def read(self, iprot):
9424
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9425
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9426
      return
9427
    iprot.readStructBegin()
9428
    while True:
9429
      (fname, ftype, fid) = iprot.readFieldBegin()
9430
      if ftype == TType.STOP:
9431
        break
9432
      else:
9433
        iprot.skip(ftype)
9434
      iprot.readFieldEnd()
9435
    iprot.readStructEnd()
9436
 
9437
  def write(self, oprot):
9438
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9439
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9440
      return
9441
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_args')
9442
    oprot.writeFieldStop()
9443
    oprot.writeStructEnd()
9444
 
9445
  def validate(self):
9446
    return
9447
 
9448
 
9449
  def __repr__(self):
9450
    L = ['%s=%r' % (key, value)
9451
      for key, value in self.__dict__.iteritems()]
9452
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9453
 
9454
  def __eq__(self, other):
9455
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9456
 
9457
  def __ne__(self, other):
9458
    return not (self == other)
9459
 
9460
class getIgnoredWarehouseidsAndItemids_result:
9461
  """
9462
  Attributes:
9463
   - success
9464
  """
9465
 
9466
  thrift_spec = (
9467
    (0, TType.LIST, 'success', (TType.STRUCT,(IgnoredInventoryUpdateItems, IgnoredInventoryUpdateItems.thrift_spec)), None, ), # 0
9468
  )
9469
 
9470
  def __init__(self, success=None,):
9471
    self.success = success
9472
 
9473
  def read(self, iprot):
9474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9476
      return
9477
    iprot.readStructBegin()
9478
    while True:
9479
      (fname, ftype, fid) = iprot.readFieldBegin()
9480
      if ftype == TType.STOP:
9481
        break
9482
      if fid == 0:
9483
        if ftype == TType.LIST:
9484
          self.success = []
8182 amar.kumar 9485
          (_etype182, _size179) = iprot.readListBegin()
9486
          for _i183 in xrange(_size179):
9487
            _elem184 = IgnoredInventoryUpdateItems()
9488
            _elem184.read(iprot)
9489
            self.success.append(_elem184)
6531 vikram.rag 9490
          iprot.readListEnd()
9491
        else:
9492
          iprot.skip(ftype)
9493
      else:
9494
        iprot.skip(ftype)
9495
      iprot.readFieldEnd()
9496
    iprot.readStructEnd()
9497
 
9498
  def write(self, oprot):
9499
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9500
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9501
      return
9502
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_result')
9503
    if self.success is not None:
9504
      oprot.writeFieldBegin('success', TType.LIST, 0)
9505
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 9506
      for iter185 in self.success:
9507
        iter185.write(oprot)
6531 vikram.rag 9508
      oprot.writeListEnd()
9509
      oprot.writeFieldEnd()
9510
    oprot.writeFieldStop()
9511
    oprot.writeStructEnd()
9512
 
9513
  def validate(self):
9514
    return
9515
 
9516
 
9517
  def __repr__(self):
9518
    L = ['%s=%r' % (key, value)
9519
      for key, value in self.__dict__.iteritems()]
9520
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9521
 
9522
  def __eq__(self, other):
9523
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9524
 
9525
  def __ne__(self, other):
9526
    return not (self == other)
9527
 
9528
class insertItemtoIgnoreInventoryUpdatelist_args:
9529
  """
9530
  Attributes:
9531
   - item_id
9532
   - warehouse_id
9533
  """
9534
 
9535
  thrift_spec = (
9536
    None, # 0
9537
    (1, TType.I64, 'item_id', None, None, ), # 1
9538
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
9539
  )
9540
 
9541
  def __init__(self, item_id=None, warehouse_id=None,):
9542
    self.item_id = item_id
9543
    self.warehouse_id = warehouse_id
9544
 
9545
  def read(self, iprot):
9546
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9547
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9548
      return
9549
    iprot.readStructBegin()
9550
    while True:
9551
      (fname, ftype, fid) = iprot.readFieldBegin()
9552
      if ftype == TType.STOP:
9553
        break
9554
      if fid == 1:
9555
        if ftype == TType.I64:
9556
          self.item_id = iprot.readI64();
9557
        else:
9558
          iprot.skip(ftype)
9559
      elif fid == 2:
9560
        if ftype == TType.I64:
9561
          self.warehouse_id = iprot.readI64();
9562
        else:
9563
          iprot.skip(ftype)
9564
      else:
9565
        iprot.skip(ftype)
9566
      iprot.readFieldEnd()
9567
    iprot.readStructEnd()
9568
 
9569
  def write(self, oprot):
9570
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9571
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9572
      return
9573
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_args')
9574
    if self.item_id is not None:
9575
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9576
      oprot.writeI64(self.item_id)
9577
      oprot.writeFieldEnd()
9578
    if self.warehouse_id is not None:
9579
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
9580
      oprot.writeI64(self.warehouse_id)
9581
      oprot.writeFieldEnd()
9582
    oprot.writeFieldStop()
9583
    oprot.writeStructEnd()
9584
 
9585
  def validate(self):
9586
    return
9587
 
9588
 
9589
  def __repr__(self):
9590
    L = ['%s=%r' % (key, value)
9591
      for key, value in self.__dict__.iteritems()]
9592
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9593
 
9594
  def __eq__(self, other):
9595
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9596
 
9597
  def __ne__(self, other):
9598
    return not (self == other)
9599
 
9600
class insertItemtoIgnoreInventoryUpdatelist_result:
9601
  """
9602
  Attributes:
9603
   - success
9604
  """
9605
 
9606
  thrift_spec = (
9607
    (0, TType.BOOL, 'success', None, None, ), # 0
9608
  )
9609
 
9610
  def __init__(self, success=None,):
9611
    self.success = success
9612
 
9613
  def read(self, iprot):
9614
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9615
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9616
      return
9617
    iprot.readStructBegin()
9618
    while True:
9619
      (fname, ftype, fid) = iprot.readFieldBegin()
9620
      if ftype == TType.STOP:
9621
        break
9622
      if fid == 0:
9623
        if ftype == TType.BOOL:
9624
          self.success = iprot.readBool();
9625
        else:
9626
          iprot.skip(ftype)
9627
      else:
9628
        iprot.skip(ftype)
9629
      iprot.readFieldEnd()
9630
    iprot.readStructEnd()
9631
 
9632
  def write(self, oprot):
9633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9635
      return
9636
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_result')
9637
    if self.success is not None:
9638
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9639
      oprot.writeBool(self.success)
9640
      oprot.writeFieldEnd()
9641
    oprot.writeFieldStop()
9642
    oprot.writeStructEnd()
9643
 
9644
  def validate(self):
9645
    return
9646
 
9647
 
9648
  def __repr__(self):
9649
    L = ['%s=%r' % (key, value)
9650
      for key, value in self.__dict__.iteritems()]
9651
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9652
 
9653
  def __eq__(self, other):
9654
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9655
 
9656
  def __ne__(self, other):
9657
    return not (self == other)
9658
 
9659
class deleteItemFromIgnoredInventoryUpdateList_args:
9660
  """
9661
  Attributes:
9662
   - item_id
9663
   - warehouse_id
9664
  """
9665
 
9666
  thrift_spec = (
9667
    None, # 0
9668
    (1, TType.I64, 'item_id', None, None, ), # 1
9669
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
9670
  )
9671
 
9672
  def __init__(self, item_id=None, warehouse_id=None,):
9673
    self.item_id = item_id
9674
    self.warehouse_id = warehouse_id
9675
 
9676
  def read(self, iprot):
9677
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9678
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9679
      return
9680
    iprot.readStructBegin()
9681
    while True:
9682
      (fname, ftype, fid) = iprot.readFieldBegin()
9683
      if ftype == TType.STOP:
9684
        break
9685
      if fid == 1:
9686
        if ftype == TType.I64:
9687
          self.item_id = iprot.readI64();
9688
        else:
9689
          iprot.skip(ftype)
9690
      elif fid == 2:
9691
        if ftype == TType.I64:
9692
          self.warehouse_id = iprot.readI64();
9693
        else:
9694
          iprot.skip(ftype)
9695
      else:
9696
        iprot.skip(ftype)
9697
      iprot.readFieldEnd()
9698
    iprot.readStructEnd()
9699
 
9700
  def write(self, oprot):
9701
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9702
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9703
      return
9704
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_args')
9705
    if self.item_id is not None:
9706
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9707
      oprot.writeI64(self.item_id)
9708
      oprot.writeFieldEnd()
9709
    if self.warehouse_id is not None:
9710
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
9711
      oprot.writeI64(self.warehouse_id)
9712
      oprot.writeFieldEnd()
9713
    oprot.writeFieldStop()
9714
    oprot.writeStructEnd()
9715
 
9716
  def validate(self):
9717
    return
9718
 
9719
 
9720
  def __repr__(self):
9721
    L = ['%s=%r' % (key, value)
9722
      for key, value in self.__dict__.iteritems()]
9723
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9724
 
9725
  def __eq__(self, other):
9726
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9727
 
9728
  def __ne__(self, other):
9729
    return not (self == other)
9730
 
9731
class deleteItemFromIgnoredInventoryUpdateList_result:
9732
  """
9733
  Attributes:
9734
   - success
9735
  """
9736
 
9737
  thrift_spec = (
9738
    (0, TType.BOOL, 'success', None, None, ), # 0
9739
  )
9740
 
9741
  def __init__(self, success=None,):
9742
    self.success = success
9743
 
9744
  def read(self, iprot):
9745
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9746
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9747
      return
9748
    iprot.readStructBegin()
9749
    while True:
9750
      (fname, ftype, fid) = iprot.readFieldBegin()
9751
      if ftype == TType.STOP:
9752
        break
9753
      if fid == 0:
9754
        if ftype == TType.BOOL:
9755
          self.success = iprot.readBool();
9756
        else:
9757
          iprot.skip(ftype)
9758
      else:
9759
        iprot.skip(ftype)
9760
      iprot.readFieldEnd()
9761
    iprot.readStructEnd()
9762
 
9763
  def write(self, oprot):
9764
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9765
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9766
      return
9767
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_result')
9768
    if self.success is not None:
9769
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9770
      oprot.writeBool(self.success)
9771
      oprot.writeFieldEnd()
9772
    oprot.writeFieldStop()
9773
    oprot.writeStructEnd()
9774
 
9775
  def validate(self):
9776
    return
9777
 
9778
 
9779
  def __repr__(self):
9780
    L = ['%s=%r' % (key, value)
9781
      for key, value in self.__dict__.iteritems()]
9782
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9783
 
9784
  def __eq__(self, other):
9785
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9786
 
9787
  def __ne__(self, other):
9788
    return not (self == other)
9789
 
9790
class getAllIgnoredInventoryupdateItemsCount_args:
9791
 
9792
  thrift_spec = (
9793
  )
9794
 
9795
  def read(self, iprot):
9796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9798
      return
9799
    iprot.readStructBegin()
9800
    while True:
9801
      (fname, ftype, fid) = iprot.readFieldBegin()
9802
      if ftype == TType.STOP:
9803
        break
9804
      else:
9805
        iprot.skip(ftype)
9806
      iprot.readFieldEnd()
9807
    iprot.readStructEnd()
9808
 
9809
  def write(self, oprot):
9810
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9811
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9812
      return
9813
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_args')
9814
    oprot.writeFieldStop()
9815
    oprot.writeStructEnd()
9816
 
9817
  def validate(self):
9818
    return
9819
 
9820
 
9821
  def __repr__(self):
9822
    L = ['%s=%r' % (key, value)
9823
      for key, value in self.__dict__.iteritems()]
9824
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9825
 
9826
  def __eq__(self, other):
9827
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9828
 
9829
  def __ne__(self, other):
9830
    return not (self == other)
9831
 
9832
class getAllIgnoredInventoryupdateItemsCount_result:
9833
  """
9834
  Attributes:
9835
   - success
9836
  """
9837
 
9838
  thrift_spec = (
9839
    (0, TType.I32, 'success', None, None, ), # 0
9840
  )
9841
 
9842
  def __init__(self, success=None,):
9843
    self.success = success
9844
 
9845
  def read(self, iprot):
9846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9848
      return
9849
    iprot.readStructBegin()
9850
    while True:
9851
      (fname, ftype, fid) = iprot.readFieldBegin()
9852
      if ftype == TType.STOP:
9853
        break
9854
      if fid == 0:
9855
        if ftype == TType.I32:
9856
          self.success = iprot.readI32();
9857
        else:
9858
          iprot.skip(ftype)
9859
      else:
9860
        iprot.skip(ftype)
9861
      iprot.readFieldEnd()
9862
    iprot.readStructEnd()
9863
 
9864
  def write(self, oprot):
9865
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9866
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9867
      return
9868
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_result')
9869
    if self.success is not None:
9870
      oprot.writeFieldBegin('success', TType.I32, 0)
9871
      oprot.writeI32(self.success)
9872
      oprot.writeFieldEnd()
9873
    oprot.writeFieldStop()
9874
    oprot.writeStructEnd()
9875
 
9876
  def validate(self):
9877
    return
9878
 
9879
 
9880
  def __repr__(self):
9881
    L = ['%s=%r' % (key, value)
9882
      for key, value in self.__dict__.iteritems()]
9883
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9884
 
9885
  def __eq__(self, other):
9886
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9887
 
9888
  def __ne__(self, other):
9889
    return not (self == other)
9890
 
9891
class getIgnoredInventoryUpdateItemids_args:
9892
  """
9893
  Attributes:
9894
   - offset
9895
   - limit
9896
  """
9897
 
9898
  thrift_spec = (
9899
    None, # 0
9900
    (1, TType.I32, 'offset', None, None, ), # 1
9901
    (2, TType.I32, 'limit', None, None, ), # 2
9902
  )
9903
 
9904
  def __init__(self, offset=None, limit=None,):
9905
    self.offset = offset
9906
    self.limit = limit
9907
 
9908
  def read(self, iprot):
9909
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9910
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9911
      return
9912
    iprot.readStructBegin()
9913
    while True:
9914
      (fname, ftype, fid) = iprot.readFieldBegin()
9915
      if ftype == TType.STOP:
9916
        break
9917
      if fid == 1:
9918
        if ftype == TType.I32:
9919
          self.offset = iprot.readI32();
9920
        else:
9921
          iprot.skip(ftype)
9922
      elif fid == 2:
9923
        if ftype == TType.I32:
9924
          self.limit = iprot.readI32();
9925
        else:
9926
          iprot.skip(ftype)
9927
      else:
9928
        iprot.skip(ftype)
9929
      iprot.readFieldEnd()
9930
    iprot.readStructEnd()
9931
 
9932
  def write(self, oprot):
9933
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9934
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9935
      return
9936
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_args')
9937
    if self.offset is not None:
9938
      oprot.writeFieldBegin('offset', TType.I32, 1)
9939
      oprot.writeI32(self.offset)
9940
      oprot.writeFieldEnd()
9941
    if self.limit is not None:
9942
      oprot.writeFieldBegin('limit', TType.I32, 2)
9943
      oprot.writeI32(self.limit)
9944
      oprot.writeFieldEnd()
9945
    oprot.writeFieldStop()
9946
    oprot.writeStructEnd()
9947
 
9948
  def validate(self):
9949
    return
9950
 
9951
 
9952
  def __repr__(self):
9953
    L = ['%s=%r' % (key, value)
9954
      for key, value in self.__dict__.iteritems()]
9955
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9956
 
9957
  def __eq__(self, other):
9958
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9959
 
9960
  def __ne__(self, other):
9961
    return not (self == other)
9962
 
9963
class getIgnoredInventoryUpdateItemids_result:
9964
  """
9965
  Attributes:
9966
   - success
9967
  """
9968
 
9969
  thrift_spec = (
9970
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9971
  )
9972
 
9973
  def __init__(self, success=None,):
9974
    self.success = success
9975
 
9976
  def read(self, iprot):
9977
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9978
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9979
      return
9980
    iprot.readStructBegin()
9981
    while True:
9982
      (fname, ftype, fid) = iprot.readFieldBegin()
9983
      if ftype == TType.STOP:
9984
        break
9985
      if fid == 0:
9986
        if ftype == TType.LIST:
9987
          self.success = []
8182 amar.kumar 9988
          (_etype189, _size186) = iprot.readListBegin()
9989
          for _i190 in xrange(_size186):
9990
            _elem191 = iprot.readI64();
9991
            self.success.append(_elem191)
6531 vikram.rag 9992
          iprot.readListEnd()
9993
        else:
9994
          iprot.skip(ftype)
9995
      else:
9996
        iprot.skip(ftype)
9997
      iprot.readFieldEnd()
9998
    iprot.readStructEnd()
9999
 
10000
  def write(self, oprot):
10001
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10002
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10003
      return
10004
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_result')
10005
    if self.success is not None:
10006
      oprot.writeFieldBegin('success', TType.LIST, 0)
10007
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 10008
      for iter192 in self.success:
10009
        oprot.writeI64(iter192)
6531 vikram.rag 10010
      oprot.writeListEnd()
10011
      oprot.writeFieldEnd()
10012
    oprot.writeFieldStop()
10013
    oprot.writeStructEnd()
10014
 
10015
  def validate(self):
10016
    return
10017
 
10018
 
10019
  def __repr__(self):
10020
    L = ['%s=%r' % (key, value)
10021
      for key, value in self.__dict__.iteritems()]
10022
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10023
 
10024
  def __eq__(self, other):
10025
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10026
 
10027
  def __ne__(self, other):
10028
    return not (self == other)
6821 amar.kumar 10029
 
10030
class updateItemStockPurchaseParams_args:
10031
  """
10032
  Attributes:
10033
   - item_id
10034
   - numOfDaysStock
10035
   - minStockLevel
10036
  """
10037
 
10038
  thrift_spec = (
10039
    None, # 0
10040
    (1, TType.I64, 'item_id', None, None, ), # 1
10041
    (2, TType.I32, 'numOfDaysStock', None, None, ), # 2
10042
    (3, TType.I64, 'minStockLevel', None, None, ), # 3
10043
  )
10044
 
10045
  def __init__(self, item_id=None, numOfDaysStock=None, minStockLevel=None,):
10046
    self.item_id = item_id
10047
    self.numOfDaysStock = numOfDaysStock
10048
    self.minStockLevel = minStockLevel
10049
 
10050
  def read(self, iprot):
10051
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10052
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10053
      return
10054
    iprot.readStructBegin()
10055
    while True:
10056
      (fname, ftype, fid) = iprot.readFieldBegin()
10057
      if ftype == TType.STOP:
10058
        break
10059
      if fid == 1:
10060
        if ftype == TType.I64:
10061
          self.item_id = iprot.readI64();
10062
        else:
10063
          iprot.skip(ftype)
10064
      elif fid == 2:
10065
        if ftype == TType.I32:
10066
          self.numOfDaysStock = iprot.readI32();
10067
        else:
10068
          iprot.skip(ftype)
10069
      elif fid == 3:
10070
        if ftype == TType.I64:
10071
          self.minStockLevel = iprot.readI64();
10072
        else:
10073
          iprot.skip(ftype)
10074
      else:
10075
        iprot.skip(ftype)
10076
      iprot.readFieldEnd()
10077
    iprot.readStructEnd()
10078
 
10079
  def write(self, oprot):
10080
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10081
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10082
      return
10083
    oprot.writeStructBegin('updateItemStockPurchaseParams_args')
10084
    if self.item_id is not None:
10085
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10086
      oprot.writeI64(self.item_id)
10087
      oprot.writeFieldEnd()
10088
    if self.numOfDaysStock is not None:
10089
      oprot.writeFieldBegin('numOfDaysStock', TType.I32, 2)
10090
      oprot.writeI32(self.numOfDaysStock)
10091
      oprot.writeFieldEnd()
10092
    if self.minStockLevel is not None:
10093
      oprot.writeFieldBegin('minStockLevel', TType.I64, 3)
10094
      oprot.writeI64(self.minStockLevel)
10095
      oprot.writeFieldEnd()
10096
    oprot.writeFieldStop()
10097
    oprot.writeStructEnd()
10098
 
10099
  def validate(self):
10100
    return
10101
 
10102
 
10103
  def __repr__(self):
10104
    L = ['%s=%r' % (key, value)
10105
      for key, value in self.__dict__.iteritems()]
10106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10107
 
10108
  def __eq__(self, other):
10109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10110
 
10111
  def __ne__(self, other):
10112
    return not (self == other)
10113
 
10114
class updateItemStockPurchaseParams_result:
10115
 
10116
  thrift_spec = (
10117
  )
10118
 
10119
  def read(self, iprot):
10120
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10121
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10122
      return
10123
    iprot.readStructBegin()
10124
    while True:
10125
      (fname, ftype, fid) = iprot.readFieldBegin()
10126
      if ftype == TType.STOP:
10127
        break
10128
      else:
10129
        iprot.skip(ftype)
10130
      iprot.readFieldEnd()
10131
    iprot.readStructEnd()
10132
 
10133
  def write(self, oprot):
10134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10136
      return
10137
    oprot.writeStructBegin('updateItemStockPurchaseParams_result')
10138
    oprot.writeFieldStop()
10139
    oprot.writeStructEnd()
10140
 
10141
  def validate(self):
10142
    return
10143
 
10144
 
10145
  def __repr__(self):
10146
    L = ['%s=%r' % (key, value)
10147
      for key, value in self.__dict__.iteritems()]
10148
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10149
 
10150
  def __eq__(self, other):
10151
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10152
 
10153
  def __ne__(self, other):
10154
    return not (self == other)
10155
 
10156
class getItemStockPurchaseParams_args:
10157
  """
10158
  Attributes:
10159
   - itemId
10160
  """
10161
 
10162
  thrift_spec = (
10163
    None, # 0
10164
    (1, TType.I64, 'itemId', None, None, ), # 1
10165
  )
10166
 
10167
  def __init__(self, itemId=None,):
10168
    self.itemId = itemId
10169
 
10170
  def read(self, iprot):
10171
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10172
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10173
      return
10174
    iprot.readStructBegin()
10175
    while True:
10176
      (fname, ftype, fid) = iprot.readFieldBegin()
10177
      if ftype == TType.STOP:
10178
        break
10179
      if fid == 1:
10180
        if ftype == TType.I64:
10181
          self.itemId = iprot.readI64();
10182
        else:
10183
          iprot.skip(ftype)
10184
      else:
10185
        iprot.skip(ftype)
10186
      iprot.readFieldEnd()
10187
    iprot.readStructEnd()
10188
 
10189
  def write(self, oprot):
10190
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10191
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10192
      return
10193
    oprot.writeStructBegin('getItemStockPurchaseParams_args')
10194
    if self.itemId is not None:
10195
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10196
      oprot.writeI64(self.itemId)
10197
      oprot.writeFieldEnd()
10198
    oprot.writeFieldStop()
10199
    oprot.writeStructEnd()
10200
 
10201
  def validate(self):
10202
    return
10203
 
10204
 
10205
  def __repr__(self):
10206
    L = ['%s=%r' % (key, value)
10207
      for key, value in self.__dict__.iteritems()]
10208
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10209
 
10210
  def __eq__(self, other):
10211
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10212
 
10213
  def __ne__(self, other):
10214
    return not (self == other)
10215
 
10216
class getItemStockPurchaseParams_result:
10217
  """
10218
  Attributes:
10219
   - success
10220
  """
10221
 
10222
  thrift_spec = (
10223
    (0, TType.STRUCT, 'success', (ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec), None, ), # 0
10224
  )
10225
 
10226
  def __init__(self, success=None,):
10227
    self.success = success
10228
 
10229
  def read(self, iprot):
10230
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10231
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10232
      return
10233
    iprot.readStructBegin()
10234
    while True:
10235
      (fname, ftype, fid) = iprot.readFieldBegin()
10236
      if ftype == TType.STOP:
10237
        break
10238
      if fid == 0:
10239
        if ftype == TType.STRUCT:
10240
          self.success = ItemStockPurchaseParams()
10241
          self.success.read(iprot)
10242
        else:
10243
          iprot.skip(ftype)
10244
      else:
10245
        iprot.skip(ftype)
10246
      iprot.readFieldEnd()
10247
    iprot.readStructEnd()
10248
 
10249
  def write(self, oprot):
10250
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10251
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10252
      return
10253
    oprot.writeStructBegin('getItemStockPurchaseParams_result')
10254
    if self.success is not None:
10255
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10256
      self.success.write(oprot)
10257
      oprot.writeFieldEnd()
10258
    oprot.writeFieldStop()
10259
    oprot.writeStructEnd()
10260
 
10261
  def validate(self):
10262
    return
10263
 
10264
 
10265
  def __repr__(self):
10266
    L = ['%s=%r' % (key, value)
10267
      for key, value in self.__dict__.iteritems()]
10268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10269
 
10270
  def __eq__(self, other):
10271
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10272
 
10273
  def __ne__(self, other):
10274
    return not (self == other)
10275
 
10276
class addOosStatusForItem_args:
10277
  """
10278
  Attributes:
10279
   - oosStatusMap
10280
   - date
10281
  """
10282
 
10283
  thrift_spec = (
10284
    None, # 0
10285
    (1, TType.MAP, 'oosStatusMap', (TType.I64,None,TType.BOOL,None), None, ), # 1
10286
    (2, TType.I64, 'date', None, None, ), # 2
10287
  )
10288
 
10289
  def __init__(self, oosStatusMap=None, date=None,):
10290
    self.oosStatusMap = oosStatusMap
10291
    self.date = date
10292
 
10293
  def read(self, iprot):
10294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10296
      return
10297
    iprot.readStructBegin()
10298
    while True:
10299
      (fname, ftype, fid) = iprot.readFieldBegin()
10300
      if ftype == TType.STOP:
10301
        break
10302
      if fid == 1:
10303
        if ftype == TType.MAP:
10304
          self.oosStatusMap = {}
8182 amar.kumar 10305
          (_ktype194, _vtype195, _size193 ) = iprot.readMapBegin() 
10306
          for _i197 in xrange(_size193):
10307
            _key198 = iprot.readI64();
10308
            _val199 = iprot.readBool();
10309
            self.oosStatusMap[_key198] = _val199
6821 amar.kumar 10310
          iprot.readMapEnd()
10311
        else:
10312
          iprot.skip(ftype)
10313
      elif fid == 2:
10314
        if ftype == TType.I64:
10315
          self.date = iprot.readI64();
10316
        else:
10317
          iprot.skip(ftype)
10318
      else:
10319
        iprot.skip(ftype)
10320
      iprot.readFieldEnd()
10321
    iprot.readStructEnd()
10322
 
10323
  def write(self, oprot):
10324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10326
      return
10327
    oprot.writeStructBegin('addOosStatusForItem_args')
10328
    if self.oosStatusMap is not None:
10329
      oprot.writeFieldBegin('oosStatusMap', TType.MAP, 1)
10330
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.oosStatusMap))
8182 amar.kumar 10331
      for kiter200,viter201 in self.oosStatusMap.items():
10332
        oprot.writeI64(kiter200)
10333
        oprot.writeBool(viter201)
6821 amar.kumar 10334
      oprot.writeMapEnd()
10335
      oprot.writeFieldEnd()
10336
    if self.date is not None:
10337
      oprot.writeFieldBegin('date', TType.I64, 2)
10338
      oprot.writeI64(self.date)
10339
      oprot.writeFieldEnd()
10340
    oprot.writeFieldStop()
10341
    oprot.writeStructEnd()
10342
 
10343
  def validate(self):
10344
    return
10345
 
10346
 
10347
  def __repr__(self):
10348
    L = ['%s=%r' % (key, value)
10349
      for key, value in self.__dict__.iteritems()]
10350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10351
 
10352
  def __eq__(self, other):
10353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10354
 
10355
  def __ne__(self, other):
10356
    return not (self == other)
10357
 
10358
class addOosStatusForItem_result:
10359
 
10360
  thrift_spec = (
10361
  )
10362
 
10363
  def read(self, iprot):
10364
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10365
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10366
      return
10367
    iprot.readStructBegin()
10368
    while True:
10369
      (fname, ftype, fid) = iprot.readFieldBegin()
10370
      if ftype == TType.STOP:
10371
        break
10372
      else:
10373
        iprot.skip(ftype)
10374
      iprot.readFieldEnd()
10375
    iprot.readStructEnd()
10376
 
10377
  def write(self, oprot):
10378
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10379
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10380
      return
10381
    oprot.writeStructBegin('addOosStatusForItem_result')
10382
    oprot.writeFieldStop()
10383
    oprot.writeStructEnd()
10384
 
10385
  def validate(self):
10386
    return
10387
 
10388
 
10389
  def __repr__(self):
10390
    L = ['%s=%r' % (key, value)
10391
      for key, value in self.__dict__.iteritems()]
10392
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10393
 
10394
  def __eq__(self, other):
10395
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10396
 
10397
  def __ne__(self, other):
10398
    return not (self == other)
6832 amar.kumar 10399
 
10400
class getOosStatusesForXDaysForItem_args:
10401
  """
10402
  Attributes:
10403
   - itemId
9762 amar.kumar 10404
   - sourceId
6832 amar.kumar 10405
   - days
10406
  """
10407
 
10408
  thrift_spec = (
10409
    None, # 0
10410
    (1, TType.I64, 'itemId', None, None, ), # 1
9762 amar.kumar 10411
    (2, TType.I32, 'sourceId', None, None, ), # 2
10412
    (3, TType.I32, 'days', None, None, ), # 3
6832 amar.kumar 10413
  )
10414
 
9762 amar.kumar 10415
  def __init__(self, itemId=None, sourceId=None, days=None,):
6832 amar.kumar 10416
    self.itemId = itemId
9762 amar.kumar 10417
    self.sourceId = sourceId
6832 amar.kumar 10418
    self.days = days
10419
 
10420
  def read(self, iprot):
10421
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10422
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10423
      return
10424
    iprot.readStructBegin()
10425
    while True:
10426
      (fname, ftype, fid) = iprot.readFieldBegin()
10427
      if ftype == TType.STOP:
10428
        break
10429
      if fid == 1:
10430
        if ftype == TType.I64:
10431
          self.itemId = iprot.readI64();
10432
        else:
10433
          iprot.skip(ftype)
10434
      elif fid == 2:
10435
        if ftype == TType.I32:
9762 amar.kumar 10436
          self.sourceId = iprot.readI32();
10437
        else:
10438
          iprot.skip(ftype)
10439
      elif fid == 3:
10440
        if ftype == TType.I32:
6832 amar.kumar 10441
          self.days = iprot.readI32();
10442
        else:
10443
          iprot.skip(ftype)
10444
      else:
10445
        iprot.skip(ftype)
10446
      iprot.readFieldEnd()
10447
    iprot.readStructEnd()
10448
 
10449
  def write(self, oprot):
10450
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10451
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10452
      return
10453
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_args')
10454
    if self.itemId is not None:
10455
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10456
      oprot.writeI64(self.itemId)
10457
      oprot.writeFieldEnd()
9762 amar.kumar 10458
    if self.sourceId is not None:
10459
      oprot.writeFieldBegin('sourceId', TType.I32, 2)
10460
      oprot.writeI32(self.sourceId)
10461
      oprot.writeFieldEnd()
6832 amar.kumar 10462
    if self.days is not None:
9762 amar.kumar 10463
      oprot.writeFieldBegin('days', TType.I32, 3)
6832 amar.kumar 10464
      oprot.writeI32(self.days)
10465
      oprot.writeFieldEnd()
10466
    oprot.writeFieldStop()
10467
    oprot.writeStructEnd()
10468
 
10469
  def validate(self):
10470
    return
10471
 
10472
 
10473
  def __repr__(self):
10474
    L = ['%s=%r' % (key, value)
10475
      for key, value in self.__dict__.iteritems()]
10476
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10477
 
10478
  def __eq__(self, other):
10479
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10480
 
10481
  def __ne__(self, other):
10482
    return not (self == other)
10483
 
10484
class getOosStatusesForXDaysForItem_result:
10485
  """
10486
  Attributes:
10487
   - success
10488
  """
10489
 
10490
  thrift_spec = (
10491
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.thrift_spec)), None, ), # 0
10492
  )
10493
 
10494
  def __init__(self, success=None,):
10495
    self.success = success
10496
 
10497
  def read(self, iprot):
10498
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10499
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10500
      return
10501
    iprot.readStructBegin()
10502
    while True:
10503
      (fname, ftype, fid) = iprot.readFieldBegin()
10504
      if ftype == TType.STOP:
10505
        break
10506
      if fid == 0:
10507
        if ftype == TType.LIST:
10508
          self.success = []
8182 amar.kumar 10509
          (_etype205, _size202) = iprot.readListBegin()
10510
          for _i206 in xrange(_size202):
10511
            _elem207 = OOSStatus()
10512
            _elem207.read(iprot)
10513
            self.success.append(_elem207)
6832 amar.kumar 10514
          iprot.readListEnd()
10515
        else:
10516
          iprot.skip(ftype)
10517
      else:
10518
        iprot.skip(ftype)
10519
      iprot.readFieldEnd()
10520
    iprot.readStructEnd()
10521
 
10522
  def write(self, oprot):
10523
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10524
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10525
      return
10526
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_result')
10527
    if self.success is not None:
10528
      oprot.writeFieldBegin('success', TType.LIST, 0)
10529
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10530
      for iter208 in self.success:
10531
        iter208.write(oprot)
6832 amar.kumar 10532
      oprot.writeListEnd()
10533
      oprot.writeFieldEnd()
10534
    oprot.writeFieldStop()
10535
    oprot.writeStructEnd()
10536
 
10537
  def validate(self):
10538
    return
10539
 
10540
 
10541
  def __repr__(self):
10542
    L = ['%s=%r' % (key, value)
10543
      for key, value in self.__dict__.iteritems()]
10544
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10545
 
10546
  def __eq__(self, other):
10547
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10548
 
10549
  def __ne__(self, other):
10550
    return not (self == other)
6857 amar.kumar 10551
 
10552
class getNonZeroItemStockPurchaseParams_args:
10553
 
10554
  thrift_spec = (
10555
  )
10556
 
10557
  def read(self, iprot):
10558
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10559
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10560
      return
10561
    iprot.readStructBegin()
10562
    while True:
10563
      (fname, ftype, fid) = iprot.readFieldBegin()
10564
      if ftype == TType.STOP:
10565
        break
10566
      else:
10567
        iprot.skip(ftype)
10568
      iprot.readFieldEnd()
10569
    iprot.readStructEnd()
10570
 
10571
  def write(self, oprot):
10572
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10573
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10574
      return
10575
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_args')
10576
    oprot.writeFieldStop()
10577
    oprot.writeStructEnd()
10578
 
10579
  def validate(self):
10580
    return
10581
 
10582
 
10583
  def __repr__(self):
10584
    L = ['%s=%r' % (key, value)
10585
      for key, value in self.__dict__.iteritems()]
10586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10587
 
10588
  def __eq__(self, other):
10589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10590
 
10591
  def __ne__(self, other):
10592
    return not (self == other)
10593
 
10594
class getNonZeroItemStockPurchaseParams_result:
10595
  """
10596
  Attributes:
10597
   - success
10598
  """
10599
 
10600
  thrift_spec = (
10601
    (0, TType.LIST, 'success', (TType.STRUCT,(ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec)), None, ), # 0
10602
  )
10603
 
10604
  def __init__(self, success=None,):
10605
    self.success = success
10606
 
10607
  def read(self, iprot):
10608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10610
      return
10611
    iprot.readStructBegin()
10612
    while True:
10613
      (fname, ftype, fid) = iprot.readFieldBegin()
10614
      if ftype == TType.STOP:
10615
        break
10616
      if fid == 0:
10617
        if ftype == TType.LIST:
10618
          self.success = []
8182 amar.kumar 10619
          (_etype212, _size209) = iprot.readListBegin()
10620
          for _i213 in xrange(_size209):
10621
            _elem214 = ItemStockPurchaseParams()
10622
            _elem214.read(iprot)
10623
            self.success.append(_elem214)
6857 amar.kumar 10624
          iprot.readListEnd()
10625
        else:
10626
          iprot.skip(ftype)
10627
      else:
10628
        iprot.skip(ftype)
10629
      iprot.readFieldEnd()
10630
    iprot.readStructEnd()
10631
 
10632
  def write(self, oprot):
10633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10635
      return
10636
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_result')
10637
    if self.success is not None:
10638
      oprot.writeFieldBegin('success', TType.LIST, 0)
10639
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10640
      for iter215 in self.success:
10641
        iter215.write(oprot)
6857 amar.kumar 10642
      oprot.writeListEnd()
10643
      oprot.writeFieldEnd()
10644
    oprot.writeFieldStop()
10645
    oprot.writeStructEnd()
10646
 
10647
  def validate(self):
10648
    return
10649
 
10650
 
10651
  def __repr__(self):
10652
    L = ['%s=%r' % (key, value)
10653
      for key, value in self.__dict__.iteritems()]
10654
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10655
 
10656
  def __eq__(self, other):
10657
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10658
 
10659
  def __ne__(self, other):
10660
    return not (self == other)
7149 amar.kumar 10661
 
10662
class getBillableInventoryAndPendingOrders_args:
10663
 
10664
  thrift_spec = (
10665
  )
10666
 
10667
  def read(self, iprot):
10668
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10669
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10670
      return
10671
    iprot.readStructBegin()
10672
    while True:
10673
      (fname, ftype, fid) = iprot.readFieldBegin()
10674
      if ftype == TType.STOP:
10675
        break
10676
      else:
10677
        iprot.skip(ftype)
10678
      iprot.readFieldEnd()
10679
    iprot.readStructEnd()
10680
 
10681
  def write(self, oprot):
10682
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10683
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10684
      return
10685
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_args')
10686
    oprot.writeFieldStop()
10687
    oprot.writeStructEnd()
10688
 
10689
  def validate(self):
10690
    return
10691
 
10692
 
10693
  def __repr__(self):
10694
    L = ['%s=%r' % (key, value)
10695
      for key, value in self.__dict__.iteritems()]
10696
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10697
 
10698
  def __eq__(self, other):
10699
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10700
 
10701
  def __ne__(self, other):
10702
    return not (self == other)
10703
 
10704
class getBillableInventoryAndPendingOrders_result:
10705
  """
10706
  Attributes:
10707
   - success
10708
  """
10709
 
10710
  thrift_spec = (
10711
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
10712
  )
10713
 
10714
  def __init__(self, success=None,):
10715
    self.success = success
10716
 
10717
  def read(self, iprot):
10718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10720
      return
10721
    iprot.readStructBegin()
10722
    while True:
10723
      (fname, ftype, fid) = iprot.readFieldBegin()
10724
      if ftype == TType.STOP:
10725
        break
10726
      if fid == 0:
10727
        if ftype == TType.LIST:
10728
          self.success = []
8182 amar.kumar 10729
          (_etype219, _size216) = iprot.readListBegin()
10730
          for _i220 in xrange(_size216):
10731
            _elem221 = AvailableAndReservedStock()
10732
            _elem221.read(iprot)
10733
            self.success.append(_elem221)
7149 amar.kumar 10734
          iprot.readListEnd()
10735
        else:
10736
          iprot.skip(ftype)
10737
      else:
10738
        iprot.skip(ftype)
10739
      iprot.readFieldEnd()
10740
    iprot.readStructEnd()
10741
 
10742
  def write(self, oprot):
10743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10745
      return
10746
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_result')
10747
    if self.success is not None:
10748
      oprot.writeFieldBegin('success', TType.LIST, 0)
10749
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10750
      for iter222 in self.success:
10751
        iter222.write(oprot)
7149 amar.kumar 10752
      oprot.writeListEnd()
10753
      oprot.writeFieldEnd()
10754
    oprot.writeFieldStop()
10755
    oprot.writeStructEnd()
10756
 
10757
  def validate(self):
10758
    return
10759
 
10760
 
10761
  def __repr__(self):
10762
    L = ['%s=%r' % (key, value)
10763
      for key, value in self.__dict__.iteritems()]
10764
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10765
 
10766
  def __eq__(self, other):
10767
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10768
 
10769
  def __ne__(self, other):
10770
    return not (self == other)
7281 kshitij.so 10771
 
10772
class getWarehouseName_args:
10773
  """
10774
  Attributes:
10775
   - warehouse_id
10776
  """
10777
 
10778
  thrift_spec = (
10779
    None, # 0
10780
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
10781
  )
10782
 
10783
  def __init__(self, warehouse_id=None,):
10784
    self.warehouse_id = warehouse_id
10785
 
10786
  def read(self, iprot):
10787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10789
      return
10790
    iprot.readStructBegin()
10791
    while True:
10792
      (fname, ftype, fid) = iprot.readFieldBegin()
10793
      if ftype == TType.STOP:
10794
        break
10795
      if fid == 1:
10796
        if ftype == TType.I64:
10797
          self.warehouse_id = iprot.readI64();
10798
        else:
10799
          iprot.skip(ftype)
10800
      else:
10801
        iprot.skip(ftype)
10802
      iprot.readFieldEnd()
10803
    iprot.readStructEnd()
10804
 
10805
  def write(self, oprot):
10806
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10807
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10808
      return
10809
    oprot.writeStructBegin('getWarehouseName_args')
10810
    if self.warehouse_id is not None:
10811
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
10812
      oprot.writeI64(self.warehouse_id)
10813
      oprot.writeFieldEnd()
10814
    oprot.writeFieldStop()
10815
    oprot.writeStructEnd()
10816
 
10817
  def validate(self):
10818
    return
10819
 
10820
 
10821
  def __repr__(self):
10822
    L = ['%s=%r' % (key, value)
10823
      for key, value in self.__dict__.iteritems()]
10824
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10825
 
10826
  def __eq__(self, other):
10827
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10828
 
10829
  def __ne__(self, other):
10830
    return not (self == other)
10831
 
10832
class getWarehouseName_result:
10833
  """
10834
  Attributes:
10835
   - success
10836
  """
10837
 
10838
  thrift_spec = (
10839
    (0, TType.STRING, 'success', None, None, ), # 0
10840
  )
10841
 
10842
  def __init__(self, success=None,):
10843
    self.success = success
10844
 
10845
  def read(self, iprot):
10846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10848
      return
10849
    iprot.readStructBegin()
10850
    while True:
10851
      (fname, ftype, fid) = iprot.readFieldBegin()
10852
      if ftype == TType.STOP:
10853
        break
10854
      if fid == 0:
10855
        if ftype == TType.STRING:
10856
          self.success = iprot.readString();
10857
        else:
10858
          iprot.skip(ftype)
10859
      else:
10860
        iprot.skip(ftype)
10861
      iprot.readFieldEnd()
10862
    iprot.readStructEnd()
10863
 
10864
  def write(self, oprot):
10865
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10866
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10867
      return
10868
    oprot.writeStructBegin('getWarehouseName_result')
10869
    if self.success is not None:
10870
      oprot.writeFieldBegin('success', TType.STRING, 0)
10871
      oprot.writeString(self.success)
10872
      oprot.writeFieldEnd()
10873
    oprot.writeFieldStop()
10874
    oprot.writeStructEnd()
10875
 
10876
  def validate(self):
10877
    return
10878
 
10879
 
10880
  def __repr__(self):
10881
    L = ['%s=%r' % (key, value)
10882
      for key, value in self.__dict__.iteritems()]
10883
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10884
 
10885
  def __eq__(self, other):
10886
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10887
 
10888
  def __ne__(self, other):
10889
    return not (self == other)
10890
 
10891
class getAmazonInventoryForItem_args:
10892
  """
10893
  Attributes:
10894
   - item_id
10895
  """
10896
 
10897
  thrift_spec = (
10898
    None, # 0
10899
    (1, TType.I64, 'item_id', None, None, ), # 1
10900
  )
10901
 
10902
  def __init__(self, item_id=None,):
10903
    self.item_id = item_id
10904
 
10905
  def read(self, iprot):
10906
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10907
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10908
      return
10909
    iprot.readStructBegin()
10910
    while True:
10911
      (fname, ftype, fid) = iprot.readFieldBegin()
10912
      if ftype == TType.STOP:
10913
        break
10914
      if fid == 1:
10915
        if ftype == TType.I64:
10916
          self.item_id = iprot.readI64();
10917
        else:
10918
          iprot.skip(ftype)
10919
      else:
10920
        iprot.skip(ftype)
10921
      iprot.readFieldEnd()
10922
    iprot.readStructEnd()
10923
 
10924
  def write(self, oprot):
10925
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10926
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10927
      return
10928
    oprot.writeStructBegin('getAmazonInventoryForItem_args')
10929
    if self.item_id is not None:
10930
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10931
      oprot.writeI64(self.item_id)
10932
      oprot.writeFieldEnd()
10933
    oprot.writeFieldStop()
10934
    oprot.writeStructEnd()
10935
 
10936
  def validate(self):
10937
    return
10938
 
10939
 
10940
  def __repr__(self):
10941
    L = ['%s=%r' % (key, value)
10942
      for key, value in self.__dict__.iteritems()]
10943
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10944
 
10945
  def __eq__(self, other):
10946
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10947
 
10948
  def __ne__(self, other):
10949
    return not (self == other)
10950
 
10951
class getAmazonInventoryForItem_result:
10952
  """
10953
  Attributes:
10954
   - success
10955
  """
10956
 
10957
  thrift_spec = (
10958
    (0, TType.STRUCT, 'success', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 0
10959
  )
10960
 
10961
  def __init__(self, success=None,):
10962
    self.success = success
10963
 
10964
  def read(self, iprot):
10965
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10966
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10967
      return
10968
    iprot.readStructBegin()
10969
    while True:
10970
      (fname, ftype, fid) = iprot.readFieldBegin()
10971
      if ftype == TType.STOP:
10972
        break
10973
      if fid == 0:
10974
        if ftype == TType.STRUCT:
10975
          self.success = AmazonInventorySnapshot()
10976
          self.success.read(iprot)
10977
        else:
10978
          iprot.skip(ftype)
10979
      else:
10980
        iprot.skip(ftype)
10981
      iprot.readFieldEnd()
10982
    iprot.readStructEnd()
10983
 
10984
  def write(self, oprot):
10985
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10986
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10987
      return
10988
    oprot.writeStructBegin('getAmazonInventoryForItem_result')
10989
    if self.success is not None:
10990
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10991
      self.success.write(oprot)
10992
      oprot.writeFieldEnd()
10993
    oprot.writeFieldStop()
10994
    oprot.writeStructEnd()
10995
 
10996
  def validate(self):
10997
    return
10998
 
10999
 
11000
  def __repr__(self):
11001
    L = ['%s=%r' % (key, value)
11002
      for key, value in self.__dict__.iteritems()]
11003
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11004
 
11005
  def __eq__(self, other):
11006
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11007
 
11008
  def __ne__(self, other):
11009
    return not (self == other)
11010
 
11011
class getAllAmazonInventory_args:
11012
 
11013
  thrift_spec = (
11014
  )
11015
 
11016
  def read(self, iprot):
11017
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11018
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11019
      return
11020
    iprot.readStructBegin()
11021
    while True:
11022
      (fname, ftype, fid) = iprot.readFieldBegin()
11023
      if ftype == TType.STOP:
11024
        break
11025
      else:
11026
        iprot.skip(ftype)
11027
      iprot.readFieldEnd()
11028
    iprot.readStructEnd()
11029
 
11030
  def write(self, oprot):
11031
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11032
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11033
      return
11034
    oprot.writeStructBegin('getAllAmazonInventory_args')
11035
    oprot.writeFieldStop()
11036
    oprot.writeStructEnd()
11037
 
11038
  def validate(self):
11039
    return
11040
 
11041
 
11042
  def __repr__(self):
11043
    L = ['%s=%r' % (key, value)
11044
      for key, value in self.__dict__.iteritems()]
11045
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11046
 
11047
  def __eq__(self, other):
11048
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11049
 
11050
  def __ne__(self, other):
11051
    return not (self == other)
11052
 
11053
class getAllAmazonInventory_result:
11054
  """
11055
  Attributes:
11056
   - success
11057
  """
11058
 
11059
  thrift_spec = (
11060
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec)), None, ), # 0
11061
  )
11062
 
11063
  def __init__(self, success=None,):
11064
    self.success = success
11065
 
11066
  def read(self, iprot):
11067
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11068
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11069
      return
11070
    iprot.readStructBegin()
11071
    while True:
11072
      (fname, ftype, fid) = iprot.readFieldBegin()
11073
      if ftype == TType.STOP:
11074
        break
11075
      if fid == 0:
11076
        if ftype == TType.LIST:
11077
          self.success = []
8182 amar.kumar 11078
          (_etype226, _size223) = iprot.readListBegin()
11079
          for _i227 in xrange(_size223):
11080
            _elem228 = AmazonInventorySnapshot()
11081
            _elem228.read(iprot)
11082
            self.success.append(_elem228)
7281 kshitij.so 11083
          iprot.readListEnd()
11084
        else:
11085
          iprot.skip(ftype)
11086
      else:
11087
        iprot.skip(ftype)
11088
      iprot.readFieldEnd()
11089
    iprot.readStructEnd()
11090
 
11091
  def write(self, oprot):
11092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11094
      return
11095
    oprot.writeStructBegin('getAllAmazonInventory_result')
11096
    if self.success is not None:
11097
      oprot.writeFieldBegin('success', TType.LIST, 0)
11098
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 11099
      for iter229 in self.success:
11100
        iter229.write(oprot)
7281 kshitij.so 11101
      oprot.writeListEnd()
11102
      oprot.writeFieldEnd()
11103
    oprot.writeFieldStop()
11104
    oprot.writeStructEnd()
11105
 
11106
  def validate(self):
11107
    return
11108
 
11109
 
11110
  def __repr__(self):
11111
    L = ['%s=%r' % (key, value)
11112
      for key, value in self.__dict__.iteritems()]
11113
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11114
 
11115
  def __eq__(self, other):
11116
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11117
 
11118
  def __ne__(self, other):
11119
    return not (self == other)
11120
 
11121
class addOrUpdateAmazonInventoryForItem_args:
11122
  """
11123
  Attributes:
11124
   - amazonInventorySnapshot
11125
  """
11126
 
11127
  thrift_spec = (
11128
    None, # 0
11129
    (1, TType.STRUCT, 'amazonInventorySnapshot', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 1
11130
  )
11131
 
11132
  def __init__(self, amazonInventorySnapshot=None,):
11133
    self.amazonInventorySnapshot = amazonInventorySnapshot
11134
 
11135
  def read(self, iprot):
11136
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11137
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11138
      return
11139
    iprot.readStructBegin()
11140
    while True:
11141
      (fname, ftype, fid) = iprot.readFieldBegin()
11142
      if ftype == TType.STOP:
11143
        break
11144
      if fid == 1:
11145
        if ftype == TType.STRUCT:
11146
          self.amazonInventorySnapshot = AmazonInventorySnapshot()
11147
          self.amazonInventorySnapshot.read(iprot)
11148
        else:
11149
          iprot.skip(ftype)
11150
      else:
11151
        iprot.skip(ftype)
11152
      iprot.readFieldEnd()
11153
    iprot.readStructEnd()
11154
 
11155
  def write(self, oprot):
11156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11158
      return
11159
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_args')
11160
    if self.amazonInventorySnapshot is not None:
11161
      oprot.writeFieldBegin('amazonInventorySnapshot', TType.STRUCT, 1)
11162
      self.amazonInventorySnapshot.write(oprot)
11163
      oprot.writeFieldEnd()
11164
    oprot.writeFieldStop()
11165
    oprot.writeStructEnd()
11166
 
11167
  def validate(self):
11168
    return
11169
 
11170
 
11171
  def __repr__(self):
11172
    L = ['%s=%r' % (key, value)
11173
      for key, value in self.__dict__.iteritems()]
11174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11175
 
11176
  def __eq__(self, other):
11177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11178
 
11179
  def __ne__(self, other):
11180
    return not (self == other)
11181
 
11182
class addOrUpdateAmazonInventoryForItem_result:
11183
 
11184
  thrift_spec = (
11185
  )
11186
 
11187
  def read(self, iprot):
11188
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11189
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11190
      return
11191
    iprot.readStructBegin()
11192
    while True:
11193
      (fname, ftype, fid) = iprot.readFieldBegin()
11194
      if ftype == TType.STOP:
11195
        break
11196
      else:
11197
        iprot.skip(ftype)
11198
      iprot.readFieldEnd()
11199
    iprot.readStructEnd()
11200
 
11201
  def write(self, oprot):
11202
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11203
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11204
      return
11205
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_result')
11206
    oprot.writeFieldStop()
11207
    oprot.writeStructEnd()
11208
 
11209
  def validate(self):
11210
    return
11211
 
11212
 
11213
  def __repr__(self):
11214
    L = ['%s=%r' % (key, value)
11215
      for key, value in self.__dict__.iteritems()]
11216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11217
 
11218
  def __eq__(self, other):
11219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11220
 
11221
  def __ne__(self, other):
11222
    return not (self == other)
7972 amar.kumar 11223
 
11224
class getLastNdaySaleForItem_args:
11225
  """
11226
  Attributes:
11227
   - itemId
11228
   - numberOfDays
11229
  """
11230
 
11231
  thrift_spec = (
11232
    None, # 0
11233
    (1, TType.I64, 'itemId', None, None, ), # 1
11234
    (2, TType.I64, 'numberOfDays', None, None, ), # 2
11235
  )
11236
 
11237
  def __init__(self, itemId=None, numberOfDays=None,):
11238
    self.itemId = itemId
11239
    self.numberOfDays = numberOfDays
11240
 
11241
  def read(self, iprot):
11242
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11243
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11244
      return
11245
    iprot.readStructBegin()
11246
    while True:
11247
      (fname, ftype, fid) = iprot.readFieldBegin()
11248
      if ftype == TType.STOP:
11249
        break
11250
      if fid == 1:
11251
        if ftype == TType.I64:
11252
          self.itemId = iprot.readI64();
11253
        else:
11254
          iprot.skip(ftype)
11255
      elif fid == 2:
11256
        if ftype == TType.I64:
11257
          self.numberOfDays = iprot.readI64();
11258
        else:
11259
          iprot.skip(ftype)
11260
      else:
11261
        iprot.skip(ftype)
11262
      iprot.readFieldEnd()
11263
    iprot.readStructEnd()
11264
 
11265
  def write(self, oprot):
11266
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11267
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11268
      return
11269
    oprot.writeStructBegin('getLastNdaySaleForItem_args')
11270
    if self.itemId is not None:
11271
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11272
      oprot.writeI64(self.itemId)
11273
      oprot.writeFieldEnd()
11274
    if self.numberOfDays is not None:
11275
      oprot.writeFieldBegin('numberOfDays', TType.I64, 2)
11276
      oprot.writeI64(self.numberOfDays)
11277
      oprot.writeFieldEnd()
11278
    oprot.writeFieldStop()
11279
    oprot.writeStructEnd()
11280
 
11281
  def validate(self):
11282
    return
11283
 
11284
 
11285
  def __repr__(self):
11286
    L = ['%s=%r' % (key, value)
11287
      for key, value in self.__dict__.iteritems()]
11288
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11289
 
11290
  def __eq__(self, other):
11291
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11292
 
11293
  def __ne__(self, other):
11294
    return not (self == other)
11295
 
11296
class getLastNdaySaleForItem_result:
11297
  """
11298
  Attributes:
11299
   - success
11300
  """
11301
 
11302
  thrift_spec = (
11303
    (0, TType.STRING, 'success', None, None, ), # 0
11304
  )
11305
 
11306
  def __init__(self, success=None,):
11307
    self.success = success
11308
 
11309
  def read(self, iprot):
11310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11312
      return
11313
    iprot.readStructBegin()
11314
    while True:
11315
      (fname, ftype, fid) = iprot.readFieldBegin()
11316
      if ftype == TType.STOP:
11317
        break
11318
      if fid == 0:
11319
        if ftype == TType.STRING:
11320
          self.success = iprot.readString();
11321
        else:
11322
          iprot.skip(ftype)
11323
      else:
11324
        iprot.skip(ftype)
11325
      iprot.readFieldEnd()
11326
    iprot.readStructEnd()
11327
 
11328
  def write(self, oprot):
11329
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11330
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11331
      return
11332
    oprot.writeStructBegin('getLastNdaySaleForItem_result')
11333
    if self.success is not None:
11334
      oprot.writeFieldBegin('success', TType.STRING, 0)
11335
      oprot.writeString(self.success)
11336
      oprot.writeFieldEnd()
11337
    oprot.writeFieldStop()
11338
    oprot.writeStructEnd()
11339
 
11340
  def validate(self):
11341
    return
11342
 
11343
 
11344
  def __repr__(self):
11345
    L = ['%s=%r' % (key, value)
11346
      for key, value in self.__dict__.iteritems()]
11347
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11348
 
11349
  def __eq__(self, other):
11350
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11351
 
11352
  def __ne__(self, other):
11353
    return not (self == other)
8182 amar.kumar 11354
 
8282 kshitij.so 11355
class addOrUpdateAmazonFbaInventory_args:
11356
  """
11357
  Attributes:
11358
   - amazonfbainventorysnapshot
11359
  """
11360
 
11361
  thrift_spec = (
11362
    None, # 0
11363
    (1, TType.STRUCT, 'amazonfbainventorysnapshot', (AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec), None, ), # 1
11364
  )
11365
 
11366
  def __init__(self, amazonfbainventorysnapshot=None,):
11367
    self.amazonfbainventorysnapshot = amazonfbainventorysnapshot
11368
 
11369
  def read(self, iprot):
11370
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11371
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11372
      return
11373
    iprot.readStructBegin()
11374
    while True:
11375
      (fname, ftype, fid) = iprot.readFieldBegin()
11376
      if ftype == TType.STOP:
11377
        break
11378
      if fid == 1:
11379
        if ftype == TType.STRUCT:
11380
          self.amazonfbainventorysnapshot = AmazonFbaInventorySnapshot()
11381
          self.amazonfbainventorysnapshot.read(iprot)
11382
        else:
11383
          iprot.skip(ftype)
11384
      else:
11385
        iprot.skip(ftype)
11386
      iprot.readFieldEnd()
11387
    iprot.readStructEnd()
11388
 
11389
  def write(self, oprot):
11390
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11391
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11392
      return
11393
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_args')
11394
    if self.amazonfbainventorysnapshot is not None:
11395
      oprot.writeFieldBegin('amazonfbainventorysnapshot', TType.STRUCT, 1)
11396
      self.amazonfbainventorysnapshot.write(oprot)
11397
      oprot.writeFieldEnd()
11398
    oprot.writeFieldStop()
11399
    oprot.writeStructEnd()
11400
 
11401
  def validate(self):
11402
    return
11403
 
11404
 
11405
  def __repr__(self):
11406
    L = ['%s=%r' % (key, value)
11407
      for key, value in self.__dict__.iteritems()]
11408
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11409
 
11410
  def __eq__(self, other):
11411
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11412
 
11413
  def __ne__(self, other):
11414
    return not (self == other)
11415
 
11416
class addOrUpdateAmazonFbaInventory_result:
11417
 
11418
  thrift_spec = (
11419
  )
11420
 
11421
  def read(self, iprot):
11422
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11423
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11424
      return
11425
    iprot.readStructBegin()
11426
    while True:
11427
      (fname, ftype, fid) = iprot.readFieldBegin()
11428
      if ftype == TType.STOP:
11429
        break
11430
      else:
11431
        iprot.skip(ftype)
11432
      iprot.readFieldEnd()
11433
    iprot.readStructEnd()
11434
 
11435
  def write(self, oprot):
11436
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11437
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11438
      return
11439
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_result')
11440
    oprot.writeFieldStop()
11441
    oprot.writeStructEnd()
11442
 
11443
  def validate(self):
11444
    return
11445
 
11446
 
11447
  def __repr__(self):
11448
    L = ['%s=%r' % (key, value)
11449
      for key, value in self.__dict__.iteritems()]
11450
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11451
 
11452
  def __eq__(self, other):
11453
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11454
 
11455
  def __ne__(self, other):
11456
    return not (self == other)
11457
 
8182 amar.kumar 11458
class addUpdateHoldInventory_args:
11459
  """
11460
  Attributes:
11461
   - itemId
11462
   - warehouseId
11463
   - holdQuantity
11464
   - source
11465
  """
11466
 
11467
  thrift_spec = (
11468
    None, # 0
11469
    (1, TType.I64, 'itemId', None, None, ), # 1
11470
    (2, TType.I64, 'warehouseId', None, None, ), # 2
11471
    (3, TType.I64, 'holdQuantity', None, None, ), # 3
11472
    (4, TType.I64, 'source', None, None, ), # 4
11473
  )
11474
 
11475
  def __init__(self, itemId=None, warehouseId=None, holdQuantity=None, source=None,):
11476
    self.itemId = itemId
11477
    self.warehouseId = warehouseId
11478
    self.holdQuantity = holdQuantity
11479
    self.source = source
11480
 
11481
  def read(self, iprot):
11482
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11483
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11484
      return
11485
    iprot.readStructBegin()
11486
    while True:
11487
      (fname, ftype, fid) = iprot.readFieldBegin()
11488
      if ftype == TType.STOP:
11489
        break
11490
      if fid == 1:
11491
        if ftype == TType.I64:
11492
          self.itemId = iprot.readI64();
11493
        else:
11494
          iprot.skip(ftype)
11495
      elif fid == 2:
11496
        if ftype == TType.I64:
11497
          self.warehouseId = iprot.readI64();
11498
        else:
11499
          iprot.skip(ftype)
11500
      elif fid == 3:
11501
        if ftype == TType.I64:
11502
          self.holdQuantity = iprot.readI64();
11503
        else:
11504
          iprot.skip(ftype)
11505
      elif fid == 4:
11506
        if ftype == TType.I64:
11507
          self.source = iprot.readI64();
11508
        else:
11509
          iprot.skip(ftype)
11510
      else:
11511
        iprot.skip(ftype)
11512
      iprot.readFieldEnd()
11513
    iprot.readStructEnd()
11514
 
11515
  def write(self, oprot):
11516
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11517
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11518
      return
11519
    oprot.writeStructBegin('addUpdateHoldInventory_args')
11520
    if self.itemId is not None:
11521
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11522
      oprot.writeI64(self.itemId)
11523
      oprot.writeFieldEnd()
11524
    if self.warehouseId is not None:
11525
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
11526
      oprot.writeI64(self.warehouseId)
11527
      oprot.writeFieldEnd()
11528
    if self.holdQuantity is not None:
11529
      oprot.writeFieldBegin('holdQuantity', TType.I64, 3)
11530
      oprot.writeI64(self.holdQuantity)
11531
      oprot.writeFieldEnd()
11532
    if self.source is not None:
11533
      oprot.writeFieldBegin('source', TType.I64, 4)
11534
      oprot.writeI64(self.source)
11535
      oprot.writeFieldEnd()
11536
    oprot.writeFieldStop()
11537
    oprot.writeStructEnd()
11538
 
11539
  def validate(self):
11540
    return
11541
 
11542
 
11543
  def __repr__(self):
11544
    L = ['%s=%r' % (key, value)
11545
      for key, value in self.__dict__.iteritems()]
11546
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11547
 
11548
  def __eq__(self, other):
11549
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11550
 
11551
  def __ne__(self, other):
11552
    return not (self == other)
11553
 
11554
class addUpdateHoldInventory_result:
9762 amar.kumar 11555
  """
11556
  Attributes:
11557
   - cex
11558
  """
8182 amar.kumar 11559
 
11560
  thrift_spec = (
9762 amar.kumar 11561
    None, # 0
11562
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8182 amar.kumar 11563
  )
11564
 
9762 amar.kumar 11565
  def __init__(self, cex=None,):
11566
    self.cex = cex
11567
 
8182 amar.kumar 11568
  def read(self, iprot):
11569
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11570
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11571
      return
11572
    iprot.readStructBegin()
11573
    while True:
11574
      (fname, ftype, fid) = iprot.readFieldBegin()
11575
      if ftype == TType.STOP:
11576
        break
9762 amar.kumar 11577
      if fid == 1:
11578
        if ftype == TType.STRUCT:
11579
          self.cex = InventoryServiceException()
11580
          self.cex.read(iprot)
11581
        else:
11582
          iprot.skip(ftype)
8182 amar.kumar 11583
      else:
11584
        iprot.skip(ftype)
11585
      iprot.readFieldEnd()
11586
    iprot.readStructEnd()
11587
 
11588
  def write(self, oprot):
11589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11591
      return
11592
    oprot.writeStructBegin('addUpdateHoldInventory_result')
9762 amar.kumar 11593
    if self.cex is not None:
11594
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11595
      self.cex.write(oprot)
11596
      oprot.writeFieldEnd()
8182 amar.kumar 11597
    oprot.writeFieldStop()
11598
    oprot.writeStructEnd()
11599
 
11600
  def validate(self):
11601
    return
11602
 
11603
 
11604
  def __repr__(self):
11605
    L = ['%s=%r' % (key, value)
11606
      for key, value in self.__dict__.iteritems()]
11607
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11608
 
11609
  def __eq__(self, other):
11610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11611
 
11612
  def __ne__(self, other):
11613
    return not (self == other)
8282 kshitij.so 11614
 
11615
class getAmazonFbaItemInventory_args:
11616
  """
11617
  Attributes:
11618
   - itemId
11619
  """
11620
 
11621
  thrift_spec = (
11622
    None, # 0
11623
    (1, TType.I64, 'itemId', None, None, ), # 1
11624
  )
11625
 
11626
  def __init__(self, itemId=None,):
11627
    self.itemId = itemId
11628
 
11629
  def read(self, iprot):
11630
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11631
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11632
      return
11633
    iprot.readStructBegin()
11634
    while True:
11635
      (fname, ftype, fid) = iprot.readFieldBegin()
11636
      if ftype == TType.STOP:
11637
        break
11638
      if fid == 1:
11639
        if ftype == TType.I64:
11640
          self.itemId = iprot.readI64();
11641
        else:
11642
          iprot.skip(ftype)
11643
      else:
11644
        iprot.skip(ftype)
11645
      iprot.readFieldEnd()
11646
    iprot.readStructEnd()
11647
 
11648
  def write(self, oprot):
11649
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11650
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11651
      return
11652
    oprot.writeStructBegin('getAmazonFbaItemInventory_args')
11653
    if self.itemId is not None:
11654
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11655
      oprot.writeI64(self.itemId)
11656
      oprot.writeFieldEnd()
11657
    oprot.writeFieldStop()
11658
    oprot.writeStructEnd()
11659
 
11660
  def validate(self):
11661
    return
11662
 
11663
 
11664
  def __repr__(self):
11665
    L = ['%s=%r' % (key, value)
11666
      for key, value in self.__dict__.iteritems()]
11667
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11668
 
11669
  def __eq__(self, other):
11670
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11671
 
11672
  def __ne__(self, other):
11673
    return not (self == other)
11674
 
11675
class getAmazonFbaItemInventory_result:
11676
  """
11677
  Attributes:
11678
   - success
11679
  """
11680
 
11681
  thrift_spec = (
11682
    (0, TType.I64, 'success', None, None, ), # 0
11683
  )
11684
 
11685
  def __init__(self, success=None,):
11686
    self.success = success
11687
 
11688
  def read(self, iprot):
11689
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11690
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11691
      return
11692
    iprot.readStructBegin()
11693
    while True:
11694
      (fname, ftype, fid) = iprot.readFieldBegin()
11695
      if ftype == TType.STOP:
11696
        break
11697
      if fid == 0:
11698
        if ftype == TType.I64:
11699
          self.success = iprot.readI64();
11700
        else:
11701
          iprot.skip(ftype)
11702
      else:
11703
        iprot.skip(ftype)
11704
      iprot.readFieldEnd()
11705
    iprot.readStructEnd()
11706
 
11707
  def write(self, oprot):
11708
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11709
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11710
      return
11711
    oprot.writeStructBegin('getAmazonFbaItemInventory_result')
11712
    if self.success is not None:
11713
      oprot.writeFieldBegin('success', TType.I64, 0)
11714
      oprot.writeI64(self.success)
11715
      oprot.writeFieldEnd()
11716
    oprot.writeFieldStop()
11717
    oprot.writeStructEnd()
11718
 
11719
  def validate(self):
11720
    return
11721
 
11722
 
11723
  def __repr__(self):
11724
    L = ['%s=%r' % (key, value)
11725
      for key, value in self.__dict__.iteritems()]
11726
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11727
 
11728
  def __eq__(self, other):
11729
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11730
 
11731
  def __ne__(self, other):
11732
    return not (self == other)
11733
 
8363 vikram.rag 11734
class getAllAmazonFbaItemInventory_args:
8282 kshitij.so 11735
 
11736
  thrift_spec = (
11737
  )
11738
 
11739
  def read(self, iprot):
11740
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11741
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11742
      return
11743
    iprot.readStructBegin()
11744
    while True:
11745
      (fname, ftype, fid) = iprot.readFieldBegin()
11746
      if ftype == TType.STOP:
11747
        break
11748
      else:
11749
        iprot.skip(ftype)
11750
      iprot.readFieldEnd()
11751
    iprot.readStructEnd()
11752
 
11753
  def write(self, oprot):
11754
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11755
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11756
      return
8363 vikram.rag 11757
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_args')
8282 kshitij.so 11758
    oprot.writeFieldStop()
11759
    oprot.writeStructEnd()
11760
 
11761
  def validate(self):
11762
    return
11763
 
11764
 
11765
  def __repr__(self):
11766
    L = ['%s=%r' % (key, value)
11767
      for key, value in self.__dict__.iteritems()]
11768
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11769
 
11770
  def __eq__(self, other):
11771
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11772
 
11773
  def __ne__(self, other):
11774
    return not (self == other)
11775
 
8363 vikram.rag 11776
class getAllAmazonFbaItemInventory_result:
8282 kshitij.so 11777
  """
11778
  Attributes:
11779
   - success
11780
  """
11781
 
11782
  thrift_spec = (
11783
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
11784
  )
11785
 
11786
  def __init__(self, success=None,):
11787
    self.success = success
11788
 
11789
  def read(self, iprot):
11790
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11791
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11792
      return
11793
    iprot.readStructBegin()
11794
    while True:
11795
      (fname, ftype, fid) = iprot.readFieldBegin()
11796
      if ftype == TType.STOP:
11797
        break
11798
      if fid == 0:
11799
        if ftype == TType.LIST:
11800
          self.success = []
11801
          (_etype233, _size230) = iprot.readListBegin()
11802
          for _i234 in xrange(_size230):
11803
            _elem235 = AmazonFbaInventorySnapshot()
11804
            _elem235.read(iprot)
11805
            self.success.append(_elem235)
11806
          iprot.readListEnd()
11807
        else:
11808
          iprot.skip(ftype)
11809
      else:
11810
        iprot.skip(ftype)
11811
      iprot.readFieldEnd()
11812
    iprot.readStructEnd()
11813
 
11814
  def write(self, oprot):
11815
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11816
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11817
      return
8363 vikram.rag 11818
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_result')
8282 kshitij.so 11819
    if self.success is not None:
11820
      oprot.writeFieldBegin('success', TType.LIST, 0)
11821
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11822
      for iter236 in self.success:
11823
        iter236.write(oprot)
11824
      oprot.writeListEnd()
11825
      oprot.writeFieldEnd()
11826
    oprot.writeFieldStop()
11827
    oprot.writeStructEnd()
11828
 
11829
  def validate(self):
11830
    return
11831
 
11832
 
11833
  def __repr__(self):
11834
    L = ['%s=%r' % (key, value)
11835
      for key, value in self.__dict__.iteritems()]
11836
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11837
 
11838
  def __eq__(self, other):
11839
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11840
 
11841
  def __ne__(self, other):
11842
    return not (self == other)
8363 vikram.rag 11843
 
11844
class getOursGoodWarehouseIdsForLocation_args:
11845
  """
11846
  Attributes:
11847
   - state_id
11848
  """
11849
 
11850
  thrift_spec = (
11851
    None, # 0
11852
    (1, TType.I64, 'state_id', None, None, ), # 1
11853
  )
11854
 
11855
  def __init__(self, state_id=None,):
11856
    self.state_id = state_id
11857
 
11858
  def read(self, iprot):
11859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11861
      return
11862
    iprot.readStructBegin()
11863
    while True:
11864
      (fname, ftype, fid) = iprot.readFieldBegin()
11865
      if ftype == TType.STOP:
11866
        break
11867
      if fid == 1:
11868
        if ftype == TType.I64:
11869
          self.state_id = iprot.readI64();
11870
        else:
11871
          iprot.skip(ftype)
11872
      else:
11873
        iprot.skip(ftype)
11874
      iprot.readFieldEnd()
11875
    iprot.readStructEnd()
11876
 
11877
  def write(self, oprot):
11878
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11879
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11880
      return
11881
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_args')
11882
    if self.state_id is not None:
11883
      oprot.writeFieldBegin('state_id', TType.I64, 1)
11884
      oprot.writeI64(self.state_id)
11885
      oprot.writeFieldEnd()
11886
    oprot.writeFieldStop()
11887
    oprot.writeStructEnd()
11888
 
11889
  def validate(self):
11890
    return
11891
 
11892
 
11893
  def __repr__(self):
11894
    L = ['%s=%r' % (key, value)
11895
      for key, value in self.__dict__.iteritems()]
11896
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11897
 
11898
  def __eq__(self, other):
11899
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11900
 
11901
  def __ne__(self, other):
11902
    return not (self == other)
11903
 
11904
class getOursGoodWarehouseIdsForLocation_result:
11905
  """
11906
  Attributes:
11907
   - success
11908
  """
11909
 
11910
  thrift_spec = (
11911
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11912
  )
11913
 
11914
  def __init__(self, success=None,):
11915
    self.success = success
11916
 
11917
  def read(self, iprot):
11918
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11919
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11920
      return
11921
    iprot.readStructBegin()
11922
    while True:
11923
      (fname, ftype, fid) = iprot.readFieldBegin()
11924
      if ftype == TType.STOP:
11925
        break
11926
      if fid == 0:
11927
        if ftype == TType.LIST:
11928
          self.success = []
11929
          (_etype240, _size237) = iprot.readListBegin()
11930
          for _i241 in xrange(_size237):
11931
            _elem242 = iprot.readI64();
11932
            self.success.append(_elem242)
11933
          iprot.readListEnd()
11934
        else:
11935
          iprot.skip(ftype)
11936
      else:
11937
        iprot.skip(ftype)
11938
      iprot.readFieldEnd()
11939
    iprot.readStructEnd()
11940
 
11941
  def write(self, oprot):
11942
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11943
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11944
      return
11945
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_result')
11946
    if self.success is not None:
11947
      oprot.writeFieldBegin('success', TType.LIST, 0)
11948
      oprot.writeListBegin(TType.I64, len(self.success))
11949
      for iter243 in self.success:
11950
        oprot.writeI64(iter243)
11951
      oprot.writeListEnd()
11952
      oprot.writeFieldEnd()
11953
    oprot.writeFieldStop()
11954
    oprot.writeStructEnd()
11955
 
11956
  def validate(self):
11957
    return
11958
 
11959
 
11960
  def __repr__(self):
11961
    L = ['%s=%r' % (key, value)
11962
      for key, value in self.__dict__.iteritems()]
11963
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11964
 
11965
  def __eq__(self, other):
11966
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11967
 
11968
  def __ne__(self, other):
11969
    return not (self == other)
8955 vikram.rag 11970
 
11971
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_args:
11972
  """
11973
  Attributes:
11974
   - id
11975
   - warehouse_id
11976
   - source
11977
  """
11978
 
11979
  thrift_spec = (
11980
    None, # 0
11981
    (1, TType.I64, 'id', None, None, ), # 1
11982
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
11983
    (3, TType.I64, 'source', None, None, ), # 3
11984
  )
11985
 
11986
  def __init__(self, id=None, warehouse_id=None, source=None,):
11987
    self.id = id
11988
    self.warehouse_id = warehouse_id
11989
    self.source = source
11990
 
11991
  def read(self, iprot):
11992
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11993
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11994
      return
11995
    iprot.readStructBegin()
11996
    while True:
11997
      (fname, ftype, fid) = iprot.readFieldBegin()
11998
      if ftype == TType.STOP:
11999
        break
12000
      if fid == 1:
12001
        if ftype == TType.I64:
12002
          self.id = iprot.readI64();
12003
        else:
12004
          iprot.skip(ftype)
12005
      elif fid == 2:
12006
        if ftype == TType.I64:
12007
          self.warehouse_id = iprot.readI64();
12008
        else:
12009
          iprot.skip(ftype)
12010
      elif fid == 3:
12011
        if ftype == TType.I64:
12012
          self.source = iprot.readI64();
12013
        else:
12014
          iprot.skip(ftype)
12015
      else:
12016
        iprot.skip(ftype)
12017
      iprot.readFieldEnd()
12018
    iprot.readStructEnd()
12019
 
12020
  def write(self, oprot):
12021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12023
      return
12024
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_args')
12025
    if self.id is not None:
12026
      oprot.writeFieldBegin('id', TType.I64, 1)
12027
      oprot.writeI64(self.id)
12028
      oprot.writeFieldEnd()
12029
    if self.warehouse_id is not None:
12030
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
12031
      oprot.writeI64(self.warehouse_id)
12032
      oprot.writeFieldEnd()
12033
    if self.source is not None:
12034
      oprot.writeFieldBegin('source', TType.I64, 3)
12035
      oprot.writeI64(self.source)
12036
      oprot.writeFieldEnd()
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 getHoldInventoryDetailForItemForWarehouseIdExceptSource_result:
12056
  """
12057
  Attributes:
12058
   - success
12059
  """
12060
 
12061
  thrift_spec = (
12062
    (0, TType.I64, 'success', None, None, ), # 0
12063
  )
12064
 
12065
  def __init__(self, success=None,):
12066
    self.success = success
12067
 
12068
  def read(self, iprot):
12069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12071
      return
12072
    iprot.readStructBegin()
12073
    while True:
12074
      (fname, ftype, fid) = iprot.readFieldBegin()
12075
      if ftype == TType.STOP:
12076
        break
12077
      if fid == 0:
12078
        if ftype == TType.I64:
12079
          self.success = iprot.readI64();
12080
        else:
12081
          iprot.skip(ftype)
12082
      else:
12083
        iprot.skip(ftype)
12084
      iprot.readFieldEnd()
12085
    iprot.readStructEnd()
12086
 
12087
  def write(self, oprot):
12088
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12089
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12090
      return
12091
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_result')
12092
    if self.success is not None:
12093
      oprot.writeFieldBegin('success', TType.I64, 0)
12094
      oprot.writeI64(self.success)
12095
      oprot.writeFieldEnd()
12096
    oprot.writeFieldStop()
12097
    oprot.writeStructEnd()
12098
 
12099
  def validate(self):
12100
    return
12101
 
12102
 
12103
  def __repr__(self):
12104
    L = ['%s=%r' % (key, value)
12105
      for key, value in self.__dict__.iteritems()]
12106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12107
 
12108
  def __eq__(self, other):
12109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12110
 
12111
  def __ne__(self, other):
12112
    return not (self == other)
9404 vikram.rag 12113
 
12114
class getSnapdealInventoryForItem_args:
12115
  """
12116
  Attributes:
12117
   - item_id
12118
  """
12119
 
12120
  thrift_spec = (
12121
    None, # 0
12122
    (1, TType.I64, 'item_id', None, None, ), # 1
12123
  )
12124
 
12125
  def __init__(self, item_id=None,):
12126
    self.item_id = item_id
12127
 
12128
  def read(self, iprot):
12129
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12130
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12131
      return
12132
    iprot.readStructBegin()
12133
    while True:
12134
      (fname, ftype, fid) = iprot.readFieldBegin()
12135
      if ftype == TType.STOP:
12136
        break
12137
      if fid == 1:
12138
        if ftype == TType.I64:
12139
          self.item_id = iprot.readI64();
12140
        else:
12141
          iprot.skip(ftype)
12142
      else:
12143
        iprot.skip(ftype)
12144
      iprot.readFieldEnd()
12145
    iprot.readStructEnd()
12146
 
12147
  def write(self, oprot):
12148
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12149
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12150
      return
12151
    oprot.writeStructBegin('getSnapdealInventoryForItem_args')
12152
    if self.item_id is not None:
12153
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12154
      oprot.writeI64(self.item_id)
12155
      oprot.writeFieldEnd()
12156
    oprot.writeFieldStop()
12157
    oprot.writeStructEnd()
12158
 
12159
  def validate(self):
12160
    return
12161
 
12162
 
12163
  def __repr__(self):
12164
    L = ['%s=%r' % (key, value)
12165
      for key, value in self.__dict__.iteritems()]
12166
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12167
 
12168
  def __eq__(self, other):
12169
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12170
 
12171
  def __ne__(self, other):
12172
    return not (self == other)
12173
 
12174
class getSnapdealInventoryForItem_result:
12175
  """
12176
  Attributes:
12177
   - success
12178
  """
12179
 
12180
  thrift_spec = (
12181
    (0, TType.STRUCT, 'success', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 0
12182
  )
12183
 
12184
  def __init__(self, success=None,):
12185
    self.success = success
12186
 
12187
  def read(self, iprot):
12188
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12189
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12190
      return
12191
    iprot.readStructBegin()
12192
    while True:
12193
      (fname, ftype, fid) = iprot.readFieldBegin()
12194
      if ftype == TType.STOP:
12195
        break
12196
      if fid == 0:
12197
        if ftype == TType.STRUCT:
12198
          self.success = SnapdealInventoryItem()
12199
          self.success.read(iprot)
12200
        else:
12201
          iprot.skip(ftype)
12202
      else:
12203
        iprot.skip(ftype)
12204
      iprot.readFieldEnd()
12205
    iprot.readStructEnd()
12206
 
12207
  def write(self, oprot):
12208
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12209
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12210
      return
12211
    oprot.writeStructBegin('getSnapdealInventoryForItem_result')
12212
    if self.success is not None:
12213
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12214
      self.success.write(oprot)
12215
      oprot.writeFieldEnd()
12216
    oprot.writeFieldStop()
12217
    oprot.writeStructEnd()
12218
 
12219
  def validate(self):
12220
    return
12221
 
12222
 
12223
  def __repr__(self):
12224
    L = ['%s=%r' % (key, value)
12225
      for key, value in self.__dict__.iteritems()]
12226
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12227
 
12228
  def __eq__(self, other):
12229
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12230
 
12231
  def __ne__(self, other):
12232
    return not (self == other)
12233
 
12234
class addOrUpdateSnapdealInventoryForItem_args:
12235
  """
12236
  Attributes:
12237
   - snapdealinventoryitem
12238
  """
12239
 
12240
  thrift_spec = (
12241
    None, # 0
12242
    (1, TType.STRUCT, 'snapdealinventoryitem', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 1
12243
  )
12244
 
12245
  def __init__(self, snapdealinventoryitem=None,):
12246
    self.snapdealinventoryitem = snapdealinventoryitem
12247
 
12248
  def read(self, iprot):
12249
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12250
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12251
      return
12252
    iprot.readStructBegin()
12253
    while True:
12254
      (fname, ftype, fid) = iprot.readFieldBegin()
12255
      if ftype == TType.STOP:
12256
        break
12257
      if fid == 1:
12258
        if ftype == TType.STRUCT:
12259
          self.snapdealinventoryitem = SnapdealInventoryItem()
12260
          self.snapdealinventoryitem.read(iprot)
12261
        else:
12262
          iprot.skip(ftype)
12263
      else:
12264
        iprot.skip(ftype)
12265
      iprot.readFieldEnd()
12266
    iprot.readStructEnd()
12267
 
12268
  def write(self, oprot):
12269
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12270
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12271
      return
12272
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_args')
12273
    if self.snapdealinventoryitem is not None:
12274
      oprot.writeFieldBegin('snapdealinventoryitem', TType.STRUCT, 1)
12275
      self.snapdealinventoryitem.write(oprot)
12276
      oprot.writeFieldEnd()
12277
    oprot.writeFieldStop()
12278
    oprot.writeStructEnd()
12279
 
12280
  def validate(self):
12281
    return
12282
 
12283
 
12284
  def __repr__(self):
12285
    L = ['%s=%r' % (key, value)
12286
      for key, value in self.__dict__.iteritems()]
12287
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12288
 
12289
  def __eq__(self, other):
12290
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12291
 
12292
  def __ne__(self, other):
12293
    return not (self == other)
12294
 
12295
class addOrUpdateSnapdealInventoryForItem_result:
12296
 
12297
  thrift_spec = (
12298
  )
12299
 
12300
  def read(self, iprot):
12301
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12302
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12303
      return
12304
    iprot.readStructBegin()
12305
    while True:
12306
      (fname, ftype, fid) = iprot.readFieldBegin()
12307
      if ftype == TType.STOP:
12308
        break
12309
      else:
12310
        iprot.skip(ftype)
12311
      iprot.readFieldEnd()
12312
    iprot.readStructEnd()
12313
 
12314
  def write(self, oprot):
12315
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12316
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12317
      return
12318
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_result')
12319
    oprot.writeFieldStop()
12320
    oprot.writeStructEnd()
12321
 
12322
  def validate(self):
12323
    return
12324
 
12325
 
12326
  def __repr__(self):
12327
    L = ['%s=%r' % (key, value)
12328
      for key, value in self.__dict__.iteritems()]
12329
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12330
 
12331
  def __eq__(self, other):
12332
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12333
 
12334
  def __ne__(self, other):
12335
    return not (self == other)
12336
 
12337
class getNlcForWarehouse_args:
12338
  """
12339
  Attributes:
12340
   - warehouse_id
12341
   - item_id
12342
  """
12343
 
12344
  thrift_spec = (
12345
    None, # 0
12346
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
12347
    (2, TType.I64, 'item_id', None, None, ), # 2
12348
  )
12349
 
12350
  def __init__(self, warehouse_id=None, item_id=None,):
12351
    self.warehouse_id = warehouse_id
12352
    self.item_id = item_id
12353
 
12354
  def read(self, iprot):
12355
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12356
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12357
      return
12358
    iprot.readStructBegin()
12359
    while True:
12360
      (fname, ftype, fid) = iprot.readFieldBegin()
12361
      if ftype == TType.STOP:
12362
        break
12363
      if fid == 1:
12364
        if ftype == TType.I64:
12365
          self.warehouse_id = iprot.readI64();
12366
        else:
12367
          iprot.skip(ftype)
12368
      elif fid == 2:
12369
        if ftype == TType.I64:
12370
          self.item_id = iprot.readI64();
12371
        else:
12372
          iprot.skip(ftype)
12373
      else:
12374
        iprot.skip(ftype)
12375
      iprot.readFieldEnd()
12376
    iprot.readStructEnd()
12377
 
12378
  def write(self, oprot):
12379
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12380
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12381
      return
12382
    oprot.writeStructBegin('getNlcForWarehouse_args')
12383
    if self.warehouse_id is not None:
12384
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
12385
      oprot.writeI64(self.warehouse_id)
12386
      oprot.writeFieldEnd()
12387
    if self.item_id is not None:
12388
      oprot.writeFieldBegin('item_id', TType.I64, 2)
12389
      oprot.writeI64(self.item_id)
12390
      oprot.writeFieldEnd()
12391
    oprot.writeFieldStop()
12392
    oprot.writeStructEnd()
12393
 
12394
  def validate(self):
12395
    return
12396
 
12397
 
12398
  def __repr__(self):
12399
    L = ['%s=%r' % (key, value)
12400
      for key, value in self.__dict__.iteritems()]
12401
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12402
 
12403
  def __eq__(self, other):
12404
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12405
 
12406
  def __ne__(self, other):
12407
    return not (self == other)
12408
 
12409
class getNlcForWarehouse_result:
12410
  """
12411
  Attributes:
12412
   - success
12413
  """
12414
 
12415
  thrift_spec = (
12416
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12417
  )
12418
 
12419
  def __init__(self, success=None,):
12420
    self.success = success
12421
 
12422
  def read(self, iprot):
12423
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12424
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12425
      return
12426
    iprot.readStructBegin()
12427
    while True:
12428
      (fname, ftype, fid) = iprot.readFieldBegin()
12429
      if ftype == TType.STOP:
12430
        break
12431
      if fid == 0:
12432
        if ftype == TType.DOUBLE:
12433
          self.success = iprot.readDouble();
12434
        else:
12435
          iprot.skip(ftype)
12436
      else:
12437
        iprot.skip(ftype)
12438
      iprot.readFieldEnd()
12439
    iprot.readStructEnd()
12440
 
12441
  def write(self, oprot):
12442
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12443
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12444
      return
12445
    oprot.writeStructBegin('getNlcForWarehouse_result')
12446
    if self.success is not None:
12447
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12448
      oprot.writeDouble(self.success)
12449
      oprot.writeFieldEnd()
12450
    oprot.writeFieldStop()
12451
    oprot.writeStructEnd()
12452
 
12453
  def validate(self):
12454
    return
12455
 
12456
 
12457
  def __repr__(self):
12458
    L = ['%s=%r' % (key, value)
12459
      for key, value in self.__dict__.iteritems()]
12460
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12461
 
12462
  def __eq__(self, other):
12463
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12464
 
12465
  def __ne__(self, other):
12466
    return not (self == other)
9456 vikram.rag 12467
 
9640 amar.kumar 12468
class getHeldInventoryMapForItem_args:
12469
  """
12470
  Attributes:
12471
   - item_id
12472
   - warehouse_id
12473
  """
12474
 
12475
  thrift_spec = (
12476
    None, # 0
12477
    (1, TType.I64, 'item_id', None, None, ), # 1
12478
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
12479
  )
12480
 
12481
  def __init__(self, item_id=None, warehouse_id=None,):
12482
    self.item_id = item_id
12483
    self.warehouse_id = warehouse_id
12484
 
12485
  def read(self, iprot):
12486
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12487
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12488
      return
12489
    iprot.readStructBegin()
12490
    while True:
12491
      (fname, ftype, fid) = iprot.readFieldBegin()
12492
      if ftype == TType.STOP:
12493
        break
12494
      if fid == 1:
12495
        if ftype == TType.I64:
12496
          self.item_id = iprot.readI64();
12497
        else:
12498
          iprot.skip(ftype)
12499
      elif fid == 2:
12500
        if ftype == TType.I64:
12501
          self.warehouse_id = iprot.readI64();
12502
        else:
12503
          iprot.skip(ftype)
12504
      else:
12505
        iprot.skip(ftype)
12506
      iprot.readFieldEnd()
12507
    iprot.readStructEnd()
12508
 
12509
  def write(self, oprot):
12510
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12511
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12512
      return
12513
    oprot.writeStructBegin('getHeldInventoryMapForItem_args')
12514
    if self.item_id is not None:
12515
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12516
      oprot.writeI64(self.item_id)
12517
      oprot.writeFieldEnd()
12518
    if self.warehouse_id is not None:
12519
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
12520
      oprot.writeI64(self.warehouse_id)
12521
      oprot.writeFieldEnd()
12522
    oprot.writeFieldStop()
12523
    oprot.writeStructEnd()
12524
 
12525
  def validate(self):
12526
    return
12527
 
12528
 
12529
  def __repr__(self):
12530
    L = ['%s=%r' % (key, value)
12531
      for key, value in self.__dict__.iteritems()]
12532
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12533
 
12534
  def __eq__(self, other):
12535
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12536
 
12537
  def __ne__(self, other):
12538
    return not (self == other)
12539
 
12540
class getHeldInventoryMapForItem_result:
12541
  """
12542
  Attributes:
12543
   - success
12544
  """
12545
 
12546
  thrift_spec = (
12547
    (0, TType.MAP, 'success', (TType.I32,None,TType.I64,None), None, ), # 0
12548
  )
12549
 
12550
  def __init__(self, success=None,):
12551
    self.success = success
12552
 
12553
  def read(self, iprot):
12554
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12555
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12556
      return
12557
    iprot.readStructBegin()
12558
    while True:
12559
      (fname, ftype, fid) = iprot.readFieldBegin()
12560
      if ftype == TType.STOP:
12561
        break
12562
      if fid == 0:
12563
        if ftype == TType.MAP:
12564
          self.success = {}
12565
          (_ktype245, _vtype246, _size244 ) = iprot.readMapBegin() 
12566
          for _i248 in xrange(_size244):
12567
            _key249 = iprot.readI32();
12568
            _val250 = iprot.readI64();
12569
            self.success[_key249] = _val250
12570
          iprot.readMapEnd()
12571
        else:
12572
          iprot.skip(ftype)
12573
      else:
12574
        iprot.skip(ftype)
12575
      iprot.readFieldEnd()
12576
    iprot.readStructEnd()
12577
 
12578
  def write(self, oprot):
12579
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12580
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12581
      return
12582
    oprot.writeStructBegin('getHeldInventoryMapForItem_result')
12583
    if self.success is not None:
12584
      oprot.writeFieldBegin('success', TType.MAP, 0)
12585
      oprot.writeMapBegin(TType.I32, TType.I64, len(self.success))
12586
      for kiter251,viter252 in self.success.items():
12587
        oprot.writeI32(kiter251)
12588
        oprot.writeI64(viter252)
12589
      oprot.writeMapEnd()
12590
      oprot.writeFieldEnd()
12591
    oprot.writeFieldStop()
12592
    oprot.writeStructEnd()
12593
 
12594
  def validate(self):
12595
    return
12596
 
12597
 
12598
  def __repr__(self):
12599
    L = ['%s=%r' % (key, value)
12600
      for key, value in self.__dict__.iteritems()]
12601
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12602
 
12603
  def __eq__(self, other):
12604
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12605
 
12606
  def __ne__(self, other):
12607
    return not (self == other)
12608
 
9495 vikram.rag 12609
class addOrUpdateAllAmazonFbaInventory_args:
12610
  """
12611
  Attributes:
12612
   - allamazonfbainventorysnapshot
12613
  """
9456 vikram.rag 12614
 
9495 vikram.rag 12615
  thrift_spec = None
12616
  def __init__(self, allamazonfbainventorysnapshot=None,):
12617
    self.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 12618
 
12619
  def read(self, iprot):
12620
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12621
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12622
      return
12623
    iprot.readStructBegin()
12624
    while True:
12625
      (fname, ftype, fid) = iprot.readFieldBegin()
12626
      if ftype == TType.STOP:
12627
        break
9495 vikram.rag 12628
      if fid == -1:
12629
        if ftype == TType.LIST:
12630
          self.allamazonfbainventorysnapshot = []
9640 amar.kumar 12631
          (_etype256, _size253) = iprot.readListBegin()
12632
          for _i257 in xrange(_size253):
12633
            _elem258 = AmazonFbaInventorySnapshot()
12634
            _elem258.read(iprot)
12635
            self.allamazonfbainventorysnapshot.append(_elem258)
9495 vikram.rag 12636
          iprot.readListEnd()
12637
        else:
12638
          iprot.skip(ftype)
9456 vikram.rag 12639
      else:
12640
        iprot.skip(ftype)
12641
      iprot.readFieldEnd()
12642
    iprot.readStructEnd()
12643
 
12644
  def write(self, oprot):
12645
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12646
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12647
      return
9495 vikram.rag 12648
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_args')
12649
    if self.allamazonfbainventorysnapshot is not None:
12650
      oprot.writeFieldBegin('allamazonfbainventorysnapshot', TType.LIST, -1)
12651
      oprot.writeListBegin(TType.STRUCT, len(self.allamazonfbainventorysnapshot))
9640 amar.kumar 12652
      for iter259 in self.allamazonfbainventorysnapshot:
12653
        iter259.write(oprot)
9495 vikram.rag 12654
      oprot.writeListEnd()
12655
      oprot.writeFieldEnd()
9456 vikram.rag 12656
    oprot.writeFieldStop()
12657
    oprot.writeStructEnd()
12658
 
12659
  def validate(self):
12660
    return
12661
 
12662
 
12663
  def __repr__(self):
12664
    L = ['%s=%r' % (key, value)
12665
      for key, value in self.__dict__.iteritems()]
12666
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12667
 
12668
  def __eq__(self, other):
12669
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12670
 
12671
  def __ne__(self, other):
12672
    return not (self == other)
12673
 
9495 vikram.rag 12674
class addOrUpdateAllAmazonFbaInventory_result:
9456 vikram.rag 12675
 
12676
  thrift_spec = (
12677
  )
12678
 
12679
  def read(self, iprot):
12680
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12681
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12682
      return
12683
    iprot.readStructBegin()
12684
    while True:
12685
      (fname, ftype, fid) = iprot.readFieldBegin()
12686
      if ftype == TType.STOP:
12687
        break
12688
      else:
12689
        iprot.skip(ftype)
12690
      iprot.readFieldEnd()
12691
    iprot.readStructEnd()
12692
 
12693
  def write(self, oprot):
12694
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12695
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12696
      return
9495 vikram.rag 12697
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_result')
9456 vikram.rag 12698
    oprot.writeFieldStop()
12699
    oprot.writeStructEnd()
12700
 
12701
  def validate(self):
12702
    return
12703
 
12704
 
12705
  def __repr__(self):
12706
    L = ['%s=%r' % (key, value)
12707
      for key, value in self.__dict__.iteritems()]
12708
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12709
 
12710
  def __eq__(self, other):
12711
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12712
 
12713
  def __ne__(self, other):
12714
    return not (self == other)
9482 vikram.rag 12715
 
9495 vikram.rag 12716
class addOrUpdateAllSnapdealInventory_args:
9482 vikram.rag 12717
  """
12718
  Attributes:
9495 vikram.rag 12719
   - allsnapdealinventorysnapshot
9482 vikram.rag 12720
  """
12721
 
12722
  thrift_spec = None
9495 vikram.rag 12723
  def __init__(self, allsnapdealinventorysnapshot=None,):
12724
    self.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 12725
 
12726
  def read(self, iprot):
12727
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12728
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12729
      return
12730
    iprot.readStructBegin()
12731
    while True:
12732
      (fname, ftype, fid) = iprot.readFieldBegin()
12733
      if ftype == TType.STOP:
12734
        break
12735
      if fid == -1:
12736
        if ftype == TType.LIST:
9495 vikram.rag 12737
          self.allsnapdealinventorysnapshot = []
9640 amar.kumar 12738
          (_etype263, _size260) = iprot.readListBegin()
12739
          for _i264 in xrange(_size260):
12740
            _elem265 = SnapdealInventoryItem()
12741
            _elem265.read(iprot)
12742
            self.allsnapdealinventorysnapshot.append(_elem265)
9482 vikram.rag 12743
          iprot.readListEnd()
12744
        else:
12745
          iprot.skip(ftype)
12746
      else:
12747
        iprot.skip(ftype)
12748
      iprot.readFieldEnd()
12749
    iprot.readStructEnd()
12750
 
12751
  def write(self, oprot):
12752
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12753
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12754
      return
9495 vikram.rag 12755
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_args')
12756
    if self.allsnapdealinventorysnapshot is not None:
12757
      oprot.writeFieldBegin('allsnapdealinventorysnapshot', TType.LIST, -1)
12758
      oprot.writeListBegin(TType.STRUCT, len(self.allsnapdealinventorysnapshot))
9640 amar.kumar 12759
      for iter266 in self.allsnapdealinventorysnapshot:
12760
        iter266.write(oprot)
9482 vikram.rag 12761
      oprot.writeListEnd()
12762
      oprot.writeFieldEnd()
12763
    oprot.writeFieldStop()
12764
    oprot.writeStructEnd()
12765
 
12766
  def validate(self):
12767
    return
12768
 
12769
 
12770
  def __repr__(self):
12771
    L = ['%s=%r' % (key, value)
12772
      for key, value in self.__dict__.iteritems()]
12773
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12774
 
12775
  def __eq__(self, other):
12776
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12777
 
12778
  def __ne__(self, other):
12779
    return not (self == other)
12780
 
9495 vikram.rag 12781
class addOrUpdateAllSnapdealInventory_result:
9482 vikram.rag 12782
 
12783
  thrift_spec = (
12784
  )
12785
 
12786
  def read(self, iprot):
12787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12789
      return
12790
    iprot.readStructBegin()
12791
    while True:
12792
      (fname, ftype, fid) = iprot.readFieldBegin()
12793
      if ftype == TType.STOP:
12794
        break
12795
      else:
12796
        iprot.skip(ftype)
12797
      iprot.readFieldEnd()
12798
    iprot.readStructEnd()
12799
 
12800
  def write(self, oprot):
12801
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12802
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12803
      return
9495 vikram.rag 12804
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_result')
9482 vikram.rag 12805
    oprot.writeFieldStop()
12806
    oprot.writeStructEnd()
12807
 
12808
  def validate(self):
12809
    return
12810
 
12811
 
12812
  def __repr__(self):
12813
    L = ['%s=%r' % (key, value)
12814
      for key, value in self.__dict__.iteritems()]
12815
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12816
 
12817
  def __eq__(self, other):
12818
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12819
 
12820
  def __ne__(self, other):
12821
    return not (self == other)
9495 vikram.rag 12822
 
12823
class getSnapdealInventorySnapshot_args:
12824
 
12825
  thrift_spec = (
12826
  )
12827
 
12828
  def read(self, iprot):
12829
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12830
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12831
      return
12832
    iprot.readStructBegin()
12833
    while True:
12834
      (fname, ftype, fid) = iprot.readFieldBegin()
12835
      if ftype == TType.STOP:
12836
        break
12837
      else:
12838
        iprot.skip(ftype)
12839
      iprot.readFieldEnd()
12840
    iprot.readStructEnd()
12841
 
12842
  def write(self, oprot):
12843
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12844
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12845
      return
12846
    oprot.writeStructBegin('getSnapdealInventorySnapshot_args')
12847
    oprot.writeFieldStop()
12848
    oprot.writeStructEnd()
12849
 
12850
  def validate(self):
12851
    return
12852
 
12853
 
12854
  def __repr__(self):
12855
    L = ['%s=%r' % (key, value)
12856
      for key, value in self.__dict__.iteritems()]
12857
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12858
 
12859
  def __eq__(self, other):
12860
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12861
 
12862
  def __ne__(self, other):
12863
    return not (self == other)
12864
 
12865
class getSnapdealInventorySnapshot_result:
12866
  """
12867
  Attributes:
12868
   - success
12869
  """
12870
 
12871
  thrift_spec = (
12872
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec)), None, ), # 0
12873
  )
12874
 
12875
  def __init__(self, success=None,):
12876
    self.success = success
12877
 
12878
  def read(self, iprot):
12879
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12880
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12881
      return
12882
    iprot.readStructBegin()
12883
    while True:
12884
      (fname, ftype, fid) = iprot.readFieldBegin()
12885
      if ftype == TType.STOP:
12886
        break
12887
      if fid == 0:
12888
        if ftype == TType.LIST:
12889
          self.success = []
9640 amar.kumar 12890
          (_etype270, _size267) = iprot.readListBegin()
12891
          for _i271 in xrange(_size267):
12892
            _elem272 = SnapdealInventoryItem()
12893
            _elem272.read(iprot)
12894
            self.success.append(_elem272)
9495 vikram.rag 12895
          iprot.readListEnd()
12896
        else:
12897
          iprot.skip(ftype)
12898
      else:
12899
        iprot.skip(ftype)
12900
      iprot.readFieldEnd()
12901
    iprot.readStructEnd()
12902
 
12903
  def write(self, oprot):
12904
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12905
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12906
      return
12907
    oprot.writeStructBegin('getSnapdealInventorySnapshot_result')
12908
    if self.success is not None:
12909
      oprot.writeFieldBegin('success', TType.LIST, 0)
12910
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9640 amar.kumar 12911
      for iter273 in self.success:
12912
        iter273.write(oprot)
9495 vikram.rag 12913
      oprot.writeListEnd()
12914
      oprot.writeFieldEnd()
12915
    oprot.writeFieldStop()
12916
    oprot.writeStructEnd()
12917
 
12918
  def validate(self):
12919
    return
12920
 
12921
 
12922
  def __repr__(self):
12923
    L = ['%s=%r' % (key, value)
12924
      for key, value in self.__dict__.iteritems()]
12925
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12926
 
12927
  def __eq__(self, other):
12928
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12929
 
12930
  def __ne__(self, other):
12931
    return not (self == other)
9761 amar.kumar 12932
 
12933
class getHoldInventoryDetails_args:
12934
  """
12935
  Attributes:
12936
   - itemId
12937
   - warehouseId
12938
   - source
12939
  """
12940
 
12941
  thrift_spec = (
12942
    None, # 0
12943
    (1, TType.I64, 'itemId', None, None, ), # 1
12944
    (2, TType.I64, 'warehouseId', None, None, ), # 2
12945
    (3, TType.I64, 'source', None, None, ), # 3
12946
  )
12947
 
12948
  def __init__(self, itemId=None, warehouseId=None, source=None,):
12949
    self.itemId = itemId
12950
    self.warehouseId = warehouseId
12951
    self.source = source
12952
 
12953
  def read(self, iprot):
12954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12956
      return
12957
    iprot.readStructBegin()
12958
    while True:
12959
      (fname, ftype, fid) = iprot.readFieldBegin()
12960
      if ftype == TType.STOP:
12961
        break
12962
      if fid == 1:
12963
        if ftype == TType.I64:
12964
          self.itemId = iprot.readI64();
12965
        else:
12966
          iprot.skip(ftype)
12967
      elif fid == 2:
12968
        if ftype == TType.I64:
12969
          self.warehouseId = iprot.readI64();
12970
        else:
12971
          iprot.skip(ftype)
12972
      elif fid == 3:
12973
        if ftype == TType.I64:
12974
          self.source = iprot.readI64();
12975
        else:
12976
          iprot.skip(ftype)
12977
      else:
12978
        iprot.skip(ftype)
12979
      iprot.readFieldEnd()
12980
    iprot.readStructEnd()
12981
 
12982
  def write(self, oprot):
12983
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12984
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12985
      return
12986
    oprot.writeStructBegin('getHoldInventoryDetails_args')
12987
    if self.itemId is not None:
12988
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12989
      oprot.writeI64(self.itemId)
12990
      oprot.writeFieldEnd()
12991
    if self.warehouseId is not None:
12992
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
12993
      oprot.writeI64(self.warehouseId)
12994
      oprot.writeFieldEnd()
12995
    if self.source is not None:
12996
      oprot.writeFieldBegin('source', TType.I64, 3)
12997
      oprot.writeI64(self.source)
12998
      oprot.writeFieldEnd()
12999
    oprot.writeFieldStop()
13000
    oprot.writeStructEnd()
13001
 
13002
  def validate(self):
13003
    return
13004
 
13005
 
13006
  def __repr__(self):
13007
    L = ['%s=%r' % (key, value)
13008
      for key, value in self.__dict__.iteritems()]
13009
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13010
 
13011
  def __eq__(self, other):
13012
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13013
 
13014
  def __ne__(self, other):
13015
    return not (self == other)
13016
 
13017
class getHoldInventoryDetails_result:
13018
  """
13019
  Attributes:
13020
   - success
13021
  """
13022
 
13023
  thrift_spec = (
13024
    (0, TType.LIST, 'success', (TType.STRUCT,(HoldInventoryDetail, HoldInventoryDetail.thrift_spec)), None, ), # 0
13025
  )
13026
 
13027
  def __init__(self, success=None,):
13028
    self.success = success
13029
 
13030
  def read(self, iprot):
13031
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13032
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13033
      return
13034
    iprot.readStructBegin()
13035
    while True:
13036
      (fname, ftype, fid) = iprot.readFieldBegin()
13037
      if ftype == TType.STOP:
13038
        break
13039
      if fid == 0:
13040
        if ftype == TType.LIST:
13041
          self.success = []
13042
          (_etype277, _size274) = iprot.readListBegin()
13043
          for _i278 in xrange(_size274):
13044
            _elem279 = HoldInventoryDetail()
13045
            _elem279.read(iprot)
13046
            self.success.append(_elem279)
13047
          iprot.readListEnd()
13048
        else:
13049
          iprot.skip(ftype)
13050
      else:
13051
        iprot.skip(ftype)
13052
      iprot.readFieldEnd()
13053
    iprot.readStructEnd()
13054
 
13055
  def write(self, oprot):
13056
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13057
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13058
      return
13059
    oprot.writeStructBegin('getHoldInventoryDetails_result')
13060
    if self.success is not None:
13061
      oprot.writeFieldBegin('success', TType.LIST, 0)
13062
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13063
      for iter280 in self.success:
13064
        iter280.write(oprot)
13065
      oprot.writeListEnd()
13066
      oprot.writeFieldEnd()
13067
    oprot.writeFieldStop()
13068
    oprot.writeStructEnd()
13069
 
13070
  def validate(self):
13071
    return
13072
 
13073
 
13074
  def __repr__(self):
13075
    L = ['%s=%r' % (key, value)
13076
      for key, value in self.__dict__.iteritems()]
13077
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13078
 
13079
  def __eq__(self, other):
13080
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13081
 
13082
  def __ne__(self, other):
13083
    return not (self == other)
10050 vikram.rag 13084
 
13085
class addOrUpdateFlipkartInventorySnapshot_args:
13086
  """
13087
  Attributes:
13088
   - flipkartInventorySnapshot
13089
  """
13090
 
13091
  thrift_spec = None
13092
  def __init__(self, flipkartInventorySnapshot=None,):
13093
    self.flipkartInventorySnapshot = flipkartInventorySnapshot
13094
 
13095
  def read(self, iprot):
13096
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13097
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13098
      return
13099
    iprot.readStructBegin()
13100
    while True:
13101
      (fname, ftype, fid) = iprot.readFieldBegin()
13102
      if ftype == TType.STOP:
13103
        break
13104
      if fid == -1:
13105
        if ftype == TType.LIST:
13106
          self.flipkartInventorySnapshot = []
13107
          (_etype284, _size281) = iprot.readListBegin()
13108
          for _i285 in xrange(_size281):
13109
            _elem286 = FlipkartInventorySnapshot()
13110
            _elem286.read(iprot)
13111
            self.flipkartInventorySnapshot.append(_elem286)
13112
          iprot.readListEnd()
13113
        else:
13114
          iprot.skip(ftype)
13115
      else:
13116
        iprot.skip(ftype)
13117
      iprot.readFieldEnd()
13118
    iprot.readStructEnd()
13119
 
13120
  def write(self, oprot):
13121
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13122
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13123
      return
13124
    oprot.writeStructBegin('addOrUpdateFlipkartInventorySnapshot_args')
13125
    if self.flipkartInventorySnapshot is not None:
13126
      oprot.writeFieldBegin('flipkartInventorySnapshot', TType.LIST, -1)
13127
      oprot.writeListBegin(TType.STRUCT, len(self.flipkartInventorySnapshot))
13128
      for iter287 in self.flipkartInventorySnapshot:
13129
        iter287.write(oprot)
13130
      oprot.writeListEnd()
13131
      oprot.writeFieldEnd()
13132
    oprot.writeFieldStop()
13133
    oprot.writeStructEnd()
13134
 
13135
  def validate(self):
13136
    return
13137
 
13138
 
13139
  def __repr__(self):
13140
    L = ['%s=%r' % (key, value)
13141
      for key, value in self.__dict__.iteritems()]
13142
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13143
 
13144
  def __eq__(self, other):
13145
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13146
 
13147
  def __ne__(self, other):
13148
    return not (self == other)
13149
 
13150
class addOrUpdateFlipkartInventorySnapshot_result:
13151
 
13152
  thrift_spec = (
13153
  )
13154
 
13155
  def read(self, iprot):
13156
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13157
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13158
      return
13159
    iprot.readStructBegin()
13160
    while True:
13161
      (fname, ftype, fid) = iprot.readFieldBegin()
13162
      if ftype == TType.STOP:
13163
        break
13164
      else:
13165
        iprot.skip(ftype)
13166
      iprot.readFieldEnd()
13167
    iprot.readStructEnd()
13168
 
13169
  def write(self, oprot):
13170
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13171
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13172
      return
13173
    oprot.writeStructBegin('addOrUpdateFlipkartInventorySnapshot_result')
13174
    oprot.writeFieldStop()
13175
    oprot.writeStructEnd()
13176
 
13177
  def validate(self):
13178
    return
13179
 
13180
 
13181
  def __repr__(self):
13182
    L = ['%s=%r' % (key, value)
13183
      for key, value in self.__dict__.iteritems()]
13184
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13185
 
13186
  def __eq__(self, other):
13187
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13188
 
13189
  def __ne__(self, other):
13190
    return not (self == other)
13191
 
13192
class getFlipkartInventorySnapshot_args:
13193
 
13194
  thrift_spec = (
13195
  )
13196
 
13197
  def read(self, iprot):
13198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13200
      return
13201
    iprot.readStructBegin()
13202
    while True:
13203
      (fname, ftype, fid) = iprot.readFieldBegin()
13204
      if ftype == TType.STOP:
13205
        break
13206
      else:
13207
        iprot.skip(ftype)
13208
      iprot.readFieldEnd()
13209
    iprot.readStructEnd()
13210
 
13211
  def write(self, oprot):
13212
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13213
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13214
      return
13215
    oprot.writeStructBegin('getFlipkartInventorySnapshot_args')
13216
    oprot.writeFieldStop()
13217
    oprot.writeStructEnd()
13218
 
13219
  def validate(self):
13220
    return
13221
 
13222
 
13223
  def __repr__(self):
13224
    L = ['%s=%r' % (key, value)
13225
      for key, value in self.__dict__.iteritems()]
13226
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13227
 
13228
  def __eq__(self, other):
13229
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13230
 
13231
  def __ne__(self, other):
13232
    return not (self == other)
13233
 
13234
class getFlipkartInventorySnapshot_result:
13235
  """
13236
  Attributes:
13237
   - success
13238
  """
13239
 
13240
  thrift_spec = (
13241
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec)), None, ), # 0
13242
  )
13243
 
13244
  def __init__(self, success=None,):
13245
    self.success = success
13246
 
13247
  def read(self, iprot):
13248
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13249
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13250
      return
13251
    iprot.readStructBegin()
13252
    while True:
13253
      (fname, ftype, fid) = iprot.readFieldBegin()
13254
      if ftype == TType.STOP:
13255
        break
13256
      if fid == 0:
13257
        if ftype == TType.LIST:
13258
          self.success = []
13259
          (_etype291, _size288) = iprot.readListBegin()
13260
          for _i292 in xrange(_size288):
13261
            _elem293 = FlipkartInventorySnapshot()
13262
            _elem293.read(iprot)
13263
            self.success.append(_elem293)
13264
          iprot.readListEnd()
13265
        else:
13266
          iprot.skip(ftype)
13267
      else:
13268
        iprot.skip(ftype)
13269
      iprot.readFieldEnd()
13270
    iprot.readStructEnd()
13271
 
13272
  def write(self, oprot):
13273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13275
      return
13276
    oprot.writeStructBegin('getFlipkartInventorySnapshot_result')
13277
    if self.success is not None:
13278
      oprot.writeFieldBegin('success', TType.LIST, 0)
13279
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13280
      for iter294 in self.success:
13281
        iter294.write(oprot)
13282
      oprot.writeListEnd()
13283
      oprot.writeFieldEnd()
13284
    oprot.writeFieldStop()
13285
    oprot.writeStructEnd()
13286
 
13287
  def validate(self):
13288
    return
13289
 
13290
 
13291
  def __repr__(self):
13292
    L = ['%s=%r' % (key, value)
13293
      for key, value in self.__dict__.iteritems()]
13294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13295
 
13296
  def __eq__(self, other):
13297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13298
 
13299
  def __ne__(self, other):
13300
    return not (self == other)
10097 kshitij.so 13301
 
13302
class getFlipkartlInventoryForItem_args:
13303
  """
13304
  Attributes:
13305
   - item_id
13306
  """
13307
 
13308
  thrift_spec = (
13309
    None, # 0
13310
    (1, TType.I64, 'item_id', None, None, ), # 1
13311
  )
13312
 
13313
  def __init__(self, item_id=None,):
13314
    self.item_id = item_id
13315
 
13316
  def read(self, iprot):
13317
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13318
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13319
      return
13320
    iprot.readStructBegin()
13321
    while True:
13322
      (fname, ftype, fid) = iprot.readFieldBegin()
13323
      if ftype == TType.STOP:
13324
        break
13325
      if fid == 1:
13326
        if ftype == TType.I64:
13327
          self.item_id = iprot.readI64();
13328
        else:
13329
          iprot.skip(ftype)
13330
      else:
13331
        iprot.skip(ftype)
13332
      iprot.readFieldEnd()
13333
    iprot.readStructEnd()
13334
 
13335
  def write(self, oprot):
13336
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13337
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13338
      return
13339
    oprot.writeStructBegin('getFlipkartlInventoryForItem_args')
13340
    if self.item_id is not None:
13341
      oprot.writeFieldBegin('item_id', TType.I64, 1)
13342
      oprot.writeI64(self.item_id)
13343
      oprot.writeFieldEnd()
13344
    oprot.writeFieldStop()
13345
    oprot.writeStructEnd()
13346
 
13347
  def validate(self):
13348
    return
13349
 
13350
 
13351
  def __repr__(self):
13352
    L = ['%s=%r' % (key, value)
13353
      for key, value in self.__dict__.iteritems()]
13354
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13355
 
13356
  def __eq__(self, other):
13357
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13358
 
13359
  def __ne__(self, other):
13360
    return not (self == other)
13361
 
13362
class getFlipkartlInventoryForItem_result:
13363
  """
13364
  Attributes:
13365
   - success
13366
  """
13367
 
13368
  thrift_spec = (
13369
    (0, TType.STRUCT, 'success', (FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec), None, ), # 0
13370
  )
13371
 
13372
  def __init__(self, success=None,):
13373
    self.success = success
13374
 
13375
  def read(self, iprot):
13376
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13377
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13378
      return
13379
    iprot.readStructBegin()
13380
    while True:
13381
      (fname, ftype, fid) = iprot.readFieldBegin()
13382
      if ftype == TType.STOP:
13383
        break
13384
      if fid == 0:
13385
        if ftype == TType.STRUCT:
13386
          self.success = FlipkartInventorySnapshot()
13387
          self.success.read(iprot)
13388
        else:
13389
          iprot.skip(ftype)
13390
      else:
13391
        iprot.skip(ftype)
13392
      iprot.readFieldEnd()
13393
    iprot.readStructEnd()
13394
 
13395
  def write(self, oprot):
13396
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13397
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13398
      return
13399
    oprot.writeStructBegin('getFlipkartlInventoryForItem_result')
13400
    if self.success is not None:
13401
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13402
      self.success.write(oprot)
13403
      oprot.writeFieldEnd()
13404
    oprot.writeFieldStop()
13405
    oprot.writeStructEnd()
13406
 
13407
  def validate(self):
13408
    return
13409
 
13410
 
13411
  def __repr__(self):
13412
    L = ['%s=%r' % (key, value)
13413
      for key, value in self.__dict__.iteritems()]
13414
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13415
 
13416
  def __eq__(self, other):
13417
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13418
 
13419
  def __ne__(self, other):
13420
    return not (self == other)