Subversion Repositories SmartDukaan

Rev

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