Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
5944 mandeep.dh 1
#
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def addWarehouse(self, warehouse):
21
    """
22
    Parameters:
23
     - warehouse
24
    """
25
    pass
26
 
27
  def addVendor(self, vendor):
28
    """
29
    add a new vendor
30
 
31
    Parameters:
32
     - vendor
33
    """
34
    pass
35
 
36
  def updateInventoryHistory(self, warehouse_id, timestamp, availability):
37
    """
38
    Stores the incremental warehouse updates of items.
39
 
40
    Parameters:
41
     - warehouse_id
42
     - timestamp
43
     - availability
44
    """
45
    pass
46
 
47
  def updateInventory(self, warehouse_id, timestamp, availability):
48
    """
49
    Stores the final inventory stocks of items.
50
 
51
    Parameters:
52
     - warehouse_id
53
     - timestamp
54
     - availability
55
    """
56
    pass
57
 
58
  def addInventory(self, itemId, warehouseId, quantity):
59
    """
60
    Add the inventory to existing stock.
61
 
62
    Parameters:
63
     - itemId
64
     - warehouseId
65
     - quantity
66
    """
67
    pass
68
 
69
  def retireWarehouse(self, warehouse_id):
70
    """
71
    Parameters:
72
     - warehouse_id
73
    """
74
    pass
75
 
76
  def getItemInventoryByItemId(self, item_id):
77
    """
78
    Parameters:
79
     - item_id
80
    """
81
    pass
82
 
83
  def getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
84
    """
85
    Parameters:
86
     - warehouse_id
87
     - item_id
88
    """
89
    pass
90
 
5978 rajveer 91
  def getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 92
    """
93
    Determines the warehouse that should be used to fulfil an order for the given item.
94
    It first checks all the warehouses which are in the logistics location given by the
95
    warehouse_loc parameter. If none of the warehouses there have any inventory, then the
96
    preferred warehouse for the item is used.
97
 
98
    Returns an ordered list of size 4 with following elements in the given order:
99
    1. Id of the fulfillment warehouse which was finally picked up.
100
    2. Expected delay added by the category manager.
101
    3. Id of the billing warehouse which was finally picked up.
102
 
103
    Parameters:
104
     - itemId
5978 rajveer 105
     - sourceId
5944 mandeep.dh 106
    """
107
    pass
108
 
109
  def getAllWarehouses(self, isActive):
110
    """
111
    Parameters:
112
     - isActive
113
    """
114
    pass
115
 
116
  def getWarehouse(self, warehouse_id):
117
    """
118
    Returns the warehouse with the given id.
119
 
120
    Parameters:
121
     - warehouse_id
122
    """
123
    pass
124
 
125
  def getAllItemsForWarehouse(self, warehouse_id):
126
    """
127
    Parameters:
128
     - warehouse_id
129
    """
130
    pass
131
 
5966 rajveer 132
  def isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
5944 mandeep.dh 133
    """
5966 rajveer 134
    Depending on reservation in the table, verify if we can bill this order or not.
135
 
136
    Parameters:
137
     - itemId
138
     - warehouseId
139
     - sourceId
140
     - orderId
141
    """
142
    pass
143
 
144
  def reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
145
    """
5944 mandeep.dh 146
    Increases the reservation count for an item in a warehouse. Should always succeed normally.
147
 
148
    Parameters:
149
     - itemId
150
     - warehouseId
5966 rajveer 151
     - sourceId
152
     - orderId
153
     - createdTimestamp
154
     - promisedShippingTimestamp
5944 mandeep.dh 155
     - quantity
156
    """
157
    pass
158
 
7968 amar.kumar 159
  def updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
160
    """
161
    Updates the reservation for Order
162
 
163
    Parameters:
164
     - itemId
165
     - warehouseId
166
     - sourceId
167
     - orderId
168
     - createdTimestamp
169
     - promisedShippingTimestamp
170
     - quantity
171
    """
172
    pass
173
 
5966 rajveer 174
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 175
    """
176
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
177
 
178
    Parameters:
179
     - itemId
180
     - warehouseId
5966 rajveer 181
     - sourceId
182
     - orderId
5944 mandeep.dh 183
     - quantity
184
    """
185
    pass
186
 
187
  def getItemPricing(self, itemId, vendorId):
188
    """
189
    Returns the pricing information of an item associated with the vendor of the given warehouse.
190
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
191
 
192
    Parameters:
193
     - itemId
194
     - vendorId
195
    """
196
    pass
197
 
198
  def getAllItemPricing(self, itemId):
199
    """
200
    Returns the list of vendor pricing information of an item.
201
    Raises an exception if item not found corresponding to itemId
202
 
203
    Parameters:
204
     - itemId
205
    """
206
    pass
207
 
208
  def addVendorItemPricing(self, vendorItemPricing):
209
    """
210
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
211
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
212
 
213
    Parameters:
214
     - vendorItemPricing
215
    """
216
    pass
217
 
218
  def getVendor(self, vendorId):
219
    """
220
    Returns a vendor given its id
221
 
222
    Parameters:
223
     - vendorId
224
    """
225
    pass
226
 
227
  def getAllVendors(self, ):
228
    """
229
    Return list of all vendors
230
    """
231
    pass
232
 
233
  def addVendorItemMapping(self, key, vendorItemMapping):
234
    """
235
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
236
 
237
    Parameters:
238
     - key
239
     - vendorItemMapping
240
    """
241
    pass
242
 
243
  def getVendorItemMappings(self, itemId):
244
    """
245
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
246
    Raises an exception if item not found corresponding to itemId
247
 
248
    Parameters:
249
     - itemId
250
    """
251
    pass
252
 
253
  def getPendingOrdersInventory(self, vendorid):
254
    """
255
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
256
 
257
    Parameters:
258
     - vendorid
259
    """
260
    pass
261
 
262
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
263
    """
264
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
265
    getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 3, 7, 7) would return ours warehouse with GOOD type inventory for vendor 1 for billing warehouse 7 and shipping warehouse 7
266
    getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 3, 7, 7) would return ours warehouse with GOOD type inventory for vendor 3 for billing warehouse 7 and shipping warehouse 7
267
       getWarehouses(null, null, 3, 7, 7) would return all type warehouses with all type inventory for vendor 3 for billing warehouse 7 and shipping warehouse 7
268
       getWarehouses(null, null, 0, 0, 7) would return all type warehouses with all type inventory for all vendors for all billing warehouses at shipping warehouse 7
269
 
270
    Parameters:
271
     - warehouseType
272
     - inventoryType
273
     - vendorId
274
     - billingWarehouseId
275
     - shippingWarehouseId
276
    """
277
    pass
278
 
279
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
280
    """
281
    Resets availability of an item to the quantity mentioned in a warehouse.
282
 
283
    Parameters:
284
     - itemKey
285
     - vendorId
286
     - quantity
287
     - warehouseId
288
    """
289
    pass
290
 
291
  def resetAvailabilityForWarehouse(self, warehouseId):
292
    """
293
    Resets availability of a warehouse to zero.
294
 
295
    Parameters:
296
     - warehouseId
297
    """
298
    pass
299
 
300
  def getItemKeysToBeProcessed(self, warehouseId):
301
    """
302
    Returns the list of item keys which need to be processed for a given warehouse.
303
    This is currently used by Support application to send item keys whose inventory needs
304
    to be updated from PLB
305
 
306
    Parameters:
307
     - warehouseId
308
    """
309
    pass
310
 
311
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
312
    """
313
    Marks/Deletes missed inventory updates for a given key and warehouse.
314
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
315
 
316
    Parameters:
317
     - itemKey
318
     - warehouseId
319
    """
320
    pass
321
 
322
  def getIgnoredItemKeys(self, ):
323
    """
324
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
325
    and the timestamp from where alert was raised.
326
    """
327
    pass
328
 
329
  def addBadInventory(self, itemId, warehouseId, quantity):
330
    """
331
    Add the BAD type inventory to existing stock.
332
 
333
    Parameters:
334
     - itemId
335
     - warehouseId
336
     - quantity
337
    """
338
    pass
339
 
340
  def getShippingLocations(self, ):
341
    """
342
    Returns all shipping locations
343
    """
344
    pass
345
 
346
  def getAllVendorItemMappings(self, ):
347
    """
348
    Fetches all the vendor item mappings present.
349
    """
350
    pass
351
 
352
  def getInventorySnapshot(self, warehouseId):
353
    """
354
    Gets items' inventory for a warehouse
355
    If warehouse is passed as zero, items' inventory across all warehouses is sent
356
 
357
    Parameters:
358
     - warehouseId
359
    """
360
    pass
361
 
362
  def clearItemAvailabilityCache(self, ):
363
    """
364
    Clear item availability cache.
365
    """
366
    pass
367
 
368
  def updateVendorString(self, warehouseId, vendorString):
369
    """
370
    Parameters:
371
     - warehouseId
372
     - vendorString
373
    """
374
    pass
375
 
6096 amit.gupta 376
  def clearItemAvailabilityCacheForItem(self, item_id):
377
    """
378
    Parameters:
379
     - item_id
380
    """
381
    pass
5944 mandeep.dh 382
 
7718 amar.kumar 383
  def getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 384
    """
385
    Parameters:
386
     - vendorId
7718 amar.kumar 387
     - billingWarehouseId
6467 amar.kumar 388
    """
389
    pass
6096 amit.gupta 390
 
6484 amar.kumar 391
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
392
    """
393
    Parameters:
394
     - item_ids
395
    """
396
    pass
6467 amar.kumar 397
 
6531 vikram.rag 398
  def getMonitoredWarehouseForVendors(self, vendorIds):
399
    """
400
    Parameters:
401
     - vendorIds
402
    """
403
    pass
6484 amar.kumar 404
 
6531 vikram.rag 405
  def getIgnoredWarehouseidsAndItemids(self, ):
406
    pass
407
 
408
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
409
    """
410
    Parameters:
411
     - item_id
412
     - warehouse_id
413
    """
414
    pass
415
 
416
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
417
    """
418
    Parameters:
419
     - item_id
420
     - warehouse_id
421
    """
422
    pass
423
 
424
  def getAllIgnoredInventoryupdateItemsCount(self, ):
425
    pass
426
 
427
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
428
    """
429
    Parameters:
430
     - offset
431
     - limit
432
    """
433
    pass
434
 
6821 amar.kumar 435
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
436
    """
437
    Parameters:
438
     - item_id
439
     - numOfDaysStock
440
     - minStockLevel
441
    """
442
    pass
6531 vikram.rag 443
 
6821 amar.kumar 444
  def getItemStockPurchaseParams(self, itemId):
445
    """
446
    Parameters:
447
     - itemId
448
    """
449
    pass
450
 
451
  def addOosStatusForItem(self, oosStatusMap, date):
452
    """
453
    Parameters:
454
     - oosStatusMap
455
     - date
456
    """
457
    pass
458
 
9762 amar.kumar 459
  def getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 460
    """
461
    Parameters:
462
     - itemId
9762 amar.kumar 463
     - sourceId
6832 amar.kumar 464
     - days
465
    """
466
    pass
6821 amar.kumar 467
 
10126 amar.kumar 468
  def getOosStatusesForXDays(self, sourceId, days):
469
    """
470
    Parameters:
471
     - sourceId
472
     - days
473
    """
474
    pass
475
 
476
  def getAllVendorItemPricing(self, itemId, vendorId):
477
    """
478
    Parameters:
479
     - itemId
480
     - vendorId
481
    """
482
    pass
483
 
6857 amar.kumar 484
  def getNonZeroItemStockPurchaseParams(self, ):
485
    pass
6832 amar.kumar 486
 
7149 amar.kumar 487
  def getBillableInventoryAndPendingOrders(self, ):
488
    """
489
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
490
    """
491
    pass
6857 amar.kumar 492
 
7281 kshitij.so 493
  def getWarehouseName(self, warehouse_id):
494
    """
495
    Parameters:
496
     - warehouse_id
497
    """
498
    pass
7149 amar.kumar 499
 
7281 kshitij.so 500
  def getAmazonInventoryForItem(self, item_id):
501
    """
502
    Parameters:
503
     - item_id
504
    """
505
    pass
506
 
507
  def getAllAmazonInventory(self, ):
508
    pass
509
 
10450 vikram.rag 510
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot, time):
7281 kshitij.so 511
    """
512
    Parameters:
513
     - amazonInventorySnapshot
10450 vikram.rag 514
     - time
7281 kshitij.so 515
    """
516
    pass
517
 
7972 amar.kumar 518
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
519
    """
520
    Parameters:
521
     - itemId
522
     - numberOfDays
523
    """
524
    pass
7281 kshitij.so 525
 
8282 kshitij.so 526
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
527
    """
528
    Parameters:
529
     - amazonfbainventorysnapshot
530
    """
531
    pass
532
 
8182 amar.kumar 533
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
534
    """
535
    Parameters:
536
     - itemId
537
     - warehouseId
538
     - holdQuantity
539
     - source
540
    """
541
    pass
7972 amar.kumar 542
 
8282 kshitij.so 543
  def getAmazonFbaItemInventory(self, itemId):
544
    """
545
    Parameters:
546
     - itemId
547
    """
548
    pass
8182 amar.kumar 549
 
8363 vikram.rag 550
  def getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 551
    pass
552
 
8363 vikram.rag 553
  def getOursGoodWarehouseIdsForLocation(self, state_id):
554
    """
555
    Parameters:
556
     - state_id
557
    """
558
    pass
8282 kshitij.so 559
 
8955 vikram.rag 560
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
561
    """
562
    Parameters:
563
     - id
564
     - warehouse_id
565
     - source
566
    """
567
    pass
8363 vikram.rag 568
 
9404 vikram.rag 569
  def getSnapdealInventoryForItem(self, item_id):
570
    """
571
    Parameters:
572
     - item_id
573
    """
574
    pass
8955 vikram.rag 575
 
9404 vikram.rag 576
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
577
    """
578
    Parameters:
579
     - snapdealinventoryitem
580
    """
581
    pass
582
 
583
  def getNlcForWarehouse(self, warehouse_id, item_id):
584
    """
585
    Parameters:
586
     - warehouse_id
587
     - item_id
588
    """
589
    pass
590
 
9640 amar.kumar 591
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
592
    """
593
    Parameters:
594
     - item_id
595
     - warehouse_id
596
    """
597
    pass
598
 
9482 vikram.rag 599
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
600
    """
601
    Parameters:
602
     - allamazonfbainventorysnapshot
603
    """
604
    pass
9456 vikram.rag 605
 
9495 vikram.rag 606
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
607
    """
608
    Parameters:
609
     - allsnapdealinventorysnapshot
610
    """
611
    pass
9482 vikram.rag 612
 
9495 vikram.rag 613
  def getSnapdealInventorySnapshot(self, ):
614
    pass
615
 
9761 amar.kumar 616
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
617
    """
618
    Parameters:
619
     - itemId
620
     - warehouseId
621
     - source
622
    """
623
    pass
9495 vikram.rag 624
 
10450 vikram.rag 625
  def addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot, time):
10050 vikram.rag 626
    """
627
    Parameters:
628
     - flipkartInventorySnapshot
10450 vikram.rag 629
     - time
10050 vikram.rag 630
    """
631
    pass
9761 amar.kumar 632
 
10050 vikram.rag 633
  def getFlipkartInventorySnapshot(self, ):
634
    pass
635
 
10097 kshitij.so 636
  def getFlipkartlInventoryForItem(self, item_id):
637
    """
638
    Parameters:
639
     - item_id
640
    """
641
    pass
10050 vikram.rag 642
 
10097 kshitij.so 643
 
5944 mandeep.dh 644
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
645
  def __init__(self, iprot, oprot=None):
646
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
647
 
648
  def addWarehouse(self, warehouse):
649
    """
650
    Parameters:
651
     - warehouse
652
    """
653
    self.send_addWarehouse(warehouse)
654
    return self.recv_addWarehouse()
655
 
656
  def send_addWarehouse(self, warehouse):
657
    self._oprot.writeMessageBegin('addWarehouse', TMessageType.CALL, self._seqid)
658
    args = addWarehouse_args()
659
    args.warehouse = warehouse
660
    args.write(self._oprot)
661
    self._oprot.writeMessageEnd()
662
    self._oprot.trans.flush()
663
 
664
  def recv_addWarehouse(self, ):
665
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
666
    if mtype == TMessageType.EXCEPTION:
667
      x = TApplicationException()
668
      x.read(self._iprot)
669
      self._iprot.readMessageEnd()
670
      raise x
671
    result = addWarehouse_result()
672
    result.read(self._iprot)
673
    self._iprot.readMessageEnd()
674
    if result.success is not None:
675
      return result.success
676
    if result.cex is not None:
677
      raise result.cex
678
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
679
 
680
  def addVendor(self, vendor):
681
    """
682
    add a new vendor
683
 
684
    Parameters:
685
     - vendor
686
    """
687
    self.send_addVendor(vendor)
688
    return self.recv_addVendor()
689
 
690
  def send_addVendor(self, vendor):
691
    self._oprot.writeMessageBegin('addVendor', TMessageType.CALL, self._seqid)
692
    args = addVendor_args()
693
    args.vendor = vendor
694
    args.write(self._oprot)
695
    self._oprot.writeMessageEnd()
696
    self._oprot.trans.flush()
697
 
698
  def recv_addVendor(self, ):
699
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
700
    if mtype == TMessageType.EXCEPTION:
701
      x = TApplicationException()
702
      x.read(self._iprot)
703
      self._iprot.readMessageEnd()
704
      raise x
705
    result = addVendor_result()
706
    result.read(self._iprot)
707
    self._iprot.readMessageEnd()
708
    if result.success is not None:
709
      return result.success
710
    if result.cex is not None:
711
      raise result.cex
712
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
713
 
714
  def updateInventoryHistory(self, warehouse_id, timestamp, availability):
715
    """
716
    Stores the incremental warehouse updates of items.
717
 
718
    Parameters:
719
     - warehouse_id
720
     - timestamp
721
     - availability
722
    """
723
    self.send_updateInventoryHistory(warehouse_id, timestamp, availability)
724
    self.recv_updateInventoryHistory()
725
 
726
  def send_updateInventoryHistory(self, warehouse_id, timestamp, availability):
727
    self._oprot.writeMessageBegin('updateInventoryHistory', TMessageType.CALL, self._seqid)
728
    args = updateInventoryHistory_args()
729
    args.warehouse_id = warehouse_id
730
    args.timestamp = timestamp
731
    args.availability = availability
732
    args.write(self._oprot)
733
    self._oprot.writeMessageEnd()
734
    self._oprot.trans.flush()
735
 
736
  def recv_updateInventoryHistory(self, ):
737
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
738
    if mtype == TMessageType.EXCEPTION:
739
      x = TApplicationException()
740
      x.read(self._iprot)
741
      self._iprot.readMessageEnd()
742
      raise x
743
    result = updateInventoryHistory_result()
744
    result.read(self._iprot)
745
    self._iprot.readMessageEnd()
746
    if result.cex is not None:
747
      raise result.cex
748
    return
749
 
750
  def updateInventory(self, warehouse_id, timestamp, availability):
751
    """
752
    Stores the final inventory stocks of items.
753
 
754
    Parameters:
755
     - warehouse_id
756
     - timestamp
757
     - availability
758
    """
759
    self.send_updateInventory(warehouse_id, timestamp, availability)
760
    self.recv_updateInventory()
761
 
762
  def send_updateInventory(self, warehouse_id, timestamp, availability):
763
    self._oprot.writeMessageBegin('updateInventory', TMessageType.CALL, self._seqid)
764
    args = updateInventory_args()
765
    args.warehouse_id = warehouse_id
766
    args.timestamp = timestamp
767
    args.availability = availability
768
    args.write(self._oprot)
769
    self._oprot.writeMessageEnd()
770
    self._oprot.trans.flush()
771
 
772
  def recv_updateInventory(self, ):
773
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
774
    if mtype == TMessageType.EXCEPTION:
775
      x = TApplicationException()
776
      x.read(self._iprot)
777
      self._iprot.readMessageEnd()
778
      raise x
779
    result = updateInventory_result()
780
    result.read(self._iprot)
781
    self._iprot.readMessageEnd()
782
    if result.cex is not None:
783
      raise result.cex
784
    return
785
 
786
  def addInventory(self, itemId, warehouseId, quantity):
787
    """
788
    Add the inventory to existing stock.
789
 
790
    Parameters:
791
     - itemId
792
     - warehouseId
793
     - quantity
794
    """
795
    self.send_addInventory(itemId, warehouseId, quantity)
796
    self.recv_addInventory()
797
 
798
  def send_addInventory(self, itemId, warehouseId, quantity):
799
    self._oprot.writeMessageBegin('addInventory', TMessageType.CALL, self._seqid)
800
    args = addInventory_args()
801
    args.itemId = itemId
802
    args.warehouseId = warehouseId
803
    args.quantity = quantity
804
    args.write(self._oprot)
805
    self._oprot.writeMessageEnd()
806
    self._oprot.trans.flush()
807
 
808
  def recv_addInventory(self, ):
809
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
810
    if mtype == TMessageType.EXCEPTION:
811
      x = TApplicationException()
812
      x.read(self._iprot)
813
      self._iprot.readMessageEnd()
814
      raise x
815
    result = addInventory_result()
816
    result.read(self._iprot)
817
    self._iprot.readMessageEnd()
818
    if result.cex is not None:
819
      raise result.cex
820
    return
821
 
822
  def retireWarehouse(self, warehouse_id):
823
    """
824
    Parameters:
825
     - warehouse_id
826
    """
827
    self.send_retireWarehouse(warehouse_id)
828
    self.recv_retireWarehouse()
829
 
830
  def send_retireWarehouse(self, warehouse_id):
831
    self._oprot.writeMessageBegin('retireWarehouse', TMessageType.CALL, self._seqid)
832
    args = retireWarehouse_args()
833
    args.warehouse_id = warehouse_id
834
    args.write(self._oprot)
835
    self._oprot.writeMessageEnd()
836
    self._oprot.trans.flush()
837
 
838
  def recv_retireWarehouse(self, ):
839
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
840
    if mtype == TMessageType.EXCEPTION:
841
      x = TApplicationException()
842
      x.read(self._iprot)
843
      self._iprot.readMessageEnd()
844
      raise x
845
    result = retireWarehouse_result()
846
    result.read(self._iprot)
847
    self._iprot.readMessageEnd()
848
    if result.cex is not None:
849
      raise result.cex
850
    return
851
 
852
  def getItemInventoryByItemId(self, item_id):
853
    """
854
    Parameters:
855
     - item_id
856
    """
857
    self.send_getItemInventoryByItemId(item_id)
858
    return self.recv_getItemInventoryByItemId()
859
 
860
  def send_getItemInventoryByItemId(self, item_id):
861
    self._oprot.writeMessageBegin('getItemInventoryByItemId', TMessageType.CALL, self._seqid)
862
    args = getItemInventoryByItemId_args()
863
    args.item_id = item_id
864
    args.write(self._oprot)
865
    self._oprot.writeMessageEnd()
866
    self._oprot.trans.flush()
867
 
868
  def recv_getItemInventoryByItemId(self, ):
869
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
870
    if mtype == TMessageType.EXCEPTION:
871
      x = TApplicationException()
872
      x.read(self._iprot)
873
      self._iprot.readMessageEnd()
874
      raise x
875
    result = getItemInventoryByItemId_result()
876
    result.read(self._iprot)
877
    self._iprot.readMessageEnd()
878
    if result.success is not None:
879
      return result.success
880
    if result.cex is not None:
881
      raise result.cex
882
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
883
 
884
  def getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
885
    """
886
    Parameters:
887
     - warehouse_id
888
     - item_id
889
    """
890
    self.send_getItemAvailibilityAtWarehouse(warehouse_id, item_id)
891
    return self.recv_getItemAvailibilityAtWarehouse()
892
 
893
  def send_getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
894
    self._oprot.writeMessageBegin('getItemAvailibilityAtWarehouse', TMessageType.CALL, self._seqid)
895
    args = getItemAvailibilityAtWarehouse_args()
896
    args.warehouse_id = warehouse_id
897
    args.item_id = item_id
898
    args.write(self._oprot)
899
    self._oprot.writeMessageEnd()
900
    self._oprot.trans.flush()
901
 
902
  def recv_getItemAvailibilityAtWarehouse(self, ):
903
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
904
    if mtype == TMessageType.EXCEPTION:
905
      x = TApplicationException()
906
      x.read(self._iprot)
907
      self._iprot.readMessageEnd()
908
      raise x
909
    result = getItemAvailibilityAtWarehouse_result()
910
    result.read(self._iprot)
911
    self._iprot.readMessageEnd()
912
    if result.success is not None:
913
      return result.success
914
    if result.cex is not None:
915
      raise result.cex
916
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
917
 
5978 rajveer 918
  def getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 919
    """
920
    Determines the warehouse that should be used to fulfil an order for the given item.
921
    It first checks all the warehouses which are in the logistics location given by the
922
    warehouse_loc parameter. If none of the warehouses there have any inventory, then the
923
    preferred warehouse for the item is used.
924
 
925
    Returns an ordered list of size 4 with following elements in the given order:
926
    1. Id of the fulfillment warehouse which was finally picked up.
927
    2. Expected delay added by the category manager.
928
    3. Id of the billing warehouse which was finally picked up.
929
 
930
    Parameters:
931
     - itemId
5978 rajveer 932
     - sourceId
5944 mandeep.dh 933
    """
5978 rajveer 934
    self.send_getItemAvailabilityAtLocation(itemId, sourceId)
5944 mandeep.dh 935
    return self.recv_getItemAvailabilityAtLocation()
936
 
5978 rajveer 937
  def send_getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 938
    self._oprot.writeMessageBegin('getItemAvailabilityAtLocation', TMessageType.CALL, self._seqid)
939
    args = getItemAvailabilityAtLocation_args()
940
    args.itemId = itemId
5978 rajveer 941
    args.sourceId = sourceId
5944 mandeep.dh 942
    args.write(self._oprot)
943
    self._oprot.writeMessageEnd()
944
    self._oprot.trans.flush()
945
 
946
  def recv_getItemAvailabilityAtLocation(self, ):
947
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
948
    if mtype == TMessageType.EXCEPTION:
949
      x = TApplicationException()
950
      x.read(self._iprot)
951
      self._iprot.readMessageEnd()
952
      raise x
953
    result = getItemAvailabilityAtLocation_result()
954
    result.read(self._iprot)
955
    self._iprot.readMessageEnd()
956
    if result.success is not None:
957
      return result.success
958
    if result.isex is not None:
959
      raise result.isex
960
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
961
 
962
  def getAllWarehouses(self, isActive):
963
    """
964
    Parameters:
965
     - isActive
966
    """
967
    self.send_getAllWarehouses(isActive)
968
    return self.recv_getAllWarehouses()
969
 
970
  def send_getAllWarehouses(self, isActive):
971
    self._oprot.writeMessageBegin('getAllWarehouses', TMessageType.CALL, self._seqid)
972
    args = getAllWarehouses_args()
973
    args.isActive = isActive
974
    args.write(self._oprot)
975
    self._oprot.writeMessageEnd()
976
    self._oprot.trans.flush()
977
 
978
  def recv_getAllWarehouses(self, ):
979
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
980
    if mtype == TMessageType.EXCEPTION:
981
      x = TApplicationException()
982
      x.read(self._iprot)
983
      self._iprot.readMessageEnd()
984
      raise x
985
    result = getAllWarehouses_result()
986
    result.read(self._iprot)
987
    self._iprot.readMessageEnd()
988
    if result.success is not None:
989
      return result.success
990
    if result.cex is not None:
991
      raise result.cex
992
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
993
 
994
  def getWarehouse(self, warehouse_id):
995
    """
996
    Returns the warehouse with the given id.
997
 
998
    Parameters:
999
     - warehouse_id
1000
    """
1001
    self.send_getWarehouse(warehouse_id)
1002
    return self.recv_getWarehouse()
1003
 
1004
  def send_getWarehouse(self, warehouse_id):
1005
    self._oprot.writeMessageBegin('getWarehouse', TMessageType.CALL, self._seqid)
1006
    args = getWarehouse_args()
1007
    args.warehouse_id = warehouse_id
1008
    args.write(self._oprot)
1009
    self._oprot.writeMessageEnd()
1010
    self._oprot.trans.flush()
1011
 
1012
  def recv_getWarehouse(self, ):
1013
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1014
    if mtype == TMessageType.EXCEPTION:
1015
      x = TApplicationException()
1016
      x.read(self._iprot)
1017
      self._iprot.readMessageEnd()
1018
      raise x
1019
    result = getWarehouse_result()
1020
    result.read(self._iprot)
1021
    self._iprot.readMessageEnd()
1022
    if result.success is not None:
1023
      return result.success
1024
    if result.cex is not None:
1025
      raise result.cex
1026
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
1027
 
1028
  def getAllItemsForWarehouse(self, warehouse_id):
1029
    """
1030
    Parameters:
1031
     - warehouse_id
1032
    """
1033
    self.send_getAllItemsForWarehouse(warehouse_id)
1034
    return self.recv_getAllItemsForWarehouse()
1035
 
1036
  def send_getAllItemsForWarehouse(self, warehouse_id):
1037
    self._oprot.writeMessageBegin('getAllItemsForWarehouse', TMessageType.CALL, self._seqid)
1038
    args = getAllItemsForWarehouse_args()
1039
    args.warehouse_id = warehouse_id
1040
    args.write(self._oprot)
1041
    self._oprot.writeMessageEnd()
1042
    self._oprot.trans.flush()
1043
 
1044
  def recv_getAllItemsForWarehouse(self, ):
1045
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1046
    if mtype == TMessageType.EXCEPTION:
1047
      x = TApplicationException()
1048
      x.read(self._iprot)
1049
      self._iprot.readMessageEnd()
1050
      raise x
1051
    result = getAllItemsForWarehouse_result()
1052
    result.read(self._iprot)
1053
    self._iprot.readMessageEnd()
1054
    if result.success is not None:
1055
      return result.success
1056
    if result.cex is not None:
1057
      raise result.cex
1058
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
1059
 
5966 rajveer 1060
  def isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
5944 mandeep.dh 1061
    """
5978 rajveer 1062
    Depending on reservation in the table, verify if we can bill this order or not.
5966 rajveer 1063
 
1064
    Parameters:
1065
     - itemId
1066
     - warehouseId
1067
     - sourceId
1068
     - orderId
1069
    """
1070
    self.send_isOrderBillable(itemId, warehouseId, sourceId, orderId)
1071
    return self.recv_isOrderBillable()
1072
 
1073
  def send_isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
1074
    self._oprot.writeMessageBegin('isOrderBillable', TMessageType.CALL, self._seqid)
1075
    args = isOrderBillable_args()
1076
    args.itemId = itemId
1077
    args.warehouseId = warehouseId
1078
    args.sourceId = sourceId
1079
    args.orderId = orderId
1080
    args.write(self._oprot)
1081
    self._oprot.writeMessageEnd()
1082
    self._oprot.trans.flush()
1083
 
1084
  def recv_isOrderBillable(self, ):
1085
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1086
    if mtype == TMessageType.EXCEPTION:
1087
      x = TApplicationException()
1088
      x.read(self._iprot)
1089
      self._iprot.readMessageEnd()
1090
      raise x
1091
    result = isOrderBillable_result()
1092
    result.read(self._iprot)
1093
    self._iprot.readMessageEnd()
1094
    if result.success is not None:
1095
      return result.success
1096
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
1097
 
1098
  def reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1099
    """
5944 mandeep.dh 1100
    Increases the reservation count for an item in a warehouse. Should always succeed normally.
1101
 
1102
    Parameters:
1103
     - itemId
1104
     - warehouseId
5966 rajveer 1105
     - sourceId
1106
     - orderId
1107
     - createdTimestamp
1108
     - promisedShippingTimestamp
5944 mandeep.dh 1109
     - quantity
1110
    """
5966 rajveer 1111
    self.send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
5944 mandeep.dh 1112
    return self.recv_reserveItemInWarehouse()
1113
 
5966 rajveer 1114
  def send_reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
5944 mandeep.dh 1115
    self._oprot.writeMessageBegin('reserveItemInWarehouse', TMessageType.CALL, self._seqid)
1116
    args = reserveItemInWarehouse_args()
1117
    args.itemId = itemId
1118
    args.warehouseId = warehouseId
5966 rajveer 1119
    args.sourceId = sourceId
1120
    args.orderId = orderId
1121
    args.createdTimestamp = createdTimestamp
1122
    args.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 1123
    args.quantity = quantity
1124
    args.write(self._oprot)
1125
    self._oprot.writeMessageEnd()
1126
    self._oprot.trans.flush()
1127
 
1128
  def recv_reserveItemInWarehouse(self, ):
1129
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1130
    if mtype == TMessageType.EXCEPTION:
1131
      x = TApplicationException()
1132
      x.read(self._iprot)
1133
      self._iprot.readMessageEnd()
1134
      raise x
1135
    result = reserveItemInWarehouse_result()
1136
    result.read(self._iprot)
1137
    self._iprot.readMessageEnd()
1138
    if result.success is not None:
1139
      return result.success
1140
    if result.cex is not None:
1141
      raise result.cex
1142
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
1143
 
7968 amar.kumar 1144
  def updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1145
    """
1146
    Updates the reservation for Order
1147
 
1148
    Parameters:
1149
     - itemId
1150
     - warehouseId
1151
     - sourceId
1152
     - orderId
1153
     - createdTimestamp
1154
     - promisedShippingTimestamp
1155
     - quantity
1156
    """
1157
    self.send_updateReservationForOrder(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
1158
    return self.recv_updateReservationForOrder()
1159
 
1160
  def send_updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1161
    self._oprot.writeMessageBegin('updateReservationForOrder', TMessageType.CALL, self._seqid)
1162
    args = updateReservationForOrder_args()
1163
    args.itemId = itemId
1164
    args.warehouseId = warehouseId
1165
    args.sourceId = sourceId
1166
    args.orderId = orderId
1167
    args.createdTimestamp = createdTimestamp
1168
    args.promisedShippingTimestamp = promisedShippingTimestamp
1169
    args.quantity = quantity
1170
    args.write(self._oprot)
1171
    self._oprot.writeMessageEnd()
1172
    self._oprot.trans.flush()
1173
 
1174
  def recv_updateReservationForOrder(self, ):
1175
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1176
    if mtype == TMessageType.EXCEPTION:
1177
      x = TApplicationException()
1178
      x.read(self._iprot)
1179
      self._iprot.readMessageEnd()
1180
      raise x
1181
    result = updateReservationForOrder_result()
1182
    result.read(self._iprot)
1183
    self._iprot.readMessageEnd()
1184
    if result.success is not None:
1185
      return result.success
1186
    if result.cex is not None:
1187
      raise result.cex
1188
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateReservationForOrder failed: unknown result");
1189
 
5966 rajveer 1190
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1191
    """
1192
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
1193
 
1194
    Parameters:
1195
     - itemId
1196
     - warehouseId
5966 rajveer 1197
     - sourceId
1198
     - orderId
5944 mandeep.dh 1199
     - quantity
1200
    """
5966 rajveer 1201
    self.send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity)
5944 mandeep.dh 1202
    return self.recv_reduceReservationCount()
1203
 
5966 rajveer 1204
  def send_reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1205
    self._oprot.writeMessageBegin('reduceReservationCount', TMessageType.CALL, self._seqid)
1206
    args = reduceReservationCount_args()
1207
    args.itemId = itemId
1208
    args.warehouseId = warehouseId
5966 rajveer 1209
    args.sourceId = sourceId
1210
    args.orderId = orderId
5944 mandeep.dh 1211
    args.quantity = quantity
1212
    args.write(self._oprot)
1213
    self._oprot.writeMessageEnd()
1214
    self._oprot.trans.flush()
1215
 
1216
  def recv_reduceReservationCount(self, ):
1217
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1218
    if mtype == TMessageType.EXCEPTION:
1219
      x = TApplicationException()
1220
      x.read(self._iprot)
1221
      self._iprot.readMessageEnd()
1222
      raise x
1223
    result = reduceReservationCount_result()
1224
    result.read(self._iprot)
1225
    self._iprot.readMessageEnd()
1226
    if result.success is not None:
1227
      return result.success
1228
    if result.cex is not None:
1229
      raise result.cex
1230
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
1231
 
1232
  def getItemPricing(self, itemId, vendorId):
1233
    """
1234
    Returns the pricing information of an item associated with the vendor of the given warehouse.
1235
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
1236
 
1237
    Parameters:
1238
     - itemId
1239
     - vendorId
1240
    """
1241
    self.send_getItemPricing(itemId, vendorId)
1242
    return self.recv_getItemPricing()
1243
 
1244
  def send_getItemPricing(self, itemId, vendorId):
1245
    self._oprot.writeMessageBegin('getItemPricing', TMessageType.CALL, self._seqid)
1246
    args = getItemPricing_args()
1247
    args.itemId = itemId
1248
    args.vendorId = vendorId
1249
    args.write(self._oprot)
1250
    self._oprot.writeMessageEnd()
1251
    self._oprot.trans.flush()
1252
 
1253
  def recv_getItemPricing(self, ):
1254
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1255
    if mtype == TMessageType.EXCEPTION:
1256
      x = TApplicationException()
1257
      x.read(self._iprot)
1258
      self._iprot.readMessageEnd()
1259
      raise x
1260
    result = getItemPricing_result()
1261
    result.read(self._iprot)
1262
    self._iprot.readMessageEnd()
1263
    if result.success is not None:
1264
      return result.success
1265
    if result.cex is not None:
1266
      raise result.cex
1267
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
1268
 
1269
  def getAllItemPricing(self, itemId):
1270
    """
1271
    Returns the list of vendor pricing information of an item.
1272
    Raises an exception if item not found corresponding to itemId
1273
 
1274
    Parameters:
1275
     - itemId
1276
    """
1277
    self.send_getAllItemPricing(itemId)
1278
    return self.recv_getAllItemPricing()
1279
 
1280
  def send_getAllItemPricing(self, itemId):
1281
    self._oprot.writeMessageBegin('getAllItemPricing', TMessageType.CALL, self._seqid)
1282
    args = getAllItemPricing_args()
1283
    args.itemId = itemId
1284
    args.write(self._oprot)
1285
    self._oprot.writeMessageEnd()
1286
    self._oprot.trans.flush()
1287
 
1288
  def recv_getAllItemPricing(self, ):
1289
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1290
    if mtype == TMessageType.EXCEPTION:
1291
      x = TApplicationException()
1292
      x.read(self._iprot)
1293
      self._iprot.readMessageEnd()
1294
      raise x
1295
    result = getAllItemPricing_result()
1296
    result.read(self._iprot)
1297
    self._iprot.readMessageEnd()
1298
    if result.success is not None:
1299
      return result.success
1300
    if result.cex is not None:
1301
      raise result.cex
1302
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
1303
 
1304
  def addVendorItemPricing(self, vendorItemPricing):
1305
    """
1306
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
1307
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
1308
 
1309
    Parameters:
1310
     - vendorItemPricing
1311
    """
1312
    self.send_addVendorItemPricing(vendorItemPricing)
1313
    self.recv_addVendorItemPricing()
1314
 
1315
  def send_addVendorItemPricing(self, vendorItemPricing):
1316
    self._oprot.writeMessageBegin('addVendorItemPricing', TMessageType.CALL, self._seqid)
1317
    args = addVendorItemPricing_args()
1318
    args.vendorItemPricing = vendorItemPricing
1319
    args.write(self._oprot)
1320
    self._oprot.writeMessageEnd()
1321
    self._oprot.trans.flush()
1322
 
1323
  def recv_addVendorItemPricing(self, ):
1324
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1325
    if mtype == TMessageType.EXCEPTION:
1326
      x = TApplicationException()
1327
      x.read(self._iprot)
1328
      self._iprot.readMessageEnd()
1329
      raise x
1330
    result = addVendorItemPricing_result()
1331
    result.read(self._iprot)
1332
    self._iprot.readMessageEnd()
1333
    if result.cex is not None:
1334
      raise result.cex
1335
    return
1336
 
1337
  def getVendor(self, vendorId):
1338
    """
1339
    Returns a vendor given its id
1340
 
1341
    Parameters:
1342
     - vendorId
1343
    """
1344
    self.send_getVendor(vendorId)
1345
    return self.recv_getVendor()
1346
 
1347
  def send_getVendor(self, vendorId):
1348
    self._oprot.writeMessageBegin('getVendor', TMessageType.CALL, self._seqid)
1349
    args = getVendor_args()
1350
    args.vendorId = vendorId
1351
    args.write(self._oprot)
1352
    self._oprot.writeMessageEnd()
1353
    self._oprot.trans.flush()
1354
 
1355
  def recv_getVendor(self, ):
1356
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1357
    if mtype == TMessageType.EXCEPTION:
1358
      x = TApplicationException()
1359
      x.read(self._iprot)
1360
      self._iprot.readMessageEnd()
1361
      raise x
1362
    result = getVendor_result()
1363
    result.read(self._iprot)
1364
    self._iprot.readMessageEnd()
1365
    if result.success is not None:
1366
      return result.success
1367
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
1368
 
1369
  def getAllVendors(self, ):
1370
    """
1371
    Return list of all vendors
1372
    """
1373
    self.send_getAllVendors()
1374
    return self.recv_getAllVendors()
1375
 
1376
  def send_getAllVendors(self, ):
1377
    self._oprot.writeMessageBegin('getAllVendors', TMessageType.CALL, self._seqid)
1378
    args = getAllVendors_args()
1379
    args.write(self._oprot)
1380
    self._oprot.writeMessageEnd()
1381
    self._oprot.trans.flush()
1382
 
1383
  def recv_getAllVendors(self, ):
1384
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1385
    if mtype == TMessageType.EXCEPTION:
1386
      x = TApplicationException()
1387
      x.read(self._iprot)
1388
      self._iprot.readMessageEnd()
1389
      raise x
1390
    result = getAllVendors_result()
1391
    result.read(self._iprot)
1392
    self._iprot.readMessageEnd()
1393
    if result.success is not None:
1394
      return result.success
1395
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1396
 
1397
  def addVendorItemMapping(self, key, vendorItemMapping):
1398
    """
1399
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
1400
 
1401
    Parameters:
1402
     - key
1403
     - vendorItemMapping
1404
    """
1405
    self.send_addVendorItemMapping(key, vendorItemMapping)
1406
    self.recv_addVendorItemMapping()
1407
 
1408
  def send_addVendorItemMapping(self, key, vendorItemMapping):
1409
    self._oprot.writeMessageBegin('addVendorItemMapping', TMessageType.CALL, self._seqid)
1410
    args = addVendorItemMapping_args()
1411
    args.key = key
1412
    args.vendorItemMapping = vendorItemMapping
1413
    args.write(self._oprot)
1414
    self._oprot.writeMessageEnd()
1415
    self._oprot.trans.flush()
1416
 
1417
  def recv_addVendorItemMapping(self, ):
1418
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1419
    if mtype == TMessageType.EXCEPTION:
1420
      x = TApplicationException()
1421
      x.read(self._iprot)
1422
      self._iprot.readMessageEnd()
1423
      raise x
1424
    result = addVendorItemMapping_result()
1425
    result.read(self._iprot)
1426
    self._iprot.readMessageEnd()
1427
    if result.cex is not None:
1428
      raise result.cex
1429
    return
1430
 
1431
  def getVendorItemMappings(self, itemId):
1432
    """
1433
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
1434
    Raises an exception if item not found corresponding to itemId
1435
 
1436
    Parameters:
1437
     - itemId
1438
    """
1439
    self.send_getVendorItemMappings(itemId)
1440
    return self.recv_getVendorItemMappings()
1441
 
1442
  def send_getVendorItemMappings(self, itemId):
1443
    self._oprot.writeMessageBegin('getVendorItemMappings', TMessageType.CALL, self._seqid)
1444
    args = getVendorItemMappings_args()
1445
    args.itemId = itemId
1446
    args.write(self._oprot)
1447
    self._oprot.writeMessageEnd()
1448
    self._oprot.trans.flush()
1449
 
1450
  def recv_getVendorItemMappings(self, ):
1451
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1452
    if mtype == TMessageType.EXCEPTION:
1453
      x = TApplicationException()
1454
      x.read(self._iprot)
1455
      self._iprot.readMessageEnd()
1456
      raise x
1457
    result = getVendorItemMappings_result()
1458
    result.read(self._iprot)
1459
    self._iprot.readMessageEnd()
1460
    if result.success is not None:
1461
      return result.success
1462
    if result.cex is not None:
1463
      raise result.cex
1464
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
1465
 
1466
  def getPendingOrdersInventory(self, vendorid):
1467
    """
1468
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
1469
 
1470
    Parameters:
1471
     - vendorid
1472
    """
1473
    self.send_getPendingOrdersInventory(vendorid)
1474
    return self.recv_getPendingOrdersInventory()
1475
 
1476
  def send_getPendingOrdersInventory(self, vendorid):
1477
    self._oprot.writeMessageBegin('getPendingOrdersInventory', TMessageType.CALL, self._seqid)
1478
    args = getPendingOrdersInventory_args()
1479
    args.vendorid = vendorid
1480
    args.write(self._oprot)
1481
    self._oprot.writeMessageEnd()
1482
    self._oprot.trans.flush()
1483
 
1484
  def recv_getPendingOrdersInventory(self, ):
1485
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1486
    if mtype == TMessageType.EXCEPTION:
1487
      x = TApplicationException()
1488
      x.read(self._iprot)
1489
      self._iprot.readMessageEnd()
1490
      raise x
1491
    result = getPendingOrdersInventory_result()
1492
    result.read(self._iprot)
1493
    self._iprot.readMessageEnd()
1494
    if result.success is not None:
1495
      return result.success
1496
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1497
 
1498
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1499
    """
1500
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
1501
    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
1502
    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
1503
       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
1504
       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
1505
 
1506
    Parameters:
1507
     - warehouseType
1508
     - inventoryType
1509
     - vendorId
1510
     - billingWarehouseId
1511
     - shippingWarehouseId
1512
    """
1513
    self.send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId)
1514
    return self.recv_getWarehouses()
1515
 
1516
  def send_getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1517
    self._oprot.writeMessageBegin('getWarehouses', TMessageType.CALL, self._seqid)
1518
    args = getWarehouses_args()
1519
    args.warehouseType = warehouseType
1520
    args.inventoryType = inventoryType
1521
    args.vendorId = vendorId
1522
    args.billingWarehouseId = billingWarehouseId
1523
    args.shippingWarehouseId = shippingWarehouseId
1524
    args.write(self._oprot)
1525
    self._oprot.writeMessageEnd()
1526
    self._oprot.trans.flush()
1527
 
1528
  def recv_getWarehouses(self, ):
1529
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1530
    if mtype == TMessageType.EXCEPTION:
1531
      x = TApplicationException()
1532
      x.read(self._iprot)
1533
      self._iprot.readMessageEnd()
1534
      raise x
1535
    result = getWarehouses_result()
1536
    result.read(self._iprot)
1537
    self._iprot.readMessageEnd()
1538
    if result.success is not None:
1539
      return result.success
1540
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1541
 
1542
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1543
    """
1544
    Resets availability of an item to the quantity mentioned in a warehouse.
1545
 
1546
    Parameters:
1547
     - itemKey
1548
     - vendorId
1549
     - quantity
1550
     - warehouseId
1551
    """
1552
    self.send_resetAvailability(itemKey, vendorId, quantity, warehouseId)
1553
    self.recv_resetAvailability()
1554
 
1555
  def send_resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1556
    self._oprot.writeMessageBegin('resetAvailability', TMessageType.CALL, self._seqid)
1557
    args = resetAvailability_args()
1558
    args.itemKey = itemKey
1559
    args.vendorId = vendorId
1560
    args.quantity = quantity
1561
    args.warehouseId = warehouseId
1562
    args.write(self._oprot)
1563
    self._oprot.writeMessageEnd()
1564
    self._oprot.trans.flush()
1565
 
1566
  def recv_resetAvailability(self, ):
1567
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1568
    if mtype == TMessageType.EXCEPTION:
1569
      x = TApplicationException()
1570
      x.read(self._iprot)
1571
      self._iprot.readMessageEnd()
1572
      raise x
1573
    result = resetAvailability_result()
1574
    result.read(self._iprot)
1575
    self._iprot.readMessageEnd()
1576
    if result.cex is not None:
1577
      raise result.cex
1578
    return
1579
 
1580
  def resetAvailabilityForWarehouse(self, warehouseId):
1581
    """
1582
    Resets availability of a warehouse to zero.
1583
 
1584
    Parameters:
1585
     - warehouseId
1586
    """
1587
    self.send_resetAvailabilityForWarehouse(warehouseId)
1588
    self.recv_resetAvailabilityForWarehouse()
1589
 
1590
  def send_resetAvailabilityForWarehouse(self, warehouseId):
1591
    self._oprot.writeMessageBegin('resetAvailabilityForWarehouse', TMessageType.CALL, self._seqid)
1592
    args = resetAvailabilityForWarehouse_args()
1593
    args.warehouseId = warehouseId
1594
    args.write(self._oprot)
1595
    self._oprot.writeMessageEnd()
1596
    self._oprot.trans.flush()
1597
 
1598
  def recv_resetAvailabilityForWarehouse(self, ):
1599
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1600
    if mtype == TMessageType.EXCEPTION:
1601
      x = TApplicationException()
1602
      x.read(self._iprot)
1603
      self._iprot.readMessageEnd()
1604
      raise x
1605
    result = resetAvailabilityForWarehouse_result()
1606
    result.read(self._iprot)
1607
    self._iprot.readMessageEnd()
1608
    if result.cex is not None:
1609
      raise result.cex
1610
    return
1611
 
1612
  def getItemKeysToBeProcessed(self, warehouseId):
1613
    """
1614
    Returns the list of item keys which need to be processed for a given warehouse.
1615
    This is currently used by Support application to send item keys whose inventory needs
1616
    to be updated from PLB
1617
 
1618
    Parameters:
1619
     - warehouseId
1620
    """
1621
    self.send_getItemKeysToBeProcessed(warehouseId)
1622
    return self.recv_getItemKeysToBeProcessed()
1623
 
1624
  def send_getItemKeysToBeProcessed(self, warehouseId):
1625
    self._oprot.writeMessageBegin('getItemKeysToBeProcessed', TMessageType.CALL, self._seqid)
1626
    args = getItemKeysToBeProcessed_args()
1627
    args.warehouseId = warehouseId
1628
    args.write(self._oprot)
1629
    self._oprot.writeMessageEnd()
1630
    self._oprot.trans.flush()
1631
 
1632
  def recv_getItemKeysToBeProcessed(self, ):
1633
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1634
    if mtype == TMessageType.EXCEPTION:
1635
      x = TApplicationException()
1636
      x.read(self._iprot)
1637
      self._iprot.readMessageEnd()
1638
      raise x
1639
    result = getItemKeysToBeProcessed_result()
1640
    result.read(self._iprot)
1641
    self._iprot.readMessageEnd()
1642
    if result.success is not None:
1643
      return result.success
1644
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1645
 
1646
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1647
    """
1648
    Marks/Deletes missed inventory updates for a given key and warehouse.
1649
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
1650
 
1651
    Parameters:
1652
     - itemKey
1653
     - warehouseId
1654
    """
1655
    self.send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId)
1656
    self.recv_markMissedInventoryUpdatesAsProcessed()
1657
 
1658
  def send_markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1659
    self._oprot.writeMessageBegin('markMissedInventoryUpdatesAsProcessed', TMessageType.CALL, self._seqid)
1660
    args = markMissedInventoryUpdatesAsProcessed_args()
1661
    args.itemKey = itemKey
1662
    args.warehouseId = warehouseId
1663
    args.write(self._oprot)
1664
    self._oprot.writeMessageEnd()
1665
    self._oprot.trans.flush()
1666
 
1667
  def recv_markMissedInventoryUpdatesAsProcessed(self, ):
1668
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1669
    if mtype == TMessageType.EXCEPTION:
1670
      x = TApplicationException()
1671
      x.read(self._iprot)
1672
      self._iprot.readMessageEnd()
1673
      raise x
1674
    result = markMissedInventoryUpdatesAsProcessed_result()
1675
    result.read(self._iprot)
1676
    self._iprot.readMessageEnd()
1677
    return
1678
 
1679
  def getIgnoredItemKeys(self, ):
1680
    """
1681
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
1682
    and the timestamp from where alert was raised.
1683
    """
1684
    self.send_getIgnoredItemKeys()
1685
    return self.recv_getIgnoredItemKeys()
1686
 
1687
  def send_getIgnoredItemKeys(self, ):
1688
    self._oprot.writeMessageBegin('getIgnoredItemKeys', TMessageType.CALL, self._seqid)
1689
    args = getIgnoredItemKeys_args()
1690
    args.write(self._oprot)
1691
    self._oprot.writeMessageEnd()
1692
    self._oprot.trans.flush()
1693
 
1694
  def recv_getIgnoredItemKeys(self, ):
1695
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1696
    if mtype == TMessageType.EXCEPTION:
1697
      x = TApplicationException()
1698
      x.read(self._iprot)
1699
      self._iprot.readMessageEnd()
1700
      raise x
1701
    result = getIgnoredItemKeys_result()
1702
    result.read(self._iprot)
1703
    self._iprot.readMessageEnd()
1704
    if result.success is not None:
1705
      return result.success
1706
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1707
 
1708
  def addBadInventory(self, itemId, warehouseId, quantity):
1709
    """
1710
    Add the BAD type inventory to existing stock.
1711
 
1712
    Parameters:
1713
     - itemId
1714
     - warehouseId
1715
     - quantity
1716
    """
1717
    self.send_addBadInventory(itemId, warehouseId, quantity)
1718
    self.recv_addBadInventory()
1719
 
1720
  def send_addBadInventory(self, itemId, warehouseId, quantity):
1721
    self._oprot.writeMessageBegin('addBadInventory', TMessageType.CALL, self._seqid)
1722
    args = addBadInventory_args()
1723
    args.itemId = itemId
1724
    args.warehouseId = warehouseId
1725
    args.quantity = quantity
1726
    args.write(self._oprot)
1727
    self._oprot.writeMessageEnd()
1728
    self._oprot.trans.flush()
1729
 
1730
  def recv_addBadInventory(self, ):
1731
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1732
    if mtype == TMessageType.EXCEPTION:
1733
      x = TApplicationException()
1734
      x.read(self._iprot)
1735
      self._iprot.readMessageEnd()
1736
      raise x
1737
    result = addBadInventory_result()
1738
    result.read(self._iprot)
1739
    self._iprot.readMessageEnd()
1740
    if result.cex is not None:
1741
      raise result.cex
1742
    return
1743
 
1744
  def getShippingLocations(self, ):
1745
    """
1746
    Returns all shipping locations
1747
    """
1748
    self.send_getShippingLocations()
1749
    return self.recv_getShippingLocations()
1750
 
1751
  def send_getShippingLocations(self, ):
1752
    self._oprot.writeMessageBegin('getShippingLocations', TMessageType.CALL, self._seqid)
1753
    args = getShippingLocations_args()
1754
    args.write(self._oprot)
1755
    self._oprot.writeMessageEnd()
1756
    self._oprot.trans.flush()
1757
 
1758
  def recv_getShippingLocations(self, ):
1759
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1760
    if mtype == TMessageType.EXCEPTION:
1761
      x = TApplicationException()
1762
      x.read(self._iprot)
1763
      self._iprot.readMessageEnd()
1764
      raise x
1765
    result = getShippingLocations_result()
1766
    result.read(self._iprot)
1767
    self._iprot.readMessageEnd()
1768
    if result.success is not None:
1769
      return result.success
1770
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1771
 
1772
  def getAllVendorItemMappings(self, ):
1773
    """
1774
    Fetches all the vendor item mappings present.
1775
    """
1776
    self.send_getAllVendorItemMappings()
1777
    return self.recv_getAllVendorItemMappings()
1778
 
1779
  def send_getAllVendorItemMappings(self, ):
1780
    self._oprot.writeMessageBegin('getAllVendorItemMappings', TMessageType.CALL, self._seqid)
1781
    args = getAllVendorItemMappings_args()
1782
    args.write(self._oprot)
1783
    self._oprot.writeMessageEnd()
1784
    self._oprot.trans.flush()
1785
 
1786
  def recv_getAllVendorItemMappings(self, ):
1787
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1788
    if mtype == TMessageType.EXCEPTION:
1789
      x = TApplicationException()
1790
      x.read(self._iprot)
1791
      self._iprot.readMessageEnd()
1792
      raise x
1793
    result = getAllVendorItemMappings_result()
1794
    result.read(self._iprot)
1795
    self._iprot.readMessageEnd()
1796
    if result.success is not None:
1797
      return result.success
1798
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1799
 
1800
  def getInventorySnapshot(self, warehouseId):
1801
    """
1802
    Gets items' inventory for a warehouse
1803
    If warehouse is passed as zero, items' inventory across all warehouses is sent
1804
 
1805
    Parameters:
1806
     - warehouseId
1807
    """
1808
    self.send_getInventorySnapshot(warehouseId)
1809
    return self.recv_getInventorySnapshot()
1810
 
1811
  def send_getInventorySnapshot(self, warehouseId):
1812
    self._oprot.writeMessageBegin('getInventorySnapshot', TMessageType.CALL, self._seqid)
1813
    args = getInventorySnapshot_args()
1814
    args.warehouseId = warehouseId
1815
    args.write(self._oprot)
1816
    self._oprot.writeMessageEnd()
1817
    self._oprot.trans.flush()
1818
 
1819
  def recv_getInventorySnapshot(self, ):
1820
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1821
    if mtype == TMessageType.EXCEPTION:
1822
      x = TApplicationException()
1823
      x.read(self._iprot)
1824
      self._iprot.readMessageEnd()
1825
      raise x
1826
    result = getInventorySnapshot_result()
1827
    result.read(self._iprot)
1828
    self._iprot.readMessageEnd()
1829
    if result.success is not None:
1830
      return result.success
1831
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1832
 
1833
  def clearItemAvailabilityCache(self, ):
1834
    """
1835
    Clear item availability cache.
1836
    """
1837
    self.send_clearItemAvailabilityCache()
1838
    self.recv_clearItemAvailabilityCache()
1839
 
1840
  def send_clearItemAvailabilityCache(self, ):
1841
    self._oprot.writeMessageBegin('clearItemAvailabilityCache', TMessageType.CALL, self._seqid)
1842
    args = clearItemAvailabilityCache_args()
1843
    args.write(self._oprot)
1844
    self._oprot.writeMessageEnd()
1845
    self._oprot.trans.flush()
1846
 
1847
  def recv_clearItemAvailabilityCache(self, ):
1848
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1849
    if mtype == TMessageType.EXCEPTION:
1850
      x = TApplicationException()
1851
      x.read(self._iprot)
1852
      self._iprot.readMessageEnd()
1853
      raise x
1854
    result = clearItemAvailabilityCache_result()
1855
    result.read(self._iprot)
1856
    self._iprot.readMessageEnd()
1857
    return
1858
 
1859
  def updateVendorString(self, warehouseId, vendorString):
1860
    """
1861
    Parameters:
1862
     - warehouseId
1863
     - vendorString
1864
    """
1865
    self.send_updateVendorString(warehouseId, vendorString)
1866
    self.recv_updateVendorString()
1867
 
1868
  def send_updateVendorString(self, warehouseId, vendorString):
1869
    self._oprot.writeMessageBegin('updateVendorString', TMessageType.CALL, self._seqid)
1870
    args = updateVendorString_args()
1871
    args.warehouseId = warehouseId
1872
    args.vendorString = vendorString
1873
    args.write(self._oprot)
1874
    self._oprot.writeMessageEnd()
1875
    self._oprot.trans.flush()
1876
 
1877
  def recv_updateVendorString(self, ):
1878
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1879
    if mtype == TMessageType.EXCEPTION:
1880
      x = TApplicationException()
1881
      x.read(self._iprot)
1882
      self._iprot.readMessageEnd()
1883
      raise x
1884
    result = updateVendorString_result()
1885
    result.read(self._iprot)
1886
    self._iprot.readMessageEnd()
1887
    return
1888
 
6096 amit.gupta 1889
  def clearItemAvailabilityCacheForItem(self, item_id):
1890
    """
1891
    Parameters:
1892
     - item_id
1893
    """
1894
    self.send_clearItemAvailabilityCacheForItem(item_id)
1895
    self.recv_clearItemAvailabilityCacheForItem()
5944 mandeep.dh 1896
 
6096 amit.gupta 1897
  def send_clearItemAvailabilityCacheForItem(self, item_id):
1898
    self._oprot.writeMessageBegin('clearItemAvailabilityCacheForItem', TMessageType.CALL, self._seqid)
1899
    args = clearItemAvailabilityCacheForItem_args()
1900
    args.item_id = item_id
1901
    args.write(self._oprot)
1902
    self._oprot.writeMessageEnd()
1903
    self._oprot.trans.flush()
1904
 
1905
  def recv_clearItemAvailabilityCacheForItem(self, ):
1906
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1907
    if mtype == TMessageType.EXCEPTION:
1908
      x = TApplicationException()
1909
      x.read(self._iprot)
1910
      self._iprot.readMessageEnd()
1911
      raise x
1912
    result = clearItemAvailabilityCacheForItem_result()
1913
    result.read(self._iprot)
1914
    self._iprot.readMessageEnd()
1915
    return
1916
 
7718 amar.kumar 1917
  def getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1918
    """
1919
    Parameters:
1920
     - vendorId
7718 amar.kumar 1921
     - billingWarehouseId
6467 amar.kumar 1922
    """
7718 amar.kumar 1923
    self.send_getOurWarehouseIdForVendor(vendorId, billingWarehouseId)
6467 amar.kumar 1924
    return self.recv_getOurWarehouseIdForVendor()
6096 amit.gupta 1925
 
7718 amar.kumar 1926
  def send_getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1927
    self._oprot.writeMessageBegin('getOurWarehouseIdForVendor', TMessageType.CALL, self._seqid)
1928
    args = getOurWarehouseIdForVendor_args()
1929
    args.vendorId = vendorId
7718 amar.kumar 1930
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 1931
    args.write(self._oprot)
1932
    self._oprot.writeMessageEnd()
1933
    self._oprot.trans.flush()
1934
 
1935
  def recv_getOurWarehouseIdForVendor(self, ):
1936
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1937
    if mtype == TMessageType.EXCEPTION:
1938
      x = TApplicationException()
1939
      x.read(self._iprot)
1940
      self._iprot.readMessageEnd()
1941
      raise x
1942
    result = getOurWarehouseIdForVendor_result()
1943
    result.read(self._iprot)
1944
    self._iprot.readMessageEnd()
1945
    if result.success is not None:
1946
      return result.success
1947
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1948
 
6484 amar.kumar 1949
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1950
    """
1951
    Parameters:
1952
     - item_ids
1953
    """
1954
    self.send_getItemAvailabilitiesAtOurWarehouses(item_ids)
1955
    return self.recv_getItemAvailabilitiesAtOurWarehouses()
6467 amar.kumar 1956
 
6484 amar.kumar 1957
  def send_getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1958
    self._oprot.writeMessageBegin('getItemAvailabilitiesAtOurWarehouses', TMessageType.CALL, self._seqid)
1959
    args = getItemAvailabilitiesAtOurWarehouses_args()
1960
    args.item_ids = item_ids
1961
    args.write(self._oprot)
1962
    self._oprot.writeMessageEnd()
1963
    self._oprot.trans.flush()
1964
 
1965
  def recv_getItemAvailabilitiesAtOurWarehouses(self, ):
1966
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1967
    if mtype == TMessageType.EXCEPTION:
1968
      x = TApplicationException()
1969
      x.read(self._iprot)
1970
      self._iprot.readMessageEnd()
1971
      raise x
1972
    result = getItemAvailabilitiesAtOurWarehouses_result()
1973
    result.read(self._iprot)
1974
    self._iprot.readMessageEnd()
1975
    if result.success is not None:
1976
      return result.success
1977
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
1978
 
6531 vikram.rag 1979
  def getMonitoredWarehouseForVendors(self, vendorIds):
1980
    """
1981
    Parameters:
1982
     - vendorIds
1983
    """
1984
    self.send_getMonitoredWarehouseForVendors(vendorIds)
1985
    return self.recv_getMonitoredWarehouseForVendors()
6484 amar.kumar 1986
 
6531 vikram.rag 1987
  def send_getMonitoredWarehouseForVendors(self, vendorIds):
1988
    self._oprot.writeMessageBegin('getMonitoredWarehouseForVendors', TMessageType.CALL, self._seqid)
1989
    args = getMonitoredWarehouseForVendors_args()
1990
    args.vendorIds = vendorIds
1991
    args.write(self._oprot)
1992
    self._oprot.writeMessageEnd()
1993
    self._oprot.trans.flush()
1994
 
1995
  def recv_getMonitoredWarehouseForVendors(self, ):
1996
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1997
    if mtype == TMessageType.EXCEPTION:
1998
      x = TApplicationException()
1999
      x.read(self._iprot)
2000
      self._iprot.readMessageEnd()
2001
      raise x
2002
    result = getMonitoredWarehouseForVendors_result()
2003
    result.read(self._iprot)
2004
    self._iprot.readMessageEnd()
2005
    if result.success is not None:
2006
      return result.success
2007
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
2008
 
2009
  def getIgnoredWarehouseidsAndItemids(self, ):
2010
    self.send_getIgnoredWarehouseidsAndItemids()
2011
    return self.recv_getIgnoredWarehouseidsAndItemids()
2012
 
2013
  def send_getIgnoredWarehouseidsAndItemids(self, ):
2014
    self._oprot.writeMessageBegin('getIgnoredWarehouseidsAndItemids', TMessageType.CALL, self._seqid)
2015
    args = getIgnoredWarehouseidsAndItemids_args()
2016
    args.write(self._oprot)
2017
    self._oprot.writeMessageEnd()
2018
    self._oprot.trans.flush()
2019
 
2020
  def recv_getIgnoredWarehouseidsAndItemids(self, ):
2021
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2022
    if mtype == TMessageType.EXCEPTION:
2023
      x = TApplicationException()
2024
      x.read(self._iprot)
2025
      self._iprot.readMessageEnd()
2026
      raise x
2027
    result = getIgnoredWarehouseidsAndItemids_result()
2028
    result.read(self._iprot)
2029
    self._iprot.readMessageEnd()
2030
    if result.success is not None:
2031
      return result.success
2032
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
2033
 
2034
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2035
    """
2036
    Parameters:
2037
     - item_id
2038
     - warehouse_id
2039
    """
2040
    self.send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id)
2041
    return self.recv_insertItemtoIgnoreInventoryUpdatelist()
2042
 
2043
  def send_insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2044
    self._oprot.writeMessageBegin('insertItemtoIgnoreInventoryUpdatelist', TMessageType.CALL, self._seqid)
2045
    args = insertItemtoIgnoreInventoryUpdatelist_args()
2046
    args.item_id = item_id
2047
    args.warehouse_id = warehouse_id
2048
    args.write(self._oprot)
2049
    self._oprot.writeMessageEnd()
2050
    self._oprot.trans.flush()
2051
 
2052
  def recv_insertItemtoIgnoreInventoryUpdatelist(self, ):
2053
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2054
    if mtype == TMessageType.EXCEPTION:
2055
      x = TApplicationException()
2056
      x.read(self._iprot)
2057
      self._iprot.readMessageEnd()
2058
      raise x
2059
    result = insertItemtoIgnoreInventoryUpdatelist_result()
2060
    result.read(self._iprot)
2061
    self._iprot.readMessageEnd()
2062
    if result.success is not None:
2063
      return result.success
2064
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
2065
 
2066
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2067
    """
2068
    Parameters:
2069
     - item_id
2070
     - warehouse_id
2071
    """
2072
    self.send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id)
2073
    return self.recv_deleteItemFromIgnoredInventoryUpdateList()
2074
 
2075
  def send_deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2076
    self._oprot.writeMessageBegin('deleteItemFromIgnoredInventoryUpdateList', TMessageType.CALL, self._seqid)
2077
    args = deleteItemFromIgnoredInventoryUpdateList_args()
2078
    args.item_id = item_id
2079
    args.warehouse_id = warehouse_id
2080
    args.write(self._oprot)
2081
    self._oprot.writeMessageEnd()
2082
    self._oprot.trans.flush()
2083
 
2084
  def recv_deleteItemFromIgnoredInventoryUpdateList(self, ):
2085
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2086
    if mtype == TMessageType.EXCEPTION:
2087
      x = TApplicationException()
2088
      x.read(self._iprot)
2089
      self._iprot.readMessageEnd()
2090
      raise x
2091
    result = deleteItemFromIgnoredInventoryUpdateList_result()
2092
    result.read(self._iprot)
2093
    self._iprot.readMessageEnd()
2094
    if result.success is not None:
2095
      return result.success
2096
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
2097
 
2098
  def getAllIgnoredInventoryupdateItemsCount(self, ):
2099
    self.send_getAllIgnoredInventoryupdateItemsCount()
2100
    return self.recv_getAllIgnoredInventoryupdateItemsCount()
2101
 
2102
  def send_getAllIgnoredInventoryupdateItemsCount(self, ):
2103
    self._oprot.writeMessageBegin('getAllIgnoredInventoryupdateItemsCount', TMessageType.CALL, self._seqid)
2104
    args = getAllIgnoredInventoryupdateItemsCount_args()
2105
    args.write(self._oprot)
2106
    self._oprot.writeMessageEnd()
2107
    self._oprot.trans.flush()
2108
 
2109
  def recv_getAllIgnoredInventoryupdateItemsCount(self, ):
2110
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2111
    if mtype == TMessageType.EXCEPTION:
2112
      x = TApplicationException()
2113
      x.read(self._iprot)
2114
      self._iprot.readMessageEnd()
2115
      raise x
2116
    result = getAllIgnoredInventoryupdateItemsCount_result()
2117
    result.read(self._iprot)
2118
    self._iprot.readMessageEnd()
2119
    if result.success is not None:
2120
      return result.success
2121
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
2122
 
2123
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
2124
    """
2125
    Parameters:
2126
     - offset
2127
     - limit
2128
    """
2129
    self.send_getIgnoredInventoryUpdateItemids(offset, limit)
2130
    return self.recv_getIgnoredInventoryUpdateItemids()
2131
 
2132
  def send_getIgnoredInventoryUpdateItemids(self, offset, limit):
2133
    self._oprot.writeMessageBegin('getIgnoredInventoryUpdateItemids', TMessageType.CALL, self._seqid)
2134
    args = getIgnoredInventoryUpdateItemids_args()
2135
    args.offset = offset
2136
    args.limit = limit
2137
    args.write(self._oprot)
2138
    self._oprot.writeMessageEnd()
2139
    self._oprot.trans.flush()
2140
 
2141
  def recv_getIgnoredInventoryUpdateItemids(self, ):
2142
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2143
    if mtype == TMessageType.EXCEPTION:
2144
      x = TApplicationException()
2145
      x.read(self._iprot)
2146
      self._iprot.readMessageEnd()
2147
      raise x
2148
    result = getIgnoredInventoryUpdateItemids_result()
2149
    result.read(self._iprot)
2150
    self._iprot.readMessageEnd()
2151
    if result.success is not None:
2152
      return result.success
2153
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
2154
 
6821 amar.kumar 2155
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2156
    """
2157
    Parameters:
2158
     - item_id
2159
     - numOfDaysStock
2160
     - minStockLevel
2161
    """
2162
    self.send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel)
2163
    self.recv_updateItemStockPurchaseParams()
6531 vikram.rag 2164
 
6821 amar.kumar 2165
  def send_updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2166
    self._oprot.writeMessageBegin('updateItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2167
    args = updateItemStockPurchaseParams_args()
2168
    args.item_id = item_id
2169
    args.numOfDaysStock = numOfDaysStock
2170
    args.minStockLevel = minStockLevel
2171
    args.write(self._oprot)
2172
    self._oprot.writeMessageEnd()
2173
    self._oprot.trans.flush()
2174
 
2175
  def recv_updateItemStockPurchaseParams(self, ):
2176
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2177
    if mtype == TMessageType.EXCEPTION:
2178
      x = TApplicationException()
2179
      x.read(self._iprot)
2180
      self._iprot.readMessageEnd()
2181
      raise x
2182
    result = updateItemStockPurchaseParams_result()
2183
    result.read(self._iprot)
2184
    self._iprot.readMessageEnd()
2185
    return
2186
 
2187
  def getItemStockPurchaseParams(self, itemId):
2188
    """
2189
    Parameters:
2190
     - itemId
2191
    """
2192
    self.send_getItemStockPurchaseParams(itemId)
2193
    return self.recv_getItemStockPurchaseParams()
2194
 
2195
  def send_getItemStockPurchaseParams(self, itemId):
2196
    self._oprot.writeMessageBegin('getItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2197
    args = getItemStockPurchaseParams_args()
2198
    args.itemId = itemId
2199
    args.write(self._oprot)
2200
    self._oprot.writeMessageEnd()
2201
    self._oprot.trans.flush()
2202
 
2203
  def recv_getItemStockPurchaseParams(self, ):
2204
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2205
    if mtype == TMessageType.EXCEPTION:
2206
      x = TApplicationException()
2207
      x.read(self._iprot)
2208
      self._iprot.readMessageEnd()
2209
      raise x
2210
    result = getItemStockPurchaseParams_result()
2211
    result.read(self._iprot)
2212
    self._iprot.readMessageEnd()
2213
    if result.success is not None:
2214
      return result.success
2215
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
2216
 
2217
  def addOosStatusForItem(self, oosStatusMap, date):
2218
    """
2219
    Parameters:
2220
     - oosStatusMap
2221
     - date
2222
    """
2223
    self.send_addOosStatusForItem(oosStatusMap, date)
2224
    self.recv_addOosStatusForItem()
2225
 
2226
  def send_addOosStatusForItem(self, oosStatusMap, date):
2227
    self._oprot.writeMessageBegin('addOosStatusForItem', TMessageType.CALL, self._seqid)
2228
    args = addOosStatusForItem_args()
2229
    args.oosStatusMap = oosStatusMap
2230
    args.date = date
2231
    args.write(self._oprot)
2232
    self._oprot.writeMessageEnd()
2233
    self._oprot.trans.flush()
2234
 
2235
  def recv_addOosStatusForItem(self, ):
2236
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2237
    if mtype == TMessageType.EXCEPTION:
2238
      x = TApplicationException()
2239
      x.read(self._iprot)
2240
      self._iprot.readMessageEnd()
2241
      raise x
2242
    result = addOosStatusForItem_result()
2243
    result.read(self._iprot)
2244
    self._iprot.readMessageEnd()
2245
    return
2246
 
9762 amar.kumar 2247
  def getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2248
    """
2249
    Parameters:
2250
     - itemId
9762 amar.kumar 2251
     - sourceId
6832 amar.kumar 2252
     - days
2253
    """
9762 amar.kumar 2254
    self.send_getOosStatusesForXDaysForItem(itemId, sourceId, days)
6832 amar.kumar 2255
    return self.recv_getOosStatusesForXDaysForItem()
6821 amar.kumar 2256
 
9762 amar.kumar 2257
  def send_getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2258
    self._oprot.writeMessageBegin('getOosStatusesForXDaysForItem', TMessageType.CALL, self._seqid)
2259
    args = getOosStatusesForXDaysForItem_args()
2260
    args.itemId = itemId
9762 amar.kumar 2261
    args.sourceId = sourceId
6832 amar.kumar 2262
    args.days = days
2263
    args.write(self._oprot)
2264
    self._oprot.writeMessageEnd()
2265
    self._oprot.trans.flush()
2266
 
2267
  def recv_getOosStatusesForXDaysForItem(self, ):
2268
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2269
    if mtype == TMessageType.EXCEPTION:
2270
      x = TApplicationException()
2271
      x.read(self._iprot)
2272
      self._iprot.readMessageEnd()
2273
      raise x
2274
    result = getOosStatusesForXDaysForItem_result()
2275
    result.read(self._iprot)
2276
    self._iprot.readMessageEnd()
2277
    if result.success is not None:
2278
      return result.success
2279
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
2280
 
10126 amar.kumar 2281
  def getOosStatusesForXDays(self, sourceId, days):
2282
    """
2283
    Parameters:
2284
     - sourceId
2285
     - days
2286
    """
2287
    self.send_getOosStatusesForXDays(sourceId, days)
2288
    return self.recv_getOosStatusesForXDays()
2289
 
2290
  def send_getOosStatusesForXDays(self, sourceId, days):
2291
    self._oprot.writeMessageBegin('getOosStatusesForXDays', TMessageType.CALL, self._seqid)
2292
    args = getOosStatusesForXDays_args()
2293
    args.sourceId = sourceId
2294
    args.days = days
2295
    args.write(self._oprot)
2296
    self._oprot.writeMessageEnd()
2297
    self._oprot.trans.flush()
2298
 
2299
  def recv_getOosStatusesForXDays(self, ):
2300
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2301
    if mtype == TMessageType.EXCEPTION:
2302
      x = TApplicationException()
2303
      x.read(self._iprot)
2304
      self._iprot.readMessageEnd()
2305
      raise x
2306
    result = getOosStatusesForXDays_result()
2307
    result.read(self._iprot)
2308
    self._iprot.readMessageEnd()
2309
    if result.success is not None:
2310
      return result.success
2311
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDays failed: unknown result");
2312
 
2313
  def getAllVendorItemPricing(self, itemId, vendorId):
2314
    """
2315
    Parameters:
2316
     - itemId
2317
     - vendorId
2318
    """
2319
    self.send_getAllVendorItemPricing(itemId, vendorId)
2320
    return self.recv_getAllVendorItemPricing()
2321
 
2322
  def send_getAllVendorItemPricing(self, itemId, vendorId):
2323
    self._oprot.writeMessageBegin('getAllVendorItemPricing', TMessageType.CALL, self._seqid)
2324
    args = getAllVendorItemPricing_args()
2325
    args.itemId = itemId
2326
    args.vendorId = vendorId
2327
    args.write(self._oprot)
2328
    self._oprot.writeMessageEnd()
2329
    self._oprot.trans.flush()
2330
 
2331
  def recv_getAllVendorItemPricing(self, ):
2332
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2333
    if mtype == TMessageType.EXCEPTION:
2334
      x = TApplicationException()
2335
      x.read(self._iprot)
2336
      self._iprot.readMessageEnd()
2337
      raise x
2338
    result = getAllVendorItemPricing_result()
2339
    result.read(self._iprot)
2340
    self._iprot.readMessageEnd()
2341
    if result.success is not None:
2342
      return result.success
2343
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemPricing failed: unknown result");
2344
 
6857 amar.kumar 2345
  def getNonZeroItemStockPurchaseParams(self, ):
2346
    self.send_getNonZeroItemStockPurchaseParams()
2347
    return self.recv_getNonZeroItemStockPurchaseParams()
6832 amar.kumar 2348
 
6857 amar.kumar 2349
  def send_getNonZeroItemStockPurchaseParams(self, ):
2350
    self._oprot.writeMessageBegin('getNonZeroItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2351
    args = getNonZeroItemStockPurchaseParams_args()
2352
    args.write(self._oprot)
2353
    self._oprot.writeMessageEnd()
2354
    self._oprot.trans.flush()
2355
 
2356
  def recv_getNonZeroItemStockPurchaseParams(self, ):
2357
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2358
    if mtype == TMessageType.EXCEPTION:
2359
      x = TApplicationException()
2360
      x.read(self._iprot)
2361
      self._iprot.readMessageEnd()
2362
      raise x
2363
    result = getNonZeroItemStockPurchaseParams_result()
2364
    result.read(self._iprot)
2365
    self._iprot.readMessageEnd()
2366
    if result.success is not None:
2367
      return result.success
2368
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
2369
 
7149 amar.kumar 2370
  def getBillableInventoryAndPendingOrders(self, ):
2371
    """
2372
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
2373
    """
2374
    self.send_getBillableInventoryAndPendingOrders()
2375
    return self.recv_getBillableInventoryAndPendingOrders()
6857 amar.kumar 2376
 
7149 amar.kumar 2377
  def send_getBillableInventoryAndPendingOrders(self, ):
2378
    self._oprot.writeMessageBegin('getBillableInventoryAndPendingOrders', TMessageType.CALL, self._seqid)
2379
    args = getBillableInventoryAndPendingOrders_args()
2380
    args.write(self._oprot)
2381
    self._oprot.writeMessageEnd()
2382
    self._oprot.trans.flush()
2383
 
2384
  def recv_getBillableInventoryAndPendingOrders(self, ):
2385
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2386
    if mtype == TMessageType.EXCEPTION:
2387
      x = TApplicationException()
2388
      x.read(self._iprot)
2389
      self._iprot.readMessageEnd()
2390
      raise x
2391
    result = getBillableInventoryAndPendingOrders_result()
2392
    result.read(self._iprot)
2393
    self._iprot.readMessageEnd()
2394
    if result.success is not None:
2395
      return result.success
2396
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
2397
 
7281 kshitij.so 2398
  def getWarehouseName(self, warehouse_id):
2399
    """
2400
    Parameters:
2401
     - warehouse_id
2402
    """
2403
    self.send_getWarehouseName(warehouse_id)
2404
    return self.recv_getWarehouseName()
7149 amar.kumar 2405
 
7281 kshitij.so 2406
  def send_getWarehouseName(self, warehouse_id):
2407
    self._oprot.writeMessageBegin('getWarehouseName', TMessageType.CALL, self._seqid)
2408
    args = getWarehouseName_args()
2409
    args.warehouse_id = warehouse_id
2410
    args.write(self._oprot)
2411
    self._oprot.writeMessageEnd()
2412
    self._oprot.trans.flush()
2413
 
2414
  def recv_getWarehouseName(self, ):
2415
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2416
    if mtype == TMessageType.EXCEPTION:
2417
      x = TApplicationException()
2418
      x.read(self._iprot)
2419
      self._iprot.readMessageEnd()
2420
      raise x
2421
    result = getWarehouseName_result()
2422
    result.read(self._iprot)
2423
    self._iprot.readMessageEnd()
2424
    if result.success is not None:
2425
      return result.success
2426
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseName failed: unknown result");
2427
 
2428
  def getAmazonInventoryForItem(self, item_id):
2429
    """
2430
    Parameters:
2431
     - item_id
2432
    """
2433
    self.send_getAmazonInventoryForItem(item_id)
2434
    return self.recv_getAmazonInventoryForItem()
2435
 
2436
  def send_getAmazonInventoryForItem(self, item_id):
2437
    self._oprot.writeMessageBegin('getAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2438
    args = getAmazonInventoryForItem_args()
2439
    args.item_id = item_id
2440
    args.write(self._oprot)
2441
    self._oprot.writeMessageEnd()
2442
    self._oprot.trans.flush()
2443
 
2444
  def recv_getAmazonInventoryForItem(self, ):
2445
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2446
    if mtype == TMessageType.EXCEPTION:
2447
      x = TApplicationException()
2448
      x.read(self._iprot)
2449
      self._iprot.readMessageEnd()
2450
      raise x
2451
    result = getAmazonInventoryForItem_result()
2452
    result.read(self._iprot)
2453
    self._iprot.readMessageEnd()
2454
    if result.success is not None:
2455
      return result.success
2456
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonInventoryForItem failed: unknown result");
2457
 
2458
  def getAllAmazonInventory(self, ):
2459
    self.send_getAllAmazonInventory()
2460
    return self.recv_getAllAmazonInventory()
2461
 
2462
  def send_getAllAmazonInventory(self, ):
2463
    self._oprot.writeMessageBegin('getAllAmazonInventory', TMessageType.CALL, self._seqid)
2464
    args = getAllAmazonInventory_args()
2465
    args.write(self._oprot)
2466
    self._oprot.writeMessageEnd()
2467
    self._oprot.trans.flush()
2468
 
2469
  def recv_getAllAmazonInventory(self, ):
2470
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2471
    if mtype == TMessageType.EXCEPTION:
2472
      x = TApplicationException()
2473
      x.read(self._iprot)
2474
      self._iprot.readMessageEnd()
2475
      raise x
2476
    result = getAllAmazonInventory_result()
2477
    result.read(self._iprot)
2478
    self._iprot.readMessageEnd()
2479
    if result.success is not None:
2480
      return result.success
2481
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonInventory failed: unknown result");
2482
 
10450 vikram.rag 2483
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot, time):
7281 kshitij.so 2484
    """
2485
    Parameters:
2486
     - amazonInventorySnapshot
10450 vikram.rag 2487
     - time
7281 kshitij.so 2488
    """
10450 vikram.rag 2489
    self.send_addOrUpdateAmazonInventoryForItem(amazonInventorySnapshot, time)
7281 kshitij.so 2490
    self.recv_addOrUpdateAmazonInventoryForItem()
2491
 
10450 vikram.rag 2492
  def send_addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot, time):
7281 kshitij.so 2493
    self._oprot.writeMessageBegin('addOrUpdateAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2494
    args = addOrUpdateAmazonInventoryForItem_args()
2495
    args.amazonInventorySnapshot = amazonInventorySnapshot
10450 vikram.rag 2496
    args.time = time
7281 kshitij.so 2497
    args.write(self._oprot)
2498
    self._oprot.writeMessageEnd()
2499
    self._oprot.trans.flush()
2500
 
2501
  def recv_addOrUpdateAmazonInventoryForItem(self, ):
2502
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2503
    if mtype == TMessageType.EXCEPTION:
2504
      x = TApplicationException()
2505
      x.read(self._iprot)
2506
      self._iprot.readMessageEnd()
2507
      raise x
2508
    result = addOrUpdateAmazonInventoryForItem_result()
2509
    result.read(self._iprot)
2510
    self._iprot.readMessageEnd()
2511
    return
2512
 
7972 amar.kumar 2513
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
2514
    """
2515
    Parameters:
2516
     - itemId
2517
     - numberOfDays
2518
    """
2519
    self.send_getLastNdaySaleForItem(itemId, numberOfDays)
2520
    return self.recv_getLastNdaySaleForItem()
7281 kshitij.so 2521
 
7972 amar.kumar 2522
  def send_getLastNdaySaleForItem(self, itemId, numberOfDays):
2523
    self._oprot.writeMessageBegin('getLastNdaySaleForItem', TMessageType.CALL, self._seqid)
2524
    args = getLastNdaySaleForItem_args()
2525
    args.itemId = itemId
2526
    args.numberOfDays = numberOfDays
2527
    args.write(self._oprot)
2528
    self._oprot.writeMessageEnd()
2529
    self._oprot.trans.flush()
2530
 
2531
  def recv_getLastNdaySaleForItem(self, ):
2532
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2533
    if mtype == TMessageType.EXCEPTION:
2534
      x = TApplicationException()
2535
      x.read(self._iprot)
2536
      self._iprot.readMessageEnd()
2537
      raise x
2538
    result = getLastNdaySaleForItem_result()
2539
    result.read(self._iprot)
2540
    self._iprot.readMessageEnd()
2541
    if result.success is not None:
2542
      return result.success
2543
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastNdaySaleForItem failed: unknown result");
2544
 
8282 kshitij.so 2545
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2546
    """
2547
    Parameters:
2548
     - amazonfbainventorysnapshot
2549
    """
2550
    self.send_addOrUpdateAmazonFbaInventory(amazonfbainventorysnapshot)
2551
    self.recv_addOrUpdateAmazonFbaInventory()
2552
 
2553
  def send_addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2554
    self._oprot.writeMessageBegin('addOrUpdateAmazonFbaInventory', TMessageType.CALL, self._seqid)
2555
    args = addOrUpdateAmazonFbaInventory_args()
2556
    args.amazonfbainventorysnapshot = amazonfbainventorysnapshot
2557
    args.write(self._oprot)
2558
    self._oprot.writeMessageEnd()
2559
    self._oprot.trans.flush()
2560
 
2561
  def recv_addOrUpdateAmazonFbaInventory(self, ):
2562
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2563
    if mtype == TMessageType.EXCEPTION:
2564
      x = TApplicationException()
2565
      x.read(self._iprot)
2566
      self._iprot.readMessageEnd()
2567
      raise x
2568
    result = addOrUpdateAmazonFbaInventory_result()
2569
    result.read(self._iprot)
2570
    self._iprot.readMessageEnd()
2571
    return
2572
 
8182 amar.kumar 2573
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2574
    """
2575
    Parameters:
2576
     - itemId
2577
     - warehouseId
2578
     - holdQuantity
2579
     - source
2580
    """
2581
    self.send_addUpdateHoldInventory(itemId, warehouseId, holdQuantity, source)
2582
    self.recv_addUpdateHoldInventory()
7972 amar.kumar 2583
 
8182 amar.kumar 2584
  def send_addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2585
    self._oprot.writeMessageBegin('addUpdateHoldInventory', TMessageType.CALL, self._seqid)
2586
    args = addUpdateHoldInventory_args()
2587
    args.itemId = itemId
2588
    args.warehouseId = warehouseId
2589
    args.holdQuantity = holdQuantity
2590
    args.source = source
2591
    args.write(self._oprot)
2592
    self._oprot.writeMessageEnd()
2593
    self._oprot.trans.flush()
2594
 
2595
  def recv_addUpdateHoldInventory(self, ):
2596
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2597
    if mtype == TMessageType.EXCEPTION:
2598
      x = TApplicationException()
2599
      x.read(self._iprot)
2600
      self._iprot.readMessageEnd()
2601
      raise x
2602
    result = addUpdateHoldInventory_result()
2603
    result.read(self._iprot)
2604
    self._iprot.readMessageEnd()
9762 amar.kumar 2605
    if result.cex is not None:
2606
      raise result.cex
8182 amar.kumar 2607
    return
2608
 
8282 kshitij.so 2609
  def getAmazonFbaItemInventory(self, itemId):
2610
    """
2611
    Parameters:
2612
     - itemId
2613
    """
2614
    self.send_getAmazonFbaItemInventory(itemId)
2615
    return self.recv_getAmazonFbaItemInventory()
8182 amar.kumar 2616
 
8282 kshitij.so 2617
  def send_getAmazonFbaItemInventory(self, itemId):
2618
    self._oprot.writeMessageBegin('getAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2619
    args = getAmazonFbaItemInventory_args()
2620
    args.itemId = itemId
2621
    args.write(self._oprot)
2622
    self._oprot.writeMessageEnd()
2623
    self._oprot.trans.flush()
2624
 
2625
  def recv_getAmazonFbaItemInventory(self, ):
2626
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2627
    if mtype == TMessageType.EXCEPTION:
2628
      x = TApplicationException()
2629
      x.read(self._iprot)
2630
      self._iprot.readMessageEnd()
2631
      raise x
2632
    result = getAmazonFbaItemInventory_result()
2633
    result.read(self._iprot)
2634
    self._iprot.readMessageEnd()
2635
    if result.success is not None:
2636
      return result.success
2637
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonFbaItemInventory failed: unknown result");
2638
 
8363 vikram.rag 2639
  def getAllAmazonFbaItemInventory(self, ):
2640
    self.send_getAllAmazonFbaItemInventory()
2641
    return self.recv_getAllAmazonFbaItemInventory()
8282 kshitij.so 2642
 
8363 vikram.rag 2643
  def send_getAllAmazonFbaItemInventory(self, ):
2644
    self._oprot.writeMessageBegin('getAllAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2645
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 2646
    args.write(self._oprot)
2647
    self._oprot.writeMessageEnd()
2648
    self._oprot.trans.flush()
2649
 
8363 vikram.rag 2650
  def recv_getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 2651
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2652
    if mtype == TMessageType.EXCEPTION:
2653
      x = TApplicationException()
2654
      x.read(self._iprot)
2655
      self._iprot.readMessageEnd()
2656
      raise x
8363 vikram.rag 2657
    result = getAllAmazonFbaItemInventory_result()
8282 kshitij.so 2658
    result.read(self._iprot)
2659
    self._iprot.readMessageEnd()
2660
    if result.success is not None:
2661
      return result.success
8363 vikram.rag 2662
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonFbaItemInventory failed: unknown result");
8282 kshitij.so 2663
 
8363 vikram.rag 2664
  def getOursGoodWarehouseIdsForLocation(self, state_id):
2665
    """
2666
    Parameters:
2667
     - state_id
2668
    """
2669
    self.send_getOursGoodWarehouseIdsForLocation(state_id)
2670
    return self.recv_getOursGoodWarehouseIdsForLocation()
8282 kshitij.so 2671
 
8363 vikram.rag 2672
  def send_getOursGoodWarehouseIdsForLocation(self, state_id):
2673
    self._oprot.writeMessageBegin('getOursGoodWarehouseIdsForLocation', TMessageType.CALL, self._seqid)
2674
    args = getOursGoodWarehouseIdsForLocation_args()
2675
    args.state_id = state_id
2676
    args.write(self._oprot)
2677
    self._oprot.writeMessageEnd()
2678
    self._oprot.trans.flush()
2679
 
2680
  def recv_getOursGoodWarehouseIdsForLocation(self, ):
2681
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2682
    if mtype == TMessageType.EXCEPTION:
2683
      x = TApplicationException()
2684
      x.read(self._iprot)
2685
      self._iprot.readMessageEnd()
2686
      raise x
2687
    result = getOursGoodWarehouseIdsForLocation_result()
2688
    result.read(self._iprot)
2689
    self._iprot.readMessageEnd()
2690
    if result.success is not None:
2691
      return result.success
2692
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOursGoodWarehouseIdsForLocation failed: unknown result");
2693
 
8955 vikram.rag 2694
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2695
    """
2696
    Parameters:
2697
     - id
2698
     - warehouse_id
2699
     - source
2700
    """
2701
    self.send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(id, warehouse_id, source)
2702
    return self.recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource()
8363 vikram.rag 2703
 
8955 vikram.rag 2704
  def send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2705
    self._oprot.writeMessageBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource', TMessageType.CALL, self._seqid)
2706
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
2707
    args.id = id
2708
    args.warehouse_id = warehouse_id
2709
    args.source = source
2710
    args.write(self._oprot)
2711
    self._oprot.writeMessageEnd()
2712
    self._oprot.trans.flush()
2713
 
2714
  def recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, ):
2715
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2716
    if mtype == TMessageType.EXCEPTION:
2717
      x = TApplicationException()
2718
      x.read(self._iprot)
2719
      self._iprot.readMessageEnd()
2720
      raise x
2721
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
2722
    result.read(self._iprot)
2723
    self._iprot.readMessageEnd()
2724
    if result.success is not None:
2725
      return result.success
2726
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetailForItemForWarehouseIdExceptSource failed: unknown result");
2727
 
9404 vikram.rag 2728
  def getSnapdealInventoryForItem(self, item_id):
2729
    """
2730
    Parameters:
2731
     - item_id
2732
    """
2733
    self.send_getSnapdealInventoryForItem(item_id)
2734
    return self.recv_getSnapdealInventoryForItem()
8955 vikram.rag 2735
 
9404 vikram.rag 2736
  def send_getSnapdealInventoryForItem(self, item_id):
2737
    self._oprot.writeMessageBegin('getSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2738
    args = getSnapdealInventoryForItem_args()
2739
    args.item_id = item_id
2740
    args.write(self._oprot)
2741
    self._oprot.writeMessageEnd()
2742
    self._oprot.trans.flush()
2743
 
2744
  def recv_getSnapdealInventoryForItem(self, ):
2745
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2746
    if mtype == TMessageType.EXCEPTION:
2747
      x = TApplicationException()
2748
      x.read(self._iprot)
2749
      self._iprot.readMessageEnd()
2750
      raise x
2751
    result = getSnapdealInventoryForItem_result()
2752
    result.read(self._iprot)
2753
    self._iprot.readMessageEnd()
2754
    if result.success is not None:
2755
      return result.success
2756
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventoryForItem failed: unknown result");
2757
 
2758
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2759
    """
2760
    Parameters:
2761
     - snapdealinventoryitem
2762
    """
2763
    self.send_addOrUpdateSnapdealInventoryForItem(snapdealinventoryitem)
2764
    self.recv_addOrUpdateSnapdealInventoryForItem()
2765
 
2766
  def send_addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2767
    self._oprot.writeMessageBegin('addOrUpdateSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2768
    args = addOrUpdateSnapdealInventoryForItem_args()
2769
    args.snapdealinventoryitem = snapdealinventoryitem
2770
    args.write(self._oprot)
2771
    self._oprot.writeMessageEnd()
2772
    self._oprot.trans.flush()
2773
 
2774
  def recv_addOrUpdateSnapdealInventoryForItem(self, ):
2775
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2776
    if mtype == TMessageType.EXCEPTION:
2777
      x = TApplicationException()
2778
      x.read(self._iprot)
2779
      self._iprot.readMessageEnd()
2780
      raise x
2781
    result = addOrUpdateSnapdealInventoryForItem_result()
2782
    result.read(self._iprot)
2783
    self._iprot.readMessageEnd()
2784
    return
2785
 
2786
  def getNlcForWarehouse(self, warehouse_id, item_id):
2787
    """
2788
    Parameters:
2789
     - warehouse_id
2790
     - item_id
2791
    """
2792
    self.send_getNlcForWarehouse(warehouse_id, item_id)
2793
    return self.recv_getNlcForWarehouse()
2794
 
2795
  def send_getNlcForWarehouse(self, warehouse_id, item_id):
2796
    self._oprot.writeMessageBegin('getNlcForWarehouse', TMessageType.CALL, self._seqid)
2797
    args = getNlcForWarehouse_args()
2798
    args.warehouse_id = warehouse_id
2799
    args.item_id = item_id
2800
    args.write(self._oprot)
2801
    self._oprot.writeMessageEnd()
2802
    self._oprot.trans.flush()
2803
 
2804
  def recv_getNlcForWarehouse(self, ):
2805
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2806
    if mtype == TMessageType.EXCEPTION:
2807
      x = TApplicationException()
2808
      x.read(self._iprot)
2809
      self._iprot.readMessageEnd()
2810
      raise x
2811
    result = getNlcForWarehouse_result()
2812
    result.read(self._iprot)
2813
    self._iprot.readMessageEnd()
2814
    if result.success is not None:
2815
      return result.success
2816
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
2817
 
9640 amar.kumar 2818
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
2819
    """
2820
    Parameters:
2821
     - item_id
2822
     - warehouse_id
2823
    """
2824
    self.send_getHeldInventoryMapForItem(item_id, warehouse_id)
2825
    return self.recv_getHeldInventoryMapForItem()
2826
 
2827
  def send_getHeldInventoryMapForItem(self, item_id, warehouse_id):
2828
    self._oprot.writeMessageBegin('getHeldInventoryMapForItem', TMessageType.CALL, self._seqid)
2829
    args = getHeldInventoryMapForItem_args()
2830
    args.item_id = item_id
2831
    args.warehouse_id = warehouse_id
2832
    args.write(self._oprot)
2833
    self._oprot.writeMessageEnd()
2834
    self._oprot.trans.flush()
2835
 
2836
  def recv_getHeldInventoryMapForItem(self, ):
2837
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2838
    if mtype == TMessageType.EXCEPTION:
2839
      x = TApplicationException()
2840
      x.read(self._iprot)
2841
      self._iprot.readMessageEnd()
2842
      raise x
2843
    result = getHeldInventoryMapForItem_result()
2844
    result.read(self._iprot)
2845
    self._iprot.readMessageEnd()
2846
    if result.success is not None:
2847
      return result.success
2848
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHeldInventoryMapForItem failed: unknown result");
2849
 
9495 vikram.rag 2850
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2851
    """
2852
    Parameters:
2853
     - allamazonfbainventorysnapshot
2854
    """
2855
    self.send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot)
2856
    self.recv_addOrUpdateAllAmazonFbaInventory()
9404 vikram.rag 2857
 
9495 vikram.rag 2858
  def send_addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2859
    self._oprot.writeMessageBegin('addOrUpdateAllAmazonFbaInventory', TMessageType.CALL, self._seqid)
2860
    args = addOrUpdateAllAmazonFbaInventory_args()
2861
    args.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 2862
    args.write(self._oprot)
2863
    self._oprot.writeMessageEnd()
2864
    self._oprot.trans.flush()
2865
 
9495 vikram.rag 2866
  def recv_addOrUpdateAllAmazonFbaInventory(self, ):
9456 vikram.rag 2867
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2868
    if mtype == TMessageType.EXCEPTION:
2869
      x = TApplicationException()
2870
      x.read(self._iprot)
2871
      self._iprot.readMessageEnd()
2872
      raise x
9495 vikram.rag 2873
    result = addOrUpdateAllAmazonFbaInventory_result()
9456 vikram.rag 2874
    result.read(self._iprot)
2875
    self._iprot.readMessageEnd()
9495 vikram.rag 2876
    return
9456 vikram.rag 2877
 
9495 vikram.rag 2878
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
9482 vikram.rag 2879
    """
2880
    Parameters:
9495 vikram.rag 2881
     - allsnapdealinventorysnapshot
9482 vikram.rag 2882
    """
9495 vikram.rag 2883
    self.send_addOrUpdateAllSnapdealInventory(allsnapdealinventorysnapshot)
2884
    self.recv_addOrUpdateAllSnapdealInventory()
9456 vikram.rag 2885
 
9495 vikram.rag 2886
  def send_addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
2887
    self._oprot.writeMessageBegin('addOrUpdateAllSnapdealInventory', TMessageType.CALL, self._seqid)
2888
    args = addOrUpdateAllSnapdealInventory_args()
2889
    args.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 2890
    args.write(self._oprot)
2891
    self._oprot.writeMessageEnd()
2892
    self._oprot.trans.flush()
2893
 
9495 vikram.rag 2894
  def recv_addOrUpdateAllSnapdealInventory(self, ):
9482 vikram.rag 2895
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2896
    if mtype == TMessageType.EXCEPTION:
2897
      x = TApplicationException()
2898
      x.read(self._iprot)
2899
      self._iprot.readMessageEnd()
2900
      raise x
9495 vikram.rag 2901
    result = addOrUpdateAllSnapdealInventory_result()
9482 vikram.rag 2902
    result.read(self._iprot)
2903
    self._iprot.readMessageEnd()
2904
    return
2905
 
9495 vikram.rag 2906
  def getSnapdealInventorySnapshot(self, ):
2907
    self.send_getSnapdealInventorySnapshot()
2908
    return self.recv_getSnapdealInventorySnapshot()
9482 vikram.rag 2909
 
9495 vikram.rag 2910
  def send_getSnapdealInventorySnapshot(self, ):
2911
    self._oprot.writeMessageBegin('getSnapdealInventorySnapshot', TMessageType.CALL, self._seqid)
2912
    args = getSnapdealInventorySnapshot_args()
2913
    args.write(self._oprot)
2914
    self._oprot.writeMessageEnd()
2915
    self._oprot.trans.flush()
2916
 
2917
  def recv_getSnapdealInventorySnapshot(self, ):
2918
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2919
    if mtype == TMessageType.EXCEPTION:
2920
      x = TApplicationException()
2921
      x.read(self._iprot)
2922
      self._iprot.readMessageEnd()
2923
      raise x
2924
    result = getSnapdealInventorySnapshot_result()
2925
    result.read(self._iprot)
2926
    self._iprot.readMessageEnd()
2927
    if result.success is not None:
2928
      return result.success
2929
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventorySnapshot failed: unknown result");
2930
 
9761 amar.kumar 2931
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
2932
    """
2933
    Parameters:
2934
     - itemId
2935
     - warehouseId
2936
     - source
2937
    """
2938
    self.send_getHoldInventoryDetails(itemId, warehouseId, source)
2939
    return self.recv_getHoldInventoryDetails()
9495 vikram.rag 2940
 
9761 amar.kumar 2941
  def send_getHoldInventoryDetails(self, itemId, warehouseId, source):
2942
    self._oprot.writeMessageBegin('getHoldInventoryDetails', TMessageType.CALL, self._seqid)
2943
    args = getHoldInventoryDetails_args()
2944
    args.itemId = itemId
2945
    args.warehouseId = warehouseId
2946
    args.source = source
2947
    args.write(self._oprot)
2948
    self._oprot.writeMessageEnd()
2949
    self._oprot.trans.flush()
2950
 
2951
  def recv_getHoldInventoryDetails(self, ):
2952
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2953
    if mtype == TMessageType.EXCEPTION:
2954
      x = TApplicationException()
2955
      x.read(self._iprot)
2956
      self._iprot.readMessageEnd()
2957
      raise x
2958
    result = getHoldInventoryDetails_result()
2959
    result.read(self._iprot)
2960
    self._iprot.readMessageEnd()
2961
    if result.success is not None:
2962
      return result.success
2963
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetails failed: unknown result");
2964
 
10450 vikram.rag 2965
  def addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot, time):
10050 vikram.rag 2966
    """
2967
    Parameters:
2968
     - flipkartInventorySnapshot
10450 vikram.rag 2969
     - time
10050 vikram.rag 2970
    """
10450 vikram.rag 2971
    self.send_addOrUpdateFlipkartInventorySnapshot(flipkartInventorySnapshot, time)
10050 vikram.rag 2972
    self.recv_addOrUpdateFlipkartInventorySnapshot()
9761 amar.kumar 2973
 
10450 vikram.rag 2974
  def send_addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot, time):
10050 vikram.rag 2975
    self._oprot.writeMessageBegin('addOrUpdateFlipkartInventorySnapshot', TMessageType.CALL, self._seqid)
2976
    args = addOrUpdateFlipkartInventorySnapshot_args()
2977
    args.flipkartInventorySnapshot = flipkartInventorySnapshot
10450 vikram.rag 2978
    args.time = time
10050 vikram.rag 2979
    args.write(self._oprot)
2980
    self._oprot.writeMessageEnd()
2981
    self._oprot.trans.flush()
2982
 
2983
  def recv_addOrUpdateFlipkartInventorySnapshot(self, ):
2984
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2985
    if mtype == TMessageType.EXCEPTION:
2986
      x = TApplicationException()
2987
      x.read(self._iprot)
2988
      self._iprot.readMessageEnd()
2989
      raise x
2990
    result = addOrUpdateFlipkartInventorySnapshot_result()
2991
    result.read(self._iprot)
2992
    self._iprot.readMessageEnd()
2993
    return
2994
 
2995
  def getFlipkartInventorySnapshot(self, ):
2996
    self.send_getFlipkartInventorySnapshot()
2997
    return self.recv_getFlipkartInventorySnapshot()
2998
 
2999
  def send_getFlipkartInventorySnapshot(self, ):
3000
    self._oprot.writeMessageBegin('getFlipkartInventorySnapshot', TMessageType.CALL, self._seqid)
3001
    args = getFlipkartInventorySnapshot_args()
3002
    args.write(self._oprot)
3003
    self._oprot.writeMessageEnd()
3004
    self._oprot.trans.flush()
3005
 
3006
  def recv_getFlipkartInventorySnapshot(self, ):
3007
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3008
    if mtype == TMessageType.EXCEPTION:
3009
      x = TApplicationException()
3010
      x.read(self._iprot)
3011
      self._iprot.readMessageEnd()
3012
      raise x
3013
    result = getFlipkartInventorySnapshot_result()
3014
    result.read(self._iprot)
3015
    self._iprot.readMessageEnd()
3016
    if result.success is not None:
3017
      return result.success
3018
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartInventorySnapshot failed: unknown result");
3019
 
10097 kshitij.so 3020
  def getFlipkartlInventoryForItem(self, item_id):
3021
    """
3022
    Parameters:
3023
     - item_id
3024
    """
3025
    self.send_getFlipkartlInventoryForItem(item_id)
3026
    return self.recv_getFlipkartlInventoryForItem()
10050 vikram.rag 3027
 
10097 kshitij.so 3028
  def send_getFlipkartlInventoryForItem(self, item_id):
3029
    self._oprot.writeMessageBegin('getFlipkartlInventoryForItem', TMessageType.CALL, self._seqid)
3030
    args = getFlipkartlInventoryForItem_args()
3031
    args.item_id = item_id
3032
    args.write(self._oprot)
3033
    self._oprot.writeMessageEnd()
3034
    self._oprot.trans.flush()
3035
 
3036
  def recv_getFlipkartlInventoryForItem(self, ):
3037
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3038
    if mtype == TMessageType.EXCEPTION:
3039
      x = TApplicationException()
3040
      x.read(self._iprot)
3041
      self._iprot.readMessageEnd()
3042
      raise x
3043
    result = getFlipkartlInventoryForItem_result()
3044
    result.read(self._iprot)
3045
    self._iprot.readMessageEnd()
3046
    if result.success is not None:
3047
      return result.success
3048
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartlInventoryForItem failed: unknown result");
3049
 
3050
 
5944 mandeep.dh 3051
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3052
  def __init__(self, handler):
3053
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3054
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
3055
    self._processMap["addVendor"] = Processor.process_addVendor
3056
    self._processMap["updateInventoryHistory"] = Processor.process_updateInventoryHistory
3057
    self._processMap["updateInventory"] = Processor.process_updateInventory
3058
    self._processMap["addInventory"] = Processor.process_addInventory
3059
    self._processMap["retireWarehouse"] = Processor.process_retireWarehouse
3060
    self._processMap["getItemInventoryByItemId"] = Processor.process_getItemInventoryByItemId
3061
    self._processMap["getItemAvailibilityAtWarehouse"] = Processor.process_getItemAvailibilityAtWarehouse
3062
    self._processMap["getItemAvailabilityAtLocation"] = Processor.process_getItemAvailabilityAtLocation
3063
    self._processMap["getAllWarehouses"] = Processor.process_getAllWarehouses
3064
    self._processMap["getWarehouse"] = Processor.process_getWarehouse
3065
    self._processMap["getAllItemsForWarehouse"] = Processor.process_getAllItemsForWarehouse
5966 rajveer 3066
    self._processMap["isOrderBillable"] = Processor.process_isOrderBillable
5944 mandeep.dh 3067
    self._processMap["reserveItemInWarehouse"] = Processor.process_reserveItemInWarehouse
7968 amar.kumar 3068
    self._processMap["updateReservationForOrder"] = Processor.process_updateReservationForOrder
5944 mandeep.dh 3069
    self._processMap["reduceReservationCount"] = Processor.process_reduceReservationCount
3070
    self._processMap["getItemPricing"] = Processor.process_getItemPricing
3071
    self._processMap["getAllItemPricing"] = Processor.process_getAllItemPricing
3072
    self._processMap["addVendorItemPricing"] = Processor.process_addVendorItemPricing
3073
    self._processMap["getVendor"] = Processor.process_getVendor
3074
    self._processMap["getAllVendors"] = Processor.process_getAllVendors
3075
    self._processMap["addVendorItemMapping"] = Processor.process_addVendorItemMapping
3076
    self._processMap["getVendorItemMappings"] = Processor.process_getVendorItemMappings
3077
    self._processMap["getPendingOrdersInventory"] = Processor.process_getPendingOrdersInventory
3078
    self._processMap["getWarehouses"] = Processor.process_getWarehouses
3079
    self._processMap["resetAvailability"] = Processor.process_resetAvailability
3080
    self._processMap["resetAvailabilityForWarehouse"] = Processor.process_resetAvailabilityForWarehouse
3081
    self._processMap["getItemKeysToBeProcessed"] = Processor.process_getItemKeysToBeProcessed
3082
    self._processMap["markMissedInventoryUpdatesAsProcessed"] = Processor.process_markMissedInventoryUpdatesAsProcessed
3083
    self._processMap["getIgnoredItemKeys"] = Processor.process_getIgnoredItemKeys
3084
    self._processMap["addBadInventory"] = Processor.process_addBadInventory
3085
    self._processMap["getShippingLocations"] = Processor.process_getShippingLocations
3086
    self._processMap["getAllVendorItemMappings"] = Processor.process_getAllVendorItemMappings
3087
    self._processMap["getInventorySnapshot"] = Processor.process_getInventorySnapshot
3088
    self._processMap["clearItemAvailabilityCache"] = Processor.process_clearItemAvailabilityCache
3089
    self._processMap["updateVendorString"] = Processor.process_updateVendorString
6096 amit.gupta 3090
    self._processMap["clearItemAvailabilityCacheForItem"] = Processor.process_clearItemAvailabilityCacheForItem
6467 amar.kumar 3091
    self._processMap["getOurWarehouseIdForVendor"] = Processor.process_getOurWarehouseIdForVendor
6484 amar.kumar 3092
    self._processMap["getItemAvailabilitiesAtOurWarehouses"] = Processor.process_getItemAvailabilitiesAtOurWarehouses
6531 vikram.rag 3093
    self._processMap["getMonitoredWarehouseForVendors"] = Processor.process_getMonitoredWarehouseForVendors
3094
    self._processMap["getIgnoredWarehouseidsAndItemids"] = Processor.process_getIgnoredWarehouseidsAndItemids
3095
    self._processMap["insertItemtoIgnoreInventoryUpdatelist"] = Processor.process_insertItemtoIgnoreInventoryUpdatelist
3096
    self._processMap["deleteItemFromIgnoredInventoryUpdateList"] = Processor.process_deleteItemFromIgnoredInventoryUpdateList
3097
    self._processMap["getAllIgnoredInventoryupdateItemsCount"] = Processor.process_getAllIgnoredInventoryupdateItemsCount
3098
    self._processMap["getIgnoredInventoryUpdateItemids"] = Processor.process_getIgnoredInventoryUpdateItemids
6821 amar.kumar 3099
    self._processMap["updateItemStockPurchaseParams"] = Processor.process_updateItemStockPurchaseParams
3100
    self._processMap["getItemStockPurchaseParams"] = Processor.process_getItemStockPurchaseParams
3101
    self._processMap["addOosStatusForItem"] = Processor.process_addOosStatusForItem
6832 amar.kumar 3102
    self._processMap["getOosStatusesForXDaysForItem"] = Processor.process_getOosStatusesForXDaysForItem
10126 amar.kumar 3103
    self._processMap["getOosStatusesForXDays"] = Processor.process_getOosStatusesForXDays
3104
    self._processMap["getAllVendorItemPricing"] = Processor.process_getAllVendorItemPricing
6857 amar.kumar 3105
    self._processMap["getNonZeroItemStockPurchaseParams"] = Processor.process_getNonZeroItemStockPurchaseParams
7149 amar.kumar 3106
    self._processMap["getBillableInventoryAndPendingOrders"] = Processor.process_getBillableInventoryAndPendingOrders
7281 kshitij.so 3107
    self._processMap["getWarehouseName"] = Processor.process_getWarehouseName
3108
    self._processMap["getAmazonInventoryForItem"] = Processor.process_getAmazonInventoryForItem
3109
    self._processMap["getAllAmazonInventory"] = Processor.process_getAllAmazonInventory
3110
    self._processMap["addOrUpdateAmazonInventoryForItem"] = Processor.process_addOrUpdateAmazonInventoryForItem
7972 amar.kumar 3111
    self._processMap["getLastNdaySaleForItem"] = Processor.process_getLastNdaySaleForItem
8282 kshitij.so 3112
    self._processMap["addOrUpdateAmazonFbaInventory"] = Processor.process_addOrUpdateAmazonFbaInventory
8182 amar.kumar 3113
    self._processMap["addUpdateHoldInventory"] = Processor.process_addUpdateHoldInventory
8282 kshitij.so 3114
    self._processMap["getAmazonFbaItemInventory"] = Processor.process_getAmazonFbaItemInventory
8363 vikram.rag 3115
    self._processMap["getAllAmazonFbaItemInventory"] = Processor.process_getAllAmazonFbaItemInventory
3116
    self._processMap["getOursGoodWarehouseIdsForLocation"] = Processor.process_getOursGoodWarehouseIdsForLocation
8955 vikram.rag 3117
    self._processMap["getHoldInventoryDetailForItemForWarehouseIdExceptSource"] = Processor.process_getHoldInventoryDetailForItemForWarehouseIdExceptSource
9404 vikram.rag 3118
    self._processMap["getSnapdealInventoryForItem"] = Processor.process_getSnapdealInventoryForItem
3119
    self._processMap["addOrUpdateSnapdealInventoryForItem"] = Processor.process_addOrUpdateSnapdealInventoryForItem
3120
    self._processMap["getNlcForWarehouse"] = Processor.process_getNlcForWarehouse
9640 amar.kumar 3121
    self._processMap["getHeldInventoryMapForItem"] = Processor.process_getHeldInventoryMapForItem
9482 vikram.rag 3122
    self._processMap["addOrUpdateAllAmazonFbaInventory"] = Processor.process_addOrUpdateAllAmazonFbaInventory
9495 vikram.rag 3123
    self._processMap["addOrUpdateAllSnapdealInventory"] = Processor.process_addOrUpdateAllSnapdealInventory
3124
    self._processMap["getSnapdealInventorySnapshot"] = Processor.process_getSnapdealInventorySnapshot
9761 amar.kumar 3125
    self._processMap["getHoldInventoryDetails"] = Processor.process_getHoldInventoryDetails
10050 vikram.rag 3126
    self._processMap["addOrUpdateFlipkartInventorySnapshot"] = Processor.process_addOrUpdateFlipkartInventorySnapshot
3127
    self._processMap["getFlipkartInventorySnapshot"] = Processor.process_getFlipkartInventorySnapshot
10097 kshitij.so 3128
    self._processMap["getFlipkartlInventoryForItem"] = Processor.process_getFlipkartlInventoryForItem
5944 mandeep.dh 3129
 
3130
  def process(self, iprot, oprot):
3131
    (name, type, seqid) = iprot.readMessageBegin()
3132
    if name not in self._processMap:
3133
      iprot.skip(TType.STRUCT)
3134
      iprot.readMessageEnd()
3135
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3136
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3137
      x.write(oprot)
3138
      oprot.writeMessageEnd()
3139
      oprot.trans.flush()
3140
      return
3141
    else:
3142
      self._processMap[name](self, seqid, iprot, oprot)
3143
    return True
3144
 
3145
  def process_addWarehouse(self, seqid, iprot, oprot):
3146
    args = addWarehouse_args()
3147
    args.read(iprot)
3148
    iprot.readMessageEnd()
3149
    result = addWarehouse_result()
3150
    try:
3151
      result.success = self._handler.addWarehouse(args.warehouse)
3152
    except InventoryServiceException, cex:
3153
      result.cex = cex
3154
    oprot.writeMessageBegin("addWarehouse", TMessageType.REPLY, seqid)
3155
    result.write(oprot)
3156
    oprot.writeMessageEnd()
3157
    oprot.trans.flush()
3158
 
3159
  def process_addVendor(self, seqid, iprot, oprot):
3160
    args = addVendor_args()
3161
    args.read(iprot)
3162
    iprot.readMessageEnd()
3163
    result = addVendor_result()
3164
    try:
3165
      result.success = self._handler.addVendor(args.vendor)
3166
    except InventoryServiceException, cex:
3167
      result.cex = cex
3168
    oprot.writeMessageBegin("addVendor", TMessageType.REPLY, seqid)
3169
    result.write(oprot)
3170
    oprot.writeMessageEnd()
3171
    oprot.trans.flush()
3172
 
3173
  def process_updateInventoryHistory(self, seqid, iprot, oprot):
3174
    args = updateInventoryHistory_args()
3175
    args.read(iprot)
3176
    iprot.readMessageEnd()
3177
    result = updateInventoryHistory_result()
3178
    try:
3179
      self._handler.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability)
3180
    except InventoryServiceException, cex:
3181
      result.cex = cex
3182
    oprot.writeMessageBegin("updateInventoryHistory", TMessageType.REPLY, seqid)
3183
    result.write(oprot)
3184
    oprot.writeMessageEnd()
3185
    oprot.trans.flush()
3186
 
3187
  def process_updateInventory(self, seqid, iprot, oprot):
3188
    args = updateInventory_args()
3189
    args.read(iprot)
3190
    iprot.readMessageEnd()
3191
    result = updateInventory_result()
3192
    try:
3193
      self._handler.updateInventory(args.warehouse_id, args.timestamp, args.availability)
3194
    except InventoryServiceException, cex:
3195
      result.cex = cex
3196
    oprot.writeMessageBegin("updateInventory", TMessageType.REPLY, seqid)
3197
    result.write(oprot)
3198
    oprot.writeMessageEnd()
3199
    oprot.trans.flush()
3200
 
3201
  def process_addInventory(self, seqid, iprot, oprot):
3202
    args = addInventory_args()
3203
    args.read(iprot)
3204
    iprot.readMessageEnd()
3205
    result = addInventory_result()
3206
    try:
3207
      self._handler.addInventory(args.itemId, args.warehouseId, args.quantity)
3208
    except InventoryServiceException, cex:
3209
      result.cex = cex
3210
    oprot.writeMessageBegin("addInventory", TMessageType.REPLY, seqid)
3211
    result.write(oprot)
3212
    oprot.writeMessageEnd()
3213
    oprot.trans.flush()
3214
 
3215
  def process_retireWarehouse(self, seqid, iprot, oprot):
3216
    args = retireWarehouse_args()
3217
    args.read(iprot)
3218
    iprot.readMessageEnd()
3219
    result = retireWarehouse_result()
3220
    try:
3221
      self._handler.retireWarehouse(args.warehouse_id)
3222
    except InventoryServiceException, cex:
3223
      result.cex = cex
3224
    oprot.writeMessageBegin("retireWarehouse", TMessageType.REPLY, seqid)
3225
    result.write(oprot)
3226
    oprot.writeMessageEnd()
3227
    oprot.trans.flush()
3228
 
3229
  def process_getItemInventoryByItemId(self, seqid, iprot, oprot):
3230
    args = getItemInventoryByItemId_args()
3231
    args.read(iprot)
3232
    iprot.readMessageEnd()
3233
    result = getItemInventoryByItemId_result()
3234
    try:
3235
      result.success = self._handler.getItemInventoryByItemId(args.item_id)
3236
    except InventoryServiceException, cex:
3237
      result.cex = cex
3238
    oprot.writeMessageBegin("getItemInventoryByItemId", TMessageType.REPLY, seqid)
3239
    result.write(oprot)
3240
    oprot.writeMessageEnd()
3241
    oprot.trans.flush()
3242
 
3243
  def process_getItemAvailibilityAtWarehouse(self, seqid, iprot, oprot):
3244
    args = getItemAvailibilityAtWarehouse_args()
3245
    args.read(iprot)
3246
    iprot.readMessageEnd()
3247
    result = getItemAvailibilityAtWarehouse_result()
3248
    try:
3249
      result.success = self._handler.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id)
3250
    except InventoryServiceException, cex:
3251
      result.cex = cex
3252
    oprot.writeMessageBegin("getItemAvailibilityAtWarehouse", TMessageType.REPLY, seqid)
3253
    result.write(oprot)
3254
    oprot.writeMessageEnd()
3255
    oprot.trans.flush()
3256
 
3257
  def process_getItemAvailabilityAtLocation(self, seqid, iprot, oprot):
3258
    args = getItemAvailabilityAtLocation_args()
3259
    args.read(iprot)
3260
    iprot.readMessageEnd()
3261
    result = getItemAvailabilityAtLocation_result()
3262
    try:
5978 rajveer 3263
      result.success = self._handler.getItemAvailabilityAtLocation(args.itemId, args.sourceId)
5944 mandeep.dh 3264
    except InventoryServiceException, isex:
3265
      result.isex = isex
3266
    oprot.writeMessageBegin("getItemAvailabilityAtLocation", TMessageType.REPLY, seqid)
3267
    result.write(oprot)
3268
    oprot.writeMessageEnd()
3269
    oprot.trans.flush()
3270
 
3271
  def process_getAllWarehouses(self, seqid, iprot, oprot):
3272
    args = getAllWarehouses_args()
3273
    args.read(iprot)
3274
    iprot.readMessageEnd()
3275
    result = getAllWarehouses_result()
3276
    try:
3277
      result.success = self._handler.getAllWarehouses(args.isActive)
3278
    except InventoryServiceException, cex:
3279
      result.cex = cex
3280
    oprot.writeMessageBegin("getAllWarehouses", TMessageType.REPLY, seqid)
3281
    result.write(oprot)
3282
    oprot.writeMessageEnd()
3283
    oprot.trans.flush()
3284
 
3285
  def process_getWarehouse(self, seqid, iprot, oprot):
3286
    args = getWarehouse_args()
3287
    args.read(iprot)
3288
    iprot.readMessageEnd()
3289
    result = getWarehouse_result()
3290
    try:
3291
      result.success = self._handler.getWarehouse(args.warehouse_id)
3292
    except InventoryServiceException, cex:
3293
      result.cex = cex
3294
    oprot.writeMessageBegin("getWarehouse", TMessageType.REPLY, seqid)
3295
    result.write(oprot)
3296
    oprot.writeMessageEnd()
3297
    oprot.trans.flush()
3298
 
3299
  def process_getAllItemsForWarehouse(self, seqid, iprot, oprot):
3300
    args = getAllItemsForWarehouse_args()
3301
    args.read(iprot)
3302
    iprot.readMessageEnd()
3303
    result = getAllItemsForWarehouse_result()
3304
    try:
3305
      result.success = self._handler.getAllItemsForWarehouse(args.warehouse_id)
3306
    except InventoryServiceException, cex:
3307
      result.cex = cex
3308
    oprot.writeMessageBegin("getAllItemsForWarehouse", TMessageType.REPLY, seqid)
3309
    result.write(oprot)
3310
    oprot.writeMessageEnd()
3311
    oprot.trans.flush()
3312
 
5966 rajveer 3313
  def process_isOrderBillable(self, seqid, iprot, oprot):
3314
    args = isOrderBillable_args()
3315
    args.read(iprot)
3316
    iprot.readMessageEnd()
3317
    result = isOrderBillable_result()
3318
    result.success = self._handler.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId)
3319
    oprot.writeMessageBegin("isOrderBillable", TMessageType.REPLY, seqid)
3320
    result.write(oprot)
3321
    oprot.writeMessageEnd()
3322
    oprot.trans.flush()
3323
 
5944 mandeep.dh 3324
  def process_reserveItemInWarehouse(self, seqid, iprot, oprot):
3325
    args = reserveItemInWarehouse_args()
3326
    args.read(iprot)
3327
    iprot.readMessageEnd()
3328
    result = reserveItemInWarehouse_result()
3329
    try:
5966 rajveer 3330
      result.success = self._handler.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
5944 mandeep.dh 3331
    except InventoryServiceException, cex:
3332
      result.cex = cex
3333
    oprot.writeMessageBegin("reserveItemInWarehouse", TMessageType.REPLY, seqid)
3334
    result.write(oprot)
3335
    oprot.writeMessageEnd()
3336
    oprot.trans.flush()
3337
 
7968 amar.kumar 3338
  def process_updateReservationForOrder(self, seqid, iprot, oprot):
3339
    args = updateReservationForOrder_args()
3340
    args.read(iprot)
3341
    iprot.readMessageEnd()
3342
    result = updateReservationForOrder_result()
3343
    try:
3344
      result.success = self._handler.updateReservationForOrder(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
3345
    except InventoryServiceException, cex:
3346
      result.cex = cex
3347
    oprot.writeMessageBegin("updateReservationForOrder", TMessageType.REPLY, seqid)
3348
    result.write(oprot)
3349
    oprot.writeMessageEnd()
3350
    oprot.trans.flush()
3351
 
5944 mandeep.dh 3352
  def process_reduceReservationCount(self, seqid, iprot, oprot):
3353
    args = reduceReservationCount_args()
3354
    args.read(iprot)
3355
    iprot.readMessageEnd()
3356
    result = reduceReservationCount_result()
3357
    try:
5966 rajveer 3358
      result.success = self._handler.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity)
5944 mandeep.dh 3359
    except InventoryServiceException, cex:
3360
      result.cex = cex
3361
    oprot.writeMessageBegin("reduceReservationCount", TMessageType.REPLY, seqid)
3362
    result.write(oprot)
3363
    oprot.writeMessageEnd()
3364
    oprot.trans.flush()
3365
 
3366
  def process_getItemPricing(self, seqid, iprot, oprot):
3367
    args = getItemPricing_args()
3368
    args.read(iprot)
3369
    iprot.readMessageEnd()
3370
    result = getItemPricing_result()
3371
    try:
3372
      result.success = self._handler.getItemPricing(args.itemId, args.vendorId)
3373
    except InventoryServiceException, cex:
3374
      result.cex = cex
3375
    oprot.writeMessageBegin("getItemPricing", TMessageType.REPLY, seqid)
3376
    result.write(oprot)
3377
    oprot.writeMessageEnd()
3378
    oprot.trans.flush()
3379
 
3380
  def process_getAllItemPricing(self, seqid, iprot, oprot):
3381
    args = getAllItemPricing_args()
3382
    args.read(iprot)
3383
    iprot.readMessageEnd()
3384
    result = getAllItemPricing_result()
3385
    try:
3386
      result.success = self._handler.getAllItemPricing(args.itemId)
3387
    except InventoryServiceException, cex:
3388
      result.cex = cex
3389
    oprot.writeMessageBegin("getAllItemPricing", TMessageType.REPLY, seqid)
3390
    result.write(oprot)
3391
    oprot.writeMessageEnd()
3392
    oprot.trans.flush()
3393
 
3394
  def process_addVendorItemPricing(self, seqid, iprot, oprot):
3395
    args = addVendorItemPricing_args()
3396
    args.read(iprot)
3397
    iprot.readMessageEnd()
3398
    result = addVendorItemPricing_result()
3399
    try:
3400
      self._handler.addVendorItemPricing(args.vendorItemPricing)
3401
    except InventoryServiceException, cex:
3402
      result.cex = cex
3403
    oprot.writeMessageBegin("addVendorItemPricing", TMessageType.REPLY, seqid)
3404
    result.write(oprot)
3405
    oprot.writeMessageEnd()
3406
    oprot.trans.flush()
3407
 
3408
  def process_getVendor(self, seqid, iprot, oprot):
3409
    args = getVendor_args()
3410
    args.read(iprot)
3411
    iprot.readMessageEnd()
3412
    result = getVendor_result()
3413
    result.success = self._handler.getVendor(args.vendorId)
3414
    oprot.writeMessageBegin("getVendor", TMessageType.REPLY, seqid)
3415
    result.write(oprot)
3416
    oprot.writeMessageEnd()
3417
    oprot.trans.flush()
3418
 
3419
  def process_getAllVendors(self, seqid, iprot, oprot):
3420
    args = getAllVendors_args()
3421
    args.read(iprot)
3422
    iprot.readMessageEnd()
3423
    result = getAllVendors_result()
3424
    result.success = self._handler.getAllVendors()
3425
    oprot.writeMessageBegin("getAllVendors", TMessageType.REPLY, seqid)
3426
    result.write(oprot)
3427
    oprot.writeMessageEnd()
3428
    oprot.trans.flush()
3429
 
3430
  def process_addVendorItemMapping(self, seqid, iprot, oprot):
3431
    args = addVendorItemMapping_args()
3432
    args.read(iprot)
3433
    iprot.readMessageEnd()
3434
    result = addVendorItemMapping_result()
3435
    try:
3436
      self._handler.addVendorItemMapping(args.key, args.vendorItemMapping)
3437
    except InventoryServiceException, cex:
3438
      result.cex = cex
3439
    oprot.writeMessageBegin("addVendorItemMapping", TMessageType.REPLY, seqid)
3440
    result.write(oprot)
3441
    oprot.writeMessageEnd()
3442
    oprot.trans.flush()
3443
 
3444
  def process_getVendorItemMappings(self, seqid, iprot, oprot):
3445
    args = getVendorItemMappings_args()
3446
    args.read(iprot)
3447
    iprot.readMessageEnd()
3448
    result = getVendorItemMappings_result()
3449
    try:
3450
      result.success = self._handler.getVendorItemMappings(args.itemId)
3451
    except InventoryServiceException, cex:
3452
      result.cex = cex
3453
    oprot.writeMessageBegin("getVendorItemMappings", TMessageType.REPLY, seqid)
3454
    result.write(oprot)
3455
    oprot.writeMessageEnd()
3456
    oprot.trans.flush()
3457
 
3458
  def process_getPendingOrdersInventory(self, seqid, iprot, oprot):
3459
    args = getPendingOrdersInventory_args()
3460
    args.read(iprot)
3461
    iprot.readMessageEnd()
3462
    result = getPendingOrdersInventory_result()
3463
    result.success = self._handler.getPendingOrdersInventory(args.vendorid)
3464
    oprot.writeMessageBegin("getPendingOrdersInventory", TMessageType.REPLY, seqid)
3465
    result.write(oprot)
3466
    oprot.writeMessageEnd()
3467
    oprot.trans.flush()
3468
 
3469
  def process_getWarehouses(self, seqid, iprot, oprot):
3470
    args = getWarehouses_args()
3471
    args.read(iprot)
3472
    iprot.readMessageEnd()
3473
    result = getWarehouses_result()
3474
    result.success = self._handler.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId)
3475
    oprot.writeMessageBegin("getWarehouses", TMessageType.REPLY, seqid)
3476
    result.write(oprot)
3477
    oprot.writeMessageEnd()
3478
    oprot.trans.flush()
3479
 
3480
  def process_resetAvailability(self, seqid, iprot, oprot):
3481
    args = resetAvailability_args()
3482
    args.read(iprot)
3483
    iprot.readMessageEnd()
3484
    result = resetAvailability_result()
3485
    try:
3486
      self._handler.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId)
3487
    except InventoryServiceException, cex:
3488
      result.cex = cex
3489
    oprot.writeMessageBegin("resetAvailability", TMessageType.REPLY, seqid)
3490
    result.write(oprot)
3491
    oprot.writeMessageEnd()
3492
    oprot.trans.flush()
3493
 
3494
  def process_resetAvailabilityForWarehouse(self, seqid, iprot, oprot):
3495
    args = resetAvailabilityForWarehouse_args()
3496
    args.read(iprot)
3497
    iprot.readMessageEnd()
3498
    result = resetAvailabilityForWarehouse_result()
3499
    try:
3500
      self._handler.resetAvailabilityForWarehouse(args.warehouseId)
3501
    except InventoryServiceException, cex:
3502
      result.cex = cex
3503
    oprot.writeMessageBegin("resetAvailabilityForWarehouse", TMessageType.REPLY, seqid)
3504
    result.write(oprot)
3505
    oprot.writeMessageEnd()
3506
    oprot.trans.flush()
3507
 
3508
  def process_getItemKeysToBeProcessed(self, seqid, iprot, oprot):
3509
    args = getItemKeysToBeProcessed_args()
3510
    args.read(iprot)
3511
    iprot.readMessageEnd()
3512
    result = getItemKeysToBeProcessed_result()
3513
    result.success = self._handler.getItemKeysToBeProcessed(args.warehouseId)
3514
    oprot.writeMessageBegin("getItemKeysToBeProcessed", TMessageType.REPLY, seqid)
3515
    result.write(oprot)
3516
    oprot.writeMessageEnd()
3517
    oprot.trans.flush()
3518
 
3519
  def process_markMissedInventoryUpdatesAsProcessed(self, seqid, iprot, oprot):
3520
    args = markMissedInventoryUpdatesAsProcessed_args()
3521
    args.read(iprot)
3522
    iprot.readMessageEnd()
3523
    result = markMissedInventoryUpdatesAsProcessed_result()
3524
    self._handler.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId)
3525
    oprot.writeMessageBegin("markMissedInventoryUpdatesAsProcessed", TMessageType.REPLY, seqid)
3526
    result.write(oprot)
3527
    oprot.writeMessageEnd()
3528
    oprot.trans.flush()
3529
 
3530
  def process_getIgnoredItemKeys(self, seqid, iprot, oprot):
3531
    args = getIgnoredItemKeys_args()
3532
    args.read(iprot)
3533
    iprot.readMessageEnd()
3534
    result = getIgnoredItemKeys_result()
3535
    result.success = self._handler.getIgnoredItemKeys()
3536
    oprot.writeMessageBegin("getIgnoredItemKeys", TMessageType.REPLY, seqid)
3537
    result.write(oprot)
3538
    oprot.writeMessageEnd()
3539
    oprot.trans.flush()
3540
 
3541
  def process_addBadInventory(self, seqid, iprot, oprot):
3542
    args = addBadInventory_args()
3543
    args.read(iprot)
3544
    iprot.readMessageEnd()
3545
    result = addBadInventory_result()
3546
    try:
3547
      self._handler.addBadInventory(args.itemId, args.warehouseId, args.quantity)
3548
    except InventoryServiceException, cex:
3549
      result.cex = cex
3550
    oprot.writeMessageBegin("addBadInventory", TMessageType.REPLY, seqid)
3551
    result.write(oprot)
3552
    oprot.writeMessageEnd()
3553
    oprot.trans.flush()
3554
 
3555
  def process_getShippingLocations(self, seqid, iprot, oprot):
3556
    args = getShippingLocations_args()
3557
    args.read(iprot)
3558
    iprot.readMessageEnd()
3559
    result = getShippingLocations_result()
3560
    result.success = self._handler.getShippingLocations()
3561
    oprot.writeMessageBegin("getShippingLocations", TMessageType.REPLY, seqid)
3562
    result.write(oprot)
3563
    oprot.writeMessageEnd()
3564
    oprot.trans.flush()
3565
 
3566
  def process_getAllVendorItemMappings(self, seqid, iprot, oprot):
3567
    args = getAllVendorItemMappings_args()
3568
    args.read(iprot)
3569
    iprot.readMessageEnd()
3570
    result = getAllVendorItemMappings_result()
3571
    result.success = self._handler.getAllVendorItemMappings()
3572
    oprot.writeMessageBegin("getAllVendorItemMappings", TMessageType.REPLY, seqid)
3573
    result.write(oprot)
3574
    oprot.writeMessageEnd()
3575
    oprot.trans.flush()
3576
 
3577
  def process_getInventorySnapshot(self, seqid, iprot, oprot):
3578
    args = getInventorySnapshot_args()
3579
    args.read(iprot)
3580
    iprot.readMessageEnd()
3581
    result = getInventorySnapshot_result()
3582
    result.success = self._handler.getInventorySnapshot(args.warehouseId)
3583
    oprot.writeMessageBegin("getInventorySnapshot", TMessageType.REPLY, seqid)
3584
    result.write(oprot)
3585
    oprot.writeMessageEnd()
3586
    oprot.trans.flush()
3587
 
3588
  def process_clearItemAvailabilityCache(self, seqid, iprot, oprot):
3589
    args = clearItemAvailabilityCache_args()
3590
    args.read(iprot)
3591
    iprot.readMessageEnd()
3592
    result = clearItemAvailabilityCache_result()
3593
    self._handler.clearItemAvailabilityCache()
3594
    oprot.writeMessageBegin("clearItemAvailabilityCache", TMessageType.REPLY, seqid)
3595
    result.write(oprot)
3596
    oprot.writeMessageEnd()
3597
    oprot.trans.flush()
3598
 
3599
  def process_updateVendorString(self, seqid, iprot, oprot):
3600
    args = updateVendorString_args()
3601
    args.read(iprot)
3602
    iprot.readMessageEnd()
3603
    result = updateVendorString_result()
3604
    self._handler.updateVendorString(args.warehouseId, args.vendorString)
3605
    oprot.writeMessageBegin("updateVendorString", TMessageType.REPLY, seqid)
3606
    result.write(oprot)
3607
    oprot.writeMessageEnd()
3608
    oprot.trans.flush()
3609
 
6096 amit.gupta 3610
  def process_clearItemAvailabilityCacheForItem(self, seqid, iprot, oprot):
3611
    args = clearItemAvailabilityCacheForItem_args()
3612
    args.read(iprot)
3613
    iprot.readMessageEnd()
3614
    result = clearItemAvailabilityCacheForItem_result()
3615
    self._handler.clearItemAvailabilityCacheForItem(args.item_id)
3616
    oprot.writeMessageBegin("clearItemAvailabilityCacheForItem", TMessageType.REPLY, seqid)
3617
    result.write(oprot)
3618
    oprot.writeMessageEnd()
3619
    oprot.trans.flush()
5944 mandeep.dh 3620
 
6467 amar.kumar 3621
  def process_getOurWarehouseIdForVendor(self, seqid, iprot, oprot):
3622
    args = getOurWarehouseIdForVendor_args()
3623
    args.read(iprot)
3624
    iprot.readMessageEnd()
3625
    result = getOurWarehouseIdForVendor_result()
7718 amar.kumar 3626
    result.success = self._handler.getOurWarehouseIdForVendor(args.vendorId, args.billingWarehouseId)
6467 amar.kumar 3627
    oprot.writeMessageBegin("getOurWarehouseIdForVendor", TMessageType.REPLY, seqid)
3628
    result.write(oprot)
3629
    oprot.writeMessageEnd()
3630
    oprot.trans.flush()
6096 amit.gupta 3631
 
6484 amar.kumar 3632
  def process_getItemAvailabilitiesAtOurWarehouses(self, seqid, iprot, oprot):
3633
    args = getItemAvailabilitiesAtOurWarehouses_args()
3634
    args.read(iprot)
3635
    iprot.readMessageEnd()
3636
    result = getItemAvailabilitiesAtOurWarehouses_result()
3637
    result.success = self._handler.getItemAvailabilitiesAtOurWarehouses(args.item_ids)
3638
    oprot.writeMessageBegin("getItemAvailabilitiesAtOurWarehouses", TMessageType.REPLY, seqid)
3639
    result.write(oprot)
3640
    oprot.writeMessageEnd()
3641
    oprot.trans.flush()
6467 amar.kumar 3642
 
6531 vikram.rag 3643
  def process_getMonitoredWarehouseForVendors(self, seqid, iprot, oprot):
3644
    args = getMonitoredWarehouseForVendors_args()
3645
    args.read(iprot)
3646
    iprot.readMessageEnd()
3647
    result = getMonitoredWarehouseForVendors_result()
3648
    result.success = self._handler.getMonitoredWarehouseForVendors(args.vendorIds)
3649
    oprot.writeMessageBegin("getMonitoredWarehouseForVendors", TMessageType.REPLY, seqid)
3650
    result.write(oprot)
3651
    oprot.writeMessageEnd()
3652
    oprot.trans.flush()
6484 amar.kumar 3653
 
6531 vikram.rag 3654
  def process_getIgnoredWarehouseidsAndItemids(self, seqid, iprot, oprot):
3655
    args = getIgnoredWarehouseidsAndItemids_args()
3656
    args.read(iprot)
3657
    iprot.readMessageEnd()
3658
    result = getIgnoredWarehouseidsAndItemids_result()
3659
    result.success = self._handler.getIgnoredWarehouseidsAndItemids()
3660
    oprot.writeMessageBegin("getIgnoredWarehouseidsAndItemids", TMessageType.REPLY, seqid)
3661
    result.write(oprot)
3662
    oprot.writeMessageEnd()
3663
    oprot.trans.flush()
3664
 
3665
  def process_insertItemtoIgnoreInventoryUpdatelist(self, seqid, iprot, oprot):
3666
    args = insertItemtoIgnoreInventoryUpdatelist_args()
3667
    args.read(iprot)
3668
    iprot.readMessageEnd()
3669
    result = insertItemtoIgnoreInventoryUpdatelist_result()
3670
    result.success = self._handler.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id)
3671
    oprot.writeMessageBegin("insertItemtoIgnoreInventoryUpdatelist", TMessageType.REPLY, seqid)
3672
    result.write(oprot)
3673
    oprot.writeMessageEnd()
3674
    oprot.trans.flush()
3675
 
3676
  def process_deleteItemFromIgnoredInventoryUpdateList(self, seqid, iprot, oprot):
3677
    args = deleteItemFromIgnoredInventoryUpdateList_args()
3678
    args.read(iprot)
3679
    iprot.readMessageEnd()
3680
    result = deleteItemFromIgnoredInventoryUpdateList_result()
3681
    result.success = self._handler.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id)
3682
    oprot.writeMessageBegin("deleteItemFromIgnoredInventoryUpdateList", TMessageType.REPLY, seqid)
3683
    result.write(oprot)
3684
    oprot.writeMessageEnd()
3685
    oprot.trans.flush()
3686
 
3687
  def process_getAllIgnoredInventoryupdateItemsCount(self, seqid, iprot, oprot):
3688
    args = getAllIgnoredInventoryupdateItemsCount_args()
3689
    args.read(iprot)
3690
    iprot.readMessageEnd()
3691
    result = getAllIgnoredInventoryupdateItemsCount_result()
3692
    result.success = self._handler.getAllIgnoredInventoryupdateItemsCount()
3693
    oprot.writeMessageBegin("getAllIgnoredInventoryupdateItemsCount", TMessageType.REPLY, seqid)
3694
    result.write(oprot)
3695
    oprot.writeMessageEnd()
3696
    oprot.trans.flush()
3697
 
3698
  def process_getIgnoredInventoryUpdateItemids(self, seqid, iprot, oprot):
3699
    args = getIgnoredInventoryUpdateItemids_args()
3700
    args.read(iprot)
3701
    iprot.readMessageEnd()
3702
    result = getIgnoredInventoryUpdateItemids_result()
3703
    result.success = self._handler.getIgnoredInventoryUpdateItemids(args.offset, args.limit)
3704
    oprot.writeMessageBegin("getIgnoredInventoryUpdateItemids", TMessageType.REPLY, seqid)
3705
    result.write(oprot)
3706
    oprot.writeMessageEnd()
3707
    oprot.trans.flush()
3708
 
6821 amar.kumar 3709
  def process_updateItemStockPurchaseParams(self, seqid, iprot, oprot):
3710
    args = updateItemStockPurchaseParams_args()
3711
    args.read(iprot)
3712
    iprot.readMessageEnd()
3713
    result = updateItemStockPurchaseParams_result()
3714
    self._handler.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel)
3715
    oprot.writeMessageBegin("updateItemStockPurchaseParams", TMessageType.REPLY, seqid)
3716
    result.write(oprot)
3717
    oprot.writeMessageEnd()
3718
    oprot.trans.flush()
6531 vikram.rag 3719
 
6821 amar.kumar 3720
  def process_getItemStockPurchaseParams(self, seqid, iprot, oprot):
3721
    args = getItemStockPurchaseParams_args()
3722
    args.read(iprot)
3723
    iprot.readMessageEnd()
3724
    result = getItemStockPurchaseParams_result()
3725
    result.success = self._handler.getItemStockPurchaseParams(args.itemId)
3726
    oprot.writeMessageBegin("getItemStockPurchaseParams", TMessageType.REPLY, seqid)
3727
    result.write(oprot)
3728
    oprot.writeMessageEnd()
3729
    oprot.trans.flush()
3730
 
3731
  def process_addOosStatusForItem(self, seqid, iprot, oprot):
3732
    args = addOosStatusForItem_args()
3733
    args.read(iprot)
3734
    iprot.readMessageEnd()
3735
    result = addOosStatusForItem_result()
3736
    self._handler.addOosStatusForItem(args.oosStatusMap, args.date)
3737
    oprot.writeMessageBegin("addOosStatusForItem", TMessageType.REPLY, seqid)
3738
    result.write(oprot)
3739
    oprot.writeMessageEnd()
3740
    oprot.trans.flush()
3741
 
6832 amar.kumar 3742
  def process_getOosStatusesForXDaysForItem(self, seqid, iprot, oprot):
3743
    args = getOosStatusesForXDaysForItem_args()
3744
    args.read(iprot)
3745
    iprot.readMessageEnd()
3746
    result = getOosStatusesForXDaysForItem_result()
9762 amar.kumar 3747
    result.success = self._handler.getOosStatusesForXDaysForItem(args.itemId, args.sourceId, args.days)
6832 amar.kumar 3748
    oprot.writeMessageBegin("getOosStatusesForXDaysForItem", TMessageType.REPLY, seqid)
3749
    result.write(oprot)
3750
    oprot.writeMessageEnd()
3751
    oprot.trans.flush()
6821 amar.kumar 3752
 
10126 amar.kumar 3753
  def process_getOosStatusesForXDays(self, seqid, iprot, oprot):
3754
    args = getOosStatusesForXDays_args()
3755
    args.read(iprot)
3756
    iprot.readMessageEnd()
3757
    result = getOosStatusesForXDays_result()
3758
    result.success = self._handler.getOosStatusesForXDays(args.sourceId, args.days)
3759
    oprot.writeMessageBegin("getOosStatusesForXDays", TMessageType.REPLY, seqid)
3760
    result.write(oprot)
3761
    oprot.writeMessageEnd()
3762
    oprot.trans.flush()
3763
 
3764
  def process_getAllVendorItemPricing(self, seqid, iprot, oprot):
3765
    args = getAllVendorItemPricing_args()
3766
    args.read(iprot)
3767
    iprot.readMessageEnd()
3768
    result = getAllVendorItemPricing_result()
3769
    result.success = self._handler.getAllVendorItemPricing(args.itemId, args.vendorId)
3770
    oprot.writeMessageBegin("getAllVendorItemPricing", TMessageType.REPLY, seqid)
3771
    result.write(oprot)
3772
    oprot.writeMessageEnd()
3773
    oprot.trans.flush()
3774
 
6857 amar.kumar 3775
  def process_getNonZeroItemStockPurchaseParams(self, seqid, iprot, oprot):
3776
    args = getNonZeroItemStockPurchaseParams_args()
3777
    args.read(iprot)
3778
    iprot.readMessageEnd()
3779
    result = getNonZeroItemStockPurchaseParams_result()
3780
    result.success = self._handler.getNonZeroItemStockPurchaseParams()
3781
    oprot.writeMessageBegin("getNonZeroItemStockPurchaseParams", TMessageType.REPLY, seqid)
3782
    result.write(oprot)
3783
    oprot.writeMessageEnd()
3784
    oprot.trans.flush()
6832 amar.kumar 3785
 
7149 amar.kumar 3786
  def process_getBillableInventoryAndPendingOrders(self, seqid, iprot, oprot):
3787
    args = getBillableInventoryAndPendingOrders_args()
3788
    args.read(iprot)
3789
    iprot.readMessageEnd()
3790
    result = getBillableInventoryAndPendingOrders_result()
3791
    result.success = self._handler.getBillableInventoryAndPendingOrders()
3792
    oprot.writeMessageBegin("getBillableInventoryAndPendingOrders", TMessageType.REPLY, seqid)
3793
    result.write(oprot)
3794
    oprot.writeMessageEnd()
3795
    oprot.trans.flush()
6857 amar.kumar 3796
 
7281 kshitij.so 3797
  def process_getWarehouseName(self, seqid, iprot, oprot):
3798
    args = getWarehouseName_args()
3799
    args.read(iprot)
3800
    iprot.readMessageEnd()
3801
    result = getWarehouseName_result()
3802
    result.success = self._handler.getWarehouseName(args.warehouse_id)
3803
    oprot.writeMessageBegin("getWarehouseName", TMessageType.REPLY, seqid)
3804
    result.write(oprot)
3805
    oprot.writeMessageEnd()
3806
    oprot.trans.flush()
7149 amar.kumar 3807
 
7281 kshitij.so 3808
  def process_getAmazonInventoryForItem(self, seqid, iprot, oprot):
3809
    args = getAmazonInventoryForItem_args()
3810
    args.read(iprot)
3811
    iprot.readMessageEnd()
3812
    result = getAmazonInventoryForItem_result()
3813
    result.success = self._handler.getAmazonInventoryForItem(args.item_id)
3814
    oprot.writeMessageBegin("getAmazonInventoryForItem", TMessageType.REPLY, seqid)
3815
    result.write(oprot)
3816
    oprot.writeMessageEnd()
3817
    oprot.trans.flush()
3818
 
3819
  def process_getAllAmazonInventory(self, seqid, iprot, oprot):
3820
    args = getAllAmazonInventory_args()
3821
    args.read(iprot)
3822
    iprot.readMessageEnd()
3823
    result = getAllAmazonInventory_result()
3824
    result.success = self._handler.getAllAmazonInventory()
3825
    oprot.writeMessageBegin("getAllAmazonInventory", TMessageType.REPLY, seqid)
3826
    result.write(oprot)
3827
    oprot.writeMessageEnd()
3828
    oprot.trans.flush()
3829
 
3830
  def process_addOrUpdateAmazonInventoryForItem(self, seqid, iprot, oprot):
3831
    args = addOrUpdateAmazonInventoryForItem_args()
3832
    args.read(iprot)
3833
    iprot.readMessageEnd()
3834
    result = addOrUpdateAmazonInventoryForItem_result()
10450 vikram.rag 3835
    self._handler.addOrUpdateAmazonInventoryForItem(args.amazonInventorySnapshot, args.time)
7281 kshitij.so 3836
    oprot.writeMessageBegin("addOrUpdateAmazonInventoryForItem", TMessageType.REPLY, seqid)
3837
    result.write(oprot)
3838
    oprot.writeMessageEnd()
3839
    oprot.trans.flush()
3840
 
7972 amar.kumar 3841
  def process_getLastNdaySaleForItem(self, seqid, iprot, oprot):
3842
    args = getLastNdaySaleForItem_args()
3843
    args.read(iprot)
3844
    iprot.readMessageEnd()
3845
    result = getLastNdaySaleForItem_result()
3846
    result.success = self._handler.getLastNdaySaleForItem(args.itemId, args.numberOfDays)
3847
    oprot.writeMessageBegin("getLastNdaySaleForItem", TMessageType.REPLY, seqid)
3848
    result.write(oprot)
3849
    oprot.writeMessageEnd()
3850
    oprot.trans.flush()
7281 kshitij.so 3851
 
8282 kshitij.so 3852
  def process_addOrUpdateAmazonFbaInventory(self, seqid, iprot, oprot):
3853
    args = addOrUpdateAmazonFbaInventory_args()
3854
    args.read(iprot)
3855
    iprot.readMessageEnd()
3856
    result = addOrUpdateAmazonFbaInventory_result()
3857
    self._handler.addOrUpdateAmazonFbaInventory(args.amazonfbainventorysnapshot)
3858
    oprot.writeMessageBegin("addOrUpdateAmazonFbaInventory", TMessageType.REPLY, seqid)
3859
    result.write(oprot)
3860
    oprot.writeMessageEnd()
3861
    oprot.trans.flush()
3862
 
8182 amar.kumar 3863
  def process_addUpdateHoldInventory(self, seqid, iprot, oprot):
3864
    args = addUpdateHoldInventory_args()
3865
    args.read(iprot)
3866
    iprot.readMessageEnd()
3867
    result = addUpdateHoldInventory_result()
9762 amar.kumar 3868
    try:
3869
      self._handler.addUpdateHoldInventory(args.itemId, args.warehouseId, args.holdQuantity, args.source)
3870
    except InventoryServiceException, cex:
3871
      result.cex = cex
8182 amar.kumar 3872
    oprot.writeMessageBegin("addUpdateHoldInventory", TMessageType.REPLY, seqid)
3873
    result.write(oprot)
3874
    oprot.writeMessageEnd()
3875
    oprot.trans.flush()
7972 amar.kumar 3876
 
8282 kshitij.so 3877
  def process_getAmazonFbaItemInventory(self, seqid, iprot, oprot):
3878
    args = getAmazonFbaItemInventory_args()
3879
    args.read(iprot)
3880
    iprot.readMessageEnd()
3881
    result = getAmazonFbaItemInventory_result()
3882
    result.success = self._handler.getAmazonFbaItemInventory(args.itemId)
3883
    oprot.writeMessageBegin("getAmazonFbaItemInventory", TMessageType.REPLY, seqid)
3884
    result.write(oprot)
3885
    oprot.writeMessageEnd()
3886
    oprot.trans.flush()
8182 amar.kumar 3887
 
8363 vikram.rag 3888
  def process_getAllAmazonFbaItemInventory(self, seqid, iprot, oprot):
3889
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 3890
    args.read(iprot)
3891
    iprot.readMessageEnd()
8363 vikram.rag 3892
    result = getAllAmazonFbaItemInventory_result()
3893
    result.success = self._handler.getAllAmazonFbaItemInventory()
3894
    oprot.writeMessageBegin("getAllAmazonFbaItemInventory", TMessageType.REPLY, seqid)
8282 kshitij.so 3895
    result.write(oprot)
3896
    oprot.writeMessageEnd()
3897
    oprot.trans.flush()
3898
 
8363 vikram.rag 3899
  def process_getOursGoodWarehouseIdsForLocation(self, seqid, iprot, oprot):
3900
    args = getOursGoodWarehouseIdsForLocation_args()
3901
    args.read(iprot)
3902
    iprot.readMessageEnd()
3903
    result = getOursGoodWarehouseIdsForLocation_result()
3904
    result.success = self._handler.getOursGoodWarehouseIdsForLocation(args.state_id)
3905
    oprot.writeMessageBegin("getOursGoodWarehouseIdsForLocation", TMessageType.REPLY, seqid)
3906
    result.write(oprot)
3907
    oprot.writeMessageEnd()
3908
    oprot.trans.flush()
8282 kshitij.so 3909
 
8955 vikram.rag 3910
  def process_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, seqid, iprot, oprot):
3911
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
3912
    args.read(iprot)
3913
    iprot.readMessageEnd()
3914
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
3915
    result.success = self._handler.getHoldInventoryDetailForItemForWarehouseIdExceptSource(args.id, args.warehouse_id, args.source)
3916
    oprot.writeMessageBegin("getHoldInventoryDetailForItemForWarehouseIdExceptSource", TMessageType.REPLY, seqid)
3917
    result.write(oprot)
3918
    oprot.writeMessageEnd()
3919
    oprot.trans.flush()
8363 vikram.rag 3920
 
9404 vikram.rag 3921
  def process_getSnapdealInventoryForItem(self, seqid, iprot, oprot):
3922
    args = getSnapdealInventoryForItem_args()
3923
    args.read(iprot)
3924
    iprot.readMessageEnd()
3925
    result = getSnapdealInventoryForItem_result()
3926
    result.success = self._handler.getSnapdealInventoryForItem(args.item_id)
3927
    oprot.writeMessageBegin("getSnapdealInventoryForItem", TMessageType.REPLY, seqid)
3928
    result.write(oprot)
3929
    oprot.writeMessageEnd()
3930
    oprot.trans.flush()
8955 vikram.rag 3931
 
9404 vikram.rag 3932
  def process_addOrUpdateSnapdealInventoryForItem(self, seqid, iprot, oprot):
3933
    args = addOrUpdateSnapdealInventoryForItem_args()
3934
    args.read(iprot)
3935
    iprot.readMessageEnd()
3936
    result = addOrUpdateSnapdealInventoryForItem_result()
3937
    self._handler.addOrUpdateSnapdealInventoryForItem(args.snapdealinventoryitem)
3938
    oprot.writeMessageBegin("addOrUpdateSnapdealInventoryForItem", TMessageType.REPLY, seqid)
3939
    result.write(oprot)
3940
    oprot.writeMessageEnd()
3941
    oprot.trans.flush()
3942
 
3943
  def process_getNlcForWarehouse(self, seqid, iprot, oprot):
3944
    args = getNlcForWarehouse_args()
3945
    args.read(iprot)
3946
    iprot.readMessageEnd()
3947
    result = getNlcForWarehouse_result()
3948
    result.success = self._handler.getNlcForWarehouse(args.warehouse_id, args.item_id)
3949
    oprot.writeMessageBegin("getNlcForWarehouse", TMessageType.REPLY, seqid)
3950
    result.write(oprot)
3951
    oprot.writeMessageEnd()
3952
    oprot.trans.flush()
3953
 
9640 amar.kumar 3954
  def process_getHeldInventoryMapForItem(self, seqid, iprot, oprot):
3955
    args = getHeldInventoryMapForItem_args()
3956
    args.read(iprot)
3957
    iprot.readMessageEnd()
3958
    result = getHeldInventoryMapForItem_result()
3959
    result.success = self._handler.getHeldInventoryMapForItem(args.item_id, args.warehouse_id)
3960
    oprot.writeMessageBegin("getHeldInventoryMapForItem", TMessageType.REPLY, seqid)
3961
    result.write(oprot)
3962
    oprot.writeMessageEnd()
3963
    oprot.trans.flush()
3964
 
9495 vikram.rag 3965
  def process_addOrUpdateAllAmazonFbaInventory(self, seqid, iprot, oprot):
3966
    args = addOrUpdateAllAmazonFbaInventory_args()
9456 vikram.rag 3967
    args.read(iprot)
3968
    iprot.readMessageEnd()
9495 vikram.rag 3969
    result = addOrUpdateAllAmazonFbaInventory_result()
3970
    self._handler.addOrUpdateAllAmazonFbaInventory(args.allamazonfbainventorysnapshot)
3971
    oprot.writeMessageBegin("addOrUpdateAllAmazonFbaInventory", TMessageType.REPLY, seqid)
9456 vikram.rag 3972
    result.write(oprot)
3973
    oprot.writeMessageEnd()
3974
    oprot.trans.flush()
9404 vikram.rag 3975
 
9495 vikram.rag 3976
  def process_addOrUpdateAllSnapdealInventory(self, seqid, iprot, oprot):
3977
    args = addOrUpdateAllSnapdealInventory_args()
9482 vikram.rag 3978
    args.read(iprot)
3979
    iprot.readMessageEnd()
9495 vikram.rag 3980
    result = addOrUpdateAllSnapdealInventory_result()
3981
    self._handler.addOrUpdateAllSnapdealInventory(args.allsnapdealinventorysnapshot)
3982
    oprot.writeMessageBegin("addOrUpdateAllSnapdealInventory", TMessageType.REPLY, seqid)
9482 vikram.rag 3983
    result.write(oprot)
3984
    oprot.writeMessageEnd()
3985
    oprot.trans.flush()
9456 vikram.rag 3986
 
9495 vikram.rag 3987
  def process_getSnapdealInventorySnapshot(self, seqid, iprot, oprot):
3988
    args = getSnapdealInventorySnapshot_args()
3989
    args.read(iprot)
3990
    iprot.readMessageEnd()
3991
    result = getSnapdealInventorySnapshot_result()
3992
    result.success = self._handler.getSnapdealInventorySnapshot()
3993
    oprot.writeMessageBegin("getSnapdealInventorySnapshot", TMessageType.REPLY, seqid)
3994
    result.write(oprot)
3995
    oprot.writeMessageEnd()
3996
    oprot.trans.flush()
9482 vikram.rag 3997
 
9761 amar.kumar 3998
  def process_getHoldInventoryDetails(self, seqid, iprot, oprot):
3999
    args = getHoldInventoryDetails_args()
4000
    args.read(iprot)
4001
    iprot.readMessageEnd()
4002
    result = getHoldInventoryDetails_result()
4003
    result.success = self._handler.getHoldInventoryDetails(args.itemId, args.warehouseId, args.source)
4004
    oprot.writeMessageBegin("getHoldInventoryDetails", TMessageType.REPLY, seqid)
4005
    result.write(oprot)
4006
    oprot.writeMessageEnd()
4007
    oprot.trans.flush()
9495 vikram.rag 4008
 
10050 vikram.rag 4009
  def process_addOrUpdateFlipkartInventorySnapshot(self, seqid, iprot, oprot):
4010
    args = addOrUpdateFlipkartInventorySnapshot_args()
4011
    args.read(iprot)
4012
    iprot.readMessageEnd()
4013
    result = addOrUpdateFlipkartInventorySnapshot_result()
10450 vikram.rag 4014
    self._handler.addOrUpdateFlipkartInventorySnapshot(args.flipkartInventorySnapshot, args.time)
10050 vikram.rag 4015
    oprot.writeMessageBegin("addOrUpdateFlipkartInventorySnapshot", TMessageType.REPLY, seqid)
4016
    result.write(oprot)
4017
    oprot.writeMessageEnd()
4018
    oprot.trans.flush()
9761 amar.kumar 4019
 
10050 vikram.rag 4020
  def process_getFlipkartInventorySnapshot(self, seqid, iprot, oprot):
4021
    args = getFlipkartInventorySnapshot_args()
4022
    args.read(iprot)
4023
    iprot.readMessageEnd()
4024
    result = getFlipkartInventorySnapshot_result()
4025
    result.success = self._handler.getFlipkartInventorySnapshot()
4026
    oprot.writeMessageBegin("getFlipkartInventorySnapshot", TMessageType.REPLY, seqid)
4027
    result.write(oprot)
4028
    oprot.writeMessageEnd()
4029
    oprot.trans.flush()
4030
 
10097 kshitij.so 4031
  def process_getFlipkartlInventoryForItem(self, seqid, iprot, oprot):
4032
    args = getFlipkartlInventoryForItem_args()
4033
    args.read(iprot)
4034
    iprot.readMessageEnd()
4035
    result = getFlipkartlInventoryForItem_result()
4036
    result.success = self._handler.getFlipkartlInventoryForItem(args.item_id)
4037
    oprot.writeMessageBegin("getFlipkartlInventoryForItem", TMessageType.REPLY, seqid)
4038
    result.write(oprot)
4039
    oprot.writeMessageEnd()
4040
    oprot.trans.flush()
10050 vikram.rag 4041
 
10097 kshitij.so 4042
 
5944 mandeep.dh 4043
# HELPER FUNCTIONS AND STRUCTURES
4044
 
4045
class addWarehouse_args:
4046
  """
4047
  Attributes:
4048
   - warehouse
4049
  """
4050
 
4051
  thrift_spec = (
4052
    None, # 0
4053
    (1, TType.STRUCT, 'warehouse', (Warehouse, Warehouse.thrift_spec), None, ), # 1
4054
  )
4055
 
4056
  def __init__(self, warehouse=None,):
4057
    self.warehouse = warehouse
4058
 
4059
  def read(self, iprot):
4060
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4061
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4062
      return
4063
    iprot.readStructBegin()
4064
    while True:
4065
      (fname, ftype, fid) = iprot.readFieldBegin()
4066
      if ftype == TType.STOP:
4067
        break
4068
      if fid == 1:
4069
        if ftype == TType.STRUCT:
4070
          self.warehouse = Warehouse()
4071
          self.warehouse.read(iprot)
4072
        else:
4073
          iprot.skip(ftype)
4074
      else:
4075
        iprot.skip(ftype)
4076
      iprot.readFieldEnd()
4077
    iprot.readStructEnd()
4078
 
4079
  def write(self, oprot):
4080
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4081
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4082
      return
4083
    oprot.writeStructBegin('addWarehouse_args')
4084
    if self.warehouse is not None:
4085
      oprot.writeFieldBegin('warehouse', TType.STRUCT, 1)
4086
      self.warehouse.write(oprot)
4087
      oprot.writeFieldEnd()
4088
    oprot.writeFieldStop()
4089
    oprot.writeStructEnd()
4090
 
4091
  def validate(self):
4092
    return
4093
 
4094
 
4095
  def __repr__(self):
4096
    L = ['%s=%r' % (key, value)
4097
      for key, value in self.__dict__.iteritems()]
4098
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4099
 
4100
  def __eq__(self, other):
4101
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4102
 
4103
  def __ne__(self, other):
4104
    return not (self == other)
4105
 
4106
class addWarehouse_result:
4107
  """
4108
  Attributes:
4109
   - success
4110
   - cex
4111
  """
4112
 
4113
  thrift_spec = (
4114
    (0, TType.I64, 'success', None, None, ), # 0
4115
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4116
  )
4117
 
4118
  def __init__(self, success=None, cex=None,):
4119
    self.success = success
4120
    self.cex = cex
4121
 
4122
  def read(self, iprot):
4123
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4124
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4125
      return
4126
    iprot.readStructBegin()
4127
    while True:
4128
      (fname, ftype, fid) = iprot.readFieldBegin()
4129
      if ftype == TType.STOP:
4130
        break
4131
      if fid == 0:
4132
        if ftype == TType.I64:
4133
          self.success = iprot.readI64();
4134
        else:
4135
          iprot.skip(ftype)
4136
      elif fid == 1:
4137
        if ftype == TType.STRUCT:
4138
          self.cex = InventoryServiceException()
4139
          self.cex.read(iprot)
4140
        else:
4141
          iprot.skip(ftype)
4142
      else:
4143
        iprot.skip(ftype)
4144
      iprot.readFieldEnd()
4145
    iprot.readStructEnd()
4146
 
4147
  def write(self, oprot):
4148
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4149
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4150
      return
4151
    oprot.writeStructBegin('addWarehouse_result')
4152
    if self.success is not None:
4153
      oprot.writeFieldBegin('success', TType.I64, 0)
4154
      oprot.writeI64(self.success)
4155
      oprot.writeFieldEnd()
4156
    if self.cex is not None:
4157
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4158
      self.cex.write(oprot)
4159
      oprot.writeFieldEnd()
4160
    oprot.writeFieldStop()
4161
    oprot.writeStructEnd()
4162
 
4163
  def validate(self):
4164
    return
4165
 
4166
 
4167
  def __repr__(self):
4168
    L = ['%s=%r' % (key, value)
4169
      for key, value in self.__dict__.iteritems()]
4170
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4171
 
4172
  def __eq__(self, other):
4173
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4174
 
4175
  def __ne__(self, other):
4176
    return not (self == other)
4177
 
4178
class addVendor_args:
4179
  """
4180
  Attributes:
4181
   - vendor
4182
  """
4183
 
4184
  thrift_spec = (
4185
    None, # 0
4186
    (1, TType.STRUCT, 'vendor', (Vendor, Vendor.thrift_spec), None, ), # 1
4187
  )
4188
 
4189
  def __init__(self, vendor=None,):
4190
    self.vendor = vendor
4191
 
4192
  def read(self, iprot):
4193
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4194
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4195
      return
4196
    iprot.readStructBegin()
4197
    while True:
4198
      (fname, ftype, fid) = iprot.readFieldBegin()
4199
      if ftype == TType.STOP:
4200
        break
4201
      if fid == 1:
4202
        if ftype == TType.STRUCT:
4203
          self.vendor = Vendor()
4204
          self.vendor.read(iprot)
4205
        else:
4206
          iprot.skip(ftype)
4207
      else:
4208
        iprot.skip(ftype)
4209
      iprot.readFieldEnd()
4210
    iprot.readStructEnd()
4211
 
4212
  def write(self, oprot):
4213
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4214
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4215
      return
4216
    oprot.writeStructBegin('addVendor_args')
4217
    if self.vendor is not None:
4218
      oprot.writeFieldBegin('vendor', TType.STRUCT, 1)
4219
      self.vendor.write(oprot)
4220
      oprot.writeFieldEnd()
4221
    oprot.writeFieldStop()
4222
    oprot.writeStructEnd()
4223
 
4224
  def validate(self):
4225
    return
4226
 
4227
 
4228
  def __repr__(self):
4229
    L = ['%s=%r' % (key, value)
4230
      for key, value in self.__dict__.iteritems()]
4231
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4232
 
4233
  def __eq__(self, other):
4234
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4235
 
4236
  def __ne__(self, other):
4237
    return not (self == other)
4238
 
4239
class addVendor_result:
4240
  """
4241
  Attributes:
4242
   - success
4243
   - cex
4244
  """
4245
 
4246
  thrift_spec = (
4247
    (0, TType.I64, 'success', None, None, ), # 0
4248
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4249
  )
4250
 
4251
  def __init__(self, success=None, cex=None,):
4252
    self.success = success
4253
    self.cex = cex
4254
 
4255
  def read(self, iprot):
4256
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4257
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4258
      return
4259
    iprot.readStructBegin()
4260
    while True:
4261
      (fname, ftype, fid) = iprot.readFieldBegin()
4262
      if ftype == TType.STOP:
4263
        break
4264
      if fid == 0:
4265
        if ftype == TType.I64:
4266
          self.success = iprot.readI64();
4267
        else:
4268
          iprot.skip(ftype)
4269
      elif fid == 1:
4270
        if ftype == TType.STRUCT:
4271
          self.cex = InventoryServiceException()
4272
          self.cex.read(iprot)
4273
        else:
4274
          iprot.skip(ftype)
4275
      else:
4276
        iprot.skip(ftype)
4277
      iprot.readFieldEnd()
4278
    iprot.readStructEnd()
4279
 
4280
  def write(self, oprot):
4281
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4282
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4283
      return
4284
    oprot.writeStructBegin('addVendor_result')
4285
    if self.success is not None:
4286
      oprot.writeFieldBegin('success', TType.I64, 0)
4287
      oprot.writeI64(self.success)
4288
      oprot.writeFieldEnd()
4289
    if self.cex is not None:
4290
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4291
      self.cex.write(oprot)
4292
      oprot.writeFieldEnd()
4293
    oprot.writeFieldStop()
4294
    oprot.writeStructEnd()
4295
 
4296
  def validate(self):
4297
    return
4298
 
4299
 
4300
  def __repr__(self):
4301
    L = ['%s=%r' % (key, value)
4302
      for key, value in self.__dict__.iteritems()]
4303
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4304
 
4305
  def __eq__(self, other):
4306
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4307
 
4308
  def __ne__(self, other):
4309
    return not (self == other)
4310
 
4311
class updateInventoryHistory_args:
4312
  """
4313
  Attributes:
4314
   - warehouse_id
4315
   - timestamp
4316
   - availability
4317
  """
4318
 
4319
  thrift_spec = (
4320
    None, # 0
4321
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4322
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4323
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4324
  )
4325
 
4326
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4327
    self.warehouse_id = warehouse_id
4328
    self.timestamp = timestamp
4329
    self.availability = availability
4330
 
4331
  def read(self, iprot):
4332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4334
      return
4335
    iprot.readStructBegin()
4336
    while True:
4337
      (fname, ftype, fid) = iprot.readFieldBegin()
4338
      if ftype == TType.STOP:
4339
        break
4340
      if fid == 1:
4341
        if ftype == TType.I64:
4342
          self.warehouse_id = iprot.readI64();
4343
        else:
4344
          iprot.skip(ftype)
4345
      elif fid == 2:
4346
        if ftype == TType.STRING:
4347
          self.timestamp = iprot.readString();
4348
        else:
4349
          iprot.skip(ftype)
4350
      elif fid == 3:
4351
        if ftype == TType.MAP:
4352
          self.availability = {}
8182 amar.kumar 4353
          (_ktype28, _vtype29, _size27 ) = iprot.readMapBegin() 
4354
          for _i31 in xrange(_size27):
4355
            _key32 = iprot.readString();
4356
            _val33 = iprot.readI64();
4357
            self.availability[_key32] = _val33
5944 mandeep.dh 4358
          iprot.readMapEnd()
4359
        else:
4360
          iprot.skip(ftype)
4361
      else:
4362
        iprot.skip(ftype)
4363
      iprot.readFieldEnd()
4364
    iprot.readStructEnd()
4365
 
4366
  def write(self, oprot):
4367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4369
      return
4370
    oprot.writeStructBegin('updateInventoryHistory_args')
4371
    if self.warehouse_id is not None:
4372
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4373
      oprot.writeI64(self.warehouse_id)
4374
      oprot.writeFieldEnd()
4375
    if self.timestamp is not None:
4376
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4377
      oprot.writeString(self.timestamp)
4378
      oprot.writeFieldEnd()
4379
    if self.availability is not None:
4380
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4381
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4382
      for kiter34,viter35 in self.availability.items():
4383
        oprot.writeString(kiter34)
4384
        oprot.writeI64(viter35)
5944 mandeep.dh 4385
      oprot.writeMapEnd()
4386
      oprot.writeFieldEnd()
4387
    oprot.writeFieldStop()
4388
    oprot.writeStructEnd()
4389
 
4390
  def validate(self):
4391
    return
4392
 
4393
 
4394
  def __repr__(self):
4395
    L = ['%s=%r' % (key, value)
4396
      for key, value in self.__dict__.iteritems()]
4397
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4398
 
4399
  def __eq__(self, other):
4400
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4401
 
4402
  def __ne__(self, other):
4403
    return not (self == other)
4404
 
4405
class updateInventoryHistory_result:
4406
  """
4407
  Attributes:
4408
   - cex
4409
  """
4410
 
4411
  thrift_spec = (
4412
    None, # 0
4413
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4414
  )
4415
 
4416
  def __init__(self, cex=None,):
4417
    self.cex = cex
4418
 
4419
  def read(self, iprot):
4420
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4421
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4422
      return
4423
    iprot.readStructBegin()
4424
    while True:
4425
      (fname, ftype, fid) = iprot.readFieldBegin()
4426
      if ftype == TType.STOP:
4427
        break
4428
      if fid == 1:
4429
        if ftype == TType.STRUCT:
4430
          self.cex = InventoryServiceException()
4431
          self.cex.read(iprot)
4432
        else:
4433
          iprot.skip(ftype)
4434
      else:
4435
        iprot.skip(ftype)
4436
      iprot.readFieldEnd()
4437
    iprot.readStructEnd()
4438
 
4439
  def write(self, oprot):
4440
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4441
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4442
      return
4443
    oprot.writeStructBegin('updateInventoryHistory_result')
4444
    if self.cex is not None:
4445
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4446
      self.cex.write(oprot)
4447
      oprot.writeFieldEnd()
4448
    oprot.writeFieldStop()
4449
    oprot.writeStructEnd()
4450
 
4451
  def validate(self):
4452
    return
4453
 
4454
 
4455
  def __repr__(self):
4456
    L = ['%s=%r' % (key, value)
4457
      for key, value in self.__dict__.iteritems()]
4458
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4459
 
4460
  def __eq__(self, other):
4461
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4462
 
4463
  def __ne__(self, other):
4464
    return not (self == other)
4465
 
4466
class updateInventory_args:
4467
  """
4468
  Attributes:
4469
   - warehouse_id
4470
   - timestamp
4471
   - availability
4472
  """
4473
 
4474
  thrift_spec = (
4475
    None, # 0
4476
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4477
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4478
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4479
  )
4480
 
4481
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4482
    self.warehouse_id = warehouse_id
4483
    self.timestamp = timestamp
4484
    self.availability = availability
4485
 
4486
  def read(self, iprot):
4487
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4488
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4489
      return
4490
    iprot.readStructBegin()
4491
    while True:
4492
      (fname, ftype, fid) = iprot.readFieldBegin()
4493
      if ftype == TType.STOP:
4494
        break
4495
      if fid == 1:
4496
        if ftype == TType.I64:
4497
          self.warehouse_id = iprot.readI64();
4498
        else:
4499
          iprot.skip(ftype)
4500
      elif fid == 2:
4501
        if ftype == TType.STRING:
4502
          self.timestamp = iprot.readString();
4503
        else:
4504
          iprot.skip(ftype)
4505
      elif fid == 3:
4506
        if ftype == TType.MAP:
4507
          self.availability = {}
8182 amar.kumar 4508
          (_ktype37, _vtype38, _size36 ) = iprot.readMapBegin() 
4509
          for _i40 in xrange(_size36):
4510
            _key41 = iprot.readString();
4511
            _val42 = iprot.readI64();
4512
            self.availability[_key41] = _val42
5944 mandeep.dh 4513
          iprot.readMapEnd()
4514
        else:
4515
          iprot.skip(ftype)
4516
      else:
4517
        iprot.skip(ftype)
4518
      iprot.readFieldEnd()
4519
    iprot.readStructEnd()
4520
 
4521
  def write(self, oprot):
4522
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4523
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4524
      return
4525
    oprot.writeStructBegin('updateInventory_args')
4526
    if self.warehouse_id is not None:
4527
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4528
      oprot.writeI64(self.warehouse_id)
4529
      oprot.writeFieldEnd()
4530
    if self.timestamp is not None:
4531
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4532
      oprot.writeString(self.timestamp)
4533
      oprot.writeFieldEnd()
4534
    if self.availability is not None:
4535
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4536
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4537
      for kiter43,viter44 in self.availability.items():
4538
        oprot.writeString(kiter43)
4539
        oprot.writeI64(viter44)
5944 mandeep.dh 4540
      oprot.writeMapEnd()
4541
      oprot.writeFieldEnd()
4542
    oprot.writeFieldStop()
4543
    oprot.writeStructEnd()
4544
 
4545
  def validate(self):
4546
    return
4547
 
4548
 
4549
  def __repr__(self):
4550
    L = ['%s=%r' % (key, value)
4551
      for key, value in self.__dict__.iteritems()]
4552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4553
 
4554
  def __eq__(self, other):
4555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4556
 
4557
  def __ne__(self, other):
4558
    return not (self == other)
4559
 
4560
class updateInventory_result:
4561
  """
4562
  Attributes:
4563
   - cex
4564
  """
4565
 
4566
  thrift_spec = (
4567
    None, # 0
4568
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4569
  )
4570
 
4571
  def __init__(self, cex=None,):
4572
    self.cex = cex
4573
 
4574
  def read(self, iprot):
4575
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4576
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4577
      return
4578
    iprot.readStructBegin()
4579
    while True:
4580
      (fname, ftype, fid) = iprot.readFieldBegin()
4581
      if ftype == TType.STOP:
4582
        break
4583
      if fid == 1:
4584
        if ftype == TType.STRUCT:
4585
          self.cex = InventoryServiceException()
4586
          self.cex.read(iprot)
4587
        else:
4588
          iprot.skip(ftype)
4589
      else:
4590
        iprot.skip(ftype)
4591
      iprot.readFieldEnd()
4592
    iprot.readStructEnd()
4593
 
4594
  def write(self, oprot):
4595
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4596
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4597
      return
4598
    oprot.writeStructBegin('updateInventory_result')
4599
    if self.cex is not None:
4600
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4601
      self.cex.write(oprot)
4602
      oprot.writeFieldEnd()
4603
    oprot.writeFieldStop()
4604
    oprot.writeStructEnd()
4605
 
4606
  def validate(self):
4607
    return
4608
 
4609
 
4610
  def __repr__(self):
4611
    L = ['%s=%r' % (key, value)
4612
      for key, value in self.__dict__.iteritems()]
4613
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4614
 
4615
  def __eq__(self, other):
4616
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4617
 
4618
  def __ne__(self, other):
4619
    return not (self == other)
4620
 
4621
class addInventory_args:
4622
  """
4623
  Attributes:
4624
   - itemId
4625
   - warehouseId
4626
   - quantity
4627
  """
4628
 
4629
  thrift_spec = (
4630
    None, # 0
4631
    (1, TType.I64, 'itemId', None, None, ), # 1
4632
    (2, TType.I64, 'warehouseId', None, None, ), # 2
4633
    (3, TType.I64, 'quantity', None, None, ), # 3
4634
  )
4635
 
4636
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
4637
    self.itemId = itemId
4638
    self.warehouseId = warehouseId
4639
    self.quantity = quantity
4640
 
4641
  def read(self, iprot):
4642
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4643
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4644
      return
4645
    iprot.readStructBegin()
4646
    while True:
4647
      (fname, ftype, fid) = iprot.readFieldBegin()
4648
      if ftype == TType.STOP:
4649
        break
4650
      if fid == 1:
4651
        if ftype == TType.I64:
4652
          self.itemId = iprot.readI64();
4653
        else:
4654
          iprot.skip(ftype)
4655
      elif fid == 2:
4656
        if ftype == TType.I64:
4657
          self.warehouseId = iprot.readI64();
4658
        else:
4659
          iprot.skip(ftype)
4660
      elif fid == 3:
4661
        if ftype == TType.I64:
4662
          self.quantity = iprot.readI64();
4663
        else:
4664
          iprot.skip(ftype)
4665
      else:
4666
        iprot.skip(ftype)
4667
      iprot.readFieldEnd()
4668
    iprot.readStructEnd()
4669
 
4670
  def write(self, oprot):
4671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4673
      return
4674
    oprot.writeStructBegin('addInventory_args')
4675
    if self.itemId is not None:
4676
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4677
      oprot.writeI64(self.itemId)
4678
      oprot.writeFieldEnd()
4679
    if self.warehouseId is not None:
4680
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
4681
      oprot.writeI64(self.warehouseId)
4682
      oprot.writeFieldEnd()
4683
    if self.quantity is not None:
4684
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4685
      oprot.writeI64(self.quantity)
4686
      oprot.writeFieldEnd()
4687
    oprot.writeFieldStop()
4688
    oprot.writeStructEnd()
4689
 
4690
  def validate(self):
4691
    return
4692
 
4693
 
4694
  def __repr__(self):
4695
    L = ['%s=%r' % (key, value)
4696
      for key, value in self.__dict__.iteritems()]
4697
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4698
 
4699
  def __eq__(self, other):
4700
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4701
 
4702
  def __ne__(self, other):
4703
    return not (self == other)
4704
 
4705
class addInventory_result:
4706
  """
4707
  Attributes:
4708
   - cex
4709
  """
4710
 
4711
  thrift_spec = (
4712
    None, # 0
4713
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4714
  )
4715
 
4716
  def __init__(self, cex=None,):
4717
    self.cex = cex
4718
 
4719
  def read(self, iprot):
4720
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4721
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4722
      return
4723
    iprot.readStructBegin()
4724
    while True:
4725
      (fname, ftype, fid) = iprot.readFieldBegin()
4726
      if ftype == TType.STOP:
4727
        break
4728
      if fid == 1:
4729
        if ftype == TType.STRUCT:
4730
          self.cex = InventoryServiceException()
4731
          self.cex.read(iprot)
4732
        else:
4733
          iprot.skip(ftype)
4734
      else:
4735
        iprot.skip(ftype)
4736
      iprot.readFieldEnd()
4737
    iprot.readStructEnd()
4738
 
4739
  def write(self, oprot):
4740
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4741
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4742
      return
4743
    oprot.writeStructBegin('addInventory_result')
4744
    if self.cex is not None:
4745
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4746
      self.cex.write(oprot)
4747
      oprot.writeFieldEnd()
4748
    oprot.writeFieldStop()
4749
    oprot.writeStructEnd()
4750
 
4751
  def validate(self):
4752
    return
4753
 
4754
 
4755
  def __repr__(self):
4756
    L = ['%s=%r' % (key, value)
4757
      for key, value in self.__dict__.iteritems()]
4758
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4759
 
4760
  def __eq__(self, other):
4761
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4762
 
4763
  def __ne__(self, other):
4764
    return not (self == other)
4765
 
4766
class retireWarehouse_args:
4767
  """
4768
  Attributes:
4769
   - warehouse_id
4770
  """
4771
 
4772
  thrift_spec = (
4773
    None, # 0
4774
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4775
  )
4776
 
4777
  def __init__(self, warehouse_id=None,):
4778
    self.warehouse_id = warehouse_id
4779
 
4780
  def read(self, iprot):
4781
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4782
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4783
      return
4784
    iprot.readStructBegin()
4785
    while True:
4786
      (fname, ftype, fid) = iprot.readFieldBegin()
4787
      if ftype == TType.STOP:
4788
        break
4789
      if fid == 1:
4790
        if ftype == TType.I64:
4791
          self.warehouse_id = iprot.readI64();
4792
        else:
4793
          iprot.skip(ftype)
4794
      else:
4795
        iprot.skip(ftype)
4796
      iprot.readFieldEnd()
4797
    iprot.readStructEnd()
4798
 
4799
  def write(self, oprot):
4800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4802
      return
4803
    oprot.writeStructBegin('retireWarehouse_args')
4804
    if self.warehouse_id is not None:
4805
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4806
      oprot.writeI64(self.warehouse_id)
4807
      oprot.writeFieldEnd()
4808
    oprot.writeFieldStop()
4809
    oprot.writeStructEnd()
4810
 
4811
  def validate(self):
4812
    return
4813
 
4814
 
4815
  def __repr__(self):
4816
    L = ['%s=%r' % (key, value)
4817
      for key, value in self.__dict__.iteritems()]
4818
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4819
 
4820
  def __eq__(self, other):
4821
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4822
 
4823
  def __ne__(self, other):
4824
    return not (self == other)
4825
 
4826
class retireWarehouse_result:
4827
  """
4828
  Attributes:
4829
   - cex
4830
  """
4831
 
4832
  thrift_spec = (
4833
    None, # 0
4834
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4835
  )
4836
 
4837
  def __init__(self, cex=None,):
4838
    self.cex = cex
4839
 
4840
  def read(self, iprot):
4841
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4842
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4843
      return
4844
    iprot.readStructBegin()
4845
    while True:
4846
      (fname, ftype, fid) = iprot.readFieldBegin()
4847
      if ftype == TType.STOP:
4848
        break
4849
      if fid == 1:
4850
        if ftype == TType.STRUCT:
4851
          self.cex = InventoryServiceException()
4852
          self.cex.read(iprot)
4853
        else:
4854
          iprot.skip(ftype)
4855
      else:
4856
        iprot.skip(ftype)
4857
      iprot.readFieldEnd()
4858
    iprot.readStructEnd()
4859
 
4860
  def write(self, oprot):
4861
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4862
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4863
      return
4864
    oprot.writeStructBegin('retireWarehouse_result')
4865
    if self.cex is not None:
4866
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4867
      self.cex.write(oprot)
4868
      oprot.writeFieldEnd()
4869
    oprot.writeFieldStop()
4870
    oprot.writeStructEnd()
4871
 
4872
  def validate(self):
4873
    return
4874
 
4875
 
4876
  def __repr__(self):
4877
    L = ['%s=%r' % (key, value)
4878
      for key, value in self.__dict__.iteritems()]
4879
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4880
 
4881
  def __eq__(self, other):
4882
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4883
 
4884
  def __ne__(self, other):
4885
    return not (self == other)
4886
 
4887
class getItemInventoryByItemId_args:
4888
  """
4889
  Attributes:
4890
   - item_id
4891
  """
4892
 
4893
  thrift_spec = (
4894
    None, # 0
4895
    (1, TType.I64, 'item_id', None, None, ), # 1
4896
  )
4897
 
4898
  def __init__(self, item_id=None,):
4899
    self.item_id = item_id
4900
 
4901
  def read(self, iprot):
4902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4904
      return
4905
    iprot.readStructBegin()
4906
    while True:
4907
      (fname, ftype, fid) = iprot.readFieldBegin()
4908
      if ftype == TType.STOP:
4909
        break
4910
      if fid == 1:
4911
        if ftype == TType.I64:
4912
          self.item_id = iprot.readI64();
4913
        else:
4914
          iprot.skip(ftype)
4915
      else:
4916
        iprot.skip(ftype)
4917
      iprot.readFieldEnd()
4918
    iprot.readStructEnd()
4919
 
4920
  def write(self, oprot):
4921
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4922
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4923
      return
4924
    oprot.writeStructBegin('getItemInventoryByItemId_args')
4925
    if self.item_id is not None:
4926
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4927
      oprot.writeI64(self.item_id)
4928
      oprot.writeFieldEnd()
4929
    oprot.writeFieldStop()
4930
    oprot.writeStructEnd()
4931
 
4932
  def validate(self):
4933
    return
4934
 
4935
 
4936
  def __repr__(self):
4937
    L = ['%s=%r' % (key, value)
4938
      for key, value in self.__dict__.iteritems()]
4939
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4940
 
4941
  def __eq__(self, other):
4942
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4943
 
4944
  def __ne__(self, other):
4945
    return not (self == other)
4946
 
4947
class getItemInventoryByItemId_result:
4948
  """
4949
  Attributes:
4950
   - success
4951
   - cex
4952
  """
4953
 
4954
  thrift_spec = (
4955
    (0, TType.STRUCT, 'success', (ItemInventory, ItemInventory.thrift_spec), None, ), # 0
4956
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4957
  )
4958
 
4959
  def __init__(self, success=None, cex=None,):
4960
    self.success = success
4961
    self.cex = cex
4962
 
4963
  def read(self, iprot):
4964
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4965
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4966
      return
4967
    iprot.readStructBegin()
4968
    while True:
4969
      (fname, ftype, fid) = iprot.readFieldBegin()
4970
      if ftype == TType.STOP:
4971
        break
4972
      if fid == 0:
4973
        if ftype == TType.STRUCT:
4974
          self.success = ItemInventory()
4975
          self.success.read(iprot)
4976
        else:
4977
          iprot.skip(ftype)
4978
      elif fid == 1:
4979
        if ftype == TType.STRUCT:
4980
          self.cex = InventoryServiceException()
4981
          self.cex.read(iprot)
4982
        else:
4983
          iprot.skip(ftype)
4984
      else:
4985
        iprot.skip(ftype)
4986
      iprot.readFieldEnd()
4987
    iprot.readStructEnd()
4988
 
4989
  def write(self, oprot):
4990
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4991
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4992
      return
4993
    oprot.writeStructBegin('getItemInventoryByItemId_result')
4994
    if self.success is not None:
4995
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4996
      self.success.write(oprot)
4997
      oprot.writeFieldEnd()
4998
    if self.cex is not None:
4999
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5000
      self.cex.write(oprot)
5001
      oprot.writeFieldEnd()
5002
    oprot.writeFieldStop()
5003
    oprot.writeStructEnd()
5004
 
5005
  def validate(self):
5006
    return
5007
 
5008
 
5009
  def __repr__(self):
5010
    L = ['%s=%r' % (key, value)
5011
      for key, value in self.__dict__.iteritems()]
5012
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5013
 
5014
  def __eq__(self, other):
5015
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5016
 
5017
  def __ne__(self, other):
5018
    return not (self == other)
5019
 
5020
class getItemAvailibilityAtWarehouse_args:
5021
  """
5022
  Attributes:
5023
   - warehouse_id
5024
   - item_id
5025
  """
5026
 
5027
  thrift_spec = (
5028
    None, # 0
5029
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5030
    (2, TType.I64, 'item_id', None, None, ), # 2
5031
  )
5032
 
5033
  def __init__(self, warehouse_id=None, item_id=None,):
5034
    self.warehouse_id = warehouse_id
5035
    self.item_id = item_id
5036
 
5037
  def read(self, iprot):
5038
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5039
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5040
      return
5041
    iprot.readStructBegin()
5042
    while True:
5043
      (fname, ftype, fid) = iprot.readFieldBegin()
5044
      if ftype == TType.STOP:
5045
        break
5046
      if fid == 1:
5047
        if ftype == TType.I64:
5048
          self.warehouse_id = iprot.readI64();
5049
        else:
5050
          iprot.skip(ftype)
5051
      elif fid == 2:
5052
        if ftype == TType.I64:
5053
          self.item_id = iprot.readI64();
5054
        else:
5055
          iprot.skip(ftype)
5056
      else:
5057
        iprot.skip(ftype)
5058
      iprot.readFieldEnd()
5059
    iprot.readStructEnd()
5060
 
5061
  def write(self, oprot):
5062
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5063
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5064
      return
5065
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_args')
5066
    if self.warehouse_id is not None:
5067
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5068
      oprot.writeI64(self.warehouse_id)
5069
      oprot.writeFieldEnd()
5070
    if self.item_id is not None:
5071
      oprot.writeFieldBegin('item_id', TType.I64, 2)
5072
      oprot.writeI64(self.item_id)
5073
      oprot.writeFieldEnd()
5074
    oprot.writeFieldStop()
5075
    oprot.writeStructEnd()
5076
 
5077
  def validate(self):
5078
    return
5079
 
5080
 
5081
  def __repr__(self):
5082
    L = ['%s=%r' % (key, value)
5083
      for key, value in self.__dict__.iteritems()]
5084
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5085
 
5086
  def __eq__(self, other):
5087
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5088
 
5089
  def __ne__(self, other):
5090
    return not (self == other)
5091
 
5092
class getItemAvailibilityAtWarehouse_result:
5093
  """
5094
  Attributes:
5095
   - success
5096
   - cex
5097
  """
5098
 
5099
  thrift_spec = (
5100
    (0, TType.I64, 'success', None, None, ), # 0
5101
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5102
  )
5103
 
5104
  def __init__(self, success=None, cex=None,):
5105
    self.success = success
5106
    self.cex = cex
5107
 
5108
  def read(self, iprot):
5109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5111
      return
5112
    iprot.readStructBegin()
5113
    while True:
5114
      (fname, ftype, fid) = iprot.readFieldBegin()
5115
      if ftype == TType.STOP:
5116
        break
5117
      if fid == 0:
5118
        if ftype == TType.I64:
5119
          self.success = iprot.readI64();
5120
        else:
5121
          iprot.skip(ftype)
5122
      elif fid == 1:
5123
        if ftype == TType.STRUCT:
5124
          self.cex = InventoryServiceException()
5125
          self.cex.read(iprot)
5126
        else:
5127
          iprot.skip(ftype)
5128
      else:
5129
        iprot.skip(ftype)
5130
      iprot.readFieldEnd()
5131
    iprot.readStructEnd()
5132
 
5133
  def write(self, oprot):
5134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5136
      return
5137
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_result')
5138
    if self.success is not None:
5139
      oprot.writeFieldBegin('success', TType.I64, 0)
5140
      oprot.writeI64(self.success)
5141
      oprot.writeFieldEnd()
5142
    if self.cex is not None:
5143
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5144
      self.cex.write(oprot)
5145
      oprot.writeFieldEnd()
5146
    oprot.writeFieldStop()
5147
    oprot.writeStructEnd()
5148
 
5149
  def validate(self):
5150
    return
5151
 
5152
 
5153
  def __repr__(self):
5154
    L = ['%s=%r' % (key, value)
5155
      for key, value in self.__dict__.iteritems()]
5156
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5157
 
5158
  def __eq__(self, other):
5159
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5160
 
5161
  def __ne__(self, other):
5162
    return not (self == other)
5163
 
5164
class getItemAvailabilityAtLocation_args:
5165
  """
5166
  Attributes:
5167
   - itemId
5978 rajveer 5168
   - sourceId
5944 mandeep.dh 5169
  """
5170
 
5171
  thrift_spec = (
5172
    None, # 0
5173
    (1, TType.I64, 'itemId', None, None, ), # 1
5978 rajveer 5174
    (2, TType.I64, 'sourceId', None, None, ), # 2
5944 mandeep.dh 5175
  )
5176
 
5978 rajveer 5177
  def __init__(self, itemId=None, sourceId=None,):
5944 mandeep.dh 5178
    self.itemId = itemId
5978 rajveer 5179
    self.sourceId = sourceId
5944 mandeep.dh 5180
 
5181
  def read(self, iprot):
5182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5184
      return
5185
    iprot.readStructBegin()
5186
    while True:
5187
      (fname, ftype, fid) = iprot.readFieldBegin()
5188
      if ftype == TType.STOP:
5189
        break
5190
      if fid == 1:
5191
        if ftype == TType.I64:
5192
          self.itemId = iprot.readI64();
5193
        else:
5194
          iprot.skip(ftype)
5978 rajveer 5195
      elif fid == 2:
5196
        if ftype == TType.I64:
5197
          self.sourceId = iprot.readI64();
5198
        else:
5199
          iprot.skip(ftype)
5944 mandeep.dh 5200
      else:
5201
        iprot.skip(ftype)
5202
      iprot.readFieldEnd()
5203
    iprot.readStructEnd()
5204
 
5205
  def write(self, oprot):
5206
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5207
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5208
      return
5209
    oprot.writeStructBegin('getItemAvailabilityAtLocation_args')
5210
    if self.itemId is not None:
5211
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5212
      oprot.writeI64(self.itemId)
5213
      oprot.writeFieldEnd()
5978 rajveer 5214
    if self.sourceId is not None:
5215
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
5216
      oprot.writeI64(self.sourceId)
5217
      oprot.writeFieldEnd()
5944 mandeep.dh 5218
    oprot.writeFieldStop()
5219
    oprot.writeStructEnd()
5220
 
5221
  def validate(self):
5222
    return
5223
 
5224
 
5225
  def __repr__(self):
5226
    L = ['%s=%r' % (key, value)
5227
      for key, value in self.__dict__.iteritems()]
5228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5229
 
5230
  def __eq__(self, other):
5231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5232
 
5233
  def __ne__(self, other):
5234
    return not (self == other)
5235
 
5236
class getItemAvailabilityAtLocation_result:
5237
  """
5238
  Attributes:
5239
   - success
5240
   - isex
5241
  """
5242
 
5243
  thrift_spec = (
5244
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5245
    (1, TType.STRUCT, 'isex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5246
  )
5247
 
5248
  def __init__(self, success=None, isex=None,):
5249
    self.success = success
5250
    self.isex = isex
5251
 
5252
  def read(self, iprot):
5253
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5254
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5255
      return
5256
    iprot.readStructBegin()
5257
    while True:
5258
      (fname, ftype, fid) = iprot.readFieldBegin()
5259
      if ftype == TType.STOP:
5260
        break
5261
      if fid == 0:
5262
        if ftype == TType.LIST:
5263
          self.success = []
8182 amar.kumar 5264
          (_etype48, _size45) = iprot.readListBegin()
5265
          for _i49 in xrange(_size45):
5266
            _elem50 = iprot.readI64();
5267
            self.success.append(_elem50)
5944 mandeep.dh 5268
          iprot.readListEnd()
5269
        else:
5270
          iprot.skip(ftype)
5271
      elif fid == 1:
5272
        if ftype == TType.STRUCT:
5273
          self.isex = InventoryServiceException()
5274
          self.isex.read(iprot)
5275
        else:
5276
          iprot.skip(ftype)
5277
      else:
5278
        iprot.skip(ftype)
5279
      iprot.readFieldEnd()
5280
    iprot.readStructEnd()
5281
 
5282
  def write(self, oprot):
5283
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5284
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5285
      return
5286
    oprot.writeStructBegin('getItemAvailabilityAtLocation_result')
5287
    if self.success is not None:
5288
      oprot.writeFieldBegin('success', TType.LIST, 0)
5289
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5290
      for iter51 in self.success:
5291
        oprot.writeI64(iter51)
5944 mandeep.dh 5292
      oprot.writeListEnd()
5293
      oprot.writeFieldEnd()
5294
    if self.isex is not None:
5295
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
5296
      self.isex.write(oprot)
5297
      oprot.writeFieldEnd()
5298
    oprot.writeFieldStop()
5299
    oprot.writeStructEnd()
5300
 
5301
  def validate(self):
5302
    return
5303
 
5304
 
5305
  def __repr__(self):
5306
    L = ['%s=%r' % (key, value)
5307
      for key, value in self.__dict__.iteritems()]
5308
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5309
 
5310
  def __eq__(self, other):
5311
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5312
 
5313
  def __ne__(self, other):
5314
    return not (self == other)
5315
 
5316
class getAllWarehouses_args:
5317
  """
5318
  Attributes:
5319
   - isActive
5320
  """
5321
 
5322
  thrift_spec = (
5323
    None, # 0
5324
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5325
  )
5326
 
5327
  def __init__(self, isActive=None,):
5328
    self.isActive = isActive
5329
 
5330
  def read(self, iprot):
5331
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5332
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5333
      return
5334
    iprot.readStructBegin()
5335
    while True:
5336
      (fname, ftype, fid) = iprot.readFieldBegin()
5337
      if ftype == TType.STOP:
5338
        break
5339
      if fid == 1:
5340
        if ftype == TType.BOOL:
5341
          self.isActive = iprot.readBool();
5342
        else:
5343
          iprot.skip(ftype)
5344
      else:
5345
        iprot.skip(ftype)
5346
      iprot.readFieldEnd()
5347
    iprot.readStructEnd()
5348
 
5349
  def write(self, oprot):
5350
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5351
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5352
      return
5353
    oprot.writeStructBegin('getAllWarehouses_args')
5354
    if self.isActive is not None:
5355
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5356
      oprot.writeBool(self.isActive)
5357
      oprot.writeFieldEnd()
5358
    oprot.writeFieldStop()
5359
    oprot.writeStructEnd()
5360
 
5361
  def validate(self):
5362
    return
5363
 
5364
 
5365
  def __repr__(self):
5366
    L = ['%s=%r' % (key, value)
5367
      for key, value in self.__dict__.iteritems()]
5368
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5369
 
5370
  def __eq__(self, other):
5371
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5372
 
5373
  def __ne__(self, other):
5374
    return not (self == other)
5375
 
5376
class getAllWarehouses_result:
5377
  """
5378
  Attributes:
5379
   - success
5380
   - cex
5381
  """
5382
 
5383
  thrift_spec = (
5384
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
5385
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5386
  )
5387
 
5388
  def __init__(self, success=None, cex=None,):
5389
    self.success = success
5390
    self.cex = cex
5391
 
5392
  def read(self, iprot):
5393
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5394
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5395
      return
5396
    iprot.readStructBegin()
5397
    while True:
5398
      (fname, ftype, fid) = iprot.readFieldBegin()
5399
      if ftype == TType.STOP:
5400
        break
5401
      if fid == 0:
5402
        if ftype == TType.LIST:
5403
          self.success = []
8182 amar.kumar 5404
          (_etype55, _size52) = iprot.readListBegin()
5405
          for _i56 in xrange(_size52):
5406
            _elem57 = Warehouse()
5407
            _elem57.read(iprot)
5408
            self.success.append(_elem57)
5944 mandeep.dh 5409
          iprot.readListEnd()
5410
        else:
5411
          iprot.skip(ftype)
5412
      elif fid == 1:
5413
        if ftype == TType.STRUCT:
5414
          self.cex = InventoryServiceException()
5415
          self.cex.read(iprot)
5416
        else:
5417
          iprot.skip(ftype)
5418
      else:
5419
        iprot.skip(ftype)
5420
      iprot.readFieldEnd()
5421
    iprot.readStructEnd()
5422
 
5423
  def write(self, oprot):
5424
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5425
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5426
      return
5427
    oprot.writeStructBegin('getAllWarehouses_result')
5428
    if self.success is not None:
5429
      oprot.writeFieldBegin('success', TType.LIST, 0)
5430
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 5431
      for iter58 in self.success:
5432
        iter58.write(oprot)
5944 mandeep.dh 5433
      oprot.writeListEnd()
5434
      oprot.writeFieldEnd()
5435
    if self.cex is not None:
5436
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5437
      self.cex.write(oprot)
5438
      oprot.writeFieldEnd()
5439
    oprot.writeFieldStop()
5440
    oprot.writeStructEnd()
5441
 
5442
  def validate(self):
5443
    return
5444
 
5445
 
5446
  def __repr__(self):
5447
    L = ['%s=%r' % (key, value)
5448
      for key, value in self.__dict__.iteritems()]
5449
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5450
 
5451
  def __eq__(self, other):
5452
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5453
 
5454
  def __ne__(self, other):
5455
    return not (self == other)
5456
 
5457
class getWarehouse_args:
5458
  """
5459
  Attributes:
5460
   - warehouse_id
5461
  """
5462
 
5463
  thrift_spec = (
5464
    None, # 0
5465
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5466
  )
5467
 
5468
  def __init__(self, warehouse_id=None,):
5469
    self.warehouse_id = warehouse_id
5470
 
5471
  def read(self, iprot):
5472
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5473
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5474
      return
5475
    iprot.readStructBegin()
5476
    while True:
5477
      (fname, ftype, fid) = iprot.readFieldBegin()
5478
      if ftype == TType.STOP:
5479
        break
5480
      if fid == 1:
5481
        if ftype == TType.I64:
5482
          self.warehouse_id = iprot.readI64();
5483
        else:
5484
          iprot.skip(ftype)
5485
      else:
5486
        iprot.skip(ftype)
5487
      iprot.readFieldEnd()
5488
    iprot.readStructEnd()
5489
 
5490
  def write(self, oprot):
5491
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5492
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5493
      return
5494
    oprot.writeStructBegin('getWarehouse_args')
5495
    if self.warehouse_id is not None:
5496
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5497
      oprot.writeI64(self.warehouse_id)
5498
      oprot.writeFieldEnd()
5499
    oprot.writeFieldStop()
5500
    oprot.writeStructEnd()
5501
 
5502
  def validate(self):
5503
    return
5504
 
5505
 
5506
  def __repr__(self):
5507
    L = ['%s=%r' % (key, value)
5508
      for key, value in self.__dict__.iteritems()]
5509
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5510
 
5511
  def __eq__(self, other):
5512
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5513
 
5514
  def __ne__(self, other):
5515
    return not (self == other)
5516
 
5517
class getWarehouse_result:
5518
  """
5519
  Attributes:
5520
   - success
5521
   - cex
5522
  """
5523
 
5524
  thrift_spec = (
5525
    (0, TType.STRUCT, 'success', (Warehouse, Warehouse.thrift_spec), None, ), # 0
5526
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5527
  )
5528
 
5529
  def __init__(self, success=None, cex=None,):
5530
    self.success = success
5531
    self.cex = cex
5532
 
5533
  def read(self, iprot):
5534
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5535
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5536
      return
5537
    iprot.readStructBegin()
5538
    while True:
5539
      (fname, ftype, fid) = iprot.readFieldBegin()
5540
      if ftype == TType.STOP:
5541
        break
5542
      if fid == 0:
5543
        if ftype == TType.STRUCT:
5544
          self.success = Warehouse()
5545
          self.success.read(iprot)
5546
        else:
5547
          iprot.skip(ftype)
5548
      elif fid == 1:
5549
        if ftype == TType.STRUCT:
5550
          self.cex = InventoryServiceException()
5551
          self.cex.read(iprot)
5552
        else:
5553
          iprot.skip(ftype)
5554
      else:
5555
        iprot.skip(ftype)
5556
      iprot.readFieldEnd()
5557
    iprot.readStructEnd()
5558
 
5559
  def write(self, oprot):
5560
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5561
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5562
      return
5563
    oprot.writeStructBegin('getWarehouse_result')
5564
    if self.success is not None:
5565
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5566
      self.success.write(oprot)
5567
      oprot.writeFieldEnd()
5568
    if self.cex is not None:
5569
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5570
      self.cex.write(oprot)
5571
      oprot.writeFieldEnd()
5572
    oprot.writeFieldStop()
5573
    oprot.writeStructEnd()
5574
 
5575
  def validate(self):
5576
    return
5577
 
5578
 
5579
  def __repr__(self):
5580
    L = ['%s=%r' % (key, value)
5581
      for key, value in self.__dict__.iteritems()]
5582
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5583
 
5584
  def __eq__(self, other):
5585
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5586
 
5587
  def __ne__(self, other):
5588
    return not (self == other)
5589
 
5590
class getAllItemsForWarehouse_args:
5591
  """
5592
  Attributes:
5593
   - warehouse_id
5594
  """
5595
 
5596
  thrift_spec = (
5597
    None, # 0
5598
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5599
  )
5600
 
5601
  def __init__(self, warehouse_id=None,):
5602
    self.warehouse_id = warehouse_id
5603
 
5604
  def read(self, iprot):
5605
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5606
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5607
      return
5608
    iprot.readStructBegin()
5609
    while True:
5610
      (fname, ftype, fid) = iprot.readFieldBegin()
5611
      if ftype == TType.STOP:
5612
        break
5613
      if fid == 1:
5614
        if ftype == TType.I64:
5615
          self.warehouse_id = iprot.readI64();
5616
        else:
5617
          iprot.skip(ftype)
5618
      else:
5619
        iprot.skip(ftype)
5620
      iprot.readFieldEnd()
5621
    iprot.readStructEnd()
5622
 
5623
  def write(self, oprot):
5624
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5625
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5626
      return
5627
    oprot.writeStructBegin('getAllItemsForWarehouse_args')
5628
    if self.warehouse_id is not None:
5629
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5630
      oprot.writeI64(self.warehouse_id)
5631
      oprot.writeFieldEnd()
5632
    oprot.writeFieldStop()
5633
    oprot.writeStructEnd()
5634
 
5635
  def validate(self):
5636
    return
5637
 
5638
 
5639
  def __repr__(self):
5640
    L = ['%s=%r' % (key, value)
5641
      for key, value in self.__dict__.iteritems()]
5642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5643
 
5644
  def __eq__(self, other):
5645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5646
 
5647
  def __ne__(self, other):
5648
    return not (self == other)
5649
 
5650
class getAllItemsForWarehouse_result:
5651
  """
5652
  Attributes:
5653
   - success
5654
   - cex
5655
  """
5656
 
5657
  thrift_spec = (
5658
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5659
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5660
  )
5661
 
5662
  def __init__(self, success=None, cex=None,):
5663
    self.success = success
5664
    self.cex = cex
5665
 
5666
  def read(self, iprot):
5667
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5668
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5669
      return
5670
    iprot.readStructBegin()
5671
    while True:
5672
      (fname, ftype, fid) = iprot.readFieldBegin()
5673
      if ftype == TType.STOP:
5674
        break
5675
      if fid == 0:
5676
        if ftype == TType.LIST:
5677
          self.success = []
8182 amar.kumar 5678
          (_etype62, _size59) = iprot.readListBegin()
5679
          for _i63 in xrange(_size59):
5680
            _elem64 = iprot.readI64();
5681
            self.success.append(_elem64)
5944 mandeep.dh 5682
          iprot.readListEnd()
5683
        else:
5684
          iprot.skip(ftype)
5685
      elif fid == 1:
5686
        if ftype == TType.STRUCT:
5687
          self.cex = InventoryServiceException()
5688
          self.cex.read(iprot)
5689
        else:
5690
          iprot.skip(ftype)
5691
      else:
5692
        iprot.skip(ftype)
5693
      iprot.readFieldEnd()
5694
    iprot.readStructEnd()
5695
 
5696
  def write(self, oprot):
5697
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5698
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5699
      return
5700
    oprot.writeStructBegin('getAllItemsForWarehouse_result')
5701
    if self.success is not None:
5702
      oprot.writeFieldBegin('success', TType.LIST, 0)
5703
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5704
      for iter65 in self.success:
5705
        oprot.writeI64(iter65)
5944 mandeep.dh 5706
      oprot.writeListEnd()
5707
      oprot.writeFieldEnd()
5708
    if self.cex is not None:
5709
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5710
      self.cex.write(oprot)
5711
      oprot.writeFieldEnd()
5712
    oprot.writeFieldStop()
5713
    oprot.writeStructEnd()
5714
 
5715
  def validate(self):
5716
    return
5717
 
5718
 
5719
  def __repr__(self):
5720
    L = ['%s=%r' % (key, value)
5721
      for key, value in self.__dict__.iteritems()]
5722
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5723
 
5724
  def __eq__(self, other):
5725
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5726
 
5727
  def __ne__(self, other):
5728
    return not (self == other)
5729
 
5966 rajveer 5730
class isOrderBillable_args:
5731
  """
5732
  Attributes:
5733
   - itemId
5734
   - warehouseId
5735
   - sourceId
5736
   - orderId
5737
  """
5738
 
5739
  thrift_spec = (
5740
    None, # 0
5741
    (1, TType.I64, 'itemId', None, None, ), # 1
5742
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5743
    (3, TType.I64, 'sourceId', None, None, ), # 3
5744
    (4, TType.I64, 'orderId', None, None, ), # 4
5745
  )
5746
 
5747
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None,):
5748
    self.itemId = itemId
5749
    self.warehouseId = warehouseId
5750
    self.sourceId = sourceId
5751
    self.orderId = orderId
5752
 
5753
  def read(self, iprot):
5754
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5755
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5756
      return
5757
    iprot.readStructBegin()
5758
    while True:
5759
      (fname, ftype, fid) = iprot.readFieldBegin()
5760
      if ftype == TType.STOP:
5761
        break
5762
      if fid == 1:
5763
        if ftype == TType.I64:
5764
          self.itemId = iprot.readI64();
5765
        else:
5766
          iprot.skip(ftype)
5767
      elif fid == 2:
5768
        if ftype == TType.I64:
5769
          self.warehouseId = iprot.readI64();
5770
        else:
5771
          iprot.skip(ftype)
5772
      elif fid == 3:
5773
        if ftype == TType.I64:
5774
          self.sourceId = iprot.readI64();
5775
        else:
5776
          iprot.skip(ftype)
5777
      elif fid == 4:
5778
        if ftype == TType.I64:
5779
          self.orderId = iprot.readI64();
5780
        else:
5781
          iprot.skip(ftype)
5782
      else:
5783
        iprot.skip(ftype)
5784
      iprot.readFieldEnd()
5785
    iprot.readStructEnd()
5786
 
5787
  def write(self, oprot):
5788
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5789
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5790
      return
5791
    oprot.writeStructBegin('isOrderBillable_args')
5792
    if self.itemId is not None:
5793
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5794
      oprot.writeI64(self.itemId)
5795
      oprot.writeFieldEnd()
5796
    if self.warehouseId is not None:
5797
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5798
      oprot.writeI64(self.warehouseId)
5799
      oprot.writeFieldEnd()
5800
    if self.sourceId is not None:
5801
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
5802
      oprot.writeI64(self.sourceId)
5803
      oprot.writeFieldEnd()
5804
    if self.orderId is not None:
5805
      oprot.writeFieldBegin('orderId', TType.I64, 4)
5806
      oprot.writeI64(self.orderId)
5807
      oprot.writeFieldEnd()
5808
    oprot.writeFieldStop()
5809
    oprot.writeStructEnd()
5810
 
5811
  def validate(self):
5812
    return
5813
 
5814
 
5815
  def __repr__(self):
5816
    L = ['%s=%r' % (key, value)
5817
      for key, value in self.__dict__.iteritems()]
5818
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5819
 
5820
  def __eq__(self, other):
5821
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5822
 
5823
  def __ne__(self, other):
5824
    return not (self == other)
5825
 
5826
class isOrderBillable_result:
5827
  """
5828
  Attributes:
5829
   - success
5830
  """
5831
 
5832
  thrift_spec = (
5833
    (0, TType.BOOL, 'success', None, None, ), # 0
5834
  )
5835
 
5836
  def __init__(self, success=None,):
5837
    self.success = success
5838
 
5839
  def read(self, iprot):
5840
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5841
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5842
      return
5843
    iprot.readStructBegin()
5844
    while True:
5845
      (fname, ftype, fid) = iprot.readFieldBegin()
5846
      if ftype == TType.STOP:
5847
        break
5848
      if fid == 0:
5849
        if ftype == TType.BOOL:
5850
          self.success = iprot.readBool();
5851
        else:
5852
          iprot.skip(ftype)
5853
      else:
5854
        iprot.skip(ftype)
5855
      iprot.readFieldEnd()
5856
    iprot.readStructEnd()
5857
 
5858
  def write(self, oprot):
5859
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5860
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5861
      return
5862
    oprot.writeStructBegin('isOrderBillable_result')
5863
    if self.success is not None:
5864
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5865
      oprot.writeBool(self.success)
5866
      oprot.writeFieldEnd()
5867
    oprot.writeFieldStop()
5868
    oprot.writeStructEnd()
5869
 
5870
  def validate(self):
5871
    return
5872
 
5873
 
5874
  def __repr__(self):
5875
    L = ['%s=%r' % (key, value)
5876
      for key, value in self.__dict__.iteritems()]
5877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5878
 
5879
  def __eq__(self, other):
5880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5881
 
5882
  def __ne__(self, other):
5883
    return not (self == other)
5884
 
5944 mandeep.dh 5885
class reserveItemInWarehouse_args:
5886
  """
5887
  Attributes:
5888
   - itemId
5889
   - warehouseId
5966 rajveer 5890
   - sourceId
5891
   - orderId
5892
   - createdTimestamp
5893
   - promisedShippingTimestamp
5944 mandeep.dh 5894
   - quantity
5895
  """
5896
 
5897
  thrift_spec = (
5898
    None, # 0
5899
    (1, TType.I64, 'itemId', None, None, ), # 1
5900
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 5901
    (3, TType.I64, 'sourceId', None, None, ), # 3
5902
    (4, TType.I64, 'orderId', None, None, ), # 4
5903
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
5904
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
5905
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
5944 mandeep.dh 5906
  )
5907
 
5966 rajveer 5908
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
5944 mandeep.dh 5909
    self.itemId = itemId
5910
    self.warehouseId = warehouseId
5966 rajveer 5911
    self.sourceId = sourceId
5912
    self.orderId = orderId
5913
    self.createdTimestamp = createdTimestamp
5914
    self.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 5915
    self.quantity = quantity
5916
 
5917
  def read(self, iprot):
5918
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5919
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5920
      return
5921
    iprot.readStructBegin()
5922
    while True:
5923
      (fname, ftype, fid) = iprot.readFieldBegin()
5924
      if ftype == TType.STOP:
5925
        break
5926
      if fid == 1:
5927
        if ftype == TType.I64:
5928
          self.itemId = iprot.readI64();
5929
        else:
5930
          iprot.skip(ftype)
5931
      elif fid == 2:
5932
        if ftype == TType.I64:
5933
          self.warehouseId = iprot.readI64();
5934
        else:
5935
          iprot.skip(ftype)
5936
      elif fid == 3:
5966 rajveer 5937
        if ftype == TType.I64:
5938
          self.sourceId = iprot.readI64();
5939
        else:
5940
          iprot.skip(ftype)
5941
      elif fid == 4:
5942
        if ftype == TType.I64:
5943
          self.orderId = iprot.readI64();
5944
        else:
5945
          iprot.skip(ftype)
5946
      elif fid == 5:
5947
        if ftype == TType.I64:
5948
          self.createdTimestamp = iprot.readI64();
5949
        else:
5950
          iprot.skip(ftype)
5951
      elif fid == 6:
5952
        if ftype == TType.I64:
5953
          self.promisedShippingTimestamp = iprot.readI64();
5954
        else:
5955
          iprot.skip(ftype)
5956
      elif fid == 7:
5944 mandeep.dh 5957
        if ftype == TType.DOUBLE:
5958
          self.quantity = iprot.readDouble();
5959
        else:
5960
          iprot.skip(ftype)
5961
      else:
5962
        iprot.skip(ftype)
5963
      iprot.readFieldEnd()
5964
    iprot.readStructEnd()
5965
 
5966
  def write(self, oprot):
5967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5969
      return
5970
    oprot.writeStructBegin('reserveItemInWarehouse_args')
5971
    if self.itemId is not None:
5972
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5973
      oprot.writeI64(self.itemId)
5974
      oprot.writeFieldEnd()
5975
    if self.warehouseId is not None:
5976
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5977
      oprot.writeI64(self.warehouseId)
5978
      oprot.writeFieldEnd()
5966 rajveer 5979
    if self.sourceId is not None:
5980
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
5981
      oprot.writeI64(self.sourceId)
5982
      oprot.writeFieldEnd()
5983
    if self.orderId is not None:
5984
      oprot.writeFieldBegin('orderId', TType.I64, 4)
5985
      oprot.writeI64(self.orderId)
5986
      oprot.writeFieldEnd()
5987
    if self.createdTimestamp is not None:
5988
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
5989
      oprot.writeI64(self.createdTimestamp)
5990
      oprot.writeFieldEnd()
5991
    if self.promisedShippingTimestamp is not None:
5992
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
5993
      oprot.writeI64(self.promisedShippingTimestamp)
5994
      oprot.writeFieldEnd()
5944 mandeep.dh 5995
    if self.quantity is not None:
5966 rajveer 5996
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
5944 mandeep.dh 5997
      oprot.writeDouble(self.quantity)
5998
      oprot.writeFieldEnd()
5999
    oprot.writeFieldStop()
6000
    oprot.writeStructEnd()
6001
 
6002
  def validate(self):
6003
    return
6004
 
6005
 
6006
  def __repr__(self):
6007
    L = ['%s=%r' % (key, value)
6008
      for key, value in self.__dict__.iteritems()]
6009
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6010
 
6011
  def __eq__(self, other):
6012
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6013
 
6014
  def __ne__(self, other):
6015
    return not (self == other)
6016
 
6017
class reserveItemInWarehouse_result:
6018
  """
6019
  Attributes:
6020
   - success
6021
   - cex
6022
  """
6023
 
6024
  thrift_spec = (
6025
    (0, TType.BOOL, 'success', None, None, ), # 0
6026
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6027
  )
6028
 
6029
  def __init__(self, success=None, cex=None,):
6030
    self.success = success
6031
    self.cex = cex
6032
 
6033
  def read(self, iprot):
6034
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6035
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6036
      return
6037
    iprot.readStructBegin()
6038
    while True:
6039
      (fname, ftype, fid) = iprot.readFieldBegin()
6040
      if ftype == TType.STOP:
6041
        break
6042
      if fid == 0:
6043
        if ftype == TType.BOOL:
6044
          self.success = iprot.readBool();
6045
        else:
6046
          iprot.skip(ftype)
6047
      elif fid == 1:
6048
        if ftype == TType.STRUCT:
6049
          self.cex = InventoryServiceException()
6050
          self.cex.read(iprot)
6051
        else:
6052
          iprot.skip(ftype)
6053
      else:
6054
        iprot.skip(ftype)
6055
      iprot.readFieldEnd()
6056
    iprot.readStructEnd()
6057
 
6058
  def write(self, oprot):
6059
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6060
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6061
      return
6062
    oprot.writeStructBegin('reserveItemInWarehouse_result')
6063
    if self.success is not None:
6064
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6065
      oprot.writeBool(self.success)
6066
      oprot.writeFieldEnd()
6067
    if self.cex is not None:
6068
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6069
      self.cex.write(oprot)
6070
      oprot.writeFieldEnd()
6071
    oprot.writeFieldStop()
6072
    oprot.writeStructEnd()
6073
 
6074
  def validate(self):
6075
    return
6076
 
6077
 
6078
  def __repr__(self):
6079
    L = ['%s=%r' % (key, value)
6080
      for key, value in self.__dict__.iteritems()]
6081
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6082
 
6083
  def __eq__(self, other):
6084
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6085
 
6086
  def __ne__(self, other):
6087
    return not (self == other)
6088
 
7968 amar.kumar 6089
class updateReservationForOrder_args:
6090
  """
6091
  Attributes:
6092
   - itemId
6093
   - warehouseId
6094
   - sourceId
6095
   - orderId
6096
   - createdTimestamp
6097
   - promisedShippingTimestamp
6098
   - quantity
6099
  """
6100
 
6101
  thrift_spec = (
6102
    None, # 0
6103
    (1, TType.I64, 'itemId', None, None, ), # 1
6104
    (2, TType.I64, 'warehouseId', None, None, ), # 2
6105
    (3, TType.I64, 'sourceId', None, None, ), # 3
6106
    (4, TType.I64, 'orderId', None, None, ), # 4
6107
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
6108
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
6109
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
6110
  )
6111
 
6112
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
6113
    self.itemId = itemId
6114
    self.warehouseId = warehouseId
6115
    self.sourceId = sourceId
6116
    self.orderId = orderId
6117
    self.createdTimestamp = createdTimestamp
6118
    self.promisedShippingTimestamp = promisedShippingTimestamp
6119
    self.quantity = quantity
6120
 
6121
  def read(self, iprot):
6122
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6123
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6124
      return
6125
    iprot.readStructBegin()
6126
    while True:
6127
      (fname, ftype, fid) = iprot.readFieldBegin()
6128
      if ftype == TType.STOP:
6129
        break
6130
      if fid == 1:
6131
        if ftype == TType.I64:
6132
          self.itemId = iprot.readI64();
6133
        else:
6134
          iprot.skip(ftype)
6135
      elif fid == 2:
6136
        if ftype == TType.I64:
6137
          self.warehouseId = iprot.readI64();
6138
        else:
6139
          iprot.skip(ftype)
6140
      elif fid == 3:
6141
        if ftype == TType.I64:
6142
          self.sourceId = iprot.readI64();
6143
        else:
6144
          iprot.skip(ftype)
6145
      elif fid == 4:
6146
        if ftype == TType.I64:
6147
          self.orderId = iprot.readI64();
6148
        else:
6149
          iprot.skip(ftype)
6150
      elif fid == 5:
6151
        if ftype == TType.I64:
6152
          self.createdTimestamp = iprot.readI64();
6153
        else:
6154
          iprot.skip(ftype)
6155
      elif fid == 6:
6156
        if ftype == TType.I64:
6157
          self.promisedShippingTimestamp = iprot.readI64();
6158
        else:
6159
          iprot.skip(ftype)
6160
      elif fid == 7:
6161
        if ftype == TType.DOUBLE:
6162
          self.quantity = iprot.readDouble();
6163
        else:
6164
          iprot.skip(ftype)
6165
      else:
6166
        iprot.skip(ftype)
6167
      iprot.readFieldEnd()
6168
    iprot.readStructEnd()
6169
 
6170
  def write(self, oprot):
6171
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6172
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6173
      return
6174
    oprot.writeStructBegin('updateReservationForOrder_args')
6175
    if self.itemId is not None:
6176
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6177
      oprot.writeI64(self.itemId)
6178
      oprot.writeFieldEnd()
6179
    if self.warehouseId is not None:
6180
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6181
      oprot.writeI64(self.warehouseId)
6182
      oprot.writeFieldEnd()
6183
    if self.sourceId is not None:
6184
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6185
      oprot.writeI64(self.sourceId)
6186
      oprot.writeFieldEnd()
6187
    if self.orderId is not None:
6188
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6189
      oprot.writeI64(self.orderId)
6190
      oprot.writeFieldEnd()
6191
    if self.createdTimestamp is not None:
6192
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
6193
      oprot.writeI64(self.createdTimestamp)
6194
      oprot.writeFieldEnd()
6195
    if self.promisedShippingTimestamp is not None:
6196
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
6197
      oprot.writeI64(self.promisedShippingTimestamp)
6198
      oprot.writeFieldEnd()
6199
    if self.quantity is not None:
6200
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
6201
      oprot.writeDouble(self.quantity)
6202
      oprot.writeFieldEnd()
6203
    oprot.writeFieldStop()
6204
    oprot.writeStructEnd()
6205
 
6206
  def validate(self):
6207
    return
6208
 
6209
 
6210
  def __repr__(self):
6211
    L = ['%s=%r' % (key, value)
6212
      for key, value in self.__dict__.iteritems()]
6213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6214
 
6215
  def __eq__(self, other):
6216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6217
 
6218
  def __ne__(self, other):
6219
    return not (self == other)
6220
 
6221
class updateReservationForOrder_result:
6222
  """
6223
  Attributes:
6224
   - success
6225
   - cex
6226
  """
6227
 
6228
  thrift_spec = (
6229
    (0, TType.BOOL, 'success', None, None, ), # 0
6230
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6231
  )
6232
 
6233
  def __init__(self, success=None, cex=None,):
6234
    self.success = success
6235
    self.cex = cex
6236
 
6237
  def read(self, iprot):
6238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6240
      return
6241
    iprot.readStructBegin()
6242
    while True:
6243
      (fname, ftype, fid) = iprot.readFieldBegin()
6244
      if ftype == TType.STOP:
6245
        break
6246
      if fid == 0:
6247
        if ftype == TType.BOOL:
6248
          self.success = iprot.readBool();
6249
        else:
6250
          iprot.skip(ftype)
6251
      elif fid == 1:
6252
        if ftype == TType.STRUCT:
6253
          self.cex = InventoryServiceException()
6254
          self.cex.read(iprot)
6255
        else:
6256
          iprot.skip(ftype)
6257
      else:
6258
        iprot.skip(ftype)
6259
      iprot.readFieldEnd()
6260
    iprot.readStructEnd()
6261
 
6262
  def write(self, oprot):
6263
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6264
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6265
      return
6266
    oprot.writeStructBegin('updateReservationForOrder_result')
6267
    if self.success is not None:
6268
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6269
      oprot.writeBool(self.success)
6270
      oprot.writeFieldEnd()
6271
    if self.cex is not None:
6272
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6273
      self.cex.write(oprot)
6274
      oprot.writeFieldEnd()
6275
    oprot.writeFieldStop()
6276
    oprot.writeStructEnd()
6277
 
6278
  def validate(self):
6279
    return
6280
 
6281
 
6282
  def __repr__(self):
6283
    L = ['%s=%r' % (key, value)
6284
      for key, value in self.__dict__.iteritems()]
6285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6286
 
6287
  def __eq__(self, other):
6288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6289
 
6290
  def __ne__(self, other):
6291
    return not (self == other)
6292
 
5944 mandeep.dh 6293
class reduceReservationCount_args:
6294
  """
6295
  Attributes:
6296
   - itemId
6297
   - warehouseId
5966 rajveer 6298
   - sourceId
6299
   - orderId
5944 mandeep.dh 6300
   - quantity
6301
  """
6302
 
6303
  thrift_spec = (
6304
    None, # 0
6305
    (1, TType.I64, 'itemId', None, None, ), # 1
6306
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 6307
    (3, TType.I64, 'sourceId', None, None, ), # 3
6308
    (4, TType.I64, 'orderId', None, None, ), # 4
6309
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
5944 mandeep.dh 6310
  )
6311
 
5966 rajveer 6312
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, quantity=None,):
5944 mandeep.dh 6313
    self.itemId = itemId
6314
    self.warehouseId = warehouseId
5966 rajveer 6315
    self.sourceId = sourceId
6316
    self.orderId = orderId
5944 mandeep.dh 6317
    self.quantity = quantity
6318
 
6319
  def read(self, iprot):
6320
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6321
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6322
      return
6323
    iprot.readStructBegin()
6324
    while True:
6325
      (fname, ftype, fid) = iprot.readFieldBegin()
6326
      if ftype == TType.STOP:
6327
        break
6328
      if fid == 1:
6329
        if ftype == TType.I64:
6330
          self.itemId = iprot.readI64();
6331
        else:
6332
          iprot.skip(ftype)
6333
      elif fid == 2:
6334
        if ftype == TType.I64:
6335
          self.warehouseId = iprot.readI64();
6336
        else:
6337
          iprot.skip(ftype)
6338
      elif fid == 3:
5966 rajveer 6339
        if ftype == TType.I64:
6340
          self.sourceId = iprot.readI64();
6341
        else:
6342
          iprot.skip(ftype)
6343
      elif fid == 4:
6344
        if ftype == TType.I64:
6345
          self.orderId = iprot.readI64();
6346
        else:
6347
          iprot.skip(ftype)
6348
      elif fid == 5:
5944 mandeep.dh 6349
        if ftype == TType.DOUBLE:
6350
          self.quantity = iprot.readDouble();
6351
        else:
6352
          iprot.skip(ftype)
6353
      else:
6354
        iprot.skip(ftype)
6355
      iprot.readFieldEnd()
6356
    iprot.readStructEnd()
6357
 
6358
  def write(self, oprot):
6359
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6360
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6361
      return
6362
    oprot.writeStructBegin('reduceReservationCount_args')
6363
    if self.itemId is not None:
6364
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6365
      oprot.writeI64(self.itemId)
6366
      oprot.writeFieldEnd()
6367
    if self.warehouseId is not None:
6368
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6369
      oprot.writeI64(self.warehouseId)
6370
      oprot.writeFieldEnd()
5966 rajveer 6371
    if self.sourceId is not None:
6372
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6373
      oprot.writeI64(self.sourceId)
6374
      oprot.writeFieldEnd()
6375
    if self.orderId is not None:
6376
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6377
      oprot.writeI64(self.orderId)
6378
      oprot.writeFieldEnd()
5944 mandeep.dh 6379
    if self.quantity is not None:
5966 rajveer 6380
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
5944 mandeep.dh 6381
      oprot.writeDouble(self.quantity)
6382
      oprot.writeFieldEnd()
6383
    oprot.writeFieldStop()
6384
    oprot.writeStructEnd()
6385
 
6386
  def validate(self):
6387
    return
6388
 
6389
 
6390
  def __repr__(self):
6391
    L = ['%s=%r' % (key, value)
6392
      for key, value in self.__dict__.iteritems()]
6393
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6394
 
6395
  def __eq__(self, other):
6396
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6397
 
6398
  def __ne__(self, other):
6399
    return not (self == other)
6400
 
6401
class reduceReservationCount_result:
6402
  """
6403
  Attributes:
6404
   - success
6405
   - cex
6406
  """
6407
 
6408
  thrift_spec = (
6409
    (0, TType.BOOL, 'success', None, None, ), # 0
6410
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6411
  )
6412
 
6413
  def __init__(self, success=None, cex=None,):
6414
    self.success = success
6415
    self.cex = cex
6416
 
6417
  def read(self, iprot):
6418
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6419
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6420
      return
6421
    iprot.readStructBegin()
6422
    while True:
6423
      (fname, ftype, fid) = iprot.readFieldBegin()
6424
      if ftype == TType.STOP:
6425
        break
6426
      if fid == 0:
6427
        if ftype == TType.BOOL:
6428
          self.success = iprot.readBool();
6429
        else:
6430
          iprot.skip(ftype)
6431
      elif fid == 1:
6432
        if ftype == TType.STRUCT:
6433
          self.cex = InventoryServiceException()
6434
          self.cex.read(iprot)
6435
        else:
6436
          iprot.skip(ftype)
6437
      else:
6438
        iprot.skip(ftype)
6439
      iprot.readFieldEnd()
6440
    iprot.readStructEnd()
6441
 
6442
  def write(self, oprot):
6443
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6444
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6445
      return
6446
    oprot.writeStructBegin('reduceReservationCount_result')
6447
    if self.success is not None:
6448
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6449
      oprot.writeBool(self.success)
6450
      oprot.writeFieldEnd()
6451
    if self.cex is not None:
6452
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6453
      self.cex.write(oprot)
6454
      oprot.writeFieldEnd()
6455
    oprot.writeFieldStop()
6456
    oprot.writeStructEnd()
6457
 
6458
  def validate(self):
6459
    return
6460
 
6461
 
6462
  def __repr__(self):
6463
    L = ['%s=%r' % (key, value)
6464
      for key, value in self.__dict__.iteritems()]
6465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6466
 
6467
  def __eq__(self, other):
6468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6469
 
6470
  def __ne__(self, other):
6471
    return not (self == other)
6472
 
6473
class getItemPricing_args:
6474
  """
6475
  Attributes:
6476
   - itemId
6477
   - vendorId
6478
  """
6479
 
6480
  thrift_spec = (
6481
    None, # 0
6482
    (1, TType.I64, 'itemId', None, None, ), # 1
6483
    (2, TType.I64, 'vendorId', None, None, ), # 2
6484
  )
6485
 
6486
  def __init__(self, itemId=None, vendorId=None,):
6487
    self.itemId = itemId
6488
    self.vendorId = vendorId
6489
 
6490
  def read(self, iprot):
6491
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6492
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6493
      return
6494
    iprot.readStructBegin()
6495
    while True:
6496
      (fname, ftype, fid) = iprot.readFieldBegin()
6497
      if ftype == TType.STOP:
6498
        break
6499
      if fid == 1:
6500
        if ftype == TType.I64:
6501
          self.itemId = iprot.readI64();
6502
        else:
6503
          iprot.skip(ftype)
6504
      elif fid == 2:
6505
        if ftype == TType.I64:
6506
          self.vendorId = iprot.readI64();
6507
        else:
6508
          iprot.skip(ftype)
6509
      else:
6510
        iprot.skip(ftype)
6511
      iprot.readFieldEnd()
6512
    iprot.readStructEnd()
6513
 
6514
  def write(self, oprot):
6515
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6516
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6517
      return
6518
    oprot.writeStructBegin('getItemPricing_args')
6519
    if self.itemId is not None:
6520
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6521
      oprot.writeI64(self.itemId)
6522
      oprot.writeFieldEnd()
6523
    if self.vendorId is not None:
6524
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6525
      oprot.writeI64(self.vendorId)
6526
      oprot.writeFieldEnd()
6527
    oprot.writeFieldStop()
6528
    oprot.writeStructEnd()
6529
 
6530
  def validate(self):
6531
    return
6532
 
6533
 
6534
  def __repr__(self):
6535
    L = ['%s=%r' % (key, value)
6536
      for key, value in self.__dict__.iteritems()]
6537
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6538
 
6539
  def __eq__(self, other):
6540
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6541
 
6542
  def __ne__(self, other):
6543
    return not (self == other)
6544
 
6545
class getItemPricing_result:
6546
  """
6547
  Attributes:
6548
   - success
6549
   - cex
6550
  """
6551
 
6552
  thrift_spec = (
6553
    (0, TType.STRUCT, 'success', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 0
6554
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6555
  )
6556
 
6557
  def __init__(self, success=None, cex=None,):
6558
    self.success = success
6559
    self.cex = cex
6560
 
6561
  def read(self, iprot):
6562
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6563
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6564
      return
6565
    iprot.readStructBegin()
6566
    while True:
6567
      (fname, ftype, fid) = iprot.readFieldBegin()
6568
      if ftype == TType.STOP:
6569
        break
6570
      if fid == 0:
6571
        if ftype == TType.STRUCT:
6572
          self.success = VendorItemPricing()
6573
          self.success.read(iprot)
6574
        else:
6575
          iprot.skip(ftype)
6576
      elif fid == 1:
6577
        if ftype == TType.STRUCT:
6578
          self.cex = InventoryServiceException()
6579
          self.cex.read(iprot)
6580
        else:
6581
          iprot.skip(ftype)
6582
      else:
6583
        iprot.skip(ftype)
6584
      iprot.readFieldEnd()
6585
    iprot.readStructEnd()
6586
 
6587
  def write(self, oprot):
6588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6590
      return
6591
    oprot.writeStructBegin('getItemPricing_result')
6592
    if self.success is not None:
6593
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6594
      self.success.write(oprot)
6595
      oprot.writeFieldEnd()
6596
    if self.cex is not None:
6597
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6598
      self.cex.write(oprot)
6599
      oprot.writeFieldEnd()
6600
    oprot.writeFieldStop()
6601
    oprot.writeStructEnd()
6602
 
6603
  def validate(self):
6604
    return
6605
 
6606
 
6607
  def __repr__(self):
6608
    L = ['%s=%r' % (key, value)
6609
      for key, value in self.__dict__.iteritems()]
6610
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6611
 
6612
  def __eq__(self, other):
6613
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6614
 
6615
  def __ne__(self, other):
6616
    return not (self == other)
6617
 
6618
class getAllItemPricing_args:
6619
  """
6620
  Attributes:
6621
   - itemId
6622
  """
6623
 
6624
  thrift_spec = (
6625
    None, # 0
6626
    (1, TType.I64, 'itemId', None, None, ), # 1
6627
  )
6628
 
6629
  def __init__(self, itemId=None,):
6630
    self.itemId = itemId
6631
 
6632
  def read(self, iprot):
6633
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6634
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6635
      return
6636
    iprot.readStructBegin()
6637
    while True:
6638
      (fname, ftype, fid) = iprot.readFieldBegin()
6639
      if ftype == TType.STOP:
6640
        break
6641
      if fid == 1:
6642
        if ftype == TType.I64:
6643
          self.itemId = iprot.readI64();
6644
        else:
6645
          iprot.skip(ftype)
6646
      else:
6647
        iprot.skip(ftype)
6648
      iprot.readFieldEnd()
6649
    iprot.readStructEnd()
6650
 
6651
  def write(self, oprot):
6652
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6653
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6654
      return
6655
    oprot.writeStructBegin('getAllItemPricing_args')
6656
    if self.itemId is not None:
6657
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6658
      oprot.writeI64(self.itemId)
6659
      oprot.writeFieldEnd()
6660
    oprot.writeFieldStop()
6661
    oprot.writeStructEnd()
6662
 
6663
  def validate(self):
6664
    return
6665
 
6666
 
6667
  def __repr__(self):
6668
    L = ['%s=%r' % (key, value)
6669
      for key, value in self.__dict__.iteritems()]
6670
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6671
 
6672
  def __eq__(self, other):
6673
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6674
 
6675
  def __ne__(self, other):
6676
    return not (self == other)
6677
 
6678
class getAllItemPricing_result:
6679
  """
6680
  Attributes:
6681
   - success
6682
   - cex
6683
  """
6684
 
6685
  thrift_spec = (
6686
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
6687
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6688
  )
6689
 
6690
  def __init__(self, success=None, cex=None,):
6691
    self.success = success
6692
    self.cex = cex
6693
 
6694
  def read(self, iprot):
6695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6697
      return
6698
    iprot.readStructBegin()
6699
    while True:
6700
      (fname, ftype, fid) = iprot.readFieldBegin()
6701
      if ftype == TType.STOP:
6702
        break
6703
      if fid == 0:
6704
        if ftype == TType.LIST:
6705
          self.success = []
8182 amar.kumar 6706
          (_etype69, _size66) = iprot.readListBegin()
6707
          for _i70 in xrange(_size66):
6708
            _elem71 = VendorItemPricing()
6709
            _elem71.read(iprot)
6710
            self.success.append(_elem71)
5944 mandeep.dh 6711
          iprot.readListEnd()
6712
        else:
6713
          iprot.skip(ftype)
6714
      elif fid == 1:
6715
        if ftype == TType.STRUCT:
6716
          self.cex = InventoryServiceException()
6717
          self.cex.read(iprot)
6718
        else:
6719
          iprot.skip(ftype)
6720
      else:
6721
        iprot.skip(ftype)
6722
      iprot.readFieldEnd()
6723
    iprot.readStructEnd()
6724
 
6725
  def write(self, oprot):
6726
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6727
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6728
      return
6729
    oprot.writeStructBegin('getAllItemPricing_result')
6730
    if self.success is not None:
6731
      oprot.writeFieldBegin('success', TType.LIST, 0)
6732
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 6733
      for iter72 in self.success:
6734
        iter72.write(oprot)
5944 mandeep.dh 6735
      oprot.writeListEnd()
6736
      oprot.writeFieldEnd()
6737
    if self.cex is not None:
6738
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6739
      self.cex.write(oprot)
6740
      oprot.writeFieldEnd()
6741
    oprot.writeFieldStop()
6742
    oprot.writeStructEnd()
6743
 
6744
  def validate(self):
6745
    return
6746
 
6747
 
6748
  def __repr__(self):
6749
    L = ['%s=%r' % (key, value)
6750
      for key, value in self.__dict__.iteritems()]
6751
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6752
 
6753
  def __eq__(self, other):
6754
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6755
 
6756
  def __ne__(self, other):
6757
    return not (self == other)
6758
 
6759
class addVendorItemPricing_args:
6760
  """
6761
  Attributes:
6762
   - vendorItemPricing
6763
  """
6764
 
6765
  thrift_spec = (
6766
    None, # 0
6767
    (1, TType.STRUCT, 'vendorItemPricing', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 1
6768
  )
6769
 
6770
  def __init__(self, vendorItemPricing=None,):
6771
    self.vendorItemPricing = vendorItemPricing
6772
 
6773
  def read(self, iprot):
6774
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6775
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6776
      return
6777
    iprot.readStructBegin()
6778
    while True:
6779
      (fname, ftype, fid) = iprot.readFieldBegin()
6780
      if ftype == TType.STOP:
6781
        break
6782
      if fid == 1:
6783
        if ftype == TType.STRUCT:
6784
          self.vendorItemPricing = VendorItemPricing()
6785
          self.vendorItemPricing.read(iprot)
6786
        else:
6787
          iprot.skip(ftype)
6788
      else:
6789
        iprot.skip(ftype)
6790
      iprot.readFieldEnd()
6791
    iprot.readStructEnd()
6792
 
6793
  def write(self, oprot):
6794
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6795
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6796
      return
6797
    oprot.writeStructBegin('addVendorItemPricing_args')
6798
    if self.vendorItemPricing is not None:
6799
      oprot.writeFieldBegin('vendorItemPricing', TType.STRUCT, 1)
6800
      self.vendorItemPricing.write(oprot)
6801
      oprot.writeFieldEnd()
6802
    oprot.writeFieldStop()
6803
    oprot.writeStructEnd()
6804
 
6805
  def validate(self):
6806
    return
6807
 
6808
 
6809
  def __repr__(self):
6810
    L = ['%s=%r' % (key, value)
6811
      for key, value in self.__dict__.iteritems()]
6812
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6813
 
6814
  def __eq__(self, other):
6815
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6816
 
6817
  def __ne__(self, other):
6818
    return not (self == other)
6819
 
6820
class addVendorItemPricing_result:
6821
  """
6822
  Attributes:
6823
   - cex
6824
  """
6825
 
6826
  thrift_spec = (
6827
    None, # 0
6828
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6829
  )
6830
 
6831
  def __init__(self, cex=None,):
6832
    self.cex = cex
6833
 
6834
  def read(self, iprot):
6835
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6836
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6837
      return
6838
    iprot.readStructBegin()
6839
    while True:
6840
      (fname, ftype, fid) = iprot.readFieldBegin()
6841
      if ftype == TType.STOP:
6842
        break
6843
      if fid == 1:
6844
        if ftype == TType.STRUCT:
6845
          self.cex = InventoryServiceException()
6846
          self.cex.read(iprot)
6847
        else:
6848
          iprot.skip(ftype)
6849
      else:
6850
        iprot.skip(ftype)
6851
      iprot.readFieldEnd()
6852
    iprot.readStructEnd()
6853
 
6854
  def write(self, oprot):
6855
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6856
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6857
      return
6858
    oprot.writeStructBegin('addVendorItemPricing_result')
6859
    if self.cex is not None:
6860
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6861
      self.cex.write(oprot)
6862
      oprot.writeFieldEnd()
6863
    oprot.writeFieldStop()
6864
    oprot.writeStructEnd()
6865
 
6866
  def validate(self):
6867
    return
6868
 
6869
 
6870
  def __repr__(self):
6871
    L = ['%s=%r' % (key, value)
6872
      for key, value in self.__dict__.iteritems()]
6873
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6874
 
6875
  def __eq__(self, other):
6876
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6877
 
6878
  def __ne__(self, other):
6879
    return not (self == other)
6880
 
6881
class getVendor_args:
6882
  """
6883
  Attributes:
6884
   - vendorId
6885
  """
6886
 
6887
  thrift_spec = (
6888
    None, # 0
6889
    (1, TType.I64, 'vendorId', None, None, ), # 1
6890
  )
6891
 
6892
  def __init__(self, vendorId=None,):
6893
    self.vendorId = vendorId
6894
 
6895
  def read(self, iprot):
6896
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6897
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6898
      return
6899
    iprot.readStructBegin()
6900
    while True:
6901
      (fname, ftype, fid) = iprot.readFieldBegin()
6902
      if ftype == TType.STOP:
6903
        break
6904
      if fid == 1:
6905
        if ftype == TType.I64:
6906
          self.vendorId = iprot.readI64();
6907
        else:
6908
          iprot.skip(ftype)
6909
      else:
6910
        iprot.skip(ftype)
6911
      iprot.readFieldEnd()
6912
    iprot.readStructEnd()
6913
 
6914
  def write(self, oprot):
6915
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6916
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6917
      return
6918
    oprot.writeStructBegin('getVendor_args')
6919
    if self.vendorId is not None:
6920
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
6921
      oprot.writeI64(self.vendorId)
6922
      oprot.writeFieldEnd()
6923
    oprot.writeFieldStop()
6924
    oprot.writeStructEnd()
6925
 
6926
  def validate(self):
6927
    return
6928
 
6929
 
6930
  def __repr__(self):
6931
    L = ['%s=%r' % (key, value)
6932
      for key, value in self.__dict__.iteritems()]
6933
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6934
 
6935
  def __eq__(self, other):
6936
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6937
 
6938
  def __ne__(self, other):
6939
    return not (self == other)
6940
 
6941
class getVendor_result:
6942
  """
6943
  Attributes:
6944
   - success
6945
  """
6946
 
6947
  thrift_spec = (
6948
    (0, TType.STRUCT, 'success', (Vendor, Vendor.thrift_spec), None, ), # 0
6949
  )
6950
 
6951
  def __init__(self, success=None,):
6952
    self.success = success
6953
 
6954
  def read(self, iprot):
6955
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6956
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6957
      return
6958
    iprot.readStructBegin()
6959
    while True:
6960
      (fname, ftype, fid) = iprot.readFieldBegin()
6961
      if ftype == TType.STOP:
6962
        break
6963
      if fid == 0:
6964
        if ftype == TType.STRUCT:
6965
          self.success = Vendor()
6966
          self.success.read(iprot)
6967
        else:
6968
          iprot.skip(ftype)
6969
      else:
6970
        iprot.skip(ftype)
6971
      iprot.readFieldEnd()
6972
    iprot.readStructEnd()
6973
 
6974
  def write(self, oprot):
6975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6977
      return
6978
    oprot.writeStructBegin('getVendor_result')
6979
    if self.success is not None:
6980
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6981
      self.success.write(oprot)
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 getAllVendors_args:
7002
 
7003
  thrift_spec = (
7004
  )
7005
 
7006
  def read(self, iprot):
7007
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7008
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7009
      return
7010
    iprot.readStructBegin()
7011
    while True:
7012
      (fname, ftype, fid) = iprot.readFieldBegin()
7013
      if ftype == TType.STOP:
7014
        break
7015
      else:
7016
        iprot.skip(ftype)
7017
      iprot.readFieldEnd()
7018
    iprot.readStructEnd()
7019
 
7020
  def write(self, oprot):
7021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7023
      return
7024
    oprot.writeStructBegin('getAllVendors_args')
7025
    oprot.writeFieldStop()
7026
    oprot.writeStructEnd()
7027
 
7028
  def validate(self):
7029
    return
7030
 
7031
 
7032
  def __repr__(self):
7033
    L = ['%s=%r' % (key, value)
7034
      for key, value in self.__dict__.iteritems()]
7035
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7036
 
7037
  def __eq__(self, other):
7038
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7039
 
7040
  def __ne__(self, other):
7041
    return not (self == other)
7042
 
7043
class getAllVendors_result:
7044
  """
7045
  Attributes:
7046
   - success
7047
  """
7048
 
7049
  thrift_spec = (
7050
    (0, TType.LIST, 'success', (TType.STRUCT,(Vendor, Vendor.thrift_spec)), None, ), # 0
7051
  )
7052
 
7053
  def __init__(self, success=None,):
7054
    self.success = success
7055
 
7056
  def read(self, iprot):
7057
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7058
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7059
      return
7060
    iprot.readStructBegin()
7061
    while True:
7062
      (fname, ftype, fid) = iprot.readFieldBegin()
7063
      if ftype == TType.STOP:
7064
        break
7065
      if fid == 0:
7066
        if ftype == TType.LIST:
7067
          self.success = []
8182 amar.kumar 7068
          (_etype76, _size73) = iprot.readListBegin()
7069
          for _i77 in xrange(_size73):
7070
            _elem78 = Vendor()
7071
            _elem78.read(iprot)
7072
            self.success.append(_elem78)
5944 mandeep.dh 7073
          iprot.readListEnd()
7074
        else:
7075
          iprot.skip(ftype)
7076
      else:
7077
        iprot.skip(ftype)
7078
      iprot.readFieldEnd()
7079
    iprot.readStructEnd()
7080
 
7081
  def write(self, oprot):
7082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7084
      return
7085
    oprot.writeStructBegin('getAllVendors_result')
7086
    if self.success is not None:
7087
      oprot.writeFieldBegin('success', TType.LIST, 0)
7088
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7089
      for iter79 in self.success:
7090
        iter79.write(oprot)
5944 mandeep.dh 7091
      oprot.writeListEnd()
7092
      oprot.writeFieldEnd()
7093
    oprot.writeFieldStop()
7094
    oprot.writeStructEnd()
7095
 
7096
  def validate(self):
7097
    return
7098
 
7099
 
7100
  def __repr__(self):
7101
    L = ['%s=%r' % (key, value)
7102
      for key, value in self.__dict__.iteritems()]
7103
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7104
 
7105
  def __eq__(self, other):
7106
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7107
 
7108
  def __ne__(self, other):
7109
    return not (self == other)
7110
 
7111
class addVendorItemMapping_args:
7112
  """
7113
  Attributes:
7114
   - key
7115
   - vendorItemMapping
7116
  """
7117
 
7118
  thrift_spec = (
7119
    None, # 0
7120
    (1, TType.STRING, 'key', None, None, ), # 1
7121
    (2, TType.STRUCT, 'vendorItemMapping', (VendorItemMapping, VendorItemMapping.thrift_spec), None, ), # 2
7122
  )
7123
 
7124
  def __init__(self, key=None, vendorItemMapping=None,):
7125
    self.key = key
7126
    self.vendorItemMapping = vendorItemMapping
7127
 
7128
  def read(self, iprot):
7129
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7130
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7131
      return
7132
    iprot.readStructBegin()
7133
    while True:
7134
      (fname, ftype, fid) = iprot.readFieldBegin()
7135
      if ftype == TType.STOP:
7136
        break
7137
      if fid == 1:
7138
        if ftype == TType.STRING:
7139
          self.key = iprot.readString();
7140
        else:
7141
          iprot.skip(ftype)
7142
      elif fid == 2:
7143
        if ftype == TType.STRUCT:
7144
          self.vendorItemMapping = VendorItemMapping()
7145
          self.vendorItemMapping.read(iprot)
7146
        else:
7147
          iprot.skip(ftype)
7148
      else:
7149
        iprot.skip(ftype)
7150
      iprot.readFieldEnd()
7151
    iprot.readStructEnd()
7152
 
7153
  def write(self, oprot):
7154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7156
      return
7157
    oprot.writeStructBegin('addVendorItemMapping_args')
7158
    if self.key is not None:
7159
      oprot.writeFieldBegin('key', TType.STRING, 1)
7160
      oprot.writeString(self.key)
7161
      oprot.writeFieldEnd()
7162
    if self.vendorItemMapping is not None:
7163
      oprot.writeFieldBegin('vendorItemMapping', TType.STRUCT, 2)
7164
      self.vendorItemMapping.write(oprot)
7165
      oprot.writeFieldEnd()
7166
    oprot.writeFieldStop()
7167
    oprot.writeStructEnd()
7168
 
7169
  def validate(self):
7170
    return
7171
 
7172
 
7173
  def __repr__(self):
7174
    L = ['%s=%r' % (key, value)
7175
      for key, value in self.__dict__.iteritems()]
7176
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7177
 
7178
  def __eq__(self, other):
7179
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7180
 
7181
  def __ne__(self, other):
7182
    return not (self == other)
7183
 
7184
class addVendorItemMapping_result:
7185
  """
7186
  Attributes:
7187
   - cex
7188
  """
7189
 
7190
  thrift_spec = (
7191
    None, # 0
7192
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7193
  )
7194
 
7195
  def __init__(self, cex=None,):
7196
    self.cex = cex
7197
 
7198
  def read(self, iprot):
7199
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7200
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7201
      return
7202
    iprot.readStructBegin()
7203
    while True:
7204
      (fname, ftype, fid) = iprot.readFieldBegin()
7205
      if ftype == TType.STOP:
7206
        break
7207
      if fid == 1:
7208
        if ftype == TType.STRUCT:
7209
          self.cex = InventoryServiceException()
7210
          self.cex.read(iprot)
7211
        else:
7212
          iprot.skip(ftype)
7213
      else:
7214
        iprot.skip(ftype)
7215
      iprot.readFieldEnd()
7216
    iprot.readStructEnd()
7217
 
7218
  def write(self, oprot):
7219
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7220
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7221
      return
7222
    oprot.writeStructBegin('addVendorItemMapping_result')
7223
    if self.cex is not None:
7224
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7225
      self.cex.write(oprot)
7226
      oprot.writeFieldEnd()
7227
    oprot.writeFieldStop()
7228
    oprot.writeStructEnd()
7229
 
7230
  def validate(self):
7231
    return
7232
 
7233
 
7234
  def __repr__(self):
7235
    L = ['%s=%r' % (key, value)
7236
      for key, value in self.__dict__.iteritems()]
7237
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7238
 
7239
  def __eq__(self, other):
7240
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7241
 
7242
  def __ne__(self, other):
7243
    return not (self == other)
7244
 
7245
class getVendorItemMappings_args:
7246
  """
7247
  Attributes:
7248
   - itemId
7249
  """
7250
 
7251
  thrift_spec = (
7252
    None, # 0
7253
    (1, TType.I64, 'itemId', None, None, ), # 1
7254
  )
7255
 
7256
  def __init__(self, itemId=None,):
7257
    self.itemId = itemId
7258
 
7259
  def read(self, iprot):
7260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7262
      return
7263
    iprot.readStructBegin()
7264
    while True:
7265
      (fname, ftype, fid) = iprot.readFieldBegin()
7266
      if ftype == TType.STOP:
7267
        break
7268
      if fid == 1:
7269
        if ftype == TType.I64:
7270
          self.itemId = iprot.readI64();
7271
        else:
7272
          iprot.skip(ftype)
7273
      else:
7274
        iprot.skip(ftype)
7275
      iprot.readFieldEnd()
7276
    iprot.readStructEnd()
7277
 
7278
  def write(self, oprot):
7279
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7280
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7281
      return
7282
    oprot.writeStructBegin('getVendorItemMappings_args')
7283
    if self.itemId is not None:
7284
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7285
      oprot.writeI64(self.itemId)
7286
      oprot.writeFieldEnd()
7287
    oprot.writeFieldStop()
7288
    oprot.writeStructEnd()
7289
 
7290
  def validate(self):
7291
    return
7292
 
7293
 
7294
  def __repr__(self):
7295
    L = ['%s=%r' % (key, value)
7296
      for key, value in self.__dict__.iteritems()]
7297
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7298
 
7299
  def __eq__(self, other):
7300
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7301
 
7302
  def __ne__(self, other):
7303
    return not (self == other)
7304
 
7305
class getVendorItemMappings_result:
7306
  """
7307
  Attributes:
7308
   - success
7309
   - cex
7310
  """
7311
 
7312
  thrift_spec = (
7313
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
7314
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7315
  )
7316
 
7317
  def __init__(self, success=None, cex=None,):
7318
    self.success = success
7319
    self.cex = cex
7320
 
7321
  def read(self, iprot):
7322
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7323
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7324
      return
7325
    iprot.readStructBegin()
7326
    while True:
7327
      (fname, ftype, fid) = iprot.readFieldBegin()
7328
      if ftype == TType.STOP:
7329
        break
7330
      if fid == 0:
7331
        if ftype == TType.LIST:
7332
          self.success = []
8182 amar.kumar 7333
          (_etype83, _size80) = iprot.readListBegin()
7334
          for _i84 in xrange(_size80):
7335
            _elem85 = VendorItemMapping()
7336
            _elem85.read(iprot)
7337
            self.success.append(_elem85)
5944 mandeep.dh 7338
          iprot.readListEnd()
7339
        else:
7340
          iprot.skip(ftype)
7341
      elif fid == 1:
7342
        if ftype == TType.STRUCT:
7343
          self.cex = InventoryServiceException()
7344
          self.cex.read(iprot)
7345
        else:
7346
          iprot.skip(ftype)
7347
      else:
7348
        iprot.skip(ftype)
7349
      iprot.readFieldEnd()
7350
    iprot.readStructEnd()
7351
 
7352
  def write(self, oprot):
7353
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7354
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7355
      return
7356
    oprot.writeStructBegin('getVendorItemMappings_result')
7357
    if self.success is not None:
7358
      oprot.writeFieldBegin('success', TType.LIST, 0)
7359
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7360
      for iter86 in self.success:
7361
        iter86.write(oprot)
5944 mandeep.dh 7362
      oprot.writeListEnd()
7363
      oprot.writeFieldEnd()
7364
    if self.cex is not None:
7365
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7366
      self.cex.write(oprot)
7367
      oprot.writeFieldEnd()
7368
    oprot.writeFieldStop()
7369
    oprot.writeStructEnd()
7370
 
7371
  def validate(self):
7372
    return
7373
 
7374
 
7375
  def __repr__(self):
7376
    L = ['%s=%r' % (key, value)
7377
      for key, value in self.__dict__.iteritems()]
7378
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7379
 
7380
  def __eq__(self, other):
7381
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7382
 
7383
  def __ne__(self, other):
7384
    return not (self == other)
7385
 
7386
class getPendingOrdersInventory_args:
7387
  """
7388
  Attributes:
7389
   - vendorid
7390
  """
7391
 
7392
  thrift_spec = (
7393
    None, # 0
7394
    (1, TType.I64, 'vendorid', None, None, ), # 1
7395
  )
7396
 
7397
  def __init__(self, vendorid=None,):
7398
    self.vendorid = vendorid
7399
 
7400
  def read(self, iprot):
7401
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7402
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7403
      return
7404
    iprot.readStructBegin()
7405
    while True:
7406
      (fname, ftype, fid) = iprot.readFieldBegin()
7407
      if ftype == TType.STOP:
7408
        break
7409
      if fid == 1:
7410
        if ftype == TType.I64:
7411
          self.vendorid = iprot.readI64();
7412
        else:
7413
          iprot.skip(ftype)
7414
      else:
7415
        iprot.skip(ftype)
7416
      iprot.readFieldEnd()
7417
    iprot.readStructEnd()
7418
 
7419
  def write(self, oprot):
7420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7422
      return
7423
    oprot.writeStructBegin('getPendingOrdersInventory_args')
7424
    if self.vendorid is not None:
7425
      oprot.writeFieldBegin('vendorid', TType.I64, 1)
7426
      oprot.writeI64(self.vendorid)
7427
      oprot.writeFieldEnd()
7428
    oprot.writeFieldStop()
7429
    oprot.writeStructEnd()
7430
 
7431
  def validate(self):
7432
    return
7433
 
7434
 
7435
  def __repr__(self):
7436
    L = ['%s=%r' % (key, value)
7437
      for key, value in self.__dict__.iteritems()]
7438
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7439
 
7440
  def __eq__(self, other):
7441
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7442
 
7443
  def __ne__(self, other):
7444
    return not (self == other)
7445
 
7446
class getPendingOrdersInventory_result:
7447
  """
7448
  Attributes:
7449
   - success
7450
  """
7451
 
7452
  thrift_spec = (
7453
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
7454
  )
7455
 
7456
  def __init__(self, success=None,):
7457
    self.success = success
7458
 
7459
  def read(self, iprot):
7460
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7461
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7462
      return
7463
    iprot.readStructBegin()
7464
    while True:
7465
      (fname, ftype, fid) = iprot.readFieldBegin()
7466
      if ftype == TType.STOP:
7467
        break
7468
      if fid == 0:
7469
        if ftype == TType.LIST:
7470
          self.success = []
8182 amar.kumar 7471
          (_etype90, _size87) = iprot.readListBegin()
7472
          for _i91 in xrange(_size87):
7473
            _elem92 = AvailableAndReservedStock()
7474
            _elem92.read(iprot)
7475
            self.success.append(_elem92)
5944 mandeep.dh 7476
          iprot.readListEnd()
7477
        else:
7478
          iprot.skip(ftype)
7479
      else:
7480
        iprot.skip(ftype)
7481
      iprot.readFieldEnd()
7482
    iprot.readStructEnd()
7483
 
7484
  def write(self, oprot):
7485
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7486
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7487
      return
7488
    oprot.writeStructBegin('getPendingOrdersInventory_result')
7489
    if self.success is not None:
7490
      oprot.writeFieldBegin('success', TType.LIST, 0)
7491
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7492
      for iter93 in self.success:
7493
        iter93.write(oprot)
5944 mandeep.dh 7494
      oprot.writeListEnd()
7495
      oprot.writeFieldEnd()
7496
    oprot.writeFieldStop()
7497
    oprot.writeStructEnd()
7498
 
7499
  def validate(self):
7500
    return
7501
 
7502
 
7503
  def __repr__(self):
7504
    L = ['%s=%r' % (key, value)
7505
      for key, value in self.__dict__.iteritems()]
7506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7507
 
7508
  def __eq__(self, other):
7509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7510
 
7511
  def __ne__(self, other):
7512
    return not (self == other)
7513
 
7514
class getWarehouses_args:
7515
  """
7516
  Attributes:
7517
   - warehouseType
7518
   - inventoryType
7519
   - vendorId
7520
   - billingWarehouseId
7521
   - shippingWarehouseId
7522
  """
7523
 
7524
  thrift_spec = (
7525
    None, # 0
7526
    (1, TType.I32, 'warehouseType', None, None, ), # 1
7527
    (2, TType.I32, 'inventoryType', None, None, ), # 2
7528
    (3, TType.I64, 'vendorId', None, None, ), # 3
7529
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
7530
    (5, TType.I64, 'shippingWarehouseId', None, None, ), # 5
7531
  )
7532
 
7533
  def __init__(self, warehouseType=None, inventoryType=None, vendorId=None, billingWarehouseId=None, shippingWarehouseId=None,):
7534
    self.warehouseType = warehouseType
7535
    self.inventoryType = inventoryType
7536
    self.vendorId = vendorId
7537
    self.billingWarehouseId = billingWarehouseId
7538
    self.shippingWarehouseId = shippingWarehouseId
7539
 
7540
  def read(self, iprot):
7541
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7542
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7543
      return
7544
    iprot.readStructBegin()
7545
    while True:
7546
      (fname, ftype, fid) = iprot.readFieldBegin()
7547
      if ftype == TType.STOP:
7548
        break
7549
      if fid == 1:
7550
        if ftype == TType.I32:
7551
          self.warehouseType = iprot.readI32();
7552
        else:
7553
          iprot.skip(ftype)
7554
      elif fid == 2:
7555
        if ftype == TType.I32:
7556
          self.inventoryType = iprot.readI32();
7557
        else:
7558
          iprot.skip(ftype)
7559
      elif fid == 3:
7560
        if ftype == TType.I64:
7561
          self.vendorId = iprot.readI64();
7562
        else:
7563
          iprot.skip(ftype)
7564
      elif fid == 4:
7565
        if ftype == TType.I64:
7566
          self.billingWarehouseId = iprot.readI64();
7567
        else:
7568
          iprot.skip(ftype)
7569
      elif fid == 5:
7570
        if ftype == TType.I64:
7571
          self.shippingWarehouseId = iprot.readI64();
7572
        else:
7573
          iprot.skip(ftype)
7574
      else:
7575
        iprot.skip(ftype)
7576
      iprot.readFieldEnd()
7577
    iprot.readStructEnd()
7578
 
7579
  def write(self, oprot):
7580
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7581
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7582
      return
7583
    oprot.writeStructBegin('getWarehouses_args')
7584
    if self.warehouseType is not None:
7585
      oprot.writeFieldBegin('warehouseType', TType.I32, 1)
7586
      oprot.writeI32(self.warehouseType)
7587
      oprot.writeFieldEnd()
7588
    if self.inventoryType is not None:
7589
      oprot.writeFieldBegin('inventoryType', TType.I32, 2)
7590
      oprot.writeI32(self.inventoryType)
7591
      oprot.writeFieldEnd()
7592
    if self.vendorId is not None:
7593
      oprot.writeFieldBegin('vendorId', TType.I64, 3)
7594
      oprot.writeI64(self.vendorId)
7595
      oprot.writeFieldEnd()
7596
    if self.billingWarehouseId is not None:
7597
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
7598
      oprot.writeI64(self.billingWarehouseId)
7599
      oprot.writeFieldEnd()
7600
    if self.shippingWarehouseId is not None:
7601
      oprot.writeFieldBegin('shippingWarehouseId', TType.I64, 5)
7602
      oprot.writeI64(self.shippingWarehouseId)
7603
      oprot.writeFieldEnd()
7604
    oprot.writeFieldStop()
7605
    oprot.writeStructEnd()
7606
 
7607
  def validate(self):
7608
    return
7609
 
7610
 
7611
  def __repr__(self):
7612
    L = ['%s=%r' % (key, value)
7613
      for key, value in self.__dict__.iteritems()]
7614
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7615
 
7616
  def __eq__(self, other):
7617
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7618
 
7619
  def __ne__(self, other):
7620
    return not (self == other)
7621
 
7622
class getWarehouses_result:
7623
  """
7624
  Attributes:
7625
   - success
7626
  """
7627
 
7628
  thrift_spec = (
7629
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
7630
  )
7631
 
7632
  def __init__(self, success=None,):
7633
    self.success = success
7634
 
7635
  def read(self, iprot):
7636
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7637
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7638
      return
7639
    iprot.readStructBegin()
7640
    while True:
7641
      (fname, ftype, fid) = iprot.readFieldBegin()
7642
      if ftype == TType.STOP:
7643
        break
7644
      if fid == 0:
7645
        if ftype == TType.LIST:
7646
          self.success = []
8182 amar.kumar 7647
          (_etype97, _size94) = iprot.readListBegin()
7648
          for _i98 in xrange(_size94):
7649
            _elem99 = Warehouse()
7650
            _elem99.read(iprot)
7651
            self.success.append(_elem99)
5944 mandeep.dh 7652
          iprot.readListEnd()
7653
        else:
7654
          iprot.skip(ftype)
7655
      else:
7656
        iprot.skip(ftype)
7657
      iprot.readFieldEnd()
7658
    iprot.readStructEnd()
7659
 
7660
  def write(self, oprot):
7661
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7662
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7663
      return
7664
    oprot.writeStructBegin('getWarehouses_result')
7665
    if self.success is not None:
7666
      oprot.writeFieldBegin('success', TType.LIST, 0)
7667
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7668
      for iter100 in self.success:
7669
        iter100.write(oprot)
5944 mandeep.dh 7670
      oprot.writeListEnd()
7671
      oprot.writeFieldEnd()
7672
    oprot.writeFieldStop()
7673
    oprot.writeStructEnd()
7674
 
7675
  def validate(self):
7676
    return
7677
 
7678
 
7679
  def __repr__(self):
7680
    L = ['%s=%r' % (key, value)
7681
      for key, value in self.__dict__.iteritems()]
7682
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7683
 
7684
  def __eq__(self, other):
7685
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7686
 
7687
  def __ne__(self, other):
7688
    return not (self == other)
7689
 
7690
class resetAvailability_args:
7691
  """
7692
  Attributes:
7693
   - itemKey
7694
   - vendorId
7695
   - quantity
7696
   - warehouseId
7697
  """
7698
 
7699
  thrift_spec = (
7700
    None, # 0
7701
    (1, TType.STRING, 'itemKey', None, None, ), # 1
7702
    (2, TType.I64, 'vendorId', None, None, ), # 2
7703
    (3, TType.I64, 'quantity', None, None, ), # 3
7704
    (4, TType.I64, 'warehouseId', None, None, ), # 4
7705
  )
7706
 
7707
  def __init__(self, itemKey=None, vendorId=None, quantity=None, warehouseId=None,):
7708
    self.itemKey = itemKey
7709
    self.vendorId = vendorId
7710
    self.quantity = quantity
7711
    self.warehouseId = warehouseId
7712
 
7713
  def read(self, iprot):
7714
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7715
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7716
      return
7717
    iprot.readStructBegin()
7718
    while True:
7719
      (fname, ftype, fid) = iprot.readFieldBegin()
7720
      if ftype == TType.STOP:
7721
        break
7722
      if fid == 1:
7723
        if ftype == TType.STRING:
7724
          self.itemKey = iprot.readString();
7725
        else:
7726
          iprot.skip(ftype)
7727
      elif fid == 2:
7728
        if ftype == TType.I64:
7729
          self.vendorId = iprot.readI64();
7730
        else:
7731
          iprot.skip(ftype)
7732
      elif fid == 3:
7733
        if ftype == TType.I64:
7734
          self.quantity = iprot.readI64();
7735
        else:
7736
          iprot.skip(ftype)
7737
      elif fid == 4:
7738
        if ftype == TType.I64:
7739
          self.warehouseId = iprot.readI64();
7740
        else:
7741
          iprot.skip(ftype)
7742
      else:
7743
        iprot.skip(ftype)
7744
      iprot.readFieldEnd()
7745
    iprot.readStructEnd()
7746
 
7747
  def write(self, oprot):
7748
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7749
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7750
      return
7751
    oprot.writeStructBegin('resetAvailability_args')
7752
    if self.itemKey is not None:
7753
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
7754
      oprot.writeString(self.itemKey)
7755
      oprot.writeFieldEnd()
7756
    if self.vendorId is not None:
7757
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
7758
      oprot.writeI64(self.vendorId)
7759
      oprot.writeFieldEnd()
7760
    if self.quantity is not None:
7761
      oprot.writeFieldBegin('quantity', TType.I64, 3)
7762
      oprot.writeI64(self.quantity)
7763
      oprot.writeFieldEnd()
7764
    if self.warehouseId is not None:
7765
      oprot.writeFieldBegin('warehouseId', TType.I64, 4)
7766
      oprot.writeI64(self.warehouseId)
7767
      oprot.writeFieldEnd()
7768
    oprot.writeFieldStop()
7769
    oprot.writeStructEnd()
7770
 
7771
  def validate(self):
7772
    return
7773
 
7774
 
7775
  def __repr__(self):
7776
    L = ['%s=%r' % (key, value)
7777
      for key, value in self.__dict__.iteritems()]
7778
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7779
 
7780
  def __eq__(self, other):
7781
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7782
 
7783
  def __ne__(self, other):
7784
    return not (self == other)
7785
 
7786
class resetAvailability_result:
7787
  """
7788
  Attributes:
7789
   - cex
7790
  """
7791
 
7792
  thrift_spec = (
7793
    None, # 0
7794
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7795
  )
7796
 
7797
  def __init__(self, cex=None,):
7798
    self.cex = cex
7799
 
7800
  def read(self, iprot):
7801
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7802
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7803
      return
7804
    iprot.readStructBegin()
7805
    while True:
7806
      (fname, ftype, fid) = iprot.readFieldBegin()
7807
      if ftype == TType.STOP:
7808
        break
7809
      if fid == 1:
7810
        if ftype == TType.STRUCT:
7811
          self.cex = InventoryServiceException()
7812
          self.cex.read(iprot)
7813
        else:
7814
          iprot.skip(ftype)
7815
      else:
7816
        iprot.skip(ftype)
7817
      iprot.readFieldEnd()
7818
    iprot.readStructEnd()
7819
 
7820
  def write(self, oprot):
7821
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7822
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7823
      return
7824
    oprot.writeStructBegin('resetAvailability_result')
7825
    if self.cex is not None:
7826
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7827
      self.cex.write(oprot)
7828
      oprot.writeFieldEnd()
7829
    oprot.writeFieldStop()
7830
    oprot.writeStructEnd()
7831
 
7832
  def validate(self):
7833
    return
7834
 
7835
 
7836
  def __repr__(self):
7837
    L = ['%s=%r' % (key, value)
7838
      for key, value in self.__dict__.iteritems()]
7839
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7840
 
7841
  def __eq__(self, other):
7842
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7843
 
7844
  def __ne__(self, other):
7845
    return not (self == other)
7846
 
7847
class resetAvailabilityForWarehouse_args:
7848
  """
7849
  Attributes:
7850
   - warehouseId
7851
  """
7852
 
7853
  thrift_spec = (
7854
    None, # 0
7855
    (1, TType.I64, 'warehouseId', None, None, ), # 1
7856
  )
7857
 
7858
  def __init__(self, warehouseId=None,):
7859
    self.warehouseId = warehouseId
7860
 
7861
  def read(self, iprot):
7862
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7863
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7864
      return
7865
    iprot.readStructBegin()
7866
    while True:
7867
      (fname, ftype, fid) = iprot.readFieldBegin()
7868
      if ftype == TType.STOP:
7869
        break
7870
      if fid == 1:
7871
        if ftype == TType.I64:
7872
          self.warehouseId = iprot.readI64();
7873
        else:
7874
          iprot.skip(ftype)
7875
      else:
7876
        iprot.skip(ftype)
7877
      iprot.readFieldEnd()
7878
    iprot.readStructEnd()
7879
 
7880
  def write(self, oprot):
7881
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7882
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7883
      return
7884
    oprot.writeStructBegin('resetAvailabilityForWarehouse_args')
7885
    if self.warehouseId is not None:
7886
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
7887
      oprot.writeI64(self.warehouseId)
7888
      oprot.writeFieldEnd()
7889
    oprot.writeFieldStop()
7890
    oprot.writeStructEnd()
7891
 
7892
  def validate(self):
7893
    return
7894
 
7895
 
7896
  def __repr__(self):
7897
    L = ['%s=%r' % (key, value)
7898
      for key, value in self.__dict__.iteritems()]
7899
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7900
 
7901
  def __eq__(self, other):
7902
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7903
 
7904
  def __ne__(self, other):
7905
    return not (self == other)
7906
 
7907
class resetAvailabilityForWarehouse_result:
7908
  """
7909
  Attributes:
7910
   - cex
7911
  """
7912
 
7913
  thrift_spec = (
7914
    None, # 0
7915
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7916
  )
7917
 
7918
  def __init__(self, cex=None,):
7919
    self.cex = cex
7920
 
7921
  def read(self, iprot):
7922
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7923
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7924
      return
7925
    iprot.readStructBegin()
7926
    while True:
7927
      (fname, ftype, fid) = iprot.readFieldBegin()
7928
      if ftype == TType.STOP:
7929
        break
7930
      if fid == 1:
7931
        if ftype == TType.STRUCT:
7932
          self.cex = InventoryServiceException()
7933
          self.cex.read(iprot)
7934
        else:
7935
          iprot.skip(ftype)
7936
      else:
7937
        iprot.skip(ftype)
7938
      iprot.readFieldEnd()
7939
    iprot.readStructEnd()
7940
 
7941
  def write(self, oprot):
7942
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7943
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7944
      return
7945
    oprot.writeStructBegin('resetAvailabilityForWarehouse_result')
7946
    if self.cex is not None:
7947
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7948
      self.cex.write(oprot)
7949
      oprot.writeFieldEnd()
7950
    oprot.writeFieldStop()
7951
    oprot.writeStructEnd()
7952
 
7953
  def validate(self):
7954
    return
7955
 
7956
 
7957
  def __repr__(self):
7958
    L = ['%s=%r' % (key, value)
7959
      for key, value in self.__dict__.iteritems()]
7960
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7961
 
7962
  def __eq__(self, other):
7963
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7964
 
7965
  def __ne__(self, other):
7966
    return not (self == other)
7967
 
7968
class getItemKeysToBeProcessed_args:
7969
  """
7970
  Attributes:
7971
   - warehouseId
7972
  """
7973
 
7974
  thrift_spec = (
7975
    None, # 0
7976
    (1, TType.I64, 'warehouseId', None, None, ), # 1
7977
  )
7978
 
7979
  def __init__(self, warehouseId=None,):
7980
    self.warehouseId = warehouseId
7981
 
7982
  def read(self, iprot):
7983
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7984
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7985
      return
7986
    iprot.readStructBegin()
7987
    while True:
7988
      (fname, ftype, fid) = iprot.readFieldBegin()
7989
      if ftype == TType.STOP:
7990
        break
7991
      if fid == 1:
7992
        if ftype == TType.I64:
7993
          self.warehouseId = iprot.readI64();
7994
        else:
7995
          iprot.skip(ftype)
7996
      else:
7997
        iprot.skip(ftype)
7998
      iprot.readFieldEnd()
7999
    iprot.readStructEnd()
8000
 
8001
  def write(self, oprot):
8002
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8003
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8004
      return
8005
    oprot.writeStructBegin('getItemKeysToBeProcessed_args')
8006
    if self.warehouseId is not None:
8007
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8008
      oprot.writeI64(self.warehouseId)
8009
      oprot.writeFieldEnd()
8010
    oprot.writeFieldStop()
8011
    oprot.writeStructEnd()
8012
 
8013
  def validate(self):
8014
    return
8015
 
8016
 
8017
  def __repr__(self):
8018
    L = ['%s=%r' % (key, value)
8019
      for key, value in self.__dict__.iteritems()]
8020
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8021
 
8022
  def __eq__(self, other):
8023
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8024
 
8025
  def __ne__(self, other):
8026
    return not (self == other)
8027
 
8028
class getItemKeysToBeProcessed_result:
8029
  """
8030
  Attributes:
8031
   - success
8032
  """
8033
 
8034
  thrift_spec = (
8035
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
8036
  )
8037
 
8038
  def __init__(self, success=None,):
8039
    self.success = success
8040
 
8041
  def read(self, iprot):
8042
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8043
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8044
      return
8045
    iprot.readStructBegin()
8046
    while True:
8047
      (fname, ftype, fid) = iprot.readFieldBegin()
8048
      if ftype == TType.STOP:
8049
        break
8050
      if fid == 0:
8051
        if ftype == TType.LIST:
8052
          self.success = []
8182 amar.kumar 8053
          (_etype104, _size101) = iprot.readListBegin()
8054
          for _i105 in xrange(_size101):
8055
            _elem106 = iprot.readString();
8056
            self.success.append(_elem106)
5944 mandeep.dh 8057
          iprot.readListEnd()
8058
        else:
8059
          iprot.skip(ftype)
8060
      else:
8061
        iprot.skip(ftype)
8062
      iprot.readFieldEnd()
8063
    iprot.readStructEnd()
8064
 
8065
  def write(self, oprot):
8066
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8067
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8068
      return
8069
    oprot.writeStructBegin('getItemKeysToBeProcessed_result')
8070
    if self.success is not None:
8071
      oprot.writeFieldBegin('success', TType.LIST, 0)
8072
      oprot.writeListBegin(TType.STRING, len(self.success))
8182 amar.kumar 8073
      for iter107 in self.success:
8074
        oprot.writeString(iter107)
5944 mandeep.dh 8075
      oprot.writeListEnd()
8076
      oprot.writeFieldEnd()
8077
    oprot.writeFieldStop()
8078
    oprot.writeStructEnd()
8079
 
8080
  def validate(self):
8081
    return
8082
 
8083
 
8084
  def __repr__(self):
8085
    L = ['%s=%r' % (key, value)
8086
      for key, value in self.__dict__.iteritems()]
8087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8088
 
8089
  def __eq__(self, other):
8090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8091
 
8092
  def __ne__(self, other):
8093
    return not (self == other)
8094
 
8095
class markMissedInventoryUpdatesAsProcessed_args:
8096
  """
8097
  Attributes:
8098
   - itemKey
8099
   - warehouseId
8100
  """
8101
 
8102
  thrift_spec = (
8103
    None, # 0
8104
    (1, TType.STRING, 'itemKey', None, None, ), # 1
8105
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8106
  )
8107
 
8108
  def __init__(self, itemKey=None, warehouseId=None,):
8109
    self.itemKey = itemKey
8110
    self.warehouseId = warehouseId
8111
 
8112
  def read(self, iprot):
8113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8115
      return
8116
    iprot.readStructBegin()
8117
    while True:
8118
      (fname, ftype, fid) = iprot.readFieldBegin()
8119
      if ftype == TType.STOP:
8120
        break
8121
      if fid == 1:
8122
        if ftype == TType.STRING:
8123
          self.itemKey = iprot.readString();
8124
        else:
8125
          iprot.skip(ftype)
8126
      elif fid == 2:
8127
        if ftype == TType.I64:
8128
          self.warehouseId = iprot.readI64();
8129
        else:
8130
          iprot.skip(ftype)
8131
      else:
8132
        iprot.skip(ftype)
8133
      iprot.readFieldEnd()
8134
    iprot.readStructEnd()
8135
 
8136
  def write(self, oprot):
8137
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8138
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8139
      return
8140
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_args')
8141
    if self.itemKey is not None:
8142
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
8143
      oprot.writeString(self.itemKey)
8144
      oprot.writeFieldEnd()
8145
    if self.warehouseId is not None:
8146
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8147
      oprot.writeI64(self.warehouseId)
8148
      oprot.writeFieldEnd()
8149
    oprot.writeFieldStop()
8150
    oprot.writeStructEnd()
8151
 
8152
  def validate(self):
8153
    return
8154
 
8155
 
8156
  def __repr__(self):
8157
    L = ['%s=%r' % (key, value)
8158
      for key, value in self.__dict__.iteritems()]
8159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8160
 
8161
  def __eq__(self, other):
8162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8163
 
8164
  def __ne__(self, other):
8165
    return not (self == other)
8166
 
8167
class markMissedInventoryUpdatesAsProcessed_result:
8168
 
8169
  thrift_spec = (
8170
  )
8171
 
8172
  def read(self, iprot):
8173
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8174
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8175
      return
8176
    iprot.readStructBegin()
8177
    while True:
8178
      (fname, ftype, fid) = iprot.readFieldBegin()
8179
      if ftype == TType.STOP:
8180
        break
8181
      else:
8182
        iprot.skip(ftype)
8183
      iprot.readFieldEnd()
8184
    iprot.readStructEnd()
8185
 
8186
  def write(self, oprot):
8187
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8188
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8189
      return
8190
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_result')
8191
    oprot.writeFieldStop()
8192
    oprot.writeStructEnd()
8193
 
8194
  def validate(self):
8195
    return
8196
 
8197
 
8198
  def __repr__(self):
8199
    L = ['%s=%r' % (key, value)
8200
      for key, value in self.__dict__.iteritems()]
8201
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8202
 
8203
  def __eq__(self, other):
8204
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8205
 
8206
  def __ne__(self, other):
8207
    return not (self == other)
8208
 
8209
class getIgnoredItemKeys_args:
8210
 
8211
  thrift_spec = (
8212
  )
8213
 
8214
  def read(self, iprot):
8215
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8216
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8217
      return
8218
    iprot.readStructBegin()
8219
    while True:
8220
      (fname, ftype, fid) = iprot.readFieldBegin()
8221
      if ftype == TType.STOP:
8222
        break
8223
      else:
8224
        iprot.skip(ftype)
8225
      iprot.readFieldEnd()
8226
    iprot.readStructEnd()
8227
 
8228
  def write(self, oprot):
8229
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8230
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8231
      return
8232
    oprot.writeStructBegin('getIgnoredItemKeys_args')
8233
    oprot.writeFieldStop()
8234
    oprot.writeStructEnd()
8235
 
8236
  def validate(self):
8237
    return
8238
 
8239
 
8240
  def __repr__(self):
8241
    L = ['%s=%r' % (key, value)
8242
      for key, value in self.__dict__.iteritems()]
8243
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8244
 
8245
  def __eq__(self, other):
8246
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8247
 
8248
  def __ne__(self, other):
8249
    return not (self == other)
8250
 
8251
class getIgnoredItemKeys_result:
8252
  """
8253
  Attributes:
8254
   - success
8255
  """
8256
 
8257
  thrift_spec = (
8258
    (0, TType.MAP, 'success', (TType.STRING,None,TType.MAP,(TType.I64,None,TType.I64,None)), None, ), # 0
8259
  )
8260
 
8261
  def __init__(self, success=None,):
8262
    self.success = success
8263
 
8264
  def read(self, iprot):
8265
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8266
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8267
      return
8268
    iprot.readStructBegin()
8269
    while True:
8270
      (fname, ftype, fid) = iprot.readFieldBegin()
8271
      if ftype == TType.STOP:
8272
        break
8273
      if fid == 0:
8274
        if ftype == TType.MAP:
8275
          self.success = {}
8182 amar.kumar 8276
          (_ktype109, _vtype110, _size108 ) = iprot.readMapBegin() 
8277
          for _i112 in xrange(_size108):
8278
            _key113 = iprot.readString();
8279
            _val114 = {}
8280
            (_ktype116, _vtype117, _size115 ) = iprot.readMapBegin() 
8281
            for _i119 in xrange(_size115):
8282
              _key120 = iprot.readI64();
8283
              _val121 = iprot.readI64();
8284
              _val114[_key120] = _val121
5944 mandeep.dh 8285
            iprot.readMapEnd()
8182 amar.kumar 8286
            self.success[_key113] = _val114
5944 mandeep.dh 8287
          iprot.readMapEnd()
8288
        else:
8289
          iprot.skip(ftype)
8290
      else:
8291
        iprot.skip(ftype)
8292
      iprot.readFieldEnd()
8293
    iprot.readStructEnd()
8294
 
8295
  def write(self, oprot):
8296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8297
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8298
      return
8299
    oprot.writeStructBegin('getIgnoredItemKeys_result')
8300
    if self.success is not None:
8301
      oprot.writeFieldBegin('success', TType.MAP, 0)
8302
      oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.success))
8182 amar.kumar 8303
      for kiter122,viter123 in self.success.items():
8304
        oprot.writeString(kiter122)
8305
        oprot.writeMapBegin(TType.I64, TType.I64, len(viter123))
8306
        for kiter124,viter125 in viter123.items():
8307
          oprot.writeI64(kiter124)
8308
          oprot.writeI64(viter125)
5944 mandeep.dh 8309
        oprot.writeMapEnd()
8310
      oprot.writeMapEnd()
8311
      oprot.writeFieldEnd()
8312
    oprot.writeFieldStop()
8313
    oprot.writeStructEnd()
8314
 
8315
  def validate(self):
8316
    return
8317
 
8318
 
8319
  def __repr__(self):
8320
    L = ['%s=%r' % (key, value)
8321
      for key, value in self.__dict__.iteritems()]
8322
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8323
 
8324
  def __eq__(self, other):
8325
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8326
 
8327
  def __ne__(self, other):
8328
    return not (self == other)
8329
 
8330
class addBadInventory_args:
8331
  """
8332
  Attributes:
8333
   - itemId
8334
   - warehouseId
8335
   - quantity
8336
  """
8337
 
8338
  thrift_spec = (
8339
    None, # 0
8340
    (1, TType.I64, 'itemId', None, None, ), # 1
8341
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8342
    (3, TType.I64, 'quantity', None, None, ), # 3
8343
  )
8344
 
8345
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
8346
    self.itemId = itemId
8347
    self.warehouseId = warehouseId
8348
    self.quantity = quantity
8349
 
8350
  def read(self, iprot):
8351
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8352
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8353
      return
8354
    iprot.readStructBegin()
8355
    while True:
8356
      (fname, ftype, fid) = iprot.readFieldBegin()
8357
      if ftype == TType.STOP:
8358
        break
8359
      if fid == 1:
8360
        if ftype == TType.I64:
8361
          self.itemId = iprot.readI64();
8362
        else:
8363
          iprot.skip(ftype)
8364
      elif fid == 2:
8365
        if ftype == TType.I64:
8366
          self.warehouseId = iprot.readI64();
8367
        else:
8368
          iprot.skip(ftype)
8369
      elif fid == 3:
8370
        if ftype == TType.I64:
8371
          self.quantity = iprot.readI64();
8372
        else:
8373
          iprot.skip(ftype)
8374
      else:
8375
        iprot.skip(ftype)
8376
      iprot.readFieldEnd()
8377
    iprot.readStructEnd()
8378
 
8379
  def write(self, oprot):
8380
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8381
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8382
      return
8383
    oprot.writeStructBegin('addBadInventory_args')
8384
    if self.itemId is not None:
8385
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8386
      oprot.writeI64(self.itemId)
8387
      oprot.writeFieldEnd()
8388
    if self.warehouseId is not None:
8389
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8390
      oprot.writeI64(self.warehouseId)
8391
      oprot.writeFieldEnd()
8392
    if self.quantity is not None:
8393
      oprot.writeFieldBegin('quantity', TType.I64, 3)
8394
      oprot.writeI64(self.quantity)
8395
      oprot.writeFieldEnd()
8396
    oprot.writeFieldStop()
8397
    oprot.writeStructEnd()
8398
 
8399
  def validate(self):
8400
    return
8401
 
8402
 
8403
  def __repr__(self):
8404
    L = ['%s=%r' % (key, value)
8405
      for key, value in self.__dict__.iteritems()]
8406
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8407
 
8408
  def __eq__(self, other):
8409
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8410
 
8411
  def __ne__(self, other):
8412
    return not (self == other)
8413
 
8414
class addBadInventory_result:
8415
  """
8416
  Attributes:
8417
   - cex
8418
  """
8419
 
8420
  thrift_spec = (
8421
    None, # 0
8422
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8423
  )
8424
 
8425
  def __init__(self, cex=None,):
8426
    self.cex = cex
8427
 
8428
  def read(self, iprot):
8429
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8430
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8431
      return
8432
    iprot.readStructBegin()
8433
    while True:
8434
      (fname, ftype, fid) = iprot.readFieldBegin()
8435
      if ftype == TType.STOP:
8436
        break
8437
      if fid == 1:
8438
        if ftype == TType.STRUCT:
8439
          self.cex = InventoryServiceException()
8440
          self.cex.read(iprot)
8441
        else:
8442
          iprot.skip(ftype)
8443
      else:
8444
        iprot.skip(ftype)
8445
      iprot.readFieldEnd()
8446
    iprot.readStructEnd()
8447
 
8448
  def write(self, oprot):
8449
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8450
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8451
      return
8452
    oprot.writeStructBegin('addBadInventory_result')
8453
    if self.cex is not None:
8454
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8455
      self.cex.write(oprot)
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 getShippingLocations_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('getShippingLocations_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 getShippingLocations_result:
8518
  """
8519
  Attributes:
8520
   - success
8521
  """
8522
 
8523
  thrift_spec = (
8524
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.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
          (_etype129, _size126) = iprot.readListBegin()
8543
          for _i130 in xrange(_size126):
8544
            _elem131 = Warehouse()
8545
            _elem131.read(iprot)
8546
            self.success.append(_elem131)
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('getShippingLocations_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 iter132 in self.success:
8564
        iter132.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 getAllVendorItemMappings_args:
8586
 
8587
  thrift_spec = (
8588
  )
8589
 
8590
  def read(self, iprot):
8591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8593
      return
8594
    iprot.readStructBegin()
8595
    while True:
8596
      (fname, ftype, fid) = iprot.readFieldBegin()
8597
      if ftype == TType.STOP:
8598
        break
8599
      else:
8600
        iprot.skip(ftype)
8601
      iprot.readFieldEnd()
8602
    iprot.readStructEnd()
8603
 
8604
  def write(self, oprot):
8605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8607
      return
8608
    oprot.writeStructBegin('getAllVendorItemMappings_args')
8609
    oprot.writeFieldStop()
8610
    oprot.writeStructEnd()
8611
 
8612
  def validate(self):
8613
    return
8614
 
8615
 
8616
  def __repr__(self):
8617
    L = ['%s=%r' % (key, value)
8618
      for key, value in self.__dict__.iteritems()]
8619
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8620
 
8621
  def __eq__(self, other):
8622
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8623
 
8624
  def __ne__(self, other):
8625
    return not (self == other)
8626
 
8627
class getAllVendorItemMappings_result:
8628
  """
8629
  Attributes:
8630
   - success
8631
  """
8632
 
8633
  thrift_spec = (
8634
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
8635
  )
8636
 
8637
  def __init__(self, success=None,):
8638
    self.success = success
8639
 
8640
  def read(self, iprot):
8641
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8642
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8643
      return
8644
    iprot.readStructBegin()
8645
    while True:
8646
      (fname, ftype, fid) = iprot.readFieldBegin()
8647
      if ftype == TType.STOP:
8648
        break
8649
      if fid == 0:
8650
        if ftype == TType.LIST:
8651
          self.success = []
8182 amar.kumar 8652
          (_etype136, _size133) = iprot.readListBegin()
8653
          for _i137 in xrange(_size133):
8654
            _elem138 = VendorItemMapping()
8655
            _elem138.read(iprot)
8656
            self.success.append(_elem138)
5944 mandeep.dh 8657
          iprot.readListEnd()
8658
        else:
8659
          iprot.skip(ftype)
8660
      else:
8661
        iprot.skip(ftype)
8662
      iprot.readFieldEnd()
8663
    iprot.readStructEnd()
8664
 
8665
  def write(self, oprot):
8666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8668
      return
8669
    oprot.writeStructBegin('getAllVendorItemMappings_result')
8670
    if self.success is not None:
8671
      oprot.writeFieldBegin('success', TType.LIST, 0)
8672
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8673
      for iter139 in self.success:
8674
        iter139.write(oprot)
5944 mandeep.dh 8675
      oprot.writeListEnd()
8676
      oprot.writeFieldEnd()
8677
    oprot.writeFieldStop()
8678
    oprot.writeStructEnd()
8679
 
8680
  def validate(self):
8681
    return
8682
 
8683
 
8684
  def __repr__(self):
8685
    L = ['%s=%r' % (key, value)
8686
      for key, value in self.__dict__.iteritems()]
8687
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8688
 
8689
  def __eq__(self, other):
8690
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8691
 
8692
  def __ne__(self, other):
8693
    return not (self == other)
8694
 
8695
class getInventorySnapshot_args:
8696
  """
8697
  Attributes:
8698
   - warehouseId
8699
  """
8700
 
8701
  thrift_spec = (
8702
    None, # 0
8703
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8704
  )
8705
 
8706
  def __init__(self, warehouseId=None,):
8707
    self.warehouseId = warehouseId
8708
 
8709
  def read(self, iprot):
8710
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8711
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8712
      return
8713
    iprot.readStructBegin()
8714
    while True:
8715
      (fname, ftype, fid) = iprot.readFieldBegin()
8716
      if ftype == TType.STOP:
8717
        break
8718
      if fid == 1:
8719
        if ftype == TType.I64:
8720
          self.warehouseId = iprot.readI64();
8721
        else:
8722
          iprot.skip(ftype)
8723
      else:
8724
        iprot.skip(ftype)
8725
      iprot.readFieldEnd()
8726
    iprot.readStructEnd()
8727
 
8728
  def write(self, oprot):
8729
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8730
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8731
      return
8732
    oprot.writeStructBegin('getInventorySnapshot_args')
8733
    if self.warehouseId is not None:
8734
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8735
      oprot.writeI64(self.warehouseId)
8736
      oprot.writeFieldEnd()
8737
    oprot.writeFieldStop()
8738
    oprot.writeStructEnd()
8739
 
8740
  def validate(self):
8741
    return
8742
 
8743
 
8744
  def __repr__(self):
8745
    L = ['%s=%r' % (key, value)
8746
      for key, value in self.__dict__.iteritems()]
8747
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8748
 
8749
  def __eq__(self, other):
8750
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8751
 
8752
  def __ne__(self, other):
8753
    return not (self == other)
8754
 
8755
class getInventorySnapshot_result:
8756
  """
8757
  Attributes:
8758
   - success
8759
  """
8760
 
8761
  thrift_spec = (
8762
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ItemInventory, ItemInventory.thrift_spec)), None, ), # 0
8763
  )
8764
 
8765
  def __init__(self, success=None,):
8766
    self.success = success
8767
 
8768
  def read(self, iprot):
8769
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8770
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8771
      return
8772
    iprot.readStructBegin()
8773
    while True:
8774
      (fname, ftype, fid) = iprot.readFieldBegin()
8775
      if ftype == TType.STOP:
8776
        break
8777
      if fid == 0:
8778
        if ftype == TType.MAP:
8779
          self.success = {}
8182 amar.kumar 8780
          (_ktype141, _vtype142, _size140 ) = iprot.readMapBegin() 
8781
          for _i144 in xrange(_size140):
8782
            _key145 = iprot.readI64();
8783
            _val146 = ItemInventory()
8784
            _val146.read(iprot)
8785
            self.success[_key145] = _val146
5944 mandeep.dh 8786
          iprot.readMapEnd()
8787
        else:
8788
          iprot.skip(ftype)
8789
      else:
8790
        iprot.skip(ftype)
8791
      iprot.readFieldEnd()
8792
    iprot.readStructEnd()
8793
 
8794
  def write(self, oprot):
8795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8797
      return
8798
    oprot.writeStructBegin('getInventorySnapshot_result')
8799
    if self.success is not None:
8800
      oprot.writeFieldBegin('success', TType.MAP, 0)
8801
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
8182 amar.kumar 8802
      for kiter147,viter148 in self.success.items():
8803
        oprot.writeI64(kiter147)
8804
        viter148.write(oprot)
5944 mandeep.dh 8805
      oprot.writeMapEnd()
8806
      oprot.writeFieldEnd()
8807
    oprot.writeFieldStop()
8808
    oprot.writeStructEnd()
8809
 
8810
  def validate(self):
8811
    return
8812
 
8813
 
8814
  def __repr__(self):
8815
    L = ['%s=%r' % (key, value)
8816
      for key, value in self.__dict__.iteritems()]
8817
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8818
 
8819
  def __eq__(self, other):
8820
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8821
 
8822
  def __ne__(self, other):
8823
    return not (self == other)
8824
 
8825
class clearItemAvailabilityCache_args:
8826
 
8827
  thrift_spec = (
8828
  )
8829
 
8830
  def read(self, iprot):
8831
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8832
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8833
      return
8834
    iprot.readStructBegin()
8835
    while True:
8836
      (fname, ftype, fid) = iprot.readFieldBegin()
8837
      if ftype == TType.STOP:
8838
        break
8839
      else:
8840
        iprot.skip(ftype)
8841
      iprot.readFieldEnd()
8842
    iprot.readStructEnd()
8843
 
8844
  def write(self, oprot):
8845
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8846
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8847
      return
8848
    oprot.writeStructBegin('clearItemAvailabilityCache_args')
8849
    oprot.writeFieldStop()
8850
    oprot.writeStructEnd()
8851
 
8852
  def validate(self):
8853
    return
8854
 
8855
 
8856
  def __repr__(self):
8857
    L = ['%s=%r' % (key, value)
8858
      for key, value in self.__dict__.iteritems()]
8859
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8860
 
8861
  def __eq__(self, other):
8862
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8863
 
8864
  def __ne__(self, other):
8865
    return not (self == other)
8866
 
8867
class clearItemAvailabilityCache_result:
8868
 
8869
  thrift_spec = (
8870
  )
8871
 
8872
  def read(self, iprot):
8873
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8874
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8875
      return
8876
    iprot.readStructBegin()
8877
    while True:
8878
      (fname, ftype, fid) = iprot.readFieldBegin()
8879
      if ftype == TType.STOP:
8880
        break
8881
      else:
8882
        iprot.skip(ftype)
8883
      iprot.readFieldEnd()
8884
    iprot.readStructEnd()
8885
 
8886
  def write(self, oprot):
8887
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8888
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8889
      return
8890
    oprot.writeStructBegin('clearItemAvailabilityCache_result')
8891
    oprot.writeFieldStop()
8892
    oprot.writeStructEnd()
8893
 
8894
  def validate(self):
8895
    return
8896
 
8897
 
8898
  def __repr__(self):
8899
    L = ['%s=%r' % (key, value)
8900
      for key, value in self.__dict__.iteritems()]
8901
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8902
 
8903
  def __eq__(self, other):
8904
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8905
 
8906
  def __ne__(self, other):
8907
    return not (self == other)
8908
 
8909
class updateVendorString_args:
8910
  """
8911
  Attributes:
8912
   - warehouseId
8913
   - vendorString
8914
  """
8915
 
8916
  thrift_spec = (
8917
    None, # 0
8918
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8919
    (2, TType.STRING, 'vendorString', None, None, ), # 2
8920
  )
8921
 
8922
  def __init__(self, warehouseId=None, vendorString=None,):
8923
    self.warehouseId = warehouseId
8924
    self.vendorString = vendorString
8925
 
8926
  def read(self, iprot):
8927
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8928
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8929
      return
8930
    iprot.readStructBegin()
8931
    while True:
8932
      (fname, ftype, fid) = iprot.readFieldBegin()
8933
      if ftype == TType.STOP:
8934
        break
8935
      if fid == 1:
8936
        if ftype == TType.I64:
8937
          self.warehouseId = iprot.readI64();
8938
        else:
8939
          iprot.skip(ftype)
8940
      elif fid == 2:
8941
        if ftype == TType.STRING:
8942
          self.vendorString = iprot.readString();
8943
        else:
8944
          iprot.skip(ftype)
8945
      else:
8946
        iprot.skip(ftype)
8947
      iprot.readFieldEnd()
8948
    iprot.readStructEnd()
8949
 
8950
  def write(self, oprot):
8951
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8952
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8953
      return
8954
    oprot.writeStructBegin('updateVendorString_args')
8955
    if self.warehouseId is not None:
8956
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8957
      oprot.writeI64(self.warehouseId)
8958
      oprot.writeFieldEnd()
8959
    if self.vendorString is not None:
8960
      oprot.writeFieldBegin('vendorString', TType.STRING, 2)
8961
      oprot.writeString(self.vendorString)
8962
      oprot.writeFieldEnd()
8963
    oprot.writeFieldStop()
8964
    oprot.writeStructEnd()
8965
 
8966
  def validate(self):
8967
    return
8968
 
8969
 
8970
  def __repr__(self):
8971
    L = ['%s=%r' % (key, value)
8972
      for key, value in self.__dict__.iteritems()]
8973
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8974
 
8975
  def __eq__(self, other):
8976
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8977
 
8978
  def __ne__(self, other):
8979
    return not (self == other)
8980
 
8981
class updateVendorString_result:
8982
 
8983
  thrift_spec = (
8984
  )
8985
 
8986
  def read(self, iprot):
8987
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8988
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8989
      return
8990
    iprot.readStructBegin()
8991
    while True:
8992
      (fname, ftype, fid) = iprot.readFieldBegin()
8993
      if ftype == TType.STOP:
8994
        break
8995
      else:
8996
        iprot.skip(ftype)
8997
      iprot.readFieldEnd()
8998
    iprot.readStructEnd()
8999
 
9000
  def write(self, oprot):
9001
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9002
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9003
      return
9004
    oprot.writeStructBegin('updateVendorString_result')
9005
    oprot.writeFieldStop()
9006
    oprot.writeStructEnd()
9007
 
9008
  def validate(self):
9009
    return
9010
 
9011
 
9012
  def __repr__(self):
9013
    L = ['%s=%r' % (key, value)
9014
      for key, value in self.__dict__.iteritems()]
9015
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9016
 
9017
  def __eq__(self, other):
9018
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9019
 
9020
  def __ne__(self, other):
9021
    return not (self == other)
6096 amit.gupta 9022
 
9023
class clearItemAvailabilityCacheForItem_args:
9024
  """
9025
  Attributes:
9026
   - item_id
9027
  """
9028
 
9029
  thrift_spec = (
9030
    None, # 0
9031
    (1, TType.I64, 'item_id', None, None, ), # 1
9032
  )
9033
 
9034
  def __init__(self, item_id=None,):
9035
    self.item_id = item_id
9036
 
9037
  def read(self, iprot):
9038
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9039
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9040
      return
9041
    iprot.readStructBegin()
9042
    while True:
9043
      (fname, ftype, fid) = iprot.readFieldBegin()
9044
      if ftype == TType.STOP:
9045
        break
9046
      if fid == 1:
9047
        if ftype == TType.I64:
9048
          self.item_id = iprot.readI64();
9049
        else:
9050
          iprot.skip(ftype)
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('clearItemAvailabilityCacheForItem_args')
9061
    if self.item_id is not None:
9062
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9063
      oprot.writeI64(self.item_id)
9064
      oprot.writeFieldEnd()
9065
    oprot.writeFieldStop()
9066
    oprot.writeStructEnd()
9067
 
9068
  def validate(self):
9069
    return
9070
 
9071
 
9072
  def __repr__(self):
9073
    L = ['%s=%r' % (key, value)
9074
      for key, value in self.__dict__.iteritems()]
9075
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9076
 
9077
  def __eq__(self, other):
9078
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9079
 
9080
  def __ne__(self, other):
9081
    return not (self == other)
9082
 
9083
class clearItemAvailabilityCacheForItem_result:
9084
 
9085
  thrift_spec = (
9086
  )
9087
 
9088
  def read(self, iprot):
9089
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9090
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9091
      return
9092
    iprot.readStructBegin()
9093
    while True:
9094
      (fname, ftype, fid) = iprot.readFieldBegin()
9095
      if ftype == TType.STOP:
9096
        break
9097
      else:
9098
        iprot.skip(ftype)
9099
      iprot.readFieldEnd()
9100
    iprot.readStructEnd()
9101
 
9102
  def write(self, oprot):
9103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9105
      return
9106
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_result')
9107
    oprot.writeFieldStop()
9108
    oprot.writeStructEnd()
9109
 
9110
  def validate(self):
9111
    return
9112
 
9113
 
9114
  def __repr__(self):
9115
    L = ['%s=%r' % (key, value)
9116
      for key, value in self.__dict__.iteritems()]
9117
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9118
 
9119
  def __eq__(self, other):
9120
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9121
 
9122
  def __ne__(self, other):
9123
    return not (self == other)
6467 amar.kumar 9124
 
9125
class getOurWarehouseIdForVendor_args:
9126
  """
9127
  Attributes:
9128
   - vendorId
7718 amar.kumar 9129
   - billingWarehouseId
6467 amar.kumar 9130
  """
9131
 
9132
  thrift_spec = (
9133
    None, # 0
9134
    (1, TType.I64, 'vendorId', None, None, ), # 1
7718 amar.kumar 9135
    (2, TType.I64, 'billingWarehouseId', None, None, ), # 2
6467 amar.kumar 9136
  )
9137
 
7718 amar.kumar 9138
  def __init__(self, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 9139
    self.vendorId = vendorId
7718 amar.kumar 9140
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 9141
 
9142
  def read(self, iprot):
9143
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9144
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9145
      return
9146
    iprot.readStructBegin()
9147
    while True:
9148
      (fname, ftype, fid) = iprot.readFieldBegin()
9149
      if ftype == TType.STOP:
9150
        break
9151
      if fid == 1:
9152
        if ftype == TType.I64:
9153
          self.vendorId = iprot.readI64();
9154
        else:
9155
          iprot.skip(ftype)
7718 amar.kumar 9156
      elif fid == 2:
9157
        if ftype == TType.I64:
9158
          self.billingWarehouseId = iprot.readI64();
9159
        else:
9160
          iprot.skip(ftype)
6467 amar.kumar 9161
      else:
9162
        iprot.skip(ftype)
9163
      iprot.readFieldEnd()
9164
    iprot.readStructEnd()
9165
 
9166
  def write(self, oprot):
9167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9169
      return
9170
    oprot.writeStructBegin('getOurWarehouseIdForVendor_args')
9171
    if self.vendorId is not None:
9172
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
9173
      oprot.writeI64(self.vendorId)
9174
      oprot.writeFieldEnd()
7718 amar.kumar 9175
    if self.billingWarehouseId is not None:
9176
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 2)
9177
      oprot.writeI64(self.billingWarehouseId)
9178
      oprot.writeFieldEnd()
6467 amar.kumar 9179
    oprot.writeFieldStop()
9180
    oprot.writeStructEnd()
9181
 
9182
  def validate(self):
9183
    return
9184
 
9185
 
9186
  def __repr__(self):
9187
    L = ['%s=%r' % (key, value)
9188
      for key, value in self.__dict__.iteritems()]
9189
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9190
 
9191
  def __eq__(self, other):
9192
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9193
 
9194
  def __ne__(self, other):
9195
    return not (self == other)
9196
 
9197
class getOurWarehouseIdForVendor_result:
9198
  """
9199
  Attributes:
9200
   - success
9201
  """
9202
 
9203
  thrift_spec = (
9204
    (0, TType.I64, 'success', None, None, ), # 0
9205
  )
9206
 
9207
  def __init__(self, success=None,):
9208
    self.success = success
9209
 
9210
  def read(self, iprot):
9211
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9212
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9213
      return
9214
    iprot.readStructBegin()
9215
    while True:
9216
      (fname, ftype, fid) = iprot.readFieldBegin()
9217
      if ftype == TType.STOP:
9218
        break
9219
      if fid == 0:
9220
        if ftype == TType.I64:
9221
          self.success = iprot.readI64();
9222
        else:
9223
          iprot.skip(ftype)
9224
      else:
9225
        iprot.skip(ftype)
9226
      iprot.readFieldEnd()
9227
    iprot.readStructEnd()
9228
 
9229
  def write(self, oprot):
9230
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9231
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9232
      return
9233
    oprot.writeStructBegin('getOurWarehouseIdForVendor_result')
9234
    if self.success is not None:
9235
      oprot.writeFieldBegin('success', TType.I64, 0)
9236
      oprot.writeI64(self.success)
9237
      oprot.writeFieldEnd()
9238
    oprot.writeFieldStop()
9239
    oprot.writeStructEnd()
9240
 
9241
  def validate(self):
9242
    return
9243
 
9244
 
9245
  def __repr__(self):
9246
    L = ['%s=%r' % (key, value)
9247
      for key, value in self.__dict__.iteritems()]
9248
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9249
 
9250
  def __eq__(self, other):
9251
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9252
 
9253
  def __ne__(self, other):
9254
    return not (self == other)
6484 amar.kumar 9255
 
9256
class getItemAvailabilitiesAtOurWarehouses_args:
9257
  """
9258
  Attributes:
9259
   - item_ids
9260
  """
9261
 
9262
  thrift_spec = (
9263
    None, # 0
9264
    (1, TType.LIST, 'item_ids', (TType.I64,None), None, ), # 1
9265
  )
9266
 
9267
  def __init__(self, item_ids=None,):
9268
    self.item_ids = item_ids
9269
 
9270
  def read(self, iprot):
9271
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9272
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9273
      return
9274
    iprot.readStructBegin()
9275
    while True:
9276
      (fname, ftype, fid) = iprot.readFieldBegin()
9277
      if ftype == TType.STOP:
9278
        break
9279
      if fid == 1:
9280
        if ftype == TType.LIST:
9281
          self.item_ids = []
8182 amar.kumar 9282
          (_etype152, _size149) = iprot.readListBegin()
9283
          for _i153 in xrange(_size149):
9284
            _elem154 = iprot.readI64();
9285
            self.item_ids.append(_elem154)
6484 amar.kumar 9286
          iprot.readListEnd()
9287
        else:
9288
          iprot.skip(ftype)
9289
      else:
9290
        iprot.skip(ftype)
9291
      iprot.readFieldEnd()
9292
    iprot.readStructEnd()
9293
 
9294
  def write(self, oprot):
9295
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9296
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9297
      return
9298
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_args')
9299
    if self.item_ids is not None:
9300
      oprot.writeFieldBegin('item_ids', TType.LIST, 1)
9301
      oprot.writeListBegin(TType.I64, len(self.item_ids))
8182 amar.kumar 9302
      for iter155 in self.item_ids:
9303
        oprot.writeI64(iter155)
6484 amar.kumar 9304
      oprot.writeListEnd()
9305
      oprot.writeFieldEnd()
9306
    oprot.writeFieldStop()
9307
    oprot.writeStructEnd()
9308
 
9309
  def validate(self):
9310
    return
9311
 
9312
 
9313
  def __repr__(self):
9314
    L = ['%s=%r' % (key, value)
9315
      for key, value in self.__dict__.iteritems()]
9316
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9317
 
9318
  def __eq__(self, other):
9319
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9320
 
9321
  def __ne__(self, other):
9322
    return not (self == other)
9323
 
9324
class getItemAvailabilitiesAtOurWarehouses_result:
9325
  """
9326
  Attributes:
9327
   - success
9328
  """
9329
 
9330
  thrift_spec = (
9331
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
9332
  )
9333
 
9334
  def __init__(self, success=None,):
9335
    self.success = success
9336
 
9337
  def read(self, iprot):
9338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9340
      return
9341
    iprot.readStructBegin()
9342
    while True:
9343
      (fname, ftype, fid) = iprot.readFieldBegin()
9344
      if ftype == TType.STOP:
9345
        break
9346
      if fid == 0:
9347
        if ftype == TType.MAP:
9348
          self.success = {}
8182 amar.kumar 9349
          (_ktype157, _vtype158, _size156 ) = iprot.readMapBegin() 
9350
          for _i160 in xrange(_size156):
9351
            _key161 = iprot.readI64();
9352
            _val162 = iprot.readI64();
9353
            self.success[_key161] = _val162
6484 amar.kumar 9354
          iprot.readMapEnd()
9355
        else:
9356
          iprot.skip(ftype)
9357
      else:
9358
        iprot.skip(ftype)
9359
      iprot.readFieldEnd()
9360
    iprot.readStructEnd()
9361
 
9362
  def write(self, oprot):
9363
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9364
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9365
      return
9366
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_result')
9367
    if self.success is not None:
9368
      oprot.writeFieldBegin('success', TType.MAP, 0)
9369
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
8182 amar.kumar 9370
      for kiter163,viter164 in self.success.items():
9371
        oprot.writeI64(kiter163)
9372
        oprot.writeI64(viter164)
6484 amar.kumar 9373
      oprot.writeMapEnd()
9374
      oprot.writeFieldEnd()
9375
    oprot.writeFieldStop()
9376
    oprot.writeStructEnd()
9377
 
9378
  def validate(self):
9379
    return
9380
 
9381
 
9382
  def __repr__(self):
9383
    L = ['%s=%r' % (key, value)
9384
      for key, value in self.__dict__.iteritems()]
9385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9386
 
9387
  def __eq__(self, other):
9388
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9389
 
9390
  def __ne__(self, other):
9391
    return not (self == other)
6531 vikram.rag 9392
 
9393
class getMonitoredWarehouseForVendors_args:
9394
  """
9395
  Attributes:
9396
   - vendorIds
9397
  """
9398
 
9399
  thrift_spec = (
9400
    None, # 0
9401
    (1, TType.LIST, 'vendorIds', (TType.I64,None), None, ), # 1
9402
  )
9403
 
9404
  def __init__(self, vendorIds=None,):
9405
    self.vendorIds = vendorIds
9406
 
9407
  def read(self, iprot):
9408
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9409
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9410
      return
9411
    iprot.readStructBegin()
9412
    while True:
9413
      (fname, ftype, fid) = iprot.readFieldBegin()
9414
      if ftype == TType.STOP:
9415
        break
9416
      if fid == 1:
9417
        if ftype == TType.LIST:
9418
          self.vendorIds = []
8182 amar.kumar 9419
          (_etype168, _size165) = iprot.readListBegin()
9420
          for _i169 in xrange(_size165):
9421
            _elem170 = iprot.readI64();
9422
            self.vendorIds.append(_elem170)
6531 vikram.rag 9423
          iprot.readListEnd()
9424
        else:
9425
          iprot.skip(ftype)
9426
      else:
9427
        iprot.skip(ftype)
9428
      iprot.readFieldEnd()
9429
    iprot.readStructEnd()
9430
 
9431
  def write(self, oprot):
9432
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9433
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9434
      return
9435
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_args')
9436
    if self.vendorIds is not None:
9437
      oprot.writeFieldBegin('vendorIds', TType.LIST, 1)
9438
      oprot.writeListBegin(TType.I64, len(self.vendorIds))
8182 amar.kumar 9439
      for iter171 in self.vendorIds:
9440
        oprot.writeI64(iter171)
6531 vikram.rag 9441
      oprot.writeListEnd()
9442
      oprot.writeFieldEnd()
9443
    oprot.writeFieldStop()
9444
    oprot.writeStructEnd()
9445
 
9446
  def validate(self):
9447
    return
9448
 
9449
 
9450
  def __repr__(self):
9451
    L = ['%s=%r' % (key, value)
9452
      for key, value in self.__dict__.iteritems()]
9453
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9454
 
9455
  def __eq__(self, other):
9456
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9457
 
9458
  def __ne__(self, other):
9459
    return not (self == other)
9460
 
9461
class getMonitoredWarehouseForVendors_result:
9462
  """
9463
  Attributes:
9464
   - success
9465
  """
9466
 
9467
  thrift_spec = (
9468
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9469
  )
9470
 
9471
  def __init__(self, success=None,):
9472
    self.success = success
9473
 
9474
  def read(self, iprot):
9475
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9476
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9477
      return
9478
    iprot.readStructBegin()
9479
    while True:
9480
      (fname, ftype, fid) = iprot.readFieldBegin()
9481
      if ftype == TType.STOP:
9482
        break
9483
      if fid == 0:
9484
        if ftype == TType.LIST:
9485
          self.success = []
8182 amar.kumar 9486
          (_etype175, _size172) = iprot.readListBegin()
9487
          for _i176 in xrange(_size172):
9488
            _elem177 = iprot.readI64();
9489
            self.success.append(_elem177)
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('getMonitoredWarehouseForVendors_result')
9503
    if self.success is not None:
9504
      oprot.writeFieldBegin('success', TType.LIST, 0)
9505
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 9506
      for iter178 in self.success:
9507
        oprot.writeI64(iter178)
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 getIgnoredWarehouseidsAndItemids_args:
9529
 
9530
  thrift_spec = (
9531
  )
9532
 
9533
  def read(self, iprot):
9534
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9535
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9536
      return
9537
    iprot.readStructBegin()
9538
    while True:
9539
      (fname, ftype, fid) = iprot.readFieldBegin()
9540
      if ftype == TType.STOP:
9541
        break
9542
      else:
9543
        iprot.skip(ftype)
9544
      iprot.readFieldEnd()
9545
    iprot.readStructEnd()
9546
 
9547
  def write(self, oprot):
9548
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9549
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9550
      return
9551
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_args')
9552
    oprot.writeFieldStop()
9553
    oprot.writeStructEnd()
9554
 
9555
  def validate(self):
9556
    return
9557
 
9558
 
9559
  def __repr__(self):
9560
    L = ['%s=%r' % (key, value)
9561
      for key, value in self.__dict__.iteritems()]
9562
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9563
 
9564
  def __eq__(self, other):
9565
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9566
 
9567
  def __ne__(self, other):
9568
    return not (self == other)
9569
 
9570
class getIgnoredWarehouseidsAndItemids_result:
9571
  """
9572
  Attributes:
9573
   - success
9574
  """
9575
 
9576
  thrift_spec = (
9577
    (0, TType.LIST, 'success', (TType.STRUCT,(IgnoredInventoryUpdateItems, IgnoredInventoryUpdateItems.thrift_spec)), None, ), # 0
9578
  )
9579
 
9580
  def __init__(self, success=None,):
9581
    self.success = success
9582
 
9583
  def read(self, iprot):
9584
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9585
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9586
      return
9587
    iprot.readStructBegin()
9588
    while True:
9589
      (fname, ftype, fid) = iprot.readFieldBegin()
9590
      if ftype == TType.STOP:
9591
        break
9592
      if fid == 0:
9593
        if ftype == TType.LIST:
9594
          self.success = []
8182 amar.kumar 9595
          (_etype182, _size179) = iprot.readListBegin()
9596
          for _i183 in xrange(_size179):
9597
            _elem184 = IgnoredInventoryUpdateItems()
9598
            _elem184.read(iprot)
9599
            self.success.append(_elem184)
6531 vikram.rag 9600
          iprot.readListEnd()
9601
        else:
9602
          iprot.skip(ftype)
9603
      else:
9604
        iprot.skip(ftype)
9605
      iprot.readFieldEnd()
9606
    iprot.readStructEnd()
9607
 
9608
  def write(self, oprot):
9609
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9610
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9611
      return
9612
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_result')
9613
    if self.success is not None:
9614
      oprot.writeFieldBegin('success', TType.LIST, 0)
9615
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 9616
      for iter185 in self.success:
9617
        iter185.write(oprot)
6531 vikram.rag 9618
      oprot.writeListEnd()
9619
      oprot.writeFieldEnd()
9620
    oprot.writeFieldStop()
9621
    oprot.writeStructEnd()
9622
 
9623
  def validate(self):
9624
    return
9625
 
9626
 
9627
  def __repr__(self):
9628
    L = ['%s=%r' % (key, value)
9629
      for key, value in self.__dict__.iteritems()]
9630
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9631
 
9632
  def __eq__(self, other):
9633
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9634
 
9635
  def __ne__(self, other):
9636
    return not (self == other)
9637
 
9638
class insertItemtoIgnoreInventoryUpdatelist_args:
9639
  """
9640
  Attributes:
9641
   - item_id
9642
   - warehouse_id
9643
  """
9644
 
9645
  thrift_spec = (
9646
    None, # 0
9647
    (1, TType.I64, 'item_id', None, None, ), # 1
9648
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
9649
  )
9650
 
9651
  def __init__(self, item_id=None, warehouse_id=None,):
9652
    self.item_id = item_id
9653
    self.warehouse_id = warehouse_id
9654
 
9655
  def read(self, iprot):
9656
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9657
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9658
      return
9659
    iprot.readStructBegin()
9660
    while True:
9661
      (fname, ftype, fid) = iprot.readFieldBegin()
9662
      if ftype == TType.STOP:
9663
        break
9664
      if fid == 1:
9665
        if ftype == TType.I64:
9666
          self.item_id = iprot.readI64();
9667
        else:
9668
          iprot.skip(ftype)
9669
      elif fid == 2:
9670
        if ftype == TType.I64:
9671
          self.warehouse_id = iprot.readI64();
9672
        else:
9673
          iprot.skip(ftype)
9674
      else:
9675
        iprot.skip(ftype)
9676
      iprot.readFieldEnd()
9677
    iprot.readStructEnd()
9678
 
9679
  def write(self, oprot):
9680
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9681
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9682
      return
9683
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_args')
9684
    if self.item_id is not None:
9685
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9686
      oprot.writeI64(self.item_id)
9687
      oprot.writeFieldEnd()
9688
    if self.warehouse_id is not None:
9689
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
9690
      oprot.writeI64(self.warehouse_id)
9691
      oprot.writeFieldEnd()
9692
    oprot.writeFieldStop()
9693
    oprot.writeStructEnd()
9694
 
9695
  def validate(self):
9696
    return
9697
 
9698
 
9699
  def __repr__(self):
9700
    L = ['%s=%r' % (key, value)
9701
      for key, value in self.__dict__.iteritems()]
9702
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9703
 
9704
  def __eq__(self, other):
9705
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9706
 
9707
  def __ne__(self, other):
9708
    return not (self == other)
9709
 
9710
class insertItemtoIgnoreInventoryUpdatelist_result:
9711
  """
9712
  Attributes:
9713
   - success
9714
  """
9715
 
9716
  thrift_spec = (
9717
    (0, TType.BOOL, 'success', None, None, ), # 0
9718
  )
9719
 
9720
  def __init__(self, success=None,):
9721
    self.success = success
9722
 
9723
  def read(self, iprot):
9724
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9725
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9726
      return
9727
    iprot.readStructBegin()
9728
    while True:
9729
      (fname, ftype, fid) = iprot.readFieldBegin()
9730
      if ftype == TType.STOP:
9731
        break
9732
      if fid == 0:
9733
        if ftype == TType.BOOL:
9734
          self.success = iprot.readBool();
9735
        else:
9736
          iprot.skip(ftype)
9737
      else:
9738
        iprot.skip(ftype)
9739
      iprot.readFieldEnd()
9740
    iprot.readStructEnd()
9741
 
9742
  def write(self, oprot):
9743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9745
      return
9746
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_result')
9747
    if self.success is not None:
9748
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9749
      oprot.writeBool(self.success)
9750
      oprot.writeFieldEnd()
9751
    oprot.writeFieldStop()
9752
    oprot.writeStructEnd()
9753
 
9754
  def validate(self):
9755
    return
9756
 
9757
 
9758
  def __repr__(self):
9759
    L = ['%s=%r' % (key, value)
9760
      for key, value in self.__dict__.iteritems()]
9761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9762
 
9763
  def __eq__(self, other):
9764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9765
 
9766
  def __ne__(self, other):
9767
    return not (self == other)
9768
 
9769
class deleteItemFromIgnoredInventoryUpdateList_args:
9770
  """
9771
  Attributes:
9772
   - item_id
9773
   - warehouse_id
9774
  """
9775
 
9776
  thrift_spec = (
9777
    None, # 0
9778
    (1, TType.I64, 'item_id', None, None, ), # 1
9779
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
9780
  )
9781
 
9782
  def __init__(self, item_id=None, warehouse_id=None,):
9783
    self.item_id = item_id
9784
    self.warehouse_id = warehouse_id
9785
 
9786
  def read(self, iprot):
9787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9789
      return
9790
    iprot.readStructBegin()
9791
    while True:
9792
      (fname, ftype, fid) = iprot.readFieldBegin()
9793
      if ftype == TType.STOP:
9794
        break
9795
      if fid == 1:
9796
        if ftype == TType.I64:
9797
          self.item_id = iprot.readI64();
9798
        else:
9799
          iprot.skip(ftype)
9800
      elif fid == 2:
9801
        if ftype == TType.I64:
9802
          self.warehouse_id = iprot.readI64();
9803
        else:
9804
          iprot.skip(ftype)
9805
      else:
9806
        iprot.skip(ftype)
9807
      iprot.readFieldEnd()
9808
    iprot.readStructEnd()
9809
 
9810
  def write(self, oprot):
9811
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9812
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9813
      return
9814
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_args')
9815
    if self.item_id is not None:
9816
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9817
      oprot.writeI64(self.item_id)
9818
      oprot.writeFieldEnd()
9819
    if self.warehouse_id is not None:
9820
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
9821
      oprot.writeI64(self.warehouse_id)
9822
      oprot.writeFieldEnd()
9823
    oprot.writeFieldStop()
9824
    oprot.writeStructEnd()
9825
 
9826
  def validate(self):
9827
    return
9828
 
9829
 
9830
  def __repr__(self):
9831
    L = ['%s=%r' % (key, value)
9832
      for key, value in self.__dict__.iteritems()]
9833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9834
 
9835
  def __eq__(self, other):
9836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9837
 
9838
  def __ne__(self, other):
9839
    return not (self == other)
9840
 
9841
class deleteItemFromIgnoredInventoryUpdateList_result:
9842
  """
9843
  Attributes:
9844
   - success
9845
  """
9846
 
9847
  thrift_spec = (
9848
    (0, TType.BOOL, 'success', None, None, ), # 0
9849
  )
9850
 
9851
  def __init__(self, success=None,):
9852
    self.success = success
9853
 
9854
  def read(self, iprot):
9855
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9856
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9857
      return
9858
    iprot.readStructBegin()
9859
    while True:
9860
      (fname, ftype, fid) = iprot.readFieldBegin()
9861
      if ftype == TType.STOP:
9862
        break
9863
      if fid == 0:
9864
        if ftype == TType.BOOL:
9865
          self.success = iprot.readBool();
9866
        else:
9867
          iprot.skip(ftype)
9868
      else:
9869
        iprot.skip(ftype)
9870
      iprot.readFieldEnd()
9871
    iprot.readStructEnd()
9872
 
9873
  def write(self, oprot):
9874
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9875
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9876
      return
9877
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_result')
9878
    if self.success is not None:
9879
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9880
      oprot.writeBool(self.success)
9881
      oprot.writeFieldEnd()
9882
    oprot.writeFieldStop()
9883
    oprot.writeStructEnd()
9884
 
9885
  def validate(self):
9886
    return
9887
 
9888
 
9889
  def __repr__(self):
9890
    L = ['%s=%r' % (key, value)
9891
      for key, value in self.__dict__.iteritems()]
9892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9893
 
9894
  def __eq__(self, other):
9895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9896
 
9897
  def __ne__(self, other):
9898
    return not (self == other)
9899
 
9900
class getAllIgnoredInventoryupdateItemsCount_args:
9901
 
9902
  thrift_spec = (
9903
  )
9904
 
9905
  def read(self, iprot):
9906
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9907
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9908
      return
9909
    iprot.readStructBegin()
9910
    while True:
9911
      (fname, ftype, fid) = iprot.readFieldBegin()
9912
      if ftype == TType.STOP:
9913
        break
9914
      else:
9915
        iprot.skip(ftype)
9916
      iprot.readFieldEnd()
9917
    iprot.readStructEnd()
9918
 
9919
  def write(self, oprot):
9920
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9921
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9922
      return
9923
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_args')
9924
    oprot.writeFieldStop()
9925
    oprot.writeStructEnd()
9926
 
9927
  def validate(self):
9928
    return
9929
 
9930
 
9931
  def __repr__(self):
9932
    L = ['%s=%r' % (key, value)
9933
      for key, value in self.__dict__.iteritems()]
9934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9935
 
9936
  def __eq__(self, other):
9937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9938
 
9939
  def __ne__(self, other):
9940
    return not (self == other)
9941
 
9942
class getAllIgnoredInventoryupdateItemsCount_result:
9943
  """
9944
  Attributes:
9945
   - success
9946
  """
9947
 
9948
  thrift_spec = (
9949
    (0, TType.I32, 'success', None, None, ), # 0
9950
  )
9951
 
9952
  def __init__(self, success=None,):
9953
    self.success = success
9954
 
9955
  def read(self, iprot):
9956
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9957
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9958
      return
9959
    iprot.readStructBegin()
9960
    while True:
9961
      (fname, ftype, fid) = iprot.readFieldBegin()
9962
      if ftype == TType.STOP:
9963
        break
9964
      if fid == 0:
9965
        if ftype == TType.I32:
9966
          self.success = iprot.readI32();
9967
        else:
9968
          iprot.skip(ftype)
9969
      else:
9970
        iprot.skip(ftype)
9971
      iprot.readFieldEnd()
9972
    iprot.readStructEnd()
9973
 
9974
  def write(self, oprot):
9975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9977
      return
9978
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_result')
9979
    if self.success is not None:
9980
      oprot.writeFieldBegin('success', TType.I32, 0)
9981
      oprot.writeI32(self.success)
9982
      oprot.writeFieldEnd()
9983
    oprot.writeFieldStop()
9984
    oprot.writeStructEnd()
9985
 
9986
  def validate(self):
9987
    return
9988
 
9989
 
9990
  def __repr__(self):
9991
    L = ['%s=%r' % (key, value)
9992
      for key, value in self.__dict__.iteritems()]
9993
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9994
 
9995
  def __eq__(self, other):
9996
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9997
 
9998
  def __ne__(self, other):
9999
    return not (self == other)
10000
 
10001
class getIgnoredInventoryUpdateItemids_args:
10002
  """
10003
  Attributes:
10004
   - offset
10005
   - limit
10006
  """
10007
 
10008
  thrift_spec = (
10009
    None, # 0
10010
    (1, TType.I32, 'offset', None, None, ), # 1
10011
    (2, TType.I32, 'limit', None, None, ), # 2
10012
  )
10013
 
10014
  def __init__(self, offset=None, limit=None,):
10015
    self.offset = offset
10016
    self.limit = limit
10017
 
10018
  def read(self, iprot):
10019
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10020
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10021
      return
10022
    iprot.readStructBegin()
10023
    while True:
10024
      (fname, ftype, fid) = iprot.readFieldBegin()
10025
      if ftype == TType.STOP:
10026
        break
10027
      if fid == 1:
10028
        if ftype == TType.I32:
10029
          self.offset = iprot.readI32();
10030
        else:
10031
          iprot.skip(ftype)
10032
      elif fid == 2:
10033
        if ftype == TType.I32:
10034
          self.limit = iprot.readI32();
10035
        else:
10036
          iprot.skip(ftype)
10037
      else:
10038
        iprot.skip(ftype)
10039
      iprot.readFieldEnd()
10040
    iprot.readStructEnd()
10041
 
10042
  def write(self, oprot):
10043
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10044
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10045
      return
10046
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_args')
10047
    if self.offset is not None:
10048
      oprot.writeFieldBegin('offset', TType.I32, 1)
10049
      oprot.writeI32(self.offset)
10050
      oprot.writeFieldEnd()
10051
    if self.limit is not None:
10052
      oprot.writeFieldBegin('limit', TType.I32, 2)
10053
      oprot.writeI32(self.limit)
10054
      oprot.writeFieldEnd()
10055
    oprot.writeFieldStop()
10056
    oprot.writeStructEnd()
10057
 
10058
  def validate(self):
10059
    return
10060
 
10061
 
10062
  def __repr__(self):
10063
    L = ['%s=%r' % (key, value)
10064
      for key, value in self.__dict__.iteritems()]
10065
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10066
 
10067
  def __eq__(self, other):
10068
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10069
 
10070
  def __ne__(self, other):
10071
    return not (self == other)
10072
 
10073
class getIgnoredInventoryUpdateItemids_result:
10074
  """
10075
  Attributes:
10076
   - success
10077
  """
10078
 
10079
  thrift_spec = (
10080
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
10081
  )
10082
 
10083
  def __init__(self, success=None,):
10084
    self.success = success
10085
 
10086
  def read(self, iprot):
10087
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10088
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10089
      return
10090
    iprot.readStructBegin()
10091
    while True:
10092
      (fname, ftype, fid) = iprot.readFieldBegin()
10093
      if ftype == TType.STOP:
10094
        break
10095
      if fid == 0:
10096
        if ftype == TType.LIST:
10097
          self.success = []
8182 amar.kumar 10098
          (_etype189, _size186) = iprot.readListBegin()
10099
          for _i190 in xrange(_size186):
10100
            _elem191 = iprot.readI64();
10101
            self.success.append(_elem191)
6531 vikram.rag 10102
          iprot.readListEnd()
10103
        else:
10104
          iprot.skip(ftype)
10105
      else:
10106
        iprot.skip(ftype)
10107
      iprot.readFieldEnd()
10108
    iprot.readStructEnd()
10109
 
10110
  def write(self, oprot):
10111
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10112
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10113
      return
10114
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_result')
10115
    if self.success is not None:
10116
      oprot.writeFieldBegin('success', TType.LIST, 0)
10117
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 10118
      for iter192 in self.success:
10119
        oprot.writeI64(iter192)
6531 vikram.rag 10120
      oprot.writeListEnd()
10121
      oprot.writeFieldEnd()
10122
    oprot.writeFieldStop()
10123
    oprot.writeStructEnd()
10124
 
10125
  def validate(self):
10126
    return
10127
 
10128
 
10129
  def __repr__(self):
10130
    L = ['%s=%r' % (key, value)
10131
      for key, value in self.__dict__.iteritems()]
10132
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10133
 
10134
  def __eq__(self, other):
10135
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10136
 
10137
  def __ne__(self, other):
10138
    return not (self == other)
6821 amar.kumar 10139
 
10140
class updateItemStockPurchaseParams_args:
10141
  """
10142
  Attributes:
10143
   - item_id
10144
   - numOfDaysStock
10145
   - minStockLevel
10146
  """
10147
 
10148
  thrift_spec = (
10149
    None, # 0
10150
    (1, TType.I64, 'item_id', None, None, ), # 1
10151
    (2, TType.I32, 'numOfDaysStock', None, None, ), # 2
10152
    (3, TType.I64, 'minStockLevel', None, None, ), # 3
10153
  )
10154
 
10155
  def __init__(self, item_id=None, numOfDaysStock=None, minStockLevel=None,):
10156
    self.item_id = item_id
10157
    self.numOfDaysStock = numOfDaysStock
10158
    self.minStockLevel = minStockLevel
10159
 
10160
  def read(self, iprot):
10161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10163
      return
10164
    iprot.readStructBegin()
10165
    while True:
10166
      (fname, ftype, fid) = iprot.readFieldBegin()
10167
      if ftype == TType.STOP:
10168
        break
10169
      if fid == 1:
10170
        if ftype == TType.I64:
10171
          self.item_id = iprot.readI64();
10172
        else:
10173
          iprot.skip(ftype)
10174
      elif fid == 2:
10175
        if ftype == TType.I32:
10176
          self.numOfDaysStock = iprot.readI32();
10177
        else:
10178
          iprot.skip(ftype)
10179
      elif fid == 3:
10180
        if ftype == TType.I64:
10181
          self.minStockLevel = 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('updateItemStockPurchaseParams_args')
10194
    if self.item_id is not None:
10195
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10196
      oprot.writeI64(self.item_id)
10197
      oprot.writeFieldEnd()
10198
    if self.numOfDaysStock is not None:
10199
      oprot.writeFieldBegin('numOfDaysStock', TType.I32, 2)
10200
      oprot.writeI32(self.numOfDaysStock)
10201
      oprot.writeFieldEnd()
10202
    if self.minStockLevel is not None:
10203
      oprot.writeFieldBegin('minStockLevel', TType.I64, 3)
10204
      oprot.writeI64(self.minStockLevel)
10205
      oprot.writeFieldEnd()
10206
    oprot.writeFieldStop()
10207
    oprot.writeStructEnd()
10208
 
10209
  def validate(self):
10210
    return
10211
 
10212
 
10213
  def __repr__(self):
10214
    L = ['%s=%r' % (key, value)
10215
      for key, value in self.__dict__.iteritems()]
10216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10217
 
10218
  def __eq__(self, other):
10219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10220
 
10221
  def __ne__(self, other):
10222
    return not (self == other)
10223
 
10224
class updateItemStockPurchaseParams_result:
10225
 
10226
  thrift_spec = (
10227
  )
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
      else:
10239
        iprot.skip(ftype)
10240
      iprot.readFieldEnd()
10241
    iprot.readStructEnd()
10242
 
10243
  def write(self, oprot):
10244
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10245
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10246
      return
10247
    oprot.writeStructBegin('updateItemStockPurchaseParams_result')
10248
    oprot.writeFieldStop()
10249
    oprot.writeStructEnd()
10250
 
10251
  def validate(self):
10252
    return
10253
 
10254
 
10255
  def __repr__(self):
10256
    L = ['%s=%r' % (key, value)
10257
      for key, value in self.__dict__.iteritems()]
10258
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10259
 
10260
  def __eq__(self, other):
10261
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10262
 
10263
  def __ne__(self, other):
10264
    return not (self == other)
10265
 
10266
class getItemStockPurchaseParams_args:
10267
  """
10268
  Attributes:
10269
   - itemId
10270
  """
10271
 
10272
  thrift_spec = (
10273
    None, # 0
10274
    (1, TType.I64, 'itemId', None, None, ), # 1
10275
  )
10276
 
10277
  def __init__(self, itemId=None,):
10278
    self.itemId = itemId
10279
 
10280
  def read(self, iprot):
10281
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10282
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10283
      return
10284
    iprot.readStructBegin()
10285
    while True:
10286
      (fname, ftype, fid) = iprot.readFieldBegin()
10287
      if ftype == TType.STOP:
10288
        break
10289
      if fid == 1:
10290
        if ftype == TType.I64:
10291
          self.itemId = iprot.readI64();
10292
        else:
10293
          iprot.skip(ftype)
10294
      else:
10295
        iprot.skip(ftype)
10296
      iprot.readFieldEnd()
10297
    iprot.readStructEnd()
10298
 
10299
  def write(self, oprot):
10300
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10301
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10302
      return
10303
    oprot.writeStructBegin('getItemStockPurchaseParams_args')
10304
    if self.itemId is not None:
10305
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10306
      oprot.writeI64(self.itemId)
10307
      oprot.writeFieldEnd()
10308
    oprot.writeFieldStop()
10309
    oprot.writeStructEnd()
10310
 
10311
  def validate(self):
10312
    return
10313
 
10314
 
10315
  def __repr__(self):
10316
    L = ['%s=%r' % (key, value)
10317
      for key, value in self.__dict__.iteritems()]
10318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10319
 
10320
  def __eq__(self, other):
10321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10322
 
10323
  def __ne__(self, other):
10324
    return not (self == other)
10325
 
10326
class getItemStockPurchaseParams_result:
10327
  """
10328
  Attributes:
10329
   - success
10330
  """
10331
 
10332
  thrift_spec = (
10333
    (0, TType.STRUCT, 'success', (ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec), None, ), # 0
10334
  )
10335
 
10336
  def __init__(self, success=None,):
10337
    self.success = success
10338
 
10339
  def read(self, iprot):
10340
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10341
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10342
      return
10343
    iprot.readStructBegin()
10344
    while True:
10345
      (fname, ftype, fid) = iprot.readFieldBegin()
10346
      if ftype == TType.STOP:
10347
        break
10348
      if fid == 0:
10349
        if ftype == TType.STRUCT:
10350
          self.success = ItemStockPurchaseParams()
10351
          self.success.read(iprot)
10352
        else:
10353
          iprot.skip(ftype)
10354
      else:
10355
        iprot.skip(ftype)
10356
      iprot.readFieldEnd()
10357
    iprot.readStructEnd()
10358
 
10359
  def write(self, oprot):
10360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10362
      return
10363
    oprot.writeStructBegin('getItemStockPurchaseParams_result')
10364
    if self.success is not None:
10365
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10366
      self.success.write(oprot)
10367
      oprot.writeFieldEnd()
10368
    oprot.writeFieldStop()
10369
    oprot.writeStructEnd()
10370
 
10371
  def validate(self):
10372
    return
10373
 
10374
 
10375
  def __repr__(self):
10376
    L = ['%s=%r' % (key, value)
10377
      for key, value in self.__dict__.iteritems()]
10378
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10379
 
10380
  def __eq__(self, other):
10381
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10382
 
10383
  def __ne__(self, other):
10384
    return not (self == other)
10385
 
10386
class addOosStatusForItem_args:
10387
  """
10388
  Attributes:
10389
   - oosStatusMap
10390
   - date
10391
  """
10392
 
10393
  thrift_spec = (
10394
    None, # 0
10395
    (1, TType.MAP, 'oosStatusMap', (TType.I64,None,TType.BOOL,None), None, ), # 1
10396
    (2, TType.I64, 'date', None, None, ), # 2
10397
  )
10398
 
10399
  def __init__(self, oosStatusMap=None, date=None,):
10400
    self.oosStatusMap = oosStatusMap
10401
    self.date = date
10402
 
10403
  def read(self, iprot):
10404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10406
      return
10407
    iprot.readStructBegin()
10408
    while True:
10409
      (fname, ftype, fid) = iprot.readFieldBegin()
10410
      if ftype == TType.STOP:
10411
        break
10412
      if fid == 1:
10413
        if ftype == TType.MAP:
10414
          self.oosStatusMap = {}
8182 amar.kumar 10415
          (_ktype194, _vtype195, _size193 ) = iprot.readMapBegin() 
10416
          for _i197 in xrange(_size193):
10417
            _key198 = iprot.readI64();
10418
            _val199 = iprot.readBool();
10419
            self.oosStatusMap[_key198] = _val199
6821 amar.kumar 10420
          iprot.readMapEnd()
10421
        else:
10422
          iprot.skip(ftype)
10423
      elif fid == 2:
10424
        if ftype == TType.I64:
10425
          self.date = iprot.readI64();
10426
        else:
10427
          iprot.skip(ftype)
10428
      else:
10429
        iprot.skip(ftype)
10430
      iprot.readFieldEnd()
10431
    iprot.readStructEnd()
10432
 
10433
  def write(self, oprot):
10434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10436
      return
10437
    oprot.writeStructBegin('addOosStatusForItem_args')
10438
    if self.oosStatusMap is not None:
10439
      oprot.writeFieldBegin('oosStatusMap', TType.MAP, 1)
10440
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.oosStatusMap))
8182 amar.kumar 10441
      for kiter200,viter201 in self.oosStatusMap.items():
10442
        oprot.writeI64(kiter200)
10443
        oprot.writeBool(viter201)
6821 amar.kumar 10444
      oprot.writeMapEnd()
10445
      oprot.writeFieldEnd()
10446
    if self.date is not None:
10447
      oprot.writeFieldBegin('date', TType.I64, 2)
10448
      oprot.writeI64(self.date)
10449
      oprot.writeFieldEnd()
10450
    oprot.writeFieldStop()
10451
    oprot.writeStructEnd()
10452
 
10453
  def validate(self):
10454
    return
10455
 
10456
 
10457
  def __repr__(self):
10458
    L = ['%s=%r' % (key, value)
10459
      for key, value in self.__dict__.iteritems()]
10460
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10461
 
10462
  def __eq__(self, other):
10463
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10464
 
10465
  def __ne__(self, other):
10466
    return not (self == other)
10467
 
10468
class addOosStatusForItem_result:
10469
 
10470
  thrift_spec = (
10471
  )
10472
 
10473
  def read(self, iprot):
10474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10476
      return
10477
    iprot.readStructBegin()
10478
    while True:
10479
      (fname, ftype, fid) = iprot.readFieldBegin()
10480
      if ftype == TType.STOP:
10481
        break
10482
      else:
10483
        iprot.skip(ftype)
10484
      iprot.readFieldEnd()
10485
    iprot.readStructEnd()
10486
 
10487
  def write(self, oprot):
10488
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10489
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10490
      return
10491
    oprot.writeStructBegin('addOosStatusForItem_result')
10492
    oprot.writeFieldStop()
10493
    oprot.writeStructEnd()
10494
 
10495
  def validate(self):
10496
    return
10497
 
10498
 
10499
  def __repr__(self):
10500
    L = ['%s=%r' % (key, value)
10501
      for key, value in self.__dict__.iteritems()]
10502
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10503
 
10504
  def __eq__(self, other):
10505
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10506
 
10507
  def __ne__(self, other):
10508
    return not (self == other)
6832 amar.kumar 10509
 
10510
class getOosStatusesForXDaysForItem_args:
10511
  """
10512
  Attributes:
10513
   - itemId
9762 amar.kumar 10514
   - sourceId
6832 amar.kumar 10515
   - days
10516
  """
10517
 
10518
  thrift_spec = (
10519
    None, # 0
10520
    (1, TType.I64, 'itemId', None, None, ), # 1
9762 amar.kumar 10521
    (2, TType.I32, 'sourceId', None, None, ), # 2
10522
    (3, TType.I32, 'days', None, None, ), # 3
6832 amar.kumar 10523
  )
10524
 
9762 amar.kumar 10525
  def __init__(self, itemId=None, sourceId=None, days=None,):
6832 amar.kumar 10526
    self.itemId = itemId
9762 amar.kumar 10527
    self.sourceId = sourceId
6832 amar.kumar 10528
    self.days = days
10529
 
10530
  def read(self, iprot):
10531
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10532
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10533
      return
10534
    iprot.readStructBegin()
10535
    while True:
10536
      (fname, ftype, fid) = iprot.readFieldBegin()
10537
      if ftype == TType.STOP:
10538
        break
10539
      if fid == 1:
10540
        if ftype == TType.I64:
10541
          self.itemId = iprot.readI64();
10542
        else:
10543
          iprot.skip(ftype)
10544
      elif fid == 2:
10545
        if ftype == TType.I32:
9762 amar.kumar 10546
          self.sourceId = iprot.readI32();
10547
        else:
10548
          iprot.skip(ftype)
10549
      elif fid == 3:
10550
        if ftype == TType.I32:
6832 amar.kumar 10551
          self.days = iprot.readI32();
10552
        else:
10553
          iprot.skip(ftype)
10554
      else:
10555
        iprot.skip(ftype)
10556
      iprot.readFieldEnd()
10557
    iprot.readStructEnd()
10558
 
10559
  def write(self, oprot):
10560
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10561
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10562
      return
10563
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_args')
10564
    if self.itemId is not None:
10565
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10566
      oprot.writeI64(self.itemId)
10567
      oprot.writeFieldEnd()
9762 amar.kumar 10568
    if self.sourceId is not None:
10569
      oprot.writeFieldBegin('sourceId', TType.I32, 2)
10570
      oprot.writeI32(self.sourceId)
10571
      oprot.writeFieldEnd()
6832 amar.kumar 10572
    if self.days is not None:
9762 amar.kumar 10573
      oprot.writeFieldBegin('days', TType.I32, 3)
6832 amar.kumar 10574
      oprot.writeI32(self.days)
10575
      oprot.writeFieldEnd()
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 getOosStatusesForXDaysForItem_result:
10595
  """
10596
  Attributes:
10597
   - success
10598
  """
10599
 
10600
  thrift_spec = (
10601
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.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
          (_etype205, _size202) = iprot.readListBegin()
10620
          for _i206 in xrange(_size202):
10621
            _elem207 = OOSStatus()
10622
            _elem207.read(iprot)
10623
            self.success.append(_elem207)
6832 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('getOosStatusesForXDaysForItem_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 iter208 in self.success:
10641
        iter208.write(oprot)
6832 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)
6857 amar.kumar 10661
 
10126 amar.kumar 10662
class getOosStatusesForXDays_args:
10663
  """
10664
  Attributes:
10665
   - sourceId
10666
   - days
10667
  """
6857 amar.kumar 10668
 
10669
  thrift_spec = (
10126 amar.kumar 10670
    None, # 0
10671
    (1, TType.I32, 'sourceId', None, None, ), # 1
10672
    (2, TType.I32, 'days', None, None, ), # 2
6857 amar.kumar 10673
  )
10674
 
10126 amar.kumar 10675
  def __init__(self, sourceId=None, days=None,):
10676
    self.sourceId = sourceId
10677
    self.days = days
10678
 
6857 amar.kumar 10679
  def read(self, iprot):
10680
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10681
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10682
      return
10683
    iprot.readStructBegin()
10684
    while True:
10685
      (fname, ftype, fid) = iprot.readFieldBegin()
10686
      if ftype == TType.STOP:
10687
        break
10126 amar.kumar 10688
      if fid == 1:
10689
        if ftype == TType.I32:
10690
          self.sourceId = iprot.readI32();
10691
        else:
10692
          iprot.skip(ftype)
10693
      elif fid == 2:
10694
        if ftype == TType.I32:
10695
          self.days = iprot.readI32();
10696
        else:
10697
          iprot.skip(ftype)
6857 amar.kumar 10698
      else:
10699
        iprot.skip(ftype)
10700
      iprot.readFieldEnd()
10701
    iprot.readStructEnd()
10702
 
10703
  def write(self, oprot):
10704
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10705
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10706
      return
10126 amar.kumar 10707
    oprot.writeStructBegin('getOosStatusesForXDays_args')
10708
    if self.sourceId is not None:
10709
      oprot.writeFieldBegin('sourceId', TType.I32, 1)
10710
      oprot.writeI32(self.sourceId)
10711
      oprot.writeFieldEnd()
10712
    if self.days is not None:
10713
      oprot.writeFieldBegin('days', TType.I32, 2)
10714
      oprot.writeI32(self.days)
10715
      oprot.writeFieldEnd()
6857 amar.kumar 10716
    oprot.writeFieldStop()
10717
    oprot.writeStructEnd()
10718
 
10719
  def validate(self):
10720
    return
10721
 
10722
 
10723
  def __repr__(self):
10724
    L = ['%s=%r' % (key, value)
10725
      for key, value in self.__dict__.iteritems()]
10726
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10727
 
10728
  def __eq__(self, other):
10729
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10730
 
10731
  def __ne__(self, other):
10732
    return not (self == other)
10733
 
10126 amar.kumar 10734
class getOosStatusesForXDays_result:
6857 amar.kumar 10735
  """
10736
  Attributes:
10737
   - success
10738
  """
10739
 
10740
  thrift_spec = (
10126 amar.kumar 10741
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.thrift_spec)), None, ), # 0
6857 amar.kumar 10742
  )
10743
 
10744
  def __init__(self, success=None,):
10745
    self.success = success
10746
 
10747
  def read(self, iprot):
10748
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10749
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10750
      return
10751
    iprot.readStructBegin()
10752
    while True:
10753
      (fname, ftype, fid) = iprot.readFieldBegin()
10754
      if ftype == TType.STOP:
10755
        break
10756
      if fid == 0:
10757
        if ftype == TType.LIST:
10758
          self.success = []
8182 amar.kumar 10759
          (_etype212, _size209) = iprot.readListBegin()
10760
          for _i213 in xrange(_size209):
10126 amar.kumar 10761
            _elem214 = OOSStatus()
8182 amar.kumar 10762
            _elem214.read(iprot)
10763
            self.success.append(_elem214)
6857 amar.kumar 10764
          iprot.readListEnd()
10765
        else:
10766
          iprot.skip(ftype)
10767
      else:
10768
        iprot.skip(ftype)
10769
      iprot.readFieldEnd()
10770
    iprot.readStructEnd()
10771
 
10772
  def write(self, oprot):
10773
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10774
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10775
      return
10126 amar.kumar 10776
    oprot.writeStructBegin('getOosStatusesForXDays_result')
6857 amar.kumar 10777
    if self.success is not None:
10778
      oprot.writeFieldBegin('success', TType.LIST, 0)
10779
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10780
      for iter215 in self.success:
10781
        iter215.write(oprot)
6857 amar.kumar 10782
      oprot.writeListEnd()
10783
      oprot.writeFieldEnd()
10784
    oprot.writeFieldStop()
10785
    oprot.writeStructEnd()
10786
 
10787
  def validate(self):
10788
    return
10789
 
10790
 
10791
  def __repr__(self):
10792
    L = ['%s=%r' % (key, value)
10793
      for key, value in self.__dict__.iteritems()]
10794
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10795
 
10796
  def __eq__(self, other):
10797
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10798
 
10799
  def __ne__(self, other):
10800
    return not (self == other)
7149 amar.kumar 10801
 
10126 amar.kumar 10802
class getAllVendorItemPricing_args:
10803
  """
10804
  Attributes:
10805
   - itemId
10806
   - vendorId
10807
  """
7149 amar.kumar 10808
 
10809
  thrift_spec = (
10126 amar.kumar 10810
    None, # 0
10811
    (1, TType.I64, 'itemId', None, None, ), # 1
10812
    (2, TType.I64, 'vendorId', None, None, ), # 2
7149 amar.kumar 10813
  )
10814
 
10126 amar.kumar 10815
  def __init__(self, itemId=None, vendorId=None,):
10816
    self.itemId = itemId
10817
    self.vendorId = vendorId
10818
 
7149 amar.kumar 10819
  def read(self, iprot):
10820
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10821
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10822
      return
10823
    iprot.readStructBegin()
10824
    while True:
10825
      (fname, ftype, fid) = iprot.readFieldBegin()
10826
      if ftype == TType.STOP:
10827
        break
10126 amar.kumar 10828
      if fid == 1:
10829
        if ftype == TType.I64:
10830
          self.itemId = iprot.readI64();
10831
        else:
10832
          iprot.skip(ftype)
10833
      elif fid == 2:
10834
        if ftype == TType.I64:
10835
          self.vendorId = iprot.readI64();
10836
        else:
10837
          iprot.skip(ftype)
7149 amar.kumar 10838
      else:
10839
        iprot.skip(ftype)
10840
      iprot.readFieldEnd()
10841
    iprot.readStructEnd()
10842
 
10843
  def write(self, oprot):
10844
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10845
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10846
      return
10126 amar.kumar 10847
    oprot.writeStructBegin('getAllVendorItemPricing_args')
10848
    if self.itemId is not None:
10849
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10850
      oprot.writeI64(self.itemId)
10851
      oprot.writeFieldEnd()
10852
    if self.vendorId is not None:
10853
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
10854
      oprot.writeI64(self.vendorId)
10855
      oprot.writeFieldEnd()
7149 amar.kumar 10856
    oprot.writeFieldStop()
10857
    oprot.writeStructEnd()
10858
 
10859
  def validate(self):
10860
    return
10861
 
10862
 
10863
  def __repr__(self):
10864
    L = ['%s=%r' % (key, value)
10865
      for key, value in self.__dict__.iteritems()]
10866
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10867
 
10868
  def __eq__(self, other):
10869
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10870
 
10871
  def __ne__(self, other):
10872
    return not (self == other)
10873
 
10126 amar.kumar 10874
class getAllVendorItemPricing_result:
7149 amar.kumar 10875
  """
10876
  Attributes:
10877
   - success
10878
  """
10879
 
10880
  thrift_spec = (
10126 amar.kumar 10881
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
7149 amar.kumar 10882
  )
10883
 
10884
  def __init__(self, success=None,):
10885
    self.success = success
10886
 
10887
  def read(self, iprot):
10888
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10889
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10890
      return
10891
    iprot.readStructBegin()
10892
    while True:
10893
      (fname, ftype, fid) = iprot.readFieldBegin()
10894
      if ftype == TType.STOP:
10895
        break
10896
      if fid == 0:
10897
        if ftype == TType.LIST:
10898
          self.success = []
8182 amar.kumar 10899
          (_etype219, _size216) = iprot.readListBegin()
10900
          for _i220 in xrange(_size216):
10126 amar.kumar 10901
            _elem221 = VendorItemPricing()
8182 amar.kumar 10902
            _elem221.read(iprot)
10903
            self.success.append(_elem221)
7149 amar.kumar 10904
          iprot.readListEnd()
10905
        else:
10906
          iprot.skip(ftype)
10907
      else:
10908
        iprot.skip(ftype)
10909
      iprot.readFieldEnd()
10910
    iprot.readStructEnd()
10911
 
10912
  def write(self, oprot):
10913
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10914
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10915
      return
10126 amar.kumar 10916
    oprot.writeStructBegin('getAllVendorItemPricing_result')
7149 amar.kumar 10917
    if self.success is not None:
10918
      oprot.writeFieldBegin('success', TType.LIST, 0)
10919
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10920
      for iter222 in self.success:
10921
        iter222.write(oprot)
7149 amar.kumar 10922
      oprot.writeListEnd()
10923
      oprot.writeFieldEnd()
10924
    oprot.writeFieldStop()
10925
    oprot.writeStructEnd()
10926
 
10927
  def validate(self):
10928
    return
10929
 
10930
 
10931
  def __repr__(self):
10932
    L = ['%s=%r' % (key, value)
10933
      for key, value in self.__dict__.iteritems()]
10934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10935
 
10936
  def __eq__(self, other):
10937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10938
 
10939
  def __ne__(self, other):
10940
    return not (self == other)
7281 kshitij.so 10941
 
10126 amar.kumar 10942
class getNonZeroItemStockPurchaseParams_args:
10943
 
10944
  thrift_spec = (
10945
  )
10946
 
10947
  def read(self, iprot):
10948
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10949
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10950
      return
10951
    iprot.readStructBegin()
10952
    while True:
10953
      (fname, ftype, fid) = iprot.readFieldBegin()
10954
      if ftype == TType.STOP:
10955
        break
10956
      else:
10957
        iprot.skip(ftype)
10958
      iprot.readFieldEnd()
10959
    iprot.readStructEnd()
10960
 
10961
  def write(self, oprot):
10962
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10963
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10964
      return
10965
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_args')
10966
    oprot.writeFieldStop()
10967
    oprot.writeStructEnd()
10968
 
10969
  def validate(self):
10970
    return
10971
 
10972
 
10973
  def __repr__(self):
10974
    L = ['%s=%r' % (key, value)
10975
      for key, value in self.__dict__.iteritems()]
10976
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10977
 
10978
  def __eq__(self, other):
10979
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10980
 
10981
  def __ne__(self, other):
10982
    return not (self == other)
10983
 
10984
class getNonZeroItemStockPurchaseParams_result:
10985
  """
10986
  Attributes:
10987
   - success
10988
  """
10989
 
10990
  thrift_spec = (
10991
    (0, TType.LIST, 'success', (TType.STRUCT,(ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec)), None, ), # 0
10992
  )
10993
 
10994
  def __init__(self, success=None,):
10995
    self.success = success
10996
 
10997
  def read(self, iprot):
10998
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10999
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11000
      return
11001
    iprot.readStructBegin()
11002
    while True:
11003
      (fname, ftype, fid) = iprot.readFieldBegin()
11004
      if ftype == TType.STOP:
11005
        break
11006
      if fid == 0:
11007
        if ftype == TType.LIST:
11008
          self.success = []
11009
          (_etype226, _size223) = iprot.readListBegin()
11010
          for _i227 in xrange(_size223):
11011
            _elem228 = ItemStockPurchaseParams()
11012
            _elem228.read(iprot)
11013
            self.success.append(_elem228)
11014
          iprot.readListEnd()
11015
        else:
11016
          iprot.skip(ftype)
11017
      else:
11018
        iprot.skip(ftype)
11019
      iprot.readFieldEnd()
11020
    iprot.readStructEnd()
11021
 
11022
  def write(self, oprot):
11023
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11024
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11025
      return
11026
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_result')
11027
    if self.success is not None:
11028
      oprot.writeFieldBegin('success', TType.LIST, 0)
11029
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11030
      for iter229 in self.success:
11031
        iter229.write(oprot)
11032
      oprot.writeListEnd()
11033
      oprot.writeFieldEnd()
11034
    oprot.writeFieldStop()
11035
    oprot.writeStructEnd()
11036
 
11037
  def validate(self):
11038
    return
11039
 
11040
 
11041
  def __repr__(self):
11042
    L = ['%s=%r' % (key, value)
11043
      for key, value in self.__dict__.iteritems()]
11044
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11045
 
11046
  def __eq__(self, other):
11047
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11048
 
11049
  def __ne__(self, other):
11050
    return not (self == other)
11051
 
11052
class getBillableInventoryAndPendingOrders_args:
11053
 
11054
  thrift_spec = (
11055
  )
11056
 
11057
  def read(self, iprot):
11058
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11059
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11060
      return
11061
    iprot.readStructBegin()
11062
    while True:
11063
      (fname, ftype, fid) = iprot.readFieldBegin()
11064
      if ftype == TType.STOP:
11065
        break
11066
      else:
11067
        iprot.skip(ftype)
11068
      iprot.readFieldEnd()
11069
    iprot.readStructEnd()
11070
 
11071
  def write(self, oprot):
11072
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11073
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11074
      return
11075
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_args')
11076
    oprot.writeFieldStop()
11077
    oprot.writeStructEnd()
11078
 
11079
  def validate(self):
11080
    return
11081
 
11082
 
11083
  def __repr__(self):
11084
    L = ['%s=%r' % (key, value)
11085
      for key, value in self.__dict__.iteritems()]
11086
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11087
 
11088
  def __eq__(self, other):
11089
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11090
 
11091
  def __ne__(self, other):
11092
    return not (self == other)
11093
 
11094
class getBillableInventoryAndPendingOrders_result:
11095
  """
11096
  Attributes:
11097
   - success
11098
  """
11099
 
11100
  thrift_spec = (
11101
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
11102
  )
11103
 
11104
  def __init__(self, success=None,):
11105
    self.success = success
11106
 
11107
  def read(self, iprot):
11108
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11109
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11110
      return
11111
    iprot.readStructBegin()
11112
    while True:
11113
      (fname, ftype, fid) = iprot.readFieldBegin()
11114
      if ftype == TType.STOP:
11115
        break
11116
      if fid == 0:
11117
        if ftype == TType.LIST:
11118
          self.success = []
11119
          (_etype233, _size230) = iprot.readListBegin()
11120
          for _i234 in xrange(_size230):
11121
            _elem235 = AvailableAndReservedStock()
11122
            _elem235.read(iprot)
11123
            self.success.append(_elem235)
11124
          iprot.readListEnd()
11125
        else:
11126
          iprot.skip(ftype)
11127
      else:
11128
        iprot.skip(ftype)
11129
      iprot.readFieldEnd()
11130
    iprot.readStructEnd()
11131
 
11132
  def write(self, oprot):
11133
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11134
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11135
      return
11136
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_result')
11137
    if self.success is not None:
11138
      oprot.writeFieldBegin('success', TType.LIST, 0)
11139
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11140
      for iter236 in self.success:
11141
        iter236.write(oprot)
11142
      oprot.writeListEnd()
11143
      oprot.writeFieldEnd()
11144
    oprot.writeFieldStop()
11145
    oprot.writeStructEnd()
11146
 
11147
  def validate(self):
11148
    return
11149
 
11150
 
11151
  def __repr__(self):
11152
    L = ['%s=%r' % (key, value)
11153
      for key, value in self.__dict__.iteritems()]
11154
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11155
 
11156
  def __eq__(self, other):
11157
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11158
 
11159
  def __ne__(self, other):
11160
    return not (self == other)
11161
 
7281 kshitij.so 11162
class getWarehouseName_args:
11163
  """
11164
  Attributes:
11165
   - warehouse_id
11166
  """
11167
 
11168
  thrift_spec = (
11169
    None, # 0
11170
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
11171
  )
11172
 
11173
  def __init__(self, warehouse_id=None,):
11174
    self.warehouse_id = warehouse_id
11175
 
11176
  def read(self, iprot):
11177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11179
      return
11180
    iprot.readStructBegin()
11181
    while True:
11182
      (fname, ftype, fid) = iprot.readFieldBegin()
11183
      if ftype == TType.STOP:
11184
        break
11185
      if fid == 1:
11186
        if ftype == TType.I64:
11187
          self.warehouse_id = iprot.readI64();
11188
        else:
11189
          iprot.skip(ftype)
11190
      else:
11191
        iprot.skip(ftype)
11192
      iprot.readFieldEnd()
11193
    iprot.readStructEnd()
11194
 
11195
  def write(self, oprot):
11196
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11197
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11198
      return
11199
    oprot.writeStructBegin('getWarehouseName_args')
11200
    if self.warehouse_id is not None:
11201
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
11202
      oprot.writeI64(self.warehouse_id)
11203
      oprot.writeFieldEnd()
11204
    oprot.writeFieldStop()
11205
    oprot.writeStructEnd()
11206
 
11207
  def validate(self):
11208
    return
11209
 
11210
 
11211
  def __repr__(self):
11212
    L = ['%s=%r' % (key, value)
11213
      for key, value in self.__dict__.iteritems()]
11214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11215
 
11216
  def __eq__(self, other):
11217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11218
 
11219
  def __ne__(self, other):
11220
    return not (self == other)
11221
 
11222
class getWarehouseName_result:
11223
  """
11224
  Attributes:
11225
   - success
11226
  """
11227
 
11228
  thrift_spec = (
11229
    (0, TType.STRING, 'success', None, None, ), # 0
11230
  )
11231
 
11232
  def __init__(self, success=None,):
11233
    self.success = success
11234
 
11235
  def read(self, iprot):
11236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11238
      return
11239
    iprot.readStructBegin()
11240
    while True:
11241
      (fname, ftype, fid) = iprot.readFieldBegin()
11242
      if ftype == TType.STOP:
11243
        break
11244
      if fid == 0:
11245
        if ftype == TType.STRING:
11246
          self.success = iprot.readString();
11247
        else:
11248
          iprot.skip(ftype)
11249
      else:
11250
        iprot.skip(ftype)
11251
      iprot.readFieldEnd()
11252
    iprot.readStructEnd()
11253
 
11254
  def write(self, oprot):
11255
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11256
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11257
      return
11258
    oprot.writeStructBegin('getWarehouseName_result')
11259
    if self.success is not None:
11260
      oprot.writeFieldBegin('success', TType.STRING, 0)
11261
      oprot.writeString(self.success)
11262
      oprot.writeFieldEnd()
11263
    oprot.writeFieldStop()
11264
    oprot.writeStructEnd()
11265
 
11266
  def validate(self):
11267
    return
11268
 
11269
 
11270
  def __repr__(self):
11271
    L = ['%s=%r' % (key, value)
11272
      for key, value in self.__dict__.iteritems()]
11273
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11274
 
11275
  def __eq__(self, other):
11276
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11277
 
11278
  def __ne__(self, other):
11279
    return not (self == other)
11280
 
11281
class getAmazonInventoryForItem_args:
11282
  """
11283
  Attributes:
11284
   - item_id
11285
  """
11286
 
11287
  thrift_spec = (
11288
    None, # 0
11289
    (1, TType.I64, 'item_id', None, None, ), # 1
11290
  )
11291
 
11292
  def __init__(self, item_id=None,):
11293
    self.item_id = item_id
11294
 
11295
  def read(self, iprot):
11296
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11297
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11298
      return
11299
    iprot.readStructBegin()
11300
    while True:
11301
      (fname, ftype, fid) = iprot.readFieldBegin()
11302
      if ftype == TType.STOP:
11303
        break
11304
      if fid == 1:
11305
        if ftype == TType.I64:
11306
          self.item_id = iprot.readI64();
11307
        else:
11308
          iprot.skip(ftype)
11309
      else:
11310
        iprot.skip(ftype)
11311
      iprot.readFieldEnd()
11312
    iprot.readStructEnd()
11313
 
11314
  def write(self, oprot):
11315
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11316
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11317
      return
11318
    oprot.writeStructBegin('getAmazonInventoryForItem_args')
11319
    if self.item_id is not None:
11320
      oprot.writeFieldBegin('item_id', TType.I64, 1)
11321
      oprot.writeI64(self.item_id)
11322
      oprot.writeFieldEnd()
11323
    oprot.writeFieldStop()
11324
    oprot.writeStructEnd()
11325
 
11326
  def validate(self):
11327
    return
11328
 
11329
 
11330
  def __repr__(self):
11331
    L = ['%s=%r' % (key, value)
11332
      for key, value in self.__dict__.iteritems()]
11333
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11334
 
11335
  def __eq__(self, other):
11336
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11337
 
11338
  def __ne__(self, other):
11339
    return not (self == other)
11340
 
11341
class getAmazonInventoryForItem_result:
11342
  """
11343
  Attributes:
11344
   - success
11345
  """
11346
 
11347
  thrift_spec = (
11348
    (0, TType.STRUCT, 'success', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 0
11349
  )
11350
 
11351
  def __init__(self, success=None,):
11352
    self.success = success
11353
 
11354
  def read(self, iprot):
11355
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11356
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11357
      return
11358
    iprot.readStructBegin()
11359
    while True:
11360
      (fname, ftype, fid) = iprot.readFieldBegin()
11361
      if ftype == TType.STOP:
11362
        break
11363
      if fid == 0:
11364
        if ftype == TType.STRUCT:
11365
          self.success = AmazonInventorySnapshot()
11366
          self.success.read(iprot)
11367
        else:
11368
          iprot.skip(ftype)
11369
      else:
11370
        iprot.skip(ftype)
11371
      iprot.readFieldEnd()
11372
    iprot.readStructEnd()
11373
 
11374
  def write(self, oprot):
11375
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11376
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11377
      return
11378
    oprot.writeStructBegin('getAmazonInventoryForItem_result')
11379
    if self.success is not None:
11380
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11381
      self.success.write(oprot)
11382
      oprot.writeFieldEnd()
11383
    oprot.writeFieldStop()
11384
    oprot.writeStructEnd()
11385
 
11386
  def validate(self):
11387
    return
11388
 
11389
 
11390
  def __repr__(self):
11391
    L = ['%s=%r' % (key, value)
11392
      for key, value in self.__dict__.iteritems()]
11393
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11394
 
11395
  def __eq__(self, other):
11396
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11397
 
11398
  def __ne__(self, other):
11399
    return not (self == other)
11400
 
11401
class getAllAmazonInventory_args:
11402
 
11403
  thrift_spec = (
11404
  )
11405
 
11406
  def read(self, iprot):
11407
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11408
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11409
      return
11410
    iprot.readStructBegin()
11411
    while True:
11412
      (fname, ftype, fid) = iprot.readFieldBegin()
11413
      if ftype == TType.STOP:
11414
        break
11415
      else:
11416
        iprot.skip(ftype)
11417
      iprot.readFieldEnd()
11418
    iprot.readStructEnd()
11419
 
11420
  def write(self, oprot):
11421
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11422
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11423
      return
11424
    oprot.writeStructBegin('getAllAmazonInventory_args')
11425
    oprot.writeFieldStop()
11426
    oprot.writeStructEnd()
11427
 
11428
  def validate(self):
11429
    return
11430
 
11431
 
11432
  def __repr__(self):
11433
    L = ['%s=%r' % (key, value)
11434
      for key, value in self.__dict__.iteritems()]
11435
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11436
 
11437
  def __eq__(self, other):
11438
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11439
 
11440
  def __ne__(self, other):
11441
    return not (self == other)
11442
 
11443
class getAllAmazonInventory_result:
11444
  """
11445
  Attributes:
11446
   - success
11447
  """
11448
 
11449
  thrift_spec = (
11450
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec)), None, ), # 0
11451
  )
11452
 
11453
  def __init__(self, success=None,):
11454
    self.success = success
11455
 
11456
  def read(self, iprot):
11457
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11458
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11459
      return
11460
    iprot.readStructBegin()
11461
    while True:
11462
      (fname, ftype, fid) = iprot.readFieldBegin()
11463
      if ftype == TType.STOP:
11464
        break
11465
      if fid == 0:
11466
        if ftype == TType.LIST:
11467
          self.success = []
10126 amar.kumar 11468
          (_etype240, _size237) = iprot.readListBegin()
11469
          for _i241 in xrange(_size237):
11470
            _elem242 = AmazonInventorySnapshot()
11471
            _elem242.read(iprot)
11472
            self.success.append(_elem242)
7281 kshitij.so 11473
          iprot.readListEnd()
11474
        else:
11475
          iprot.skip(ftype)
11476
      else:
11477
        iprot.skip(ftype)
11478
      iprot.readFieldEnd()
11479
    iprot.readStructEnd()
11480
 
11481
  def write(self, oprot):
11482
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11483
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11484
      return
11485
    oprot.writeStructBegin('getAllAmazonInventory_result')
11486
    if self.success is not None:
11487
      oprot.writeFieldBegin('success', TType.LIST, 0)
11488
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10126 amar.kumar 11489
      for iter243 in self.success:
11490
        iter243.write(oprot)
7281 kshitij.so 11491
      oprot.writeListEnd()
11492
      oprot.writeFieldEnd()
11493
    oprot.writeFieldStop()
11494
    oprot.writeStructEnd()
11495
 
11496
  def validate(self):
11497
    return
11498
 
11499
 
11500
  def __repr__(self):
11501
    L = ['%s=%r' % (key, value)
11502
      for key, value in self.__dict__.iteritems()]
11503
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11504
 
11505
  def __eq__(self, other):
11506
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11507
 
11508
  def __ne__(self, other):
11509
    return not (self == other)
11510
 
11511
class addOrUpdateAmazonInventoryForItem_args:
11512
  """
11513
  Attributes:
11514
   - amazonInventorySnapshot
10450 vikram.rag 11515
   - time
7281 kshitij.so 11516
  """
11517
 
11518
  thrift_spec = (
11519
    None, # 0
11520
    (1, TType.STRUCT, 'amazonInventorySnapshot', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 1
10450 vikram.rag 11521
    (2, TType.I64, 'time', None, None, ), # 2
7281 kshitij.so 11522
  )
11523
 
10450 vikram.rag 11524
  def __init__(self, amazonInventorySnapshot=None, time=None,):
7281 kshitij.so 11525
    self.amazonInventorySnapshot = amazonInventorySnapshot
10450 vikram.rag 11526
    self.time = time
7281 kshitij.so 11527
 
11528
  def read(self, iprot):
11529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11531
      return
11532
    iprot.readStructBegin()
11533
    while True:
11534
      (fname, ftype, fid) = iprot.readFieldBegin()
11535
      if ftype == TType.STOP:
11536
        break
11537
      if fid == 1:
11538
        if ftype == TType.STRUCT:
11539
          self.amazonInventorySnapshot = AmazonInventorySnapshot()
11540
          self.amazonInventorySnapshot.read(iprot)
11541
        else:
11542
          iprot.skip(ftype)
10450 vikram.rag 11543
      elif fid == 2:
11544
        if ftype == TType.I64:
11545
          self.time = iprot.readI64();
11546
        else:
11547
          iprot.skip(ftype)
7281 kshitij.so 11548
      else:
11549
        iprot.skip(ftype)
11550
      iprot.readFieldEnd()
11551
    iprot.readStructEnd()
11552
 
11553
  def write(self, oprot):
11554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11556
      return
11557
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_args')
11558
    if self.amazonInventorySnapshot is not None:
11559
      oprot.writeFieldBegin('amazonInventorySnapshot', TType.STRUCT, 1)
11560
      self.amazonInventorySnapshot.write(oprot)
11561
      oprot.writeFieldEnd()
10450 vikram.rag 11562
    if self.time is not None:
11563
      oprot.writeFieldBegin('time', TType.I64, 2)
11564
      oprot.writeI64(self.time)
11565
      oprot.writeFieldEnd()
7281 kshitij.so 11566
    oprot.writeFieldStop()
11567
    oprot.writeStructEnd()
11568
 
11569
  def validate(self):
11570
    return
11571
 
11572
 
11573
  def __repr__(self):
11574
    L = ['%s=%r' % (key, value)
11575
      for key, value in self.__dict__.iteritems()]
11576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11577
 
11578
  def __eq__(self, other):
11579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11580
 
11581
  def __ne__(self, other):
11582
    return not (self == other)
11583
 
11584
class addOrUpdateAmazonInventoryForItem_result:
11585
 
11586
  thrift_spec = (
11587
  )
11588
 
11589
  def read(self, iprot):
11590
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11591
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11592
      return
11593
    iprot.readStructBegin()
11594
    while True:
11595
      (fname, ftype, fid) = iprot.readFieldBegin()
11596
      if ftype == TType.STOP:
11597
        break
11598
      else:
11599
        iprot.skip(ftype)
11600
      iprot.readFieldEnd()
11601
    iprot.readStructEnd()
11602
 
11603
  def write(self, oprot):
11604
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11605
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11606
      return
11607
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_result')
11608
    oprot.writeFieldStop()
11609
    oprot.writeStructEnd()
11610
 
11611
  def validate(self):
11612
    return
11613
 
11614
 
11615
  def __repr__(self):
11616
    L = ['%s=%r' % (key, value)
11617
      for key, value in self.__dict__.iteritems()]
11618
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11619
 
11620
  def __eq__(self, other):
11621
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11622
 
11623
  def __ne__(self, other):
11624
    return not (self == other)
7972 amar.kumar 11625
 
11626
class getLastNdaySaleForItem_args:
11627
  """
11628
  Attributes:
11629
   - itemId
11630
   - numberOfDays
11631
  """
11632
 
11633
  thrift_spec = (
11634
    None, # 0
11635
    (1, TType.I64, 'itemId', None, None, ), # 1
11636
    (2, TType.I64, 'numberOfDays', None, None, ), # 2
11637
  )
11638
 
11639
  def __init__(self, itemId=None, numberOfDays=None,):
11640
    self.itemId = itemId
11641
    self.numberOfDays = numberOfDays
11642
 
11643
  def read(self, iprot):
11644
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11645
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11646
      return
11647
    iprot.readStructBegin()
11648
    while True:
11649
      (fname, ftype, fid) = iprot.readFieldBegin()
11650
      if ftype == TType.STOP:
11651
        break
11652
      if fid == 1:
11653
        if ftype == TType.I64:
11654
          self.itemId = iprot.readI64();
11655
        else:
11656
          iprot.skip(ftype)
11657
      elif fid == 2:
11658
        if ftype == TType.I64:
11659
          self.numberOfDays = iprot.readI64();
11660
        else:
11661
          iprot.skip(ftype)
11662
      else:
11663
        iprot.skip(ftype)
11664
      iprot.readFieldEnd()
11665
    iprot.readStructEnd()
11666
 
11667
  def write(self, oprot):
11668
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11669
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11670
      return
11671
    oprot.writeStructBegin('getLastNdaySaleForItem_args')
11672
    if self.itemId is not None:
11673
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11674
      oprot.writeI64(self.itemId)
11675
      oprot.writeFieldEnd()
11676
    if self.numberOfDays is not None:
11677
      oprot.writeFieldBegin('numberOfDays', TType.I64, 2)
11678
      oprot.writeI64(self.numberOfDays)
11679
      oprot.writeFieldEnd()
11680
    oprot.writeFieldStop()
11681
    oprot.writeStructEnd()
11682
 
11683
  def validate(self):
11684
    return
11685
 
11686
 
11687
  def __repr__(self):
11688
    L = ['%s=%r' % (key, value)
11689
      for key, value in self.__dict__.iteritems()]
11690
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11691
 
11692
  def __eq__(self, other):
11693
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11694
 
11695
  def __ne__(self, other):
11696
    return not (self == other)
11697
 
11698
class getLastNdaySaleForItem_result:
11699
  """
11700
  Attributes:
11701
   - success
11702
  """
11703
 
11704
  thrift_spec = (
11705
    (0, TType.STRING, 'success', None, None, ), # 0
11706
  )
11707
 
11708
  def __init__(self, success=None,):
11709
    self.success = success
11710
 
11711
  def read(self, iprot):
11712
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11713
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11714
      return
11715
    iprot.readStructBegin()
11716
    while True:
11717
      (fname, ftype, fid) = iprot.readFieldBegin()
11718
      if ftype == TType.STOP:
11719
        break
11720
      if fid == 0:
11721
        if ftype == TType.STRING:
11722
          self.success = iprot.readString();
11723
        else:
11724
          iprot.skip(ftype)
11725
      else:
11726
        iprot.skip(ftype)
11727
      iprot.readFieldEnd()
11728
    iprot.readStructEnd()
11729
 
11730
  def write(self, oprot):
11731
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11732
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11733
      return
11734
    oprot.writeStructBegin('getLastNdaySaleForItem_result')
11735
    if self.success is not None:
11736
      oprot.writeFieldBegin('success', TType.STRING, 0)
11737
      oprot.writeString(self.success)
11738
      oprot.writeFieldEnd()
11739
    oprot.writeFieldStop()
11740
    oprot.writeStructEnd()
11741
 
11742
  def validate(self):
11743
    return
11744
 
11745
 
11746
  def __repr__(self):
11747
    L = ['%s=%r' % (key, value)
11748
      for key, value in self.__dict__.iteritems()]
11749
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11750
 
11751
  def __eq__(self, other):
11752
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11753
 
11754
  def __ne__(self, other):
11755
    return not (self == other)
8182 amar.kumar 11756
 
8282 kshitij.so 11757
class addOrUpdateAmazonFbaInventory_args:
11758
  """
11759
  Attributes:
11760
   - amazonfbainventorysnapshot
11761
  """
11762
 
11763
  thrift_spec = (
11764
    None, # 0
11765
    (1, TType.STRUCT, 'amazonfbainventorysnapshot', (AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec), None, ), # 1
11766
  )
11767
 
11768
  def __init__(self, amazonfbainventorysnapshot=None,):
11769
    self.amazonfbainventorysnapshot = amazonfbainventorysnapshot
11770
 
11771
  def read(self, iprot):
11772
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11773
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11774
      return
11775
    iprot.readStructBegin()
11776
    while True:
11777
      (fname, ftype, fid) = iprot.readFieldBegin()
11778
      if ftype == TType.STOP:
11779
        break
11780
      if fid == 1:
11781
        if ftype == TType.STRUCT:
11782
          self.amazonfbainventorysnapshot = AmazonFbaInventorySnapshot()
11783
          self.amazonfbainventorysnapshot.read(iprot)
11784
        else:
11785
          iprot.skip(ftype)
11786
      else:
11787
        iprot.skip(ftype)
11788
      iprot.readFieldEnd()
11789
    iprot.readStructEnd()
11790
 
11791
  def write(self, oprot):
11792
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11793
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11794
      return
11795
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_args')
11796
    if self.amazonfbainventorysnapshot is not None:
11797
      oprot.writeFieldBegin('amazonfbainventorysnapshot', TType.STRUCT, 1)
11798
      self.amazonfbainventorysnapshot.write(oprot)
11799
      oprot.writeFieldEnd()
11800
    oprot.writeFieldStop()
11801
    oprot.writeStructEnd()
11802
 
11803
  def validate(self):
11804
    return
11805
 
11806
 
11807
  def __repr__(self):
11808
    L = ['%s=%r' % (key, value)
11809
      for key, value in self.__dict__.iteritems()]
11810
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11811
 
11812
  def __eq__(self, other):
11813
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11814
 
11815
  def __ne__(self, other):
11816
    return not (self == other)
11817
 
11818
class addOrUpdateAmazonFbaInventory_result:
11819
 
11820
  thrift_spec = (
11821
  )
11822
 
11823
  def read(self, iprot):
11824
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11825
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11826
      return
11827
    iprot.readStructBegin()
11828
    while True:
11829
      (fname, ftype, fid) = iprot.readFieldBegin()
11830
      if ftype == TType.STOP:
11831
        break
11832
      else:
11833
        iprot.skip(ftype)
11834
      iprot.readFieldEnd()
11835
    iprot.readStructEnd()
11836
 
11837
  def write(self, oprot):
11838
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11839
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11840
      return
11841
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_result')
11842
    oprot.writeFieldStop()
11843
    oprot.writeStructEnd()
11844
 
11845
  def validate(self):
11846
    return
11847
 
11848
 
11849
  def __repr__(self):
11850
    L = ['%s=%r' % (key, value)
11851
      for key, value in self.__dict__.iteritems()]
11852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11853
 
11854
  def __eq__(self, other):
11855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11856
 
11857
  def __ne__(self, other):
11858
    return not (self == other)
11859
 
8182 amar.kumar 11860
class addUpdateHoldInventory_args:
11861
  """
11862
  Attributes:
11863
   - itemId
11864
   - warehouseId
11865
   - holdQuantity
11866
   - source
11867
  """
11868
 
11869
  thrift_spec = (
11870
    None, # 0
11871
    (1, TType.I64, 'itemId', None, None, ), # 1
11872
    (2, TType.I64, 'warehouseId', None, None, ), # 2
11873
    (3, TType.I64, 'holdQuantity', None, None, ), # 3
11874
    (4, TType.I64, 'source', None, None, ), # 4
11875
  )
11876
 
11877
  def __init__(self, itemId=None, warehouseId=None, holdQuantity=None, source=None,):
11878
    self.itemId = itemId
11879
    self.warehouseId = warehouseId
11880
    self.holdQuantity = holdQuantity
11881
    self.source = source
11882
 
11883
  def read(self, iprot):
11884
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11885
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11886
      return
11887
    iprot.readStructBegin()
11888
    while True:
11889
      (fname, ftype, fid) = iprot.readFieldBegin()
11890
      if ftype == TType.STOP:
11891
        break
11892
      if fid == 1:
11893
        if ftype == TType.I64:
11894
          self.itemId = iprot.readI64();
11895
        else:
11896
          iprot.skip(ftype)
11897
      elif fid == 2:
11898
        if ftype == TType.I64:
11899
          self.warehouseId = iprot.readI64();
11900
        else:
11901
          iprot.skip(ftype)
11902
      elif fid == 3:
11903
        if ftype == TType.I64:
11904
          self.holdQuantity = iprot.readI64();
11905
        else:
11906
          iprot.skip(ftype)
11907
      elif fid == 4:
11908
        if ftype == TType.I64:
11909
          self.source = iprot.readI64();
11910
        else:
11911
          iprot.skip(ftype)
11912
      else:
11913
        iprot.skip(ftype)
11914
      iprot.readFieldEnd()
11915
    iprot.readStructEnd()
11916
 
11917
  def write(self, oprot):
11918
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11919
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11920
      return
11921
    oprot.writeStructBegin('addUpdateHoldInventory_args')
11922
    if self.itemId is not None:
11923
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11924
      oprot.writeI64(self.itemId)
11925
      oprot.writeFieldEnd()
11926
    if self.warehouseId is not None:
11927
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
11928
      oprot.writeI64(self.warehouseId)
11929
      oprot.writeFieldEnd()
11930
    if self.holdQuantity is not None:
11931
      oprot.writeFieldBegin('holdQuantity', TType.I64, 3)
11932
      oprot.writeI64(self.holdQuantity)
11933
      oprot.writeFieldEnd()
11934
    if self.source is not None:
11935
      oprot.writeFieldBegin('source', TType.I64, 4)
11936
      oprot.writeI64(self.source)
11937
      oprot.writeFieldEnd()
11938
    oprot.writeFieldStop()
11939
    oprot.writeStructEnd()
11940
 
11941
  def validate(self):
11942
    return
11943
 
11944
 
11945
  def __repr__(self):
11946
    L = ['%s=%r' % (key, value)
11947
      for key, value in self.__dict__.iteritems()]
11948
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11949
 
11950
  def __eq__(self, other):
11951
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11952
 
11953
  def __ne__(self, other):
11954
    return not (self == other)
11955
 
11956
class addUpdateHoldInventory_result:
9762 amar.kumar 11957
  """
11958
  Attributes:
11959
   - cex
11960
  """
8182 amar.kumar 11961
 
11962
  thrift_spec = (
9762 amar.kumar 11963
    None, # 0
11964
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8182 amar.kumar 11965
  )
11966
 
9762 amar.kumar 11967
  def __init__(self, cex=None,):
11968
    self.cex = cex
11969
 
8182 amar.kumar 11970
  def read(self, iprot):
11971
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11972
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11973
      return
11974
    iprot.readStructBegin()
11975
    while True:
11976
      (fname, ftype, fid) = iprot.readFieldBegin()
11977
      if ftype == TType.STOP:
11978
        break
9762 amar.kumar 11979
      if fid == 1:
11980
        if ftype == TType.STRUCT:
11981
          self.cex = InventoryServiceException()
11982
          self.cex.read(iprot)
11983
        else:
11984
          iprot.skip(ftype)
8182 amar.kumar 11985
      else:
11986
        iprot.skip(ftype)
11987
      iprot.readFieldEnd()
11988
    iprot.readStructEnd()
11989
 
11990
  def write(self, oprot):
11991
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11992
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11993
      return
11994
    oprot.writeStructBegin('addUpdateHoldInventory_result')
9762 amar.kumar 11995
    if self.cex is not None:
11996
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11997
      self.cex.write(oprot)
11998
      oprot.writeFieldEnd()
8182 amar.kumar 11999
    oprot.writeFieldStop()
12000
    oprot.writeStructEnd()
12001
 
12002
  def validate(self):
12003
    return
12004
 
12005
 
12006
  def __repr__(self):
12007
    L = ['%s=%r' % (key, value)
12008
      for key, value in self.__dict__.iteritems()]
12009
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12010
 
12011
  def __eq__(self, other):
12012
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12013
 
12014
  def __ne__(self, other):
12015
    return not (self == other)
8282 kshitij.so 12016
 
12017
class getAmazonFbaItemInventory_args:
12018
  """
12019
  Attributes:
12020
   - itemId
12021
  """
12022
 
12023
  thrift_spec = (
12024
    None, # 0
12025
    (1, TType.I64, 'itemId', None, None, ), # 1
12026
  )
12027
 
12028
  def __init__(self, itemId=None,):
12029
    self.itemId = itemId
12030
 
12031
  def read(self, iprot):
12032
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12033
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12034
      return
12035
    iprot.readStructBegin()
12036
    while True:
12037
      (fname, ftype, fid) = iprot.readFieldBegin()
12038
      if ftype == TType.STOP:
12039
        break
12040
      if fid == 1:
12041
        if ftype == TType.I64:
12042
          self.itemId = iprot.readI64();
12043
        else:
12044
          iprot.skip(ftype)
12045
      else:
12046
        iprot.skip(ftype)
12047
      iprot.readFieldEnd()
12048
    iprot.readStructEnd()
12049
 
12050
  def write(self, oprot):
12051
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12052
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12053
      return
12054
    oprot.writeStructBegin('getAmazonFbaItemInventory_args')
12055
    if self.itemId is not None:
12056
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12057
      oprot.writeI64(self.itemId)
12058
      oprot.writeFieldEnd()
12059
    oprot.writeFieldStop()
12060
    oprot.writeStructEnd()
12061
 
12062
  def validate(self):
12063
    return
12064
 
12065
 
12066
  def __repr__(self):
12067
    L = ['%s=%r' % (key, value)
12068
      for key, value in self.__dict__.iteritems()]
12069
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12070
 
12071
  def __eq__(self, other):
12072
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12073
 
12074
  def __ne__(self, other):
12075
    return not (self == other)
12076
 
12077
class getAmazonFbaItemInventory_result:
12078
  """
12079
  Attributes:
12080
   - success
12081
  """
12082
 
12083
  thrift_spec = (
12084
    (0, TType.I64, 'success', None, None, ), # 0
12085
  )
12086
 
12087
  def __init__(self, success=None,):
12088
    self.success = success
12089
 
12090
  def read(self, iprot):
12091
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12092
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12093
      return
12094
    iprot.readStructBegin()
12095
    while True:
12096
      (fname, ftype, fid) = iprot.readFieldBegin()
12097
      if ftype == TType.STOP:
12098
        break
12099
      if fid == 0:
12100
        if ftype == TType.I64:
12101
          self.success = iprot.readI64();
12102
        else:
12103
          iprot.skip(ftype)
12104
      else:
12105
        iprot.skip(ftype)
12106
      iprot.readFieldEnd()
12107
    iprot.readStructEnd()
12108
 
12109
  def write(self, oprot):
12110
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12111
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12112
      return
12113
    oprot.writeStructBegin('getAmazonFbaItemInventory_result')
12114
    if self.success is not None:
12115
      oprot.writeFieldBegin('success', TType.I64, 0)
12116
      oprot.writeI64(self.success)
12117
      oprot.writeFieldEnd()
12118
    oprot.writeFieldStop()
12119
    oprot.writeStructEnd()
12120
 
12121
  def validate(self):
12122
    return
12123
 
12124
 
12125
  def __repr__(self):
12126
    L = ['%s=%r' % (key, value)
12127
      for key, value in self.__dict__.iteritems()]
12128
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12129
 
12130
  def __eq__(self, other):
12131
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12132
 
12133
  def __ne__(self, other):
12134
    return not (self == other)
12135
 
8363 vikram.rag 12136
class getAllAmazonFbaItemInventory_args:
8282 kshitij.so 12137
 
12138
  thrift_spec = (
12139
  )
12140
 
12141
  def read(self, iprot):
12142
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12143
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12144
      return
12145
    iprot.readStructBegin()
12146
    while True:
12147
      (fname, ftype, fid) = iprot.readFieldBegin()
12148
      if ftype == TType.STOP:
12149
        break
12150
      else:
12151
        iprot.skip(ftype)
12152
      iprot.readFieldEnd()
12153
    iprot.readStructEnd()
12154
 
12155
  def write(self, oprot):
12156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12158
      return
8363 vikram.rag 12159
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_args')
8282 kshitij.so 12160
    oprot.writeFieldStop()
12161
    oprot.writeStructEnd()
12162
 
12163
  def validate(self):
12164
    return
12165
 
12166
 
12167
  def __repr__(self):
12168
    L = ['%s=%r' % (key, value)
12169
      for key, value in self.__dict__.iteritems()]
12170
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12171
 
12172
  def __eq__(self, other):
12173
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12174
 
12175
  def __ne__(self, other):
12176
    return not (self == other)
12177
 
8363 vikram.rag 12178
class getAllAmazonFbaItemInventory_result:
8282 kshitij.so 12179
  """
12180
  Attributes:
12181
   - success
12182
  """
12183
 
12184
  thrift_spec = (
12185
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
12186
  )
12187
 
12188
  def __init__(self, success=None,):
12189
    self.success = success
12190
 
12191
  def read(self, iprot):
12192
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12193
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12194
      return
12195
    iprot.readStructBegin()
12196
    while True:
12197
      (fname, ftype, fid) = iprot.readFieldBegin()
12198
      if ftype == TType.STOP:
12199
        break
12200
      if fid == 0:
12201
        if ftype == TType.LIST:
12202
          self.success = []
10126 amar.kumar 12203
          (_etype247, _size244) = iprot.readListBegin()
12204
          for _i248 in xrange(_size244):
12205
            _elem249 = AmazonFbaInventorySnapshot()
12206
            _elem249.read(iprot)
12207
            self.success.append(_elem249)
8282 kshitij.so 12208
          iprot.readListEnd()
12209
        else:
12210
          iprot.skip(ftype)
12211
      else:
12212
        iprot.skip(ftype)
12213
      iprot.readFieldEnd()
12214
    iprot.readStructEnd()
12215
 
12216
  def write(self, oprot):
12217
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12218
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12219
      return
8363 vikram.rag 12220
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_result')
8282 kshitij.so 12221
    if self.success is not None:
12222
      oprot.writeFieldBegin('success', TType.LIST, 0)
12223
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10126 amar.kumar 12224
      for iter250 in self.success:
12225
        iter250.write(oprot)
8282 kshitij.so 12226
      oprot.writeListEnd()
12227
      oprot.writeFieldEnd()
12228
    oprot.writeFieldStop()
12229
    oprot.writeStructEnd()
12230
 
12231
  def validate(self):
12232
    return
12233
 
12234
 
12235
  def __repr__(self):
12236
    L = ['%s=%r' % (key, value)
12237
      for key, value in self.__dict__.iteritems()]
12238
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12239
 
12240
  def __eq__(self, other):
12241
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12242
 
12243
  def __ne__(self, other):
12244
    return not (self == other)
8363 vikram.rag 12245
 
12246
class getOursGoodWarehouseIdsForLocation_args:
12247
  """
12248
  Attributes:
12249
   - state_id
12250
  """
12251
 
12252
  thrift_spec = (
12253
    None, # 0
12254
    (1, TType.I64, 'state_id', None, None, ), # 1
12255
  )
12256
 
12257
  def __init__(self, state_id=None,):
12258
    self.state_id = state_id
12259
 
12260
  def read(self, iprot):
12261
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12262
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12263
      return
12264
    iprot.readStructBegin()
12265
    while True:
12266
      (fname, ftype, fid) = iprot.readFieldBegin()
12267
      if ftype == TType.STOP:
12268
        break
12269
      if fid == 1:
12270
        if ftype == TType.I64:
12271
          self.state_id = iprot.readI64();
12272
        else:
12273
          iprot.skip(ftype)
12274
      else:
12275
        iprot.skip(ftype)
12276
      iprot.readFieldEnd()
12277
    iprot.readStructEnd()
12278
 
12279
  def write(self, oprot):
12280
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12281
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12282
      return
12283
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_args')
12284
    if self.state_id is not None:
12285
      oprot.writeFieldBegin('state_id', TType.I64, 1)
12286
      oprot.writeI64(self.state_id)
12287
      oprot.writeFieldEnd()
12288
    oprot.writeFieldStop()
12289
    oprot.writeStructEnd()
12290
 
12291
  def validate(self):
12292
    return
12293
 
12294
 
12295
  def __repr__(self):
12296
    L = ['%s=%r' % (key, value)
12297
      for key, value in self.__dict__.iteritems()]
12298
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12299
 
12300
  def __eq__(self, other):
12301
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12302
 
12303
  def __ne__(self, other):
12304
    return not (self == other)
12305
 
12306
class getOursGoodWarehouseIdsForLocation_result:
12307
  """
12308
  Attributes:
12309
   - success
12310
  """
12311
 
12312
  thrift_spec = (
12313
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12314
  )
12315
 
12316
  def __init__(self, success=None,):
12317
    self.success = success
12318
 
12319
  def read(self, iprot):
12320
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12321
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12322
      return
12323
    iprot.readStructBegin()
12324
    while True:
12325
      (fname, ftype, fid) = iprot.readFieldBegin()
12326
      if ftype == TType.STOP:
12327
        break
12328
      if fid == 0:
12329
        if ftype == TType.LIST:
12330
          self.success = []
10126 amar.kumar 12331
          (_etype254, _size251) = iprot.readListBegin()
12332
          for _i255 in xrange(_size251):
12333
            _elem256 = iprot.readI64();
12334
            self.success.append(_elem256)
8363 vikram.rag 12335
          iprot.readListEnd()
12336
        else:
12337
          iprot.skip(ftype)
12338
      else:
12339
        iprot.skip(ftype)
12340
      iprot.readFieldEnd()
12341
    iprot.readStructEnd()
12342
 
12343
  def write(self, oprot):
12344
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12345
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12346
      return
12347
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_result')
12348
    if self.success is not None:
12349
      oprot.writeFieldBegin('success', TType.LIST, 0)
12350
      oprot.writeListBegin(TType.I64, len(self.success))
10126 amar.kumar 12351
      for iter257 in self.success:
12352
        oprot.writeI64(iter257)
8363 vikram.rag 12353
      oprot.writeListEnd()
12354
      oprot.writeFieldEnd()
12355
    oprot.writeFieldStop()
12356
    oprot.writeStructEnd()
12357
 
12358
  def validate(self):
12359
    return
12360
 
12361
 
12362
  def __repr__(self):
12363
    L = ['%s=%r' % (key, value)
12364
      for key, value in self.__dict__.iteritems()]
12365
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12366
 
12367
  def __eq__(self, other):
12368
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12369
 
12370
  def __ne__(self, other):
12371
    return not (self == other)
8955 vikram.rag 12372
 
12373
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_args:
12374
  """
12375
  Attributes:
12376
   - id
12377
   - warehouse_id
12378
   - source
12379
  """
12380
 
12381
  thrift_spec = (
12382
    None, # 0
12383
    (1, TType.I64, 'id', None, None, ), # 1
12384
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
12385
    (3, TType.I64, 'source', None, None, ), # 3
12386
  )
12387
 
12388
  def __init__(self, id=None, warehouse_id=None, source=None,):
12389
    self.id = id
12390
    self.warehouse_id = warehouse_id
12391
    self.source = source
12392
 
12393
  def read(self, iprot):
12394
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12395
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12396
      return
12397
    iprot.readStructBegin()
12398
    while True:
12399
      (fname, ftype, fid) = iprot.readFieldBegin()
12400
      if ftype == TType.STOP:
12401
        break
12402
      if fid == 1:
12403
        if ftype == TType.I64:
12404
          self.id = iprot.readI64();
12405
        else:
12406
          iprot.skip(ftype)
12407
      elif fid == 2:
12408
        if ftype == TType.I64:
12409
          self.warehouse_id = iprot.readI64();
12410
        else:
12411
          iprot.skip(ftype)
12412
      elif fid == 3:
12413
        if ftype == TType.I64:
12414
          self.source = iprot.readI64();
12415
        else:
12416
          iprot.skip(ftype)
12417
      else:
12418
        iprot.skip(ftype)
12419
      iprot.readFieldEnd()
12420
    iprot.readStructEnd()
12421
 
12422
  def write(self, oprot):
12423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12425
      return
12426
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_args')
12427
    if self.id is not None:
12428
      oprot.writeFieldBegin('id', TType.I64, 1)
12429
      oprot.writeI64(self.id)
12430
      oprot.writeFieldEnd()
12431
    if self.warehouse_id is not None:
12432
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
12433
      oprot.writeI64(self.warehouse_id)
12434
      oprot.writeFieldEnd()
12435
    if self.source is not None:
12436
      oprot.writeFieldBegin('source', TType.I64, 3)
12437
      oprot.writeI64(self.source)
12438
      oprot.writeFieldEnd()
12439
    oprot.writeFieldStop()
12440
    oprot.writeStructEnd()
12441
 
12442
  def validate(self):
12443
    return
12444
 
12445
 
12446
  def __repr__(self):
12447
    L = ['%s=%r' % (key, value)
12448
      for key, value in self.__dict__.iteritems()]
12449
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12450
 
12451
  def __eq__(self, other):
12452
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12453
 
12454
  def __ne__(self, other):
12455
    return not (self == other)
12456
 
12457
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_result:
12458
  """
12459
  Attributes:
12460
   - success
12461
  """
12462
 
12463
  thrift_spec = (
12464
    (0, TType.I64, 'success', None, None, ), # 0
12465
  )
12466
 
12467
  def __init__(self, success=None,):
12468
    self.success = success
12469
 
12470
  def read(self, iprot):
12471
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12472
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12473
      return
12474
    iprot.readStructBegin()
12475
    while True:
12476
      (fname, ftype, fid) = iprot.readFieldBegin()
12477
      if ftype == TType.STOP:
12478
        break
12479
      if fid == 0:
12480
        if ftype == TType.I64:
12481
          self.success = iprot.readI64();
12482
        else:
12483
          iprot.skip(ftype)
12484
      else:
12485
        iprot.skip(ftype)
12486
      iprot.readFieldEnd()
12487
    iprot.readStructEnd()
12488
 
12489
  def write(self, oprot):
12490
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12491
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12492
      return
12493
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_result')
12494
    if self.success is not None:
12495
      oprot.writeFieldBegin('success', TType.I64, 0)
12496
      oprot.writeI64(self.success)
12497
      oprot.writeFieldEnd()
12498
    oprot.writeFieldStop()
12499
    oprot.writeStructEnd()
12500
 
12501
  def validate(self):
12502
    return
12503
 
12504
 
12505
  def __repr__(self):
12506
    L = ['%s=%r' % (key, value)
12507
      for key, value in self.__dict__.iteritems()]
12508
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12509
 
12510
  def __eq__(self, other):
12511
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12512
 
12513
  def __ne__(self, other):
12514
    return not (self == other)
9404 vikram.rag 12515
 
12516
class getSnapdealInventoryForItem_args:
12517
  """
12518
  Attributes:
12519
   - item_id
12520
  """
12521
 
12522
  thrift_spec = (
12523
    None, # 0
12524
    (1, TType.I64, 'item_id', None, None, ), # 1
12525
  )
12526
 
12527
  def __init__(self, item_id=None,):
12528
    self.item_id = item_id
12529
 
12530
  def read(self, iprot):
12531
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12532
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12533
      return
12534
    iprot.readStructBegin()
12535
    while True:
12536
      (fname, ftype, fid) = iprot.readFieldBegin()
12537
      if ftype == TType.STOP:
12538
        break
12539
      if fid == 1:
12540
        if ftype == TType.I64:
12541
          self.item_id = iprot.readI64();
12542
        else:
12543
          iprot.skip(ftype)
12544
      else:
12545
        iprot.skip(ftype)
12546
      iprot.readFieldEnd()
12547
    iprot.readStructEnd()
12548
 
12549
  def write(self, oprot):
12550
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12551
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12552
      return
12553
    oprot.writeStructBegin('getSnapdealInventoryForItem_args')
12554
    if self.item_id is not None:
12555
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12556
      oprot.writeI64(self.item_id)
12557
      oprot.writeFieldEnd()
12558
    oprot.writeFieldStop()
12559
    oprot.writeStructEnd()
12560
 
12561
  def validate(self):
12562
    return
12563
 
12564
 
12565
  def __repr__(self):
12566
    L = ['%s=%r' % (key, value)
12567
      for key, value in self.__dict__.iteritems()]
12568
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12569
 
12570
  def __eq__(self, other):
12571
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12572
 
12573
  def __ne__(self, other):
12574
    return not (self == other)
12575
 
12576
class getSnapdealInventoryForItem_result:
12577
  """
12578
  Attributes:
12579
   - success
12580
  """
12581
 
12582
  thrift_spec = (
12583
    (0, TType.STRUCT, 'success', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 0
12584
  )
12585
 
12586
  def __init__(self, success=None,):
12587
    self.success = success
12588
 
12589
  def read(self, iprot):
12590
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12591
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12592
      return
12593
    iprot.readStructBegin()
12594
    while True:
12595
      (fname, ftype, fid) = iprot.readFieldBegin()
12596
      if ftype == TType.STOP:
12597
        break
12598
      if fid == 0:
12599
        if ftype == TType.STRUCT:
12600
          self.success = SnapdealInventoryItem()
12601
          self.success.read(iprot)
12602
        else:
12603
          iprot.skip(ftype)
12604
      else:
12605
        iprot.skip(ftype)
12606
      iprot.readFieldEnd()
12607
    iprot.readStructEnd()
12608
 
12609
  def write(self, oprot):
12610
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12611
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12612
      return
12613
    oprot.writeStructBegin('getSnapdealInventoryForItem_result')
12614
    if self.success is not None:
12615
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12616
      self.success.write(oprot)
12617
      oprot.writeFieldEnd()
12618
    oprot.writeFieldStop()
12619
    oprot.writeStructEnd()
12620
 
12621
  def validate(self):
12622
    return
12623
 
12624
 
12625
  def __repr__(self):
12626
    L = ['%s=%r' % (key, value)
12627
      for key, value in self.__dict__.iteritems()]
12628
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12629
 
12630
  def __eq__(self, other):
12631
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12632
 
12633
  def __ne__(self, other):
12634
    return not (self == other)
12635
 
12636
class addOrUpdateSnapdealInventoryForItem_args:
12637
  """
12638
  Attributes:
12639
   - snapdealinventoryitem
12640
  """
12641
 
12642
  thrift_spec = (
12643
    None, # 0
12644
    (1, TType.STRUCT, 'snapdealinventoryitem', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 1
12645
  )
12646
 
12647
  def __init__(self, snapdealinventoryitem=None,):
12648
    self.snapdealinventoryitem = snapdealinventoryitem
12649
 
12650
  def read(self, iprot):
12651
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12652
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12653
      return
12654
    iprot.readStructBegin()
12655
    while True:
12656
      (fname, ftype, fid) = iprot.readFieldBegin()
12657
      if ftype == TType.STOP:
12658
        break
12659
      if fid == 1:
12660
        if ftype == TType.STRUCT:
12661
          self.snapdealinventoryitem = SnapdealInventoryItem()
12662
          self.snapdealinventoryitem.read(iprot)
12663
        else:
12664
          iprot.skip(ftype)
12665
      else:
12666
        iprot.skip(ftype)
12667
      iprot.readFieldEnd()
12668
    iprot.readStructEnd()
12669
 
12670
  def write(self, oprot):
12671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12673
      return
12674
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_args')
12675
    if self.snapdealinventoryitem is not None:
12676
      oprot.writeFieldBegin('snapdealinventoryitem', TType.STRUCT, 1)
12677
      self.snapdealinventoryitem.write(oprot)
12678
      oprot.writeFieldEnd()
12679
    oprot.writeFieldStop()
12680
    oprot.writeStructEnd()
12681
 
12682
  def validate(self):
12683
    return
12684
 
12685
 
12686
  def __repr__(self):
12687
    L = ['%s=%r' % (key, value)
12688
      for key, value in self.__dict__.iteritems()]
12689
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12690
 
12691
  def __eq__(self, other):
12692
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12693
 
12694
  def __ne__(self, other):
12695
    return not (self == other)
12696
 
12697
class addOrUpdateSnapdealInventoryForItem_result:
12698
 
12699
  thrift_spec = (
12700
  )
12701
 
12702
  def read(self, iprot):
12703
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12704
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12705
      return
12706
    iprot.readStructBegin()
12707
    while True:
12708
      (fname, ftype, fid) = iprot.readFieldBegin()
12709
      if ftype == TType.STOP:
12710
        break
12711
      else:
12712
        iprot.skip(ftype)
12713
      iprot.readFieldEnd()
12714
    iprot.readStructEnd()
12715
 
12716
  def write(self, oprot):
12717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12719
      return
12720
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_result')
12721
    oprot.writeFieldStop()
12722
    oprot.writeStructEnd()
12723
 
12724
  def validate(self):
12725
    return
12726
 
12727
 
12728
  def __repr__(self):
12729
    L = ['%s=%r' % (key, value)
12730
      for key, value in self.__dict__.iteritems()]
12731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12732
 
12733
  def __eq__(self, other):
12734
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12735
 
12736
  def __ne__(self, other):
12737
    return not (self == other)
12738
 
12739
class getNlcForWarehouse_args:
12740
  """
12741
  Attributes:
12742
   - warehouse_id
12743
   - item_id
12744
  """
12745
 
12746
  thrift_spec = (
12747
    None, # 0
12748
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
12749
    (2, TType.I64, 'item_id', None, None, ), # 2
12750
  )
12751
 
12752
  def __init__(self, warehouse_id=None, item_id=None,):
12753
    self.warehouse_id = warehouse_id
12754
    self.item_id = item_id
12755
 
12756
  def read(self, iprot):
12757
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12758
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12759
      return
12760
    iprot.readStructBegin()
12761
    while True:
12762
      (fname, ftype, fid) = iprot.readFieldBegin()
12763
      if ftype == TType.STOP:
12764
        break
12765
      if fid == 1:
12766
        if ftype == TType.I64:
12767
          self.warehouse_id = iprot.readI64();
12768
        else:
12769
          iprot.skip(ftype)
12770
      elif fid == 2:
12771
        if ftype == TType.I64:
12772
          self.item_id = iprot.readI64();
12773
        else:
12774
          iprot.skip(ftype)
12775
      else:
12776
        iprot.skip(ftype)
12777
      iprot.readFieldEnd()
12778
    iprot.readStructEnd()
12779
 
12780
  def write(self, oprot):
12781
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12782
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12783
      return
12784
    oprot.writeStructBegin('getNlcForWarehouse_args')
12785
    if self.warehouse_id is not None:
12786
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
12787
      oprot.writeI64(self.warehouse_id)
12788
      oprot.writeFieldEnd()
12789
    if self.item_id is not None:
12790
      oprot.writeFieldBegin('item_id', TType.I64, 2)
12791
      oprot.writeI64(self.item_id)
12792
      oprot.writeFieldEnd()
12793
    oprot.writeFieldStop()
12794
    oprot.writeStructEnd()
12795
 
12796
  def validate(self):
12797
    return
12798
 
12799
 
12800
  def __repr__(self):
12801
    L = ['%s=%r' % (key, value)
12802
      for key, value in self.__dict__.iteritems()]
12803
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12804
 
12805
  def __eq__(self, other):
12806
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12807
 
12808
  def __ne__(self, other):
12809
    return not (self == other)
12810
 
12811
class getNlcForWarehouse_result:
12812
  """
12813
  Attributes:
12814
   - success
12815
  """
12816
 
12817
  thrift_spec = (
12818
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12819
  )
12820
 
12821
  def __init__(self, success=None,):
12822
    self.success = success
12823
 
12824
  def read(self, iprot):
12825
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12826
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12827
      return
12828
    iprot.readStructBegin()
12829
    while True:
12830
      (fname, ftype, fid) = iprot.readFieldBegin()
12831
      if ftype == TType.STOP:
12832
        break
12833
      if fid == 0:
12834
        if ftype == TType.DOUBLE:
12835
          self.success = iprot.readDouble();
12836
        else:
12837
          iprot.skip(ftype)
12838
      else:
12839
        iprot.skip(ftype)
12840
      iprot.readFieldEnd()
12841
    iprot.readStructEnd()
12842
 
12843
  def write(self, oprot):
12844
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12845
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12846
      return
12847
    oprot.writeStructBegin('getNlcForWarehouse_result')
12848
    if self.success is not None:
12849
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12850
      oprot.writeDouble(self.success)
12851
      oprot.writeFieldEnd()
12852
    oprot.writeFieldStop()
12853
    oprot.writeStructEnd()
12854
 
12855
  def validate(self):
12856
    return
12857
 
12858
 
12859
  def __repr__(self):
12860
    L = ['%s=%r' % (key, value)
12861
      for key, value in self.__dict__.iteritems()]
12862
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12863
 
12864
  def __eq__(self, other):
12865
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12866
 
12867
  def __ne__(self, other):
12868
    return not (self == other)
9456 vikram.rag 12869
 
9640 amar.kumar 12870
class getHeldInventoryMapForItem_args:
12871
  """
12872
  Attributes:
12873
   - item_id
12874
   - warehouse_id
12875
  """
12876
 
12877
  thrift_spec = (
12878
    None, # 0
12879
    (1, TType.I64, 'item_id', None, None, ), # 1
12880
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
12881
  )
12882
 
12883
  def __init__(self, item_id=None, warehouse_id=None,):
12884
    self.item_id = item_id
12885
    self.warehouse_id = warehouse_id
12886
 
12887
  def read(self, iprot):
12888
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12889
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12890
      return
12891
    iprot.readStructBegin()
12892
    while True:
12893
      (fname, ftype, fid) = iprot.readFieldBegin()
12894
      if ftype == TType.STOP:
12895
        break
12896
      if fid == 1:
12897
        if ftype == TType.I64:
12898
          self.item_id = iprot.readI64();
12899
        else:
12900
          iprot.skip(ftype)
12901
      elif fid == 2:
12902
        if ftype == TType.I64:
12903
          self.warehouse_id = iprot.readI64();
12904
        else:
12905
          iprot.skip(ftype)
12906
      else:
12907
        iprot.skip(ftype)
12908
      iprot.readFieldEnd()
12909
    iprot.readStructEnd()
12910
 
12911
  def write(self, oprot):
12912
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12913
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12914
      return
12915
    oprot.writeStructBegin('getHeldInventoryMapForItem_args')
12916
    if self.item_id is not None:
12917
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12918
      oprot.writeI64(self.item_id)
12919
      oprot.writeFieldEnd()
12920
    if self.warehouse_id is not None:
12921
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
12922
      oprot.writeI64(self.warehouse_id)
12923
      oprot.writeFieldEnd()
12924
    oprot.writeFieldStop()
12925
    oprot.writeStructEnd()
12926
 
12927
  def validate(self):
12928
    return
12929
 
12930
 
12931
  def __repr__(self):
12932
    L = ['%s=%r' % (key, value)
12933
      for key, value in self.__dict__.iteritems()]
12934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12935
 
12936
  def __eq__(self, other):
12937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12938
 
12939
  def __ne__(self, other):
12940
    return not (self == other)
12941
 
12942
class getHeldInventoryMapForItem_result:
12943
  """
12944
  Attributes:
12945
   - success
12946
  """
12947
 
12948
  thrift_spec = (
12949
    (0, TType.MAP, 'success', (TType.I32,None,TType.I64,None), None, ), # 0
12950
  )
12951
 
12952
  def __init__(self, success=None,):
12953
    self.success = success
12954
 
12955
  def read(self, iprot):
12956
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12957
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12958
      return
12959
    iprot.readStructBegin()
12960
    while True:
12961
      (fname, ftype, fid) = iprot.readFieldBegin()
12962
      if ftype == TType.STOP:
12963
        break
12964
      if fid == 0:
12965
        if ftype == TType.MAP:
12966
          self.success = {}
10126 amar.kumar 12967
          (_ktype259, _vtype260, _size258 ) = iprot.readMapBegin() 
12968
          for _i262 in xrange(_size258):
12969
            _key263 = iprot.readI32();
12970
            _val264 = iprot.readI64();
12971
            self.success[_key263] = _val264
9640 amar.kumar 12972
          iprot.readMapEnd()
12973
        else:
12974
          iprot.skip(ftype)
12975
      else:
12976
        iprot.skip(ftype)
12977
      iprot.readFieldEnd()
12978
    iprot.readStructEnd()
12979
 
12980
  def write(self, oprot):
12981
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12982
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12983
      return
12984
    oprot.writeStructBegin('getHeldInventoryMapForItem_result')
12985
    if self.success is not None:
12986
      oprot.writeFieldBegin('success', TType.MAP, 0)
12987
      oprot.writeMapBegin(TType.I32, TType.I64, len(self.success))
10126 amar.kumar 12988
      for kiter265,viter266 in self.success.items():
12989
        oprot.writeI32(kiter265)
12990
        oprot.writeI64(viter266)
9640 amar.kumar 12991
      oprot.writeMapEnd()
12992
      oprot.writeFieldEnd()
12993
    oprot.writeFieldStop()
12994
    oprot.writeStructEnd()
12995
 
12996
  def validate(self):
12997
    return
12998
 
12999
 
13000
  def __repr__(self):
13001
    L = ['%s=%r' % (key, value)
13002
      for key, value in self.__dict__.iteritems()]
13003
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13004
 
13005
  def __eq__(self, other):
13006
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13007
 
13008
  def __ne__(self, other):
13009
    return not (self == other)
13010
 
9495 vikram.rag 13011
class addOrUpdateAllAmazonFbaInventory_args:
13012
  """
13013
  Attributes:
13014
   - allamazonfbainventorysnapshot
13015
  """
9456 vikram.rag 13016
 
9495 vikram.rag 13017
  thrift_spec = None
13018
  def __init__(self, allamazonfbainventorysnapshot=None,):
13019
    self.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 13020
 
13021
  def read(self, iprot):
13022
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13023
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13024
      return
13025
    iprot.readStructBegin()
13026
    while True:
13027
      (fname, ftype, fid) = iprot.readFieldBegin()
13028
      if ftype == TType.STOP:
13029
        break
9495 vikram.rag 13030
      if fid == -1:
13031
        if ftype == TType.LIST:
13032
          self.allamazonfbainventorysnapshot = []
10126 amar.kumar 13033
          (_etype270, _size267) = iprot.readListBegin()
13034
          for _i271 in xrange(_size267):
13035
            _elem272 = AmazonFbaInventorySnapshot()
13036
            _elem272.read(iprot)
13037
            self.allamazonfbainventorysnapshot.append(_elem272)
9495 vikram.rag 13038
          iprot.readListEnd()
13039
        else:
13040
          iprot.skip(ftype)
9456 vikram.rag 13041
      else:
13042
        iprot.skip(ftype)
13043
      iprot.readFieldEnd()
13044
    iprot.readStructEnd()
13045
 
13046
  def write(self, oprot):
13047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13049
      return
9495 vikram.rag 13050
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_args')
13051
    if self.allamazonfbainventorysnapshot is not None:
13052
      oprot.writeFieldBegin('allamazonfbainventorysnapshot', TType.LIST, -1)
13053
      oprot.writeListBegin(TType.STRUCT, len(self.allamazonfbainventorysnapshot))
10126 amar.kumar 13054
      for iter273 in self.allamazonfbainventorysnapshot:
13055
        iter273.write(oprot)
9495 vikram.rag 13056
      oprot.writeListEnd()
13057
      oprot.writeFieldEnd()
9456 vikram.rag 13058
    oprot.writeFieldStop()
13059
    oprot.writeStructEnd()
13060
 
13061
  def validate(self):
13062
    return
13063
 
13064
 
13065
  def __repr__(self):
13066
    L = ['%s=%r' % (key, value)
13067
      for key, value in self.__dict__.iteritems()]
13068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13069
 
13070
  def __eq__(self, other):
13071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13072
 
13073
  def __ne__(self, other):
13074
    return not (self == other)
13075
 
9495 vikram.rag 13076
class addOrUpdateAllAmazonFbaInventory_result:
9456 vikram.rag 13077
 
13078
  thrift_spec = (
13079
  )
13080
 
13081
  def read(self, iprot):
13082
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13083
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13084
      return
13085
    iprot.readStructBegin()
13086
    while True:
13087
      (fname, ftype, fid) = iprot.readFieldBegin()
13088
      if ftype == TType.STOP:
13089
        break
13090
      else:
13091
        iprot.skip(ftype)
13092
      iprot.readFieldEnd()
13093
    iprot.readStructEnd()
13094
 
13095
  def write(self, oprot):
13096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13098
      return
9495 vikram.rag 13099
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_result')
9456 vikram.rag 13100
    oprot.writeFieldStop()
13101
    oprot.writeStructEnd()
13102
 
13103
  def validate(self):
13104
    return
13105
 
13106
 
13107
  def __repr__(self):
13108
    L = ['%s=%r' % (key, value)
13109
      for key, value in self.__dict__.iteritems()]
13110
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13111
 
13112
  def __eq__(self, other):
13113
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13114
 
13115
  def __ne__(self, other):
13116
    return not (self == other)
9482 vikram.rag 13117
 
9495 vikram.rag 13118
class addOrUpdateAllSnapdealInventory_args:
9482 vikram.rag 13119
  """
13120
  Attributes:
9495 vikram.rag 13121
   - allsnapdealinventorysnapshot
9482 vikram.rag 13122
  """
13123
 
13124
  thrift_spec = None
9495 vikram.rag 13125
  def __init__(self, allsnapdealinventorysnapshot=None,):
13126
    self.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 13127
 
13128
  def read(self, iprot):
13129
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13130
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13131
      return
13132
    iprot.readStructBegin()
13133
    while True:
13134
      (fname, ftype, fid) = iprot.readFieldBegin()
13135
      if ftype == TType.STOP:
13136
        break
13137
      if fid == -1:
13138
        if ftype == TType.LIST:
9495 vikram.rag 13139
          self.allsnapdealinventorysnapshot = []
10126 amar.kumar 13140
          (_etype277, _size274) = iprot.readListBegin()
13141
          for _i278 in xrange(_size274):
13142
            _elem279 = SnapdealInventoryItem()
13143
            _elem279.read(iprot)
13144
            self.allsnapdealinventorysnapshot.append(_elem279)
9482 vikram.rag 13145
          iprot.readListEnd()
13146
        else:
13147
          iprot.skip(ftype)
13148
      else:
13149
        iprot.skip(ftype)
13150
      iprot.readFieldEnd()
13151
    iprot.readStructEnd()
13152
 
13153
  def write(self, oprot):
13154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13156
      return
9495 vikram.rag 13157
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_args')
13158
    if self.allsnapdealinventorysnapshot is not None:
13159
      oprot.writeFieldBegin('allsnapdealinventorysnapshot', TType.LIST, -1)
13160
      oprot.writeListBegin(TType.STRUCT, len(self.allsnapdealinventorysnapshot))
10126 amar.kumar 13161
      for iter280 in self.allsnapdealinventorysnapshot:
13162
        iter280.write(oprot)
9482 vikram.rag 13163
      oprot.writeListEnd()
13164
      oprot.writeFieldEnd()
13165
    oprot.writeFieldStop()
13166
    oprot.writeStructEnd()
13167
 
13168
  def validate(self):
13169
    return
13170
 
13171
 
13172
  def __repr__(self):
13173
    L = ['%s=%r' % (key, value)
13174
      for key, value in self.__dict__.iteritems()]
13175
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13176
 
13177
  def __eq__(self, other):
13178
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13179
 
13180
  def __ne__(self, other):
13181
    return not (self == other)
13182
 
9495 vikram.rag 13183
class addOrUpdateAllSnapdealInventory_result:
9482 vikram.rag 13184
 
13185
  thrift_spec = (
13186
  )
13187
 
13188
  def read(self, iprot):
13189
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13190
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13191
      return
13192
    iprot.readStructBegin()
13193
    while True:
13194
      (fname, ftype, fid) = iprot.readFieldBegin()
13195
      if ftype == TType.STOP:
13196
        break
13197
      else:
13198
        iprot.skip(ftype)
13199
      iprot.readFieldEnd()
13200
    iprot.readStructEnd()
13201
 
13202
  def write(self, oprot):
13203
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13204
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13205
      return
9495 vikram.rag 13206
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_result')
9482 vikram.rag 13207
    oprot.writeFieldStop()
13208
    oprot.writeStructEnd()
13209
 
13210
  def validate(self):
13211
    return
13212
 
13213
 
13214
  def __repr__(self):
13215
    L = ['%s=%r' % (key, value)
13216
      for key, value in self.__dict__.iteritems()]
13217
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13218
 
13219
  def __eq__(self, other):
13220
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13221
 
13222
  def __ne__(self, other):
13223
    return not (self == other)
9495 vikram.rag 13224
 
13225
class getSnapdealInventorySnapshot_args:
13226
 
13227
  thrift_spec = (
13228
  )
13229
 
13230
  def read(self, iprot):
13231
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13232
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13233
      return
13234
    iprot.readStructBegin()
13235
    while True:
13236
      (fname, ftype, fid) = iprot.readFieldBegin()
13237
      if ftype == TType.STOP:
13238
        break
13239
      else:
13240
        iprot.skip(ftype)
13241
      iprot.readFieldEnd()
13242
    iprot.readStructEnd()
13243
 
13244
  def write(self, oprot):
13245
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13246
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13247
      return
13248
    oprot.writeStructBegin('getSnapdealInventorySnapshot_args')
13249
    oprot.writeFieldStop()
13250
    oprot.writeStructEnd()
13251
 
13252
  def validate(self):
13253
    return
13254
 
13255
 
13256
  def __repr__(self):
13257
    L = ['%s=%r' % (key, value)
13258
      for key, value in self.__dict__.iteritems()]
13259
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13260
 
13261
  def __eq__(self, other):
13262
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13263
 
13264
  def __ne__(self, other):
13265
    return not (self == other)
13266
 
13267
class getSnapdealInventorySnapshot_result:
13268
  """
13269
  Attributes:
13270
   - success
13271
  """
13272
 
13273
  thrift_spec = (
13274
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec)), None, ), # 0
13275
  )
13276
 
13277
  def __init__(self, success=None,):
13278
    self.success = success
13279
 
13280
  def read(self, iprot):
13281
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13282
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13283
      return
13284
    iprot.readStructBegin()
13285
    while True:
13286
      (fname, ftype, fid) = iprot.readFieldBegin()
13287
      if ftype == TType.STOP:
13288
        break
13289
      if fid == 0:
13290
        if ftype == TType.LIST:
13291
          self.success = []
10126 amar.kumar 13292
          (_etype284, _size281) = iprot.readListBegin()
13293
          for _i285 in xrange(_size281):
13294
            _elem286 = SnapdealInventoryItem()
13295
            _elem286.read(iprot)
13296
            self.success.append(_elem286)
9495 vikram.rag 13297
          iprot.readListEnd()
13298
        else:
13299
          iprot.skip(ftype)
13300
      else:
13301
        iprot.skip(ftype)
13302
      iprot.readFieldEnd()
13303
    iprot.readStructEnd()
13304
 
13305
  def write(self, oprot):
13306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13308
      return
13309
    oprot.writeStructBegin('getSnapdealInventorySnapshot_result')
13310
    if self.success is not None:
13311
      oprot.writeFieldBegin('success', TType.LIST, 0)
13312
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10126 amar.kumar 13313
      for iter287 in self.success:
13314
        iter287.write(oprot)
9495 vikram.rag 13315
      oprot.writeListEnd()
13316
      oprot.writeFieldEnd()
13317
    oprot.writeFieldStop()
13318
    oprot.writeStructEnd()
13319
 
13320
  def validate(self):
13321
    return
13322
 
13323
 
13324
  def __repr__(self):
13325
    L = ['%s=%r' % (key, value)
13326
      for key, value in self.__dict__.iteritems()]
13327
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13328
 
13329
  def __eq__(self, other):
13330
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13331
 
13332
  def __ne__(self, other):
13333
    return not (self == other)
9761 amar.kumar 13334
 
13335
class getHoldInventoryDetails_args:
13336
  """
13337
  Attributes:
13338
   - itemId
13339
   - warehouseId
13340
   - source
13341
  """
13342
 
13343
  thrift_spec = (
13344
    None, # 0
13345
    (1, TType.I64, 'itemId', None, None, ), # 1
13346
    (2, TType.I64, 'warehouseId', None, None, ), # 2
13347
    (3, TType.I64, 'source', None, None, ), # 3
13348
  )
13349
 
13350
  def __init__(self, itemId=None, warehouseId=None, source=None,):
13351
    self.itemId = itemId
13352
    self.warehouseId = warehouseId
13353
    self.source = source
13354
 
13355
  def read(self, iprot):
13356
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13357
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13358
      return
13359
    iprot.readStructBegin()
13360
    while True:
13361
      (fname, ftype, fid) = iprot.readFieldBegin()
13362
      if ftype == TType.STOP:
13363
        break
13364
      if fid == 1:
13365
        if ftype == TType.I64:
13366
          self.itemId = iprot.readI64();
13367
        else:
13368
          iprot.skip(ftype)
13369
      elif fid == 2:
13370
        if ftype == TType.I64:
13371
          self.warehouseId = iprot.readI64();
13372
        else:
13373
          iprot.skip(ftype)
13374
      elif fid == 3:
13375
        if ftype == TType.I64:
13376
          self.source = iprot.readI64();
13377
        else:
13378
          iprot.skip(ftype)
13379
      else:
13380
        iprot.skip(ftype)
13381
      iprot.readFieldEnd()
13382
    iprot.readStructEnd()
13383
 
13384
  def write(self, oprot):
13385
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13386
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13387
      return
13388
    oprot.writeStructBegin('getHoldInventoryDetails_args')
13389
    if self.itemId is not None:
13390
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13391
      oprot.writeI64(self.itemId)
13392
      oprot.writeFieldEnd()
13393
    if self.warehouseId is not None:
13394
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
13395
      oprot.writeI64(self.warehouseId)
13396
      oprot.writeFieldEnd()
13397
    if self.source is not None:
13398
      oprot.writeFieldBegin('source', TType.I64, 3)
13399
      oprot.writeI64(self.source)
13400
      oprot.writeFieldEnd()
13401
    oprot.writeFieldStop()
13402
    oprot.writeStructEnd()
13403
 
13404
  def validate(self):
13405
    return
13406
 
13407
 
13408
  def __repr__(self):
13409
    L = ['%s=%r' % (key, value)
13410
      for key, value in self.__dict__.iteritems()]
13411
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13412
 
13413
  def __eq__(self, other):
13414
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13415
 
13416
  def __ne__(self, other):
13417
    return not (self == other)
13418
 
13419
class getHoldInventoryDetails_result:
13420
  """
13421
  Attributes:
13422
   - success
13423
  """
13424
 
13425
  thrift_spec = (
13426
    (0, TType.LIST, 'success', (TType.STRUCT,(HoldInventoryDetail, HoldInventoryDetail.thrift_spec)), None, ), # 0
13427
  )
13428
 
13429
  def __init__(self, success=None,):
13430
    self.success = success
13431
 
13432
  def read(self, iprot):
13433
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13434
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13435
      return
13436
    iprot.readStructBegin()
13437
    while True:
13438
      (fname, ftype, fid) = iprot.readFieldBegin()
13439
      if ftype == TType.STOP:
13440
        break
13441
      if fid == 0:
13442
        if ftype == TType.LIST:
13443
          self.success = []
10126 amar.kumar 13444
          (_etype291, _size288) = iprot.readListBegin()
13445
          for _i292 in xrange(_size288):
13446
            _elem293 = HoldInventoryDetail()
13447
            _elem293.read(iprot)
13448
            self.success.append(_elem293)
9761 amar.kumar 13449
          iprot.readListEnd()
13450
        else:
13451
          iprot.skip(ftype)
13452
      else:
13453
        iprot.skip(ftype)
13454
      iprot.readFieldEnd()
13455
    iprot.readStructEnd()
13456
 
13457
  def write(self, oprot):
13458
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13459
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13460
      return
13461
    oprot.writeStructBegin('getHoldInventoryDetails_result')
13462
    if self.success is not None:
13463
      oprot.writeFieldBegin('success', TType.LIST, 0)
13464
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10126 amar.kumar 13465
      for iter294 in self.success:
13466
        iter294.write(oprot)
9761 amar.kumar 13467
      oprot.writeListEnd()
13468
      oprot.writeFieldEnd()
13469
    oprot.writeFieldStop()
13470
    oprot.writeStructEnd()
13471
 
13472
  def validate(self):
13473
    return
13474
 
13475
 
13476
  def __repr__(self):
13477
    L = ['%s=%r' % (key, value)
13478
      for key, value in self.__dict__.iteritems()]
13479
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13480
 
13481
  def __eq__(self, other):
13482
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13483
 
13484
  def __ne__(self, other):
13485
    return not (self == other)
10050 vikram.rag 13486
 
13487
class addOrUpdateFlipkartInventorySnapshot_args:
13488
  """
13489
  Attributes:
13490
   - flipkartInventorySnapshot
10450 vikram.rag 13491
   - time
10050 vikram.rag 13492
  """
13493
 
10450 vikram.rag 13494
  thrift_spec = (
13495
    None, # 0
13496
    (1, TType.LIST, 'flipkartInventorySnapshot', (TType.STRUCT,(FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec)), None, ), # 1
13497
    (2, TType.I64, 'time', None, None, ), # 2
13498
  )
13499
 
13500
  def __init__(self, flipkartInventorySnapshot=None, time=None,):
10050 vikram.rag 13501
    self.flipkartInventorySnapshot = flipkartInventorySnapshot
10450 vikram.rag 13502
    self.time = time
10050 vikram.rag 13503
 
13504
  def read(self, iprot):
13505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13507
      return
13508
    iprot.readStructBegin()
13509
    while True:
13510
      (fname, ftype, fid) = iprot.readFieldBegin()
13511
      if ftype == TType.STOP:
13512
        break
10450 vikram.rag 13513
      if fid == 1:
10050 vikram.rag 13514
        if ftype == TType.LIST:
13515
          self.flipkartInventorySnapshot = []
10126 amar.kumar 13516
          (_etype298, _size295) = iprot.readListBegin()
13517
          for _i299 in xrange(_size295):
13518
            _elem300 = FlipkartInventorySnapshot()
13519
            _elem300.read(iprot)
13520
            self.flipkartInventorySnapshot.append(_elem300)
10050 vikram.rag 13521
          iprot.readListEnd()
13522
        else:
13523
          iprot.skip(ftype)
10450 vikram.rag 13524
      elif fid == 2:
13525
        if ftype == TType.I64:
13526
          self.time = iprot.readI64();
13527
        else:
13528
          iprot.skip(ftype)
10050 vikram.rag 13529
      else:
13530
        iprot.skip(ftype)
13531
      iprot.readFieldEnd()
13532
    iprot.readStructEnd()
13533
 
13534
  def write(self, oprot):
13535
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13536
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13537
      return
13538
    oprot.writeStructBegin('addOrUpdateFlipkartInventorySnapshot_args')
13539
    if self.flipkartInventorySnapshot is not None:
10450 vikram.rag 13540
      oprot.writeFieldBegin('flipkartInventorySnapshot', TType.LIST, 1)
10050 vikram.rag 13541
      oprot.writeListBegin(TType.STRUCT, len(self.flipkartInventorySnapshot))
10126 amar.kumar 13542
      for iter301 in self.flipkartInventorySnapshot:
13543
        iter301.write(oprot)
10050 vikram.rag 13544
      oprot.writeListEnd()
13545
      oprot.writeFieldEnd()
10450 vikram.rag 13546
    if self.time is not None:
13547
      oprot.writeFieldBegin('time', TType.I64, 2)
13548
      oprot.writeI64(self.time)
13549
      oprot.writeFieldEnd()
10050 vikram.rag 13550
    oprot.writeFieldStop()
13551
    oprot.writeStructEnd()
13552
 
13553
  def validate(self):
13554
    return
13555
 
13556
 
13557
  def __repr__(self):
13558
    L = ['%s=%r' % (key, value)
13559
      for key, value in self.__dict__.iteritems()]
13560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13561
 
13562
  def __eq__(self, other):
13563
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13564
 
13565
  def __ne__(self, other):
13566
    return not (self == other)
13567
 
13568
class addOrUpdateFlipkartInventorySnapshot_result:
13569
 
13570
  thrift_spec = (
13571
  )
13572
 
13573
  def read(self, iprot):
13574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13576
      return
13577
    iprot.readStructBegin()
13578
    while True:
13579
      (fname, ftype, fid) = iprot.readFieldBegin()
13580
      if ftype == TType.STOP:
13581
        break
13582
      else:
13583
        iprot.skip(ftype)
13584
      iprot.readFieldEnd()
13585
    iprot.readStructEnd()
13586
 
13587
  def write(self, oprot):
13588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13590
      return
13591
    oprot.writeStructBegin('addOrUpdateFlipkartInventorySnapshot_result')
13592
    oprot.writeFieldStop()
13593
    oprot.writeStructEnd()
13594
 
13595
  def validate(self):
13596
    return
13597
 
13598
 
13599
  def __repr__(self):
13600
    L = ['%s=%r' % (key, value)
13601
      for key, value in self.__dict__.iteritems()]
13602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13603
 
13604
  def __eq__(self, other):
13605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13606
 
13607
  def __ne__(self, other):
13608
    return not (self == other)
13609
 
13610
class getFlipkartInventorySnapshot_args:
13611
 
13612
  thrift_spec = (
13613
  )
13614
 
13615
  def read(self, iprot):
13616
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13617
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13618
      return
13619
    iprot.readStructBegin()
13620
    while True:
13621
      (fname, ftype, fid) = iprot.readFieldBegin()
13622
      if ftype == TType.STOP:
13623
        break
13624
      else:
13625
        iprot.skip(ftype)
13626
      iprot.readFieldEnd()
13627
    iprot.readStructEnd()
13628
 
13629
  def write(self, oprot):
13630
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13631
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13632
      return
13633
    oprot.writeStructBegin('getFlipkartInventorySnapshot_args')
13634
    oprot.writeFieldStop()
13635
    oprot.writeStructEnd()
13636
 
13637
  def validate(self):
13638
    return
13639
 
13640
 
13641
  def __repr__(self):
13642
    L = ['%s=%r' % (key, value)
13643
      for key, value in self.__dict__.iteritems()]
13644
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13645
 
13646
  def __eq__(self, other):
13647
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13648
 
13649
  def __ne__(self, other):
13650
    return not (self == other)
13651
 
13652
class getFlipkartInventorySnapshot_result:
13653
  """
13654
  Attributes:
13655
   - success
13656
  """
13657
 
13658
  thrift_spec = (
13659
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec)), None, ), # 0
13660
  )
13661
 
13662
  def __init__(self, success=None,):
13663
    self.success = success
13664
 
13665
  def read(self, iprot):
13666
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13667
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13668
      return
13669
    iprot.readStructBegin()
13670
    while True:
13671
      (fname, ftype, fid) = iprot.readFieldBegin()
13672
      if ftype == TType.STOP:
13673
        break
13674
      if fid == 0:
13675
        if ftype == TType.LIST:
13676
          self.success = []
10126 amar.kumar 13677
          (_etype305, _size302) = iprot.readListBegin()
13678
          for _i306 in xrange(_size302):
13679
            _elem307 = FlipkartInventorySnapshot()
13680
            _elem307.read(iprot)
13681
            self.success.append(_elem307)
10050 vikram.rag 13682
          iprot.readListEnd()
13683
        else:
13684
          iprot.skip(ftype)
13685
      else:
13686
        iprot.skip(ftype)
13687
      iprot.readFieldEnd()
13688
    iprot.readStructEnd()
13689
 
13690
  def write(self, oprot):
13691
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13692
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13693
      return
13694
    oprot.writeStructBegin('getFlipkartInventorySnapshot_result')
13695
    if self.success is not None:
13696
      oprot.writeFieldBegin('success', TType.LIST, 0)
13697
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10126 amar.kumar 13698
      for iter308 in self.success:
13699
        iter308.write(oprot)
10050 vikram.rag 13700
      oprot.writeListEnd()
13701
      oprot.writeFieldEnd()
13702
    oprot.writeFieldStop()
13703
    oprot.writeStructEnd()
13704
 
13705
  def validate(self):
13706
    return
13707
 
13708
 
13709
  def __repr__(self):
13710
    L = ['%s=%r' % (key, value)
13711
      for key, value in self.__dict__.iteritems()]
13712
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13713
 
13714
  def __eq__(self, other):
13715
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13716
 
13717
  def __ne__(self, other):
13718
    return not (self == other)
10097 kshitij.so 13719
 
13720
class getFlipkartlInventoryForItem_args:
13721
  """
13722
  Attributes:
13723
   - item_id
13724
  """
13725
 
13726
  thrift_spec = (
13727
    None, # 0
13728
    (1, TType.I64, 'item_id', None, None, ), # 1
13729
  )
13730
 
13731
  def __init__(self, item_id=None,):
13732
    self.item_id = item_id
13733
 
13734
  def read(self, iprot):
13735
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13736
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13737
      return
13738
    iprot.readStructBegin()
13739
    while True:
13740
      (fname, ftype, fid) = iprot.readFieldBegin()
13741
      if ftype == TType.STOP:
13742
        break
13743
      if fid == 1:
13744
        if ftype == TType.I64:
13745
          self.item_id = iprot.readI64();
13746
        else:
13747
          iprot.skip(ftype)
13748
      else:
13749
        iprot.skip(ftype)
13750
      iprot.readFieldEnd()
13751
    iprot.readStructEnd()
13752
 
13753
  def write(self, oprot):
13754
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13755
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13756
      return
13757
    oprot.writeStructBegin('getFlipkartlInventoryForItem_args')
13758
    if self.item_id is not None:
13759
      oprot.writeFieldBegin('item_id', TType.I64, 1)
13760
      oprot.writeI64(self.item_id)
13761
      oprot.writeFieldEnd()
13762
    oprot.writeFieldStop()
13763
    oprot.writeStructEnd()
13764
 
13765
  def validate(self):
13766
    return
13767
 
13768
 
13769
  def __repr__(self):
13770
    L = ['%s=%r' % (key, value)
13771
      for key, value in self.__dict__.iteritems()]
13772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13773
 
13774
  def __eq__(self, other):
13775
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13776
 
13777
  def __ne__(self, other):
13778
    return not (self == other)
13779
 
13780
class getFlipkartlInventoryForItem_result:
13781
  """
13782
  Attributes:
13783
   - success
13784
  """
13785
 
13786
  thrift_spec = (
13787
    (0, TType.STRUCT, 'success', (FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec), None, ), # 0
13788
  )
13789
 
13790
  def __init__(self, success=None,):
13791
    self.success = success
13792
 
13793
  def read(self, iprot):
13794
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13795
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13796
      return
13797
    iprot.readStructBegin()
13798
    while True:
13799
      (fname, ftype, fid) = iprot.readFieldBegin()
13800
      if ftype == TType.STOP:
13801
        break
13802
      if fid == 0:
13803
        if ftype == TType.STRUCT:
13804
          self.success = FlipkartInventorySnapshot()
13805
          self.success.read(iprot)
13806
        else:
13807
          iprot.skip(ftype)
13808
      else:
13809
        iprot.skip(ftype)
13810
      iprot.readFieldEnd()
13811
    iprot.readStructEnd()
13812
 
13813
  def write(self, oprot):
13814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13816
      return
13817
    oprot.writeStructBegin('getFlipkartlInventoryForItem_result')
13818
    if self.success is not None:
13819
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13820
      self.success.write(oprot)
13821
      oprot.writeFieldEnd()
13822
    oprot.writeFieldStop()
13823
    oprot.writeStructEnd()
13824
 
13825
  def validate(self):
13826
    return
13827
 
13828
 
13829
  def __repr__(self):
13830
    L = ['%s=%r' % (key, value)
13831
      for key, value in self.__dict__.iteritems()]
13832
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13833
 
13834
  def __eq__(self, other):
13835
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13836
 
13837
  def __ne__(self, other):
13838
    return not (self == other)