Subversion Repositories SmartDukaan

Rev

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

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