Subversion Repositories SmartDukaan

Rev

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